@streamlayer/react 1.8.1 → 1.8.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 +29 -29
- package/lib/dist/es/masters.js +698 -695
- package/lib/es/advertisement.js +189 -189
- package/lib/es/useStreamLayerApp2.js +330 -327
- package/package.json +13 -13
package/lib/es/advertisement.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { f as
|
|
4
|
-
import { N as h, a as
|
|
5
|
-
const yo = /* @__PURE__ */
|
|
1
|
+
import { jsx as s, jsxs as m, Fragment as io } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as to, useRef as ao } from "react";
|
|
3
|
+
import { f as C, s as n, c as ro, g as lo, X as co, h as M, a as Y, L as po, u as mo, i as uo, b as vo, S as b, d as Ao } from "./index2.js";
|
|
4
|
+
import { N as h, a as Z, b as oo, C as so, c as no, P as g, d as $, A as Io, e as ho, S as go } from "./useStreamLayerApp2.js";
|
|
5
|
+
const yo = /* @__PURE__ */ n("div")({
|
|
6
6
|
name: "Container",
|
|
7
7
|
class: "c5b6wdg",
|
|
8
8
|
propsAsIs: !1
|
|
9
|
-
}), bo = "a1rlj479", fo = "s35f1di", No = "sj4471g", $o = "b12050d8", Co = "b1d5ybek", To = (o) => o === "left" || o === "right" ? fo : $o, So = (o) => o === "left" || o === "right" ? No : Co, ko = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks",
|
|
9
|
+
}), bo = "a1rlj479", fo = "s35f1di", No = "sj4471g", $o = "b12050d8", Co = "b1d5ybek", To = (o) => o === "left" || o === "right" ? fo : $o, So = (o) => o === "left" || o === "right" ? No : Co, ko = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", L = ({
|
|
10
10
|
children: o,
|
|
11
11
|
style: e,
|
|
12
12
|
className: i,
|
|
13
|
-
enabled:
|
|
14
|
-
hiding:
|
|
13
|
+
enabled: r = !0,
|
|
14
|
+
hiding: l,
|
|
15
15
|
direction: a = "left",
|
|
16
16
|
onAnimationEnd: d
|
|
17
|
-
}) => /* @__PURE__ */
|
|
17
|
+
}) => /* @__PURE__ */ s(yo, {
|
|
18
18
|
style: e,
|
|
19
|
-
className:
|
|
19
|
+
className: C(i, bo, ko(a), r && !l && To(a), r && l && So(a)),
|
|
20
20
|
onAnimationEnd: d,
|
|
21
21
|
children: o
|
|
22
|
-
}), Mo = /* @__PURE__ */
|
|
22
|
+
}), Mo = /* @__PURE__ */ n("a")({
|
|
23
23
|
name: "Link",
|
|
24
24
|
class: "l1sgte8c",
|
|
25
25
|
propsAsIs: !1
|
|
26
|
-
}), Lo = /* @__PURE__ */
|
|
26
|
+
}), Lo = /* @__PURE__ */ n("div")({
|
|
27
27
|
name: "BannerContainer",
|
|
28
28
|
class: "b7yfc72",
|
|
29
29
|
propsAsIs: !1
|
|
30
|
-
}), Oo = () => Mo, Bo = /* @__PURE__ */
|
|
30
|
+
}), Oo = () => Mo, Bo = /* @__PURE__ */ n(Oo())({
|
|
31
31
|
name: "BannerLink",
|
|
32
32
|
class: "bejjq94",
|
|
33
33
|
propsAsIs: !0
|
|
34
|
-
}), Eo = ({ promotion: o, promotionId: e, hiding: i, direction:
|
|
35
|
-
var
|
|
36
|
-
if (!((
|
|
34
|
+
}), Eo = ({ promotion: o, promotionId: e, hiding: i, direction: r = "bottom" }) => {
|
|
35
|
+
var l, a;
|
|
36
|
+
if (!((l = o.additionalBanner) != null && l.imageUrl))
|
|
37
37
|
return null;
|
|
38
38
|
let d = (a = o.banner) == null ? void 0 : a.url;
|
|
39
|
-
return d && d.indexOf("http") !== 0 && (d = `https://${d}`), /* @__PURE__ */
|
|
39
|
+
return d && d.indexOf("http") !== 0 && (d = `https://${d}`), /* @__PURE__ */ s(L, { direction: r, hiding: i, children: /* @__PURE__ */ s(Lo, { className: "BannerContainer", children: /* @__PURE__ */ s(
|
|
40
40
|
Bo,
|
|
41
41
|
{
|
|
42
42
|
className: "BannerLink",
|
|
@@ -48,289 +48,289 @@ const yo = /* @__PURE__ */ s("div")({
|
|
|
48
48
|
target: "_blank"
|
|
49
49
|
}
|
|
50
50
|
) }) });
|
|
51
|
-
}, _o = /* @__PURE__ */
|
|
51
|
+
}, _o = /* @__PURE__ */ n("div")({
|
|
52
52
|
name: "NotificationContent",
|
|
53
53
|
class: "n18wsqoo",
|
|
54
54
|
propsAsIs: !1
|
|
55
|
-
}), Po = /* @__PURE__ */
|
|
55
|
+
}), Po = /* @__PURE__ */ n("div")({
|
|
56
56
|
name: "Body",
|
|
57
57
|
class: "b1ia90c2",
|
|
58
58
|
propsAsIs: !1
|
|
59
|
-
}), xo = /* @__PURE__ */
|
|
59
|
+
}), xo = /* @__PURE__ */ n("div")({
|
|
60
60
|
name: "Title",
|
|
61
61
|
class: "tg2z08v",
|
|
62
62
|
propsAsIs: !1
|
|
63
|
-
}), Ro = /* @__PURE__ */
|
|
63
|
+
}), Ro = /* @__PURE__ */ n("div")({
|
|
64
64
|
name: "Text",
|
|
65
65
|
class: "t59zdk1",
|
|
66
66
|
propsAsIs: !1
|
|
67
|
-
}),
|
|
67
|
+
}), O = /* @__PURE__ */ n("div")({
|
|
68
68
|
name: "MediaImgBottom",
|
|
69
69
|
class: "m1ab9fq",
|
|
70
70
|
propsAsIs: !1
|
|
71
|
-
}), Do = () =>
|
|
71
|
+
}), Do = () => O, qo = /* @__PURE__ */ n(Do())({
|
|
72
72
|
name: "MediaImgMiddle",
|
|
73
73
|
class: "m9fsr0y",
|
|
74
74
|
propsAsIs: !0
|
|
75
|
-
}), wo = /* @__PURE__ */
|
|
75
|
+
}), wo = /* @__PURE__ */ n("img")({
|
|
76
76
|
name: "CtaIcon",
|
|
77
77
|
class: "cvi9y5q",
|
|
78
78
|
propsAsIs: !1
|
|
79
|
-
}), jo = /* @__PURE__ */
|
|
79
|
+
}), jo = /* @__PURE__ */ n("button")({
|
|
80
80
|
name: "Button",
|
|
81
81
|
class: "bgl6boa",
|
|
82
82
|
propsAsIs: !1
|
|
83
|
-
}), Fo = /* @__PURE__ */
|
|
83
|
+
}), Fo = /* @__PURE__ */ n("div")({
|
|
84
84
|
name: "Logo",
|
|
85
85
|
class: "l5mq0z",
|
|
86
86
|
propsAsIs: !1
|
|
87
|
-
}), Uo = /* @__PURE__ */
|
|
87
|
+
}), Uo = /* @__PURE__ */ n("div")({
|
|
88
88
|
name: "Footer",
|
|
89
89
|
class: "f1mse0ft",
|
|
90
90
|
propsAsIs: !1
|
|
91
|
-
}), zo = /* @__PURE__ */
|
|
91
|
+
}), zo = /* @__PURE__ */ n("div")({
|
|
92
92
|
name: "Vector",
|
|
93
93
|
class: "v1hcloah",
|
|
94
94
|
propsAsIs: !1
|
|
95
|
-
}), Vo = /* @__PURE__ */
|
|
95
|
+
}), Vo = /* @__PURE__ */ n("div")({
|
|
96
96
|
name: "NotificationContainer",
|
|
97
97
|
class: "n3n65jf",
|
|
98
98
|
propsAsIs: !1
|
|
99
99
|
}), Go = {
|
|
100
|
-
[h.BOTTOM]:
|
|
100
|
+
[h.BOTTOM]: O,
|
|
101
101
|
[h.MIDDLE]: qo
|
|
102
102
|
}, Wo = ({ src: o, imagePosition: e }) => {
|
|
103
|
-
const i = Go[e] ||
|
|
104
|
-
return /* @__PURE__ */
|
|
103
|
+
const i = Go[e] || O;
|
|
104
|
+
return /* @__PURE__ */ s(i, { children: /* @__PURE__ */ s("img", { src: o, alt: "" }) });
|
|
105
105
|
}, Ho = ({ notification: o, open: e }) => {
|
|
106
|
-
if (!o || !o.promotion || o.enabled !==
|
|
106
|
+
if (!o || !o.promotion || o.enabled !== Z.NOTIFICATION_ENABLED)
|
|
107
107
|
return null;
|
|
108
|
-
const { title: i, body:
|
|
108
|
+
const { title: i, body: r, image: l, promotion: a } = o, { sponsorLogo: d, sponsorLogoMode: c, imagePosition: u, ctaButton: t } = a;
|
|
109
109
|
return /* @__PURE__ */ m(Vo, { className: "SL_Lower_Third_Notification", onClick: e, children: [
|
|
110
110
|
/* @__PURE__ */ m(_o, { children: [
|
|
111
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ s(Wo, { src: l, imagePosition: u }),
|
|
112
112
|
/* @__PURE__ */ m(Po, { children: [
|
|
113
|
-
i && /* @__PURE__ */
|
|
114
|
-
|
|
113
|
+
i && /* @__PURE__ */ s(xo, { children: i }),
|
|
114
|
+
r && /* @__PURE__ */ s(Ro, { children: r })
|
|
115
115
|
] })
|
|
116
116
|
] }),
|
|
117
117
|
/* @__PURE__ */ m(Uo, { children: [
|
|
118
|
-
c !==
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
118
|
+
c !== oo.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ m(io, { children: [
|
|
119
|
+
/* @__PURE__ */ s(Fo, { children: /* @__PURE__ */ s("img", { src: d, alt: i }) }),
|
|
120
|
+
/* @__PURE__ */ s(zo, {})
|
|
121
121
|
] }),
|
|
122
122
|
/* @__PURE__ */ m(jo, { name: "promo-button", style: { color: t == null ? void 0 : t.textColor, backgroundColor: t == null ? void 0 : t.color }, children: [
|
|
123
|
-
(t == null ? void 0 : t.ctaIcon) && (t == null ? void 0 : t.ctaIconMode) ===
|
|
123
|
+
(t == null ? void 0 : t.ctaIcon) && (t == null ? void 0 : t.ctaIconMode) === so.CTA_ICON_TRANSPARENT && /* @__PURE__ */ s(wo, { src: t == null ? void 0 : t.ctaIcon, alt: "cta-icon" }),
|
|
124
124
|
(t == null ? void 0 : t.label) || "Open"
|
|
125
125
|
] })
|
|
126
126
|
] })
|
|
127
127
|
] });
|
|
128
|
-
}, Ko = /* @__PURE__ */
|
|
128
|
+
}, Ko = /* @__PURE__ */ n("div")({
|
|
129
129
|
name: "NotificationContent",
|
|
130
130
|
class: "n1ku6hz",
|
|
131
131
|
propsAsIs: !1
|
|
132
|
-
}), Xo = /* @__PURE__ */
|
|
132
|
+
}), Xo = /* @__PURE__ */ n("div")({
|
|
133
133
|
name: "NotificationContainer",
|
|
134
134
|
class: "nbxqmol",
|
|
135
135
|
propsAsIs: !1
|
|
136
|
-
}), Jo = /* @__PURE__ */
|
|
136
|
+
}), Jo = /* @__PURE__ */ n("div")({
|
|
137
137
|
name: "Body",
|
|
138
138
|
class: "b1gu3eml",
|
|
139
139
|
propsAsIs: !1
|
|
140
|
-
}), Qo = /* @__PURE__ */
|
|
140
|
+
}), Qo = /* @__PURE__ */ n("div")({
|
|
141
141
|
name: "Title",
|
|
142
142
|
class: "t1u17zva",
|
|
143
143
|
propsAsIs: !1
|
|
144
|
-
}), Yo = /* @__PURE__ */
|
|
144
|
+
}), Yo = /* @__PURE__ */ n("div")({
|
|
145
145
|
name: "Text",
|
|
146
146
|
class: "t10ko1g",
|
|
147
147
|
propsAsIs: !1
|
|
148
|
-
}),
|
|
148
|
+
}), T = /* @__PURE__ */ n("div")({
|
|
149
149
|
name: "Media",
|
|
150
150
|
class: "mntc42e",
|
|
151
151
|
propsAsIs: !1
|
|
152
|
-
}), Zo = () =>
|
|
152
|
+
}), Zo = () => T, K = /* @__PURE__ */ n(Zo())({
|
|
153
153
|
name: "MediaImgFit",
|
|
154
154
|
class: "ml060eo",
|
|
155
155
|
propsAsIs: !0
|
|
156
|
-
}),
|
|
156
|
+
}), os = () => T, eo = /* @__PURE__ */ n(os())({
|
|
157
157
|
name: "MediaImgCentered",
|
|
158
158
|
class: "m1vqlvig",
|
|
159
159
|
propsAsIs: !0
|
|
160
|
-
}),
|
|
160
|
+
}), ss = () => eo, ns = /* @__PURE__ */ n(ss())({
|
|
161
161
|
name: "MediaImgBottom",
|
|
162
162
|
class: "m1e7tvi5",
|
|
163
163
|
propsAsIs: !0
|
|
164
|
-
}),
|
|
164
|
+
}), es = () => T, is = /* @__PURE__ */ n(es())({
|
|
165
165
|
name: "MediaImgSolid",
|
|
166
166
|
class: "mqvntt2",
|
|
167
167
|
propsAsIs: !0
|
|
168
|
-
}),
|
|
168
|
+
}), ts = () => T, as = /* @__PURE__ */ n(ts())({
|
|
169
169
|
name: "MediaImgMiddle",
|
|
170
170
|
class: "m12jtj3u",
|
|
171
171
|
propsAsIs: !0
|
|
172
|
-
}),
|
|
172
|
+
}), rs = /* @__PURE__ */ n("img")({
|
|
173
173
|
name: "CtaIcon",
|
|
174
174
|
class: "ckq1frv",
|
|
175
175
|
propsAsIs: !1
|
|
176
|
-
}),
|
|
176
|
+
}), ls = /* @__PURE__ */ n("button")({
|
|
177
177
|
name: "Button",
|
|
178
178
|
class: "bis90pl",
|
|
179
179
|
propsAsIs: !1
|
|
180
|
-
}),
|
|
180
|
+
}), ds = () => ro, cs = /* @__PURE__ */ n(ds())({
|
|
181
181
|
name: "StyledChevronRight",
|
|
182
182
|
class: "s9mjmz3",
|
|
183
183
|
propsAsIs: !0
|
|
184
|
-
}),
|
|
184
|
+
}), ps = /* @__PURE__ */ n("div")({
|
|
185
185
|
name: "Logo",
|
|
186
186
|
class: "l1cf50a7",
|
|
187
187
|
propsAsIs: !1
|
|
188
|
-
}),
|
|
189
|
-
[h.UNSET]:
|
|
190
|
-
[h.FIT]:
|
|
191
|
-
[h.CENTERED]:
|
|
192
|
-
[h.BOTTOM]:
|
|
193
|
-
[h.SOLID]:
|
|
194
|
-
[h.MIDDLE]:
|
|
195
|
-
},
|
|
196
|
-
const i =
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
},
|
|
199
|
-
if (!o || !o.promotion || o.enabled !==
|
|
188
|
+
}), ms = {
|
|
189
|
+
[h.UNSET]: K,
|
|
190
|
+
[h.FIT]: K,
|
|
191
|
+
[h.CENTERED]: eo,
|
|
192
|
+
[h.BOTTOM]: ns,
|
|
193
|
+
[h.SOLID]: is,
|
|
194
|
+
[h.MIDDLE]: as
|
|
195
|
+
}, us = ({ src: o, imagePosition: e }) => {
|
|
196
|
+
const i = ms[e];
|
|
197
|
+
return /* @__PURE__ */ s(i, { children: /* @__PURE__ */ s("img", { src: o, alt: "" }) });
|
|
198
|
+
}, vs = ({ notification: o, open: e, promotionId: i, hiding: r, direction: l = "left" }) => {
|
|
199
|
+
if (!o || !o.promotion || o.enabled !== Z.NOTIFICATION_ENABLED)
|
|
200
200
|
return null;
|
|
201
201
|
if (o.promotion.mode === no.LOWER_THIRD)
|
|
202
|
-
return /* @__PURE__ */
|
|
202
|
+
return /* @__PURE__ */ s(Ho, { notification: o, open: e });
|
|
203
203
|
const { title: a, body: d, image: c, promotion: u } = o, { sponsorLogo: t, sponsorLogoMode: v, imagePosition: I, ctaButton: p } = u;
|
|
204
|
-
return /* @__PURE__ */
|
|
205
|
-
v !==
|
|
204
|
+
return /* @__PURE__ */ s(L, { className: "SL_Rich_Notification", direction: l, hiding: r, children: /* @__PURE__ */ m(Xo, { onClick: e, children: [
|
|
205
|
+
v !== oo.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ s(ps, { children: /* @__PURE__ */ s("img", { src: t, alt: a }) }),
|
|
206
206
|
/* @__PURE__ */ m(Ko, { children: [
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ s(us, { src: c, imagePosition: I }),
|
|
208
208
|
/* @__PURE__ */ m(Jo, { children: [
|
|
209
|
-
a && /* @__PURE__ */
|
|
210
|
-
d && /* @__PURE__ */
|
|
209
|
+
a && /* @__PURE__ */ s(Qo, { children: a }),
|
|
210
|
+
d && /* @__PURE__ */ s(Yo, { children: d })
|
|
211
211
|
] }),
|
|
212
|
-
/* @__PURE__ */ m(
|
|
213
|
-
(p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) ===
|
|
212
|
+
/* @__PURE__ */ m(ls, { 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) === so.CTA_ICON_TRANSPARENT && /* @__PURE__ */ s(rs, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
|
|
214
214
|
(p == null ? void 0 : p.label) || "Open"
|
|
215
215
|
] }),
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ s(cs, { name: "chevronRight" })
|
|
217
217
|
] })
|
|
218
218
|
] }) });
|
|
219
|
-
},
|
|
219
|
+
}, As = /* @__PURE__ */ n("div")({
|
|
220
220
|
name: "OverlayContainer",
|
|
221
221
|
class: "okzhq2w",
|
|
222
222
|
propsAsIs: !1
|
|
223
|
-
}),
|
|
223
|
+
}), Is = /* @__PURE__ */ n("div")({
|
|
224
224
|
name: "PromoOverlay",
|
|
225
225
|
class: "pmgz5i",
|
|
226
226
|
propsAsIs: !1
|
|
227
|
-
}),
|
|
227
|
+
}), hs = /* @__PURE__ */ n("div")({
|
|
228
228
|
name: "Header",
|
|
229
229
|
class: "hyxi3jt",
|
|
230
230
|
propsAsIs: !1
|
|
231
|
-
}),
|
|
231
|
+
}), gs = /* @__PURE__ */ n("div")({
|
|
232
232
|
name: "HeaderContent",
|
|
233
233
|
class: "h149e3gp",
|
|
234
234
|
propsAsIs: !1
|
|
235
|
-
}),
|
|
235
|
+
}), ys = "h10toh7", X = /* @__PURE__ */ n("img")({
|
|
236
236
|
name: "SponsorLogo",
|
|
237
237
|
class: "s1jyea6t",
|
|
238
238
|
propsAsIs: !1
|
|
239
|
-
}),
|
|
239
|
+
}), bs = /* @__PURE__ */ n("div")({
|
|
240
240
|
name: "SponsorName",
|
|
241
241
|
class: "szpfa3h",
|
|
242
242
|
propsAsIs: !1
|
|
243
|
-
}),
|
|
243
|
+
}), fs = /* @__PURE__ */ n("div")({
|
|
244
244
|
name: "Media",
|
|
245
245
|
class: "m1crmu01",
|
|
246
246
|
propsAsIs: !1
|
|
247
|
-
}),
|
|
247
|
+
}), Ns = /* @__PURE__ */ n("img")({
|
|
248
248
|
name: "PromoImg",
|
|
249
249
|
class: "p1l37r8s",
|
|
250
250
|
propsAsIs: !1
|
|
251
|
-
}),
|
|
251
|
+
}), $s = "s1nmch9k", J = /* @__PURE__ */ n("div")({
|
|
252
252
|
name: "Content",
|
|
253
253
|
class: "c1er0ljd",
|
|
254
254
|
propsAsIs: !1
|
|
255
|
-
}),
|
|
255
|
+
}), Cs = /* @__PURE__ */ n("div")({
|
|
256
256
|
name: "Description",
|
|
257
257
|
class: "dydopmr",
|
|
258
258
|
propsAsIs: !1
|
|
259
|
-
}),
|
|
259
|
+
}), Ts = /* @__PURE__ */ n("div")({
|
|
260
260
|
name: "Sponsor",
|
|
261
261
|
class: "s1w6nt04",
|
|
262
262
|
propsAsIs: !1
|
|
263
|
-
}),
|
|
263
|
+
}), Ss = /* @__PURE__ */ n("div")({
|
|
264
264
|
name: "SponsorText",
|
|
265
265
|
class: "s1evcmtq",
|
|
266
266
|
propsAsIs: !1
|
|
267
|
-
}),
|
|
267
|
+
}), ks = /* @__PURE__ */ n("div")({
|
|
268
268
|
name: "ADLogo",
|
|
269
269
|
class: "awodx0x",
|
|
270
270
|
propsAsIs: !1
|
|
271
|
-
}),
|
|
271
|
+
}), Ms = /* @__PURE__ */ n("span")({
|
|
272
272
|
name: "SponsoredText",
|
|
273
273
|
class: "s1q3n6oi",
|
|
274
274
|
propsAsIs: !1
|
|
275
|
-
}),
|
|
275
|
+
}), Ls = /* @__PURE__ */ n("div")({
|
|
276
276
|
name: "ActionBtnWrap",
|
|
277
277
|
class: "a8d4xfk",
|
|
278
278
|
propsAsIs: !1
|
|
279
|
-
}),
|
|
279
|
+
}), Os = /* @__PURE__ */ n("a")({
|
|
280
280
|
name: "ActionButton",
|
|
281
281
|
class: "at6oobh",
|
|
282
282
|
propsAsIs: !1
|
|
283
|
-
}),
|
|
283
|
+
}), Bs = /* @__PURE__ */ n("div")({
|
|
284
284
|
name: "Title",
|
|
285
285
|
class: "t1gyg7tt",
|
|
286
286
|
propsAsIs: !1
|
|
287
|
-
}),
|
|
288
|
-
var a, d, c, u, t, v, I, p, A,
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
i && o.type &&
|
|
292
|
-
}, [i, o.type,
|
|
287
|
+
}), Es = "h17rwbtk", Q = ({ promotion: o, skipAutoClose: e, promotionId: i, onClose: r, markAsViewed: l }) => {
|
|
288
|
+
var a, d, c, u, t, v, I, p, A, f, N, B, E, _, P, x, R, D, q, w, j, F, U, z, V, G, W, H;
|
|
289
|
+
const S = o.type === g.INGAME_IAB11_LBAR || o.type === g.INGAME_IAB11, k = ((a = o.sponsor) == null ? void 0 : a.logo) && o.logoMode === $.CENTER;
|
|
290
|
+
to(() => {
|
|
291
|
+
i && o.type && l && l();
|
|
292
|
+
}, [i, o.type, l]);
|
|
293
293
|
let y = (d = o.banner) == null ? void 0 : d.url;
|
|
294
|
-
return y && y.indexOf("http") !== 0 && (y = `https://${y}`), /* @__PURE__ */ m(
|
|
295
|
-
/* @__PURE__ */ m(
|
|
296
|
-
/* @__PURE__ */ m(
|
|
297
|
-
((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode ===
|
|
294
|
+
return y && y.indexOf("http") !== 0 && (y = `https://${y}`), /* @__PURE__ */ m(Is, { className: "PromoOverlay", children: [
|
|
295
|
+
/* @__PURE__ */ m(hs, { children: [
|
|
296
|
+
/* @__PURE__ */ m(gs, { className: C(!k && ys), children: [
|
|
297
|
+
((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === $.LEFT && /* @__PURE__ */ s(X, { src: (u = o.sponsor) == null ? void 0 : u.logo, alt: "promo" }),
|
|
298
298
|
/* @__PURE__ */ m(
|
|
299
|
-
|
|
299
|
+
Ts,
|
|
300
300
|
{
|
|
301
301
|
style: {
|
|
302
|
-
paddingLeft: (t = o.sponsor) != null && t.logo && o.logoMode ===
|
|
302
|
+
paddingLeft: (t = o.sponsor) != null && t.logo && o.logoMode === $.LEFT ? "0px" : "8px"
|
|
303
303
|
},
|
|
304
304
|
children: [
|
|
305
|
-
((v = o.sponsor) == null ? void 0 : v.logo) && o.logoMode ===
|
|
306
|
-
/* @__PURE__ */ m(
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */
|
|
305
|
+
((v = o.sponsor) == null ? void 0 : v.logo) && o.logoMode === $.LEFT && /* @__PURE__ */ s(bs, { children: (I = o.sponsor) == null ? void 0 : I.name }),
|
|
306
|
+
/* @__PURE__ */ m(Ss, { className: "SponsorText", children: [
|
|
307
|
+
/* @__PURE__ */ s(ks, { children: "AD" }),
|
|
308
|
+
/* @__PURE__ */ s(Ms, { children: "SPONSORED" })
|
|
309
309
|
] })
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
312
|
)
|
|
313
313
|
] }),
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ s(
|
|
315
315
|
lo,
|
|
316
316
|
{
|
|
317
317
|
className: "ClosePromoIcon",
|
|
318
|
-
close:
|
|
318
|
+
close: r,
|
|
319
319
|
autoClose: (p = o.closeTimer) == null ? void 0 : p.auto,
|
|
320
320
|
duration: e ? 0 : (A = o.closeTimer) == null ? void 0 : A.seconds
|
|
321
321
|
}
|
|
322
322
|
)
|
|
323
323
|
] }),
|
|
324
|
-
/* @__PURE__ */ m(
|
|
325
|
-
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
|
|
324
|
+
/* @__PURE__ */ m(fs, { children: [
|
|
325
|
+
k && /* @__PURE__ */ s(X, { className: $s, src: (f = o.sponsor) == null ? void 0 : f.logo, alt: "promo" }),
|
|
326
|
+
/* @__PURE__ */ s(J, { children: (B = (N = o.banner) == null ? void 0 : N.video) != null && B.url ? /* @__PURE__ */ s(
|
|
327
|
+
co,
|
|
328
328
|
{
|
|
329
|
-
source: (
|
|
330
|
-
poster: (
|
|
331
|
-
aspectRatio:
|
|
329
|
+
source: (_ = (E = o.banner) == null ? void 0 : E.video) == null ? void 0 : _.url,
|
|
330
|
+
poster: (x = (P = o.banner) == null ? void 0 : P.video) == null ? void 0 : x.thumbnailUrl,
|
|
331
|
+
aspectRatio: S ? "1/1" : "16/9",
|
|
332
332
|
onPlay: () => {
|
|
333
|
-
|
|
333
|
+
M.emit("advertisement", {
|
|
334
334
|
action: "videoPlay",
|
|
335
335
|
payload: {
|
|
336
336
|
id: i,
|
|
@@ -340,76 +340,76 @@ const yo = /* @__PURE__ */ s("div")({
|
|
|
340
340
|
},
|
|
341
341
|
autoPlay: o.autoPlayVideo === Io.ENABLED
|
|
342
342
|
}
|
|
343
|
-
) : (
|
|
344
|
-
!
|
|
345
|
-
((
|
|
346
|
-
((
|
|
343
|
+
) : (R = o.banner) != null && R.imageUrl ? /* @__PURE__ */ s(Ns, { style: S ? { aspectRatio: "1/1" } : {}, src: (D = o.banner) == null ? void 0 : D.imageUrl, alt: "promo" }) : null }),
|
|
344
|
+
!S && /* @__PURE__ */ m(J, { children: [
|
|
345
|
+
((q = o.banner) == null ? void 0 : q.title) && /* @__PURE__ */ s(Bs, { className: C("AdvTitle", k && Es), children: (w = o.banner) == null ? void 0 : w.title }),
|
|
346
|
+
((j = o.banner) == null ? void 0 : j.body) && /* @__PURE__ */ s(Cs, { className: "AdvDescription", children: (F = o.banner) == null ? void 0 : F.body })
|
|
347
347
|
] })
|
|
348
348
|
] }),
|
|
349
|
-
o.buttonType !== ho.NO_BUTTON && /* @__PURE__ */
|
|
350
|
-
|
|
349
|
+
o.buttonType !== ho.NO_BUTTON && /* @__PURE__ */ s(Ls, { children: /* @__PURE__ */ s(
|
|
350
|
+
Os,
|
|
351
351
|
{
|
|
352
352
|
href: y,
|
|
353
353
|
style: {
|
|
354
|
-
backgroundColor: ((
|
|
355
|
-
color: ((
|
|
354
|
+
backgroundColor: ((z = (U = o.banner) == null ? void 0 : U.ctaButton) == null ? void 0 : z.color) || "#009dc4",
|
|
355
|
+
color: ((G = (V = o.banner) == null ? void 0 : V.ctaButton) == null ? void 0 : G.textColor) || "#fff"
|
|
356
356
|
},
|
|
357
357
|
"data-analytics": "button",
|
|
358
358
|
"data-promo-id": i,
|
|
359
359
|
"data-promo-type": o.type,
|
|
360
360
|
target: "_blank",
|
|
361
|
-
children: (
|
|
361
|
+
children: (H = (W = o.banner) == null ? void 0 : W.ctaButton) == null ? void 0 : H.label
|
|
362
362
|
}
|
|
363
363
|
) })
|
|
364
364
|
] });
|
|
365
|
-
},
|
|
365
|
+
}, _s = /* @__PURE__ */ n("div")({
|
|
366
366
|
name: "SidebarContainer",
|
|
367
367
|
class: "s1abskp8",
|
|
368
368
|
propsAsIs: !1
|
|
369
|
-
}),
|
|
369
|
+
}), Ps = ({
|
|
370
370
|
children: o,
|
|
371
371
|
direction: e,
|
|
372
372
|
style: i,
|
|
373
|
-
className:
|
|
374
|
-
hiding:
|
|
375
|
-
}) => /* @__PURE__ */
|
|
373
|
+
className: r,
|
|
374
|
+
hiding: l
|
|
375
|
+
}) => /* @__PURE__ */ s(L, {
|
|
376
376
|
direction: e,
|
|
377
377
|
style: i,
|
|
378
|
-
hiding:
|
|
379
|
-
className:
|
|
380
|
-
children: /* @__PURE__ */
|
|
378
|
+
hiding: l,
|
|
379
|
+
className: r,
|
|
380
|
+
children: /* @__PURE__ */ s(_s, {
|
|
381
381
|
children: o
|
|
382
382
|
})
|
|
383
|
-
}),
|
|
383
|
+
}), xs = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === g.INGAME_IAB21_LBAR, Rs = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11 || (o == null ? void 0 : o.type) === g.INGAME_IAB21, Ds = ({
|
|
384
384
|
advertisement: o,
|
|
385
385
|
close: e,
|
|
386
386
|
skipTypeCheck: i,
|
|
387
|
-
skipAutoClose:
|
|
388
|
-
layoutMode:
|
|
387
|
+
skipAutoClose: r,
|
|
388
|
+
layoutMode: l = "side-by-side",
|
|
389
389
|
sidebar: a,
|
|
390
390
|
isNotification: d,
|
|
391
391
|
banner: c,
|
|
392
392
|
markAsViewed: u,
|
|
393
393
|
open: t
|
|
394
|
-
}) => o.promotion ? d && o.notification ? /* @__PURE__ */
|
|
395
|
-
|
|
394
|
+
}) => o.promotion ? d && o.notification ? /* @__PURE__ */ s(vs, { open: t, notification: o.notification, promotionId: o.question.id }) : !a && !c && (i || Rs(o.promotion)) ? /* @__PURE__ */ s(As, { className: "PromoOverlayContainer", children: /* @__PURE__ */ s(
|
|
395
|
+
Q,
|
|
396
396
|
{
|
|
397
397
|
markAsViewed: u,
|
|
398
398
|
promotionId: o.question.id,
|
|
399
399
|
promotion: o.promotion,
|
|
400
400
|
onClose: e,
|
|
401
|
-
skipAutoClose:
|
|
401
|
+
skipAutoClose: r
|
|
402
402
|
}
|
|
403
|
-
) }) : a && (i ||
|
|
404
|
-
|
|
403
|
+
) }) : a && (i || xs(o.promotion)) ? /* @__PURE__ */ s(Ps, { className: "PromoSidebarContainer", direction: a, hiding: !1, children: /* @__PURE__ */ s(
|
|
404
|
+
Q,
|
|
405
405
|
{
|
|
406
406
|
markAsViewed: u,
|
|
407
407
|
promotionId: o.question.id,
|
|
408
408
|
promotion: o.promotion,
|
|
409
409
|
onClose: e,
|
|
410
|
-
skipAutoClose:
|
|
410
|
+
skipAutoClose: r
|
|
411
411
|
}
|
|
412
|
-
) }) : c ? /* @__PURE__ */
|
|
412
|
+
) }) : c ? /* @__PURE__ */ s(
|
|
413
413
|
Eo,
|
|
414
414
|
{
|
|
415
415
|
promotionId: o.question.id,
|
|
@@ -417,59 +417,59 @@ const yo = /* @__PURE__ */ s("div")({
|
|
|
417
417
|
promotion: o.promotion,
|
|
418
418
|
direction: c
|
|
419
419
|
}
|
|
420
|
-
) : null : null,
|
|
420
|
+
) : null : null, qs = /* @__PURE__ */ n("div")({
|
|
421
421
|
name: "AdvertisementUIWrap",
|
|
422
422
|
class: "aa6pjif",
|
|
423
423
|
propsAsIs: !1
|
|
424
|
-
}),
|
|
424
|
+
}), ws = (o) => {
|
|
425
425
|
const e = o.target;
|
|
426
426
|
if (e instanceof HTMLAnchorElement && e.target === "_blank") {
|
|
427
|
-
const i = e.getAttribute("data-promo-id") || "",
|
|
428
|
-
e.getAttribute("data-analytics") === "button" &&
|
|
427
|
+
const i = e.getAttribute("data-promo-id") || "", r = e.getAttribute("data-promo-type") || g.UNSET;
|
|
428
|
+
e.getAttribute("data-analytics") === "button" && M.emit("advertisement", {
|
|
429
429
|
action: "buttonSelect",
|
|
430
430
|
payload: {
|
|
431
431
|
id: i,
|
|
432
|
-
type:
|
|
432
|
+
type: r
|
|
433
433
|
}
|
|
434
|
-
}), e.getAttribute("data-analytics") === "banner" &&
|
|
434
|
+
}), e.getAttribute("data-analytics") === "banner" && M.emit("advertisement", {
|
|
435
435
|
action: "bannerSelect",
|
|
436
436
|
payload: {
|
|
437
437
|
id: i,
|
|
438
|
-
type:
|
|
438
|
+
type: r
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
},
|
|
442
|
+
}, js = ({
|
|
443
443
|
gamification: o,
|
|
444
444
|
layoutMode: e,
|
|
445
445
|
skipAutoClose: i,
|
|
446
|
-
skipTypeCheck:
|
|
447
|
-
sidebar:
|
|
446
|
+
skipTypeCheck: r,
|
|
447
|
+
sidebar: l,
|
|
448
448
|
banner: a,
|
|
449
449
|
notification: d,
|
|
450
450
|
isMobileScreen: c,
|
|
451
451
|
persistent: u
|
|
452
452
|
}) => {
|
|
453
453
|
var t, v, I;
|
|
454
|
-
const p =
|
|
455
|
-
|
|
454
|
+
const p = ao(null), A = Y(o.advertisement.$store);
|
|
455
|
+
po(p, {
|
|
456
456
|
enabled: !!A.data,
|
|
457
457
|
event: "click",
|
|
458
|
-
listener:
|
|
458
|
+
listener: ws
|
|
459
459
|
});
|
|
460
|
-
const
|
|
460
|
+
const f = !a && !l;
|
|
461
461
|
if (A.data === void 0 || !u && A.isViewed)
|
|
462
462
|
return null;
|
|
463
|
-
const
|
|
464
|
-
return /* @__PURE__ */
|
|
463
|
+
const N = ((I = (v = (t = A == null ? void 0 : A.data) == null ? void 0 : t.notification) == null ? void 0 : v.promotion) == null ? void 0 : I.mode) === no.LOWER_THIRD;
|
|
464
|
+
return /* @__PURE__ */ s(qs, {
|
|
465
465
|
ref: p,
|
|
466
466
|
style: {
|
|
467
|
-
height:
|
|
467
|
+
height: f ? "auto" : "100%"
|
|
468
468
|
},
|
|
469
|
-
className:
|
|
470
|
-
children: /* @__PURE__ */
|
|
471
|
-
skipTypeCheck:
|
|
472
|
-
sidebar:
|
|
469
|
+
className: C("SL-AdvertisementUIWrap", c && "mobile-view", N && "SL-AdvertisementUIWrap--lower-third"),
|
|
470
|
+
children: /* @__PURE__ */ s(Ds, {
|
|
471
|
+
skipTypeCheck: r,
|
|
472
|
+
sidebar: l,
|
|
473
473
|
banner: a,
|
|
474
474
|
advertisement: A.data,
|
|
475
475
|
close: A.close,
|
|
@@ -480,20 +480,20 @@ const yo = /* @__PURE__ */ s("div")({
|
|
|
480
480
|
skipAutoClose: i
|
|
481
481
|
})
|
|
482
482
|
});
|
|
483
|
-
},
|
|
483
|
+
}, Fs = ({
|
|
484
484
|
sdk: o,
|
|
485
485
|
sidebar: e,
|
|
486
486
|
banner: i,
|
|
487
|
-
skipAutoClose:
|
|
488
|
-
skipTypeCheck:
|
|
487
|
+
skipAutoClose: r,
|
|
488
|
+
skipTypeCheck: l,
|
|
489
489
|
layoutMode: a,
|
|
490
490
|
isMobileScreen: d,
|
|
491
491
|
persistent: c,
|
|
492
492
|
notification: u
|
|
493
493
|
}) => {
|
|
494
|
-
const t =
|
|
494
|
+
const t = Y(o.featuresList.getStore());
|
|
495
495
|
if (e && i)
|
|
496
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ s("div", {
|
|
497
497
|
style: {
|
|
498
498
|
color: "red"
|
|
499
499
|
},
|
|
@@ -502,7 +502,7 @@ const yo = /* @__PURE__ */ s("div")({
|
|
|
502
502
|
if (!t)
|
|
503
503
|
return null;
|
|
504
504
|
const v = o.getFeature(go.GAMES);
|
|
505
|
-
return v ? /* @__PURE__ */
|
|
505
|
+
return v ? /* @__PURE__ */ s(js, {
|
|
506
506
|
gamification: v,
|
|
507
507
|
sidebar: e,
|
|
508
508
|
banner: i,
|
|
@@ -510,40 +510,40 @@ const yo = /* @__PURE__ */ s("div")({
|
|
|
510
510
|
isMobileScreen: d,
|
|
511
511
|
persistent: c,
|
|
512
512
|
notification: u,
|
|
513
|
-
skipTypeCheck:
|
|
514
|
-
skipAutoClose:
|
|
513
|
+
skipTypeCheck: l,
|
|
514
|
+
skipAutoClose: r
|
|
515
515
|
}) : null;
|
|
516
|
-
},
|
|
516
|
+
}, Ws = ({
|
|
517
517
|
event: o,
|
|
518
518
|
sidebar: e,
|
|
519
519
|
banner: i,
|
|
520
|
-
isMobileScreen:
|
|
521
|
-
skipAutoClose:
|
|
520
|
+
isMobileScreen: r,
|
|
521
|
+
skipAutoClose: l,
|
|
522
522
|
persistent: a,
|
|
523
523
|
theme: d,
|
|
524
524
|
notification: c,
|
|
525
525
|
skipTypeCheck: u
|
|
526
526
|
}) => {
|
|
527
|
-
const t =
|
|
528
|
-
return
|
|
529
|
-
/* @__PURE__ */
|
|
530
|
-
|
|
527
|
+
const t = mo(), v = uo(), I = vo();
|
|
528
|
+
return t ? e && !v.promotionSidebar ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : i && !v.promotionBanner ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : c && !v.promotionNotification ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : !i && !e && !c && !v.promotionOverlay ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: [
|
|
529
|
+
/* @__PURE__ */ s(Ao, { customTheme: d ?? I, children: /* @__PURE__ */ s(
|
|
530
|
+
Fs,
|
|
531
531
|
{
|
|
532
532
|
sdk: t,
|
|
533
533
|
sidebar: e,
|
|
534
534
|
banner: i,
|
|
535
|
-
isMobileScreen:
|
|
535
|
+
isMobileScreen: r,
|
|
536
536
|
persistent: a,
|
|
537
537
|
notification: c,
|
|
538
538
|
skipTypeCheck: u,
|
|
539
|
-
skipAutoClose:
|
|
539
|
+
skipAutoClose: l,
|
|
540
540
|
layoutMode: "side-by-side"
|
|
541
541
|
}
|
|
542
542
|
) }),
|
|
543
|
-
o !== void 0 && /* @__PURE__ */
|
|
544
|
-
] });
|
|
543
|
+
o !== void 0 && /* @__PURE__ */ s(b, { event: o })
|
|
544
|
+
] }) : null;
|
|
545
545
|
};
|
|
546
546
|
export {
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
Ws as StreamLayerSDKAdvertisement,
|
|
548
|
+
Fs as StreamLayerSDKAdvertisementUI
|
|
549
549
|
};
|