@streamlayer/react 1.3.4 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/insight.d.ts +8 -0
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/insight.js +1 -0
- package/lib/cjs/masters2.js +1 -1
- package/lib/cjs/provider.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +10 -10
- package/lib/dist/cjs/masters.js +46 -46
- package/lib/dist/es/masters.js +3444 -3432
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +123 -116
- package/lib/es/index2.js +34 -33
- package/lib/es/insight.js +69 -0
- package/lib/es/masters2.js +12 -12
- package/lib/es/provider.js +3 -3
- package/lib/es/useStreamLayerApp2.js +1322 -1309
- package/lib/style.css +1 -1
- package/package.json +18 -13
package/lib/es/advertisement.js
CHANGED
|
@@ -2,12 +2,12 @@ import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect as Q, useRef as J, useMemo as V } from "react";
|
|
3
3
|
import { c as f, s as n, a as K, Q as X, e as $, u as N, L as Y } from "./provider.js";
|
|
4
4
|
import { F as Z, u as oo, d as eo } from "./index2.js";
|
|
5
|
-
import { N as
|
|
6
|
-
const
|
|
5
|
+
import { N as g, a as no, b as so, C as io, P as I, c as h, S as ao } from "./useStreamLayerApp2.js";
|
|
6
|
+
const to = /* @__PURE__ */ n("div")({
|
|
7
7
|
name: "Container",
|
|
8
8
|
class: "c5b6wdg",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), ro = "a1rlj479", lo = "s35f1di", co = "sj4471g", mo = "b12050d8", po = "b1d5ybek", uo = (o) => o === "left" || o === "right" ? lo : mo, vo = (o) => o === "left" || o === "right" ? co : po, Io = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", C = ({
|
|
11
11
|
children: o,
|
|
12
12
|
style: s,
|
|
13
13
|
className: r,
|
|
@@ -15,9 +15,9 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
15
15
|
hiding: a,
|
|
16
16
|
direction: l = "left",
|
|
17
17
|
onAnimationEnd: t
|
|
18
|
-
}) => /* @__PURE__ */ e(
|
|
18
|
+
}) => /* @__PURE__ */ e(to, {
|
|
19
19
|
style: s,
|
|
20
|
-
className: f(r,
|
|
20
|
+
className: f(r, ro, Io(l), i && !a && uo(l), i && a && vo(l)),
|
|
21
21
|
onAnimationEnd: t,
|
|
22
22
|
children: o
|
|
23
23
|
}), go = /* @__PURE__ */ n("a")({
|
|
@@ -28,17 +28,17 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
28
28
|
name: "BannerContainer",
|
|
29
29
|
class: "b7yfc72",
|
|
30
30
|
propsAsIs: !1
|
|
31
|
-
}),
|
|
31
|
+
}), Ao = () => go, bo = /* @__PURE__ */ n(Ao())({
|
|
32
32
|
name: "BannerLink",
|
|
33
33
|
class: "bejjq94",
|
|
34
34
|
propsAsIs: !0
|
|
35
|
-
}),
|
|
35
|
+
}), yo = /* @__PURE__ */ n("img")({
|
|
36
36
|
name: "BannerImg",
|
|
37
37
|
class: "b1j94hdr",
|
|
38
38
|
propsAsIs: !1
|
|
39
|
-
}),
|
|
39
|
+
}), fo = ({ promotion: o, promotionId: s, hiding: r, direction: i = "bottom" }) => {
|
|
40
40
|
var a;
|
|
41
|
-
return (a = o.additionalBanner) != null && a.imageUrl ? /* @__PURE__ */ e(
|
|
41
|
+
return (a = o.additionalBanner) != null && a.imageUrl ? /* @__PURE__ */ e(C, { direction: i, hiding: r, children: /* @__PURE__ */ e(ho, { className: "BannerContainer", children: /* @__PURE__ */ e(
|
|
42
42
|
bo,
|
|
43
43
|
{
|
|
44
44
|
className: "BannerLink",
|
|
@@ -48,200 +48,207 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
48
48
|
"data-promo-type": o.type,
|
|
49
49
|
"data-analytics": "banner",
|
|
50
50
|
target: "_blank",
|
|
51
|
-
children: /* @__PURE__ */ e(
|
|
51
|
+
children: /* @__PURE__ */ e(yo, { src: o.additionalBanner.imageUrl, alt: "promo" })
|
|
52
52
|
}
|
|
53
53
|
) }) }) : null;
|
|
54
|
-
},
|
|
54
|
+
}, $o = /* @__PURE__ */ n("div")({
|
|
55
55
|
name: "NotificationContent",
|
|
56
56
|
class: "n1ku6hz",
|
|
57
57
|
propsAsIs: !1
|
|
58
|
-
}),
|
|
58
|
+
}), No = /* @__PURE__ */ n("div")({
|
|
59
59
|
name: "NotificationContainer",
|
|
60
60
|
class: "nbxqmol",
|
|
61
61
|
propsAsIs: !1
|
|
62
|
-
}),
|
|
62
|
+
}), Co = /* @__PURE__ */ n("div")({
|
|
63
63
|
name: "Body",
|
|
64
64
|
class: "b1gu3eml",
|
|
65
65
|
propsAsIs: !1
|
|
66
|
-
}),
|
|
66
|
+
}), Mo = /* @__PURE__ */ n("div")({
|
|
67
67
|
name: "Title",
|
|
68
68
|
class: "t1u17zva",
|
|
69
69
|
propsAsIs: !1
|
|
70
|
-
}),
|
|
70
|
+
}), So = /* @__PURE__ */ n("div")({
|
|
71
71
|
name: "Text",
|
|
72
72
|
class: "t10ko1g",
|
|
73
73
|
propsAsIs: !1
|
|
74
|
-
}),
|
|
74
|
+
}), A = /* @__PURE__ */ n("div")({
|
|
75
75
|
name: "Media",
|
|
76
76
|
class: "mntc42e",
|
|
77
77
|
propsAsIs: !1
|
|
78
|
-
}),
|
|
78
|
+
}), To = () => A, w = /* @__PURE__ */ n(To())({
|
|
79
79
|
name: "MediaImgFit",
|
|
80
80
|
class: "ml060eo",
|
|
81
81
|
propsAsIs: !0
|
|
82
|
-
}),
|
|
82
|
+
}), ko = () => A, W = /* @__PURE__ */ n(ko())({
|
|
83
83
|
name: "MediaImgCentered",
|
|
84
84
|
class: "m1vqlvig",
|
|
85
85
|
propsAsIs: !0
|
|
86
|
-
}),
|
|
86
|
+
}), Bo = () => W, Eo = /* @__PURE__ */ n(Bo())({
|
|
87
87
|
name: "MediaImgBottom",
|
|
88
88
|
class: "m1e7tvi5",
|
|
89
89
|
propsAsIs: !0
|
|
90
|
-
}),
|
|
90
|
+
}), Lo = () => A, Oo = /* @__PURE__ */ n(Lo())({
|
|
91
91
|
name: "MediaImgSolid",
|
|
92
92
|
class: "mqvntt2",
|
|
93
93
|
propsAsIs: !0
|
|
94
|
-
}), xo = () =>
|
|
94
|
+
}), xo = () => A, _o = /* @__PURE__ */ n(xo())({
|
|
95
95
|
name: "MediaImgMiddle",
|
|
96
96
|
class: "m12jtj3u",
|
|
97
97
|
propsAsIs: !0
|
|
98
|
-
}), Po = /* @__PURE__ */ n("
|
|
98
|
+
}), Po = /* @__PURE__ */ n("img")({
|
|
99
|
+
name: "CtaIcon",
|
|
100
|
+
class: "ckq1frv",
|
|
101
|
+
propsAsIs: !1
|
|
102
|
+
}), jo = /* @__PURE__ */ n("button")({
|
|
99
103
|
name: "Button",
|
|
100
|
-
class: "
|
|
104
|
+
class: "bis90pl",
|
|
101
105
|
propsAsIs: !1
|
|
102
|
-
}),
|
|
106
|
+
}), Ro = () => K, Do = /* @__PURE__ */ n(Ro())({
|
|
103
107
|
name: "StyledChevronRight",
|
|
104
|
-
class: "
|
|
108
|
+
class: "s9mjmz3",
|
|
105
109
|
propsAsIs: !0
|
|
106
|
-
}),
|
|
110
|
+
}), qo = /* @__PURE__ */ n("div")({
|
|
107
111
|
name: "Logo",
|
|
108
|
-
class: "
|
|
109
|
-
propsAsIs: !1
|
|
110
|
-
}),
|
|
111
|
-
[
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
[
|
|
115
|
-
[
|
|
116
|
-
[
|
|
117
|
-
},
|
|
118
|
-
const r =
|
|
112
|
+
class: "l1cf50a7",
|
|
113
|
+
propsAsIs: !1
|
|
114
|
+
}), Fo = {
|
|
115
|
+
[g.UNSET]: w,
|
|
116
|
+
[g.FIT]: w,
|
|
117
|
+
[g.CENTERED]: W,
|
|
118
|
+
[g.BOTTOM]: Eo,
|
|
119
|
+
[g.SOLID]: Oo,
|
|
120
|
+
[g.MIDDLE]: _o
|
|
121
|
+
}, Uo = ({ src: o, imagePosition: s }) => {
|
|
122
|
+
const r = Fo[s];
|
|
119
123
|
return /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e("img", { src: o, alt: "" }) });
|
|
120
|
-
},
|
|
124
|
+
}, wo = ({ notification: o, promotionId: s, hiding: r, direction: i = "left" }) => {
|
|
121
125
|
if (!o || !o.promotion || o.enabled !== no.NOTIFICATION_ENABLED)
|
|
122
126
|
return null;
|
|
123
127
|
const { title: a, body: l, image: t, promotion: p } = o, { sponsorLogo: u, sponsorLogoMode: v, imagePosition: m, ctaButton: d } = p;
|
|
124
|
-
return /* @__PURE__ */ e(
|
|
125
|
-
v !== so.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ e(
|
|
126
|
-
/* @__PURE__ */ c(
|
|
127
|
-
/* @__PURE__ */ e(
|
|
128
|
-
/* @__PURE__ */ c(
|
|
129
|
-
a && /* @__PURE__ */ e(
|
|
130
|
-
l && /* @__PURE__ */ e(
|
|
128
|
+
return /* @__PURE__ */ e(C, { direction: i, hiding: r, children: /* @__PURE__ */ c(No, { children: [
|
|
129
|
+
v !== so.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ e(qo, { children: /* @__PURE__ */ e("img", { src: u, alt: a }) }),
|
|
130
|
+
/* @__PURE__ */ c($o, { children: [
|
|
131
|
+
/* @__PURE__ */ e(Uo, { src: t, imagePosition: m }),
|
|
132
|
+
/* @__PURE__ */ c(Co, { children: [
|
|
133
|
+
a && /* @__PURE__ */ e(Mo, { children: a }),
|
|
134
|
+
l && /* @__PURE__ */ e(So, { children: l })
|
|
131
135
|
] }),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
136
|
+
/* @__PURE__ */ c(jo, { name: "promo-button", style: { color: d == null ? void 0 : d.textColor, backgroundColor: d == null ? void 0 : d.color }, children: [
|
|
137
|
+
(d == null ? void 0 : d.ctaIcon) && (d == null ? void 0 : d.ctaIconMode) === io.CTA_ICON_TRANSPARENT && /* @__PURE__ */ e(Po, { src: d == null ? void 0 : d.ctaIcon, alt: "cta-icon" }),
|
|
138
|
+
(d == null ? void 0 : d.label) || "Open"
|
|
139
|
+
] }),
|
|
140
|
+
/* @__PURE__ */ e(Do, { name: "chevronRight" })
|
|
134
141
|
] })
|
|
135
142
|
] }) });
|
|
136
|
-
},
|
|
143
|
+
}, Go = /* @__PURE__ */ n("div")({
|
|
137
144
|
name: "OverlayContainer",
|
|
138
145
|
class: "okzhq2w",
|
|
139
146
|
propsAsIs: !1
|
|
140
|
-
}),
|
|
147
|
+
}), zo = /* @__PURE__ */ n("div")({
|
|
141
148
|
name: "PromoOverlay",
|
|
142
149
|
class: "pmgz5i",
|
|
143
150
|
propsAsIs: !1
|
|
144
|
-
}),
|
|
151
|
+
}), Ho = /* @__PURE__ */ n("div")({
|
|
145
152
|
name: "Header",
|
|
146
153
|
class: "hyxi3jt",
|
|
147
154
|
propsAsIs: !1
|
|
148
|
-
}),
|
|
155
|
+
}), Ko = /* @__PURE__ */ n("div")({
|
|
149
156
|
name: "HeaderContent",
|
|
150
157
|
class: "h149e3gp",
|
|
151
158
|
propsAsIs: !1
|
|
152
|
-
}),
|
|
159
|
+
}), Wo = "h10toh7", G = /* @__PURE__ */ n("img")({
|
|
153
160
|
name: "SponsorLogo",
|
|
154
161
|
class: "s1jyea6t",
|
|
155
162
|
propsAsIs: !1
|
|
156
|
-
}),
|
|
163
|
+
}), Qo = /* @__PURE__ */ n("div")({
|
|
157
164
|
name: "SponsorName",
|
|
158
165
|
class: "szpfa3h",
|
|
159
166
|
propsAsIs: !1
|
|
160
|
-
}),
|
|
167
|
+
}), Jo = /* @__PURE__ */ n("div")({
|
|
161
168
|
name: "Media",
|
|
162
169
|
class: "m1crmu01",
|
|
163
170
|
propsAsIs: !1
|
|
164
|
-
}),
|
|
171
|
+
}), Vo = /* @__PURE__ */ n("img")({
|
|
165
172
|
name: "PromoImg",
|
|
166
173
|
class: "p1l37r8s",
|
|
167
174
|
propsAsIs: !1
|
|
168
|
-
}),
|
|
175
|
+
}), Xo = "s1nmch9k", z = /* @__PURE__ */ n("div")({
|
|
169
176
|
name: "Content",
|
|
170
177
|
class: "c1er0ljd",
|
|
171
178
|
propsAsIs: !1
|
|
172
|
-
}),
|
|
179
|
+
}), Yo = /* @__PURE__ */ n("div")({
|
|
173
180
|
name: "Description",
|
|
174
181
|
class: "dydopmr",
|
|
175
182
|
propsAsIs: !1
|
|
176
|
-
}),
|
|
183
|
+
}), Zo = /* @__PURE__ */ n("div")({
|
|
177
184
|
name: "Sponsor",
|
|
178
185
|
class: "s1w6nt04",
|
|
179
186
|
propsAsIs: !1
|
|
180
|
-
}),
|
|
187
|
+
}), oe = /* @__PURE__ */ n("div")({
|
|
181
188
|
name: "SponsorText",
|
|
182
189
|
class: "s1evcmtq",
|
|
183
190
|
propsAsIs: !1
|
|
184
|
-
}),
|
|
191
|
+
}), ee = /* @__PURE__ */ n("div")({
|
|
185
192
|
name: "ADLogo",
|
|
186
193
|
class: "awodx0x",
|
|
187
194
|
propsAsIs: !1
|
|
188
|
-
}),
|
|
195
|
+
}), ne = /* @__PURE__ */ n("span")({
|
|
189
196
|
name: "SponsoredText",
|
|
190
197
|
class: "s1q3n6oi",
|
|
191
198
|
propsAsIs: !1
|
|
192
|
-
}),
|
|
199
|
+
}), se = /* @__PURE__ */ n("div")({
|
|
193
200
|
name: "CloseIconWrap",
|
|
194
201
|
class: "c8d4xfk",
|
|
195
202
|
propsAsIs: !1
|
|
196
|
-
}),
|
|
203
|
+
}), ie = () => K, ae = /* @__PURE__ */ n(ie())({
|
|
197
204
|
name: "CloseIcon",
|
|
198
205
|
class: "ct6oobh",
|
|
199
206
|
propsAsIs: !0
|
|
200
|
-
}),
|
|
207
|
+
}), te = /* @__PURE__ */ n("div")({
|
|
201
208
|
name: "ActionBtnWrap",
|
|
202
209
|
class: "a1gyg7tt",
|
|
203
210
|
propsAsIs: !1
|
|
204
|
-
}),
|
|
211
|
+
}), re = /* @__PURE__ */ n("a")({
|
|
205
212
|
name: "ActionButton",
|
|
206
213
|
class: "a17rwbtk",
|
|
207
214
|
propsAsIs: !1
|
|
208
|
-
}),
|
|
215
|
+
}), le = /* @__PURE__ */ n("div")({
|
|
209
216
|
name: "Title",
|
|
210
217
|
class: "t3vxzaw",
|
|
211
218
|
propsAsIs: !1
|
|
212
|
-
}),
|
|
213
|
-
var i, a, l, t, p, u, v, m, d,
|
|
214
|
-
const
|
|
215
|
-
return /* @__PURE__ */ c(
|
|
216
|
-
/* @__PURE__ */ c(
|
|
217
|
-
/* @__PURE__ */ c(
|
|
218
|
-
((a = o.sponsor) == null ? void 0 : a.logo) && o.logoMode ===
|
|
219
|
+
}), de = "h10f3u0j", H = ({ promotion: o, promotionId: s, onClose: r }) => {
|
|
220
|
+
var i, a, l, t, p, u, v, m, d, M, S, T, k, B, E, L, O, x, _, P, j, R, D, q, F, U;
|
|
221
|
+
const b = o.type === I.INGAME_IAB11_LBAR || o.type === I.INGAME_IAB11, y = ((i = o.sponsor) == null ? void 0 : i.logo) && o.logoMode === h.CENTER;
|
|
222
|
+
return /* @__PURE__ */ c(zo, { className: "PromoOverlay", children: [
|
|
223
|
+
/* @__PURE__ */ c(Ho, { children: [
|
|
224
|
+
/* @__PURE__ */ c(Ko, { className: f(!y && Wo), children: [
|
|
225
|
+
((a = o.sponsor) == null ? void 0 : a.logo) && o.logoMode === h.LEFT && /* @__PURE__ */ e(G, { src: (l = o.sponsor) == null ? void 0 : l.logo, alt: "promo" }),
|
|
219
226
|
/* @__PURE__ */ c(
|
|
220
|
-
|
|
227
|
+
Zo,
|
|
221
228
|
{
|
|
222
229
|
style: {
|
|
223
|
-
paddingLeft: (t = o.sponsor) != null && t.logo && o.logoMode ===
|
|
230
|
+
paddingLeft: (t = o.sponsor) != null && t.logo && o.logoMode === h.LEFT ? "0px" : "8px"
|
|
224
231
|
},
|
|
225
232
|
children: [
|
|
226
|
-
((p = o.sponsor) == null ? void 0 : p.logo) && o.logoMode ===
|
|
227
|
-
/* @__PURE__ */ c(
|
|
228
|
-
/* @__PURE__ */ e(
|
|
229
|
-
/* @__PURE__ */ e(
|
|
233
|
+
((p = o.sponsor) == null ? void 0 : p.logo) && o.logoMode === h.LEFT && /* @__PURE__ */ e(Qo, { children: (u = o.sponsor) == null ? void 0 : u.name }),
|
|
234
|
+
/* @__PURE__ */ c(oe, { className: "SponsorText", children: [
|
|
235
|
+
/* @__PURE__ */ e(ee, { children: "AD" }),
|
|
236
|
+
/* @__PURE__ */ e(ne, { children: "SPONSORED" })
|
|
230
237
|
] })
|
|
231
238
|
]
|
|
232
239
|
}
|
|
233
240
|
)
|
|
234
241
|
] }),
|
|
235
|
-
/* @__PURE__ */ e(
|
|
242
|
+
/* @__PURE__ */ e(se, { className: "ClosePromoIcon", onClick: r, children: /* @__PURE__ */ e(ae, { name: "icon-cross" }) })
|
|
236
243
|
] }),
|
|
237
|
-
/* @__PURE__ */ c(
|
|
238
|
-
y && /* @__PURE__ */ e(G, { className:
|
|
244
|
+
/* @__PURE__ */ c(Jo, { children: [
|
|
245
|
+
y && /* @__PURE__ */ e(G, { className: Xo, src: (v = o.sponsor) == null ? void 0 : v.logo, alt: "promo" }),
|
|
239
246
|
/* @__PURE__ */ e(z, { children: (d = (m = o.banner) == null ? void 0 : m.video) != null && d.url ? /* @__PURE__ */ e(
|
|
240
247
|
X,
|
|
241
248
|
{
|
|
242
|
-
source: (S = (
|
|
243
|
-
poster: (
|
|
244
|
-
aspectRatio:
|
|
249
|
+
source: (S = (M = o.banner) == null ? void 0 : M.video) == null ? void 0 : S.url,
|
|
250
|
+
poster: (k = (T = o.banner) == null ? void 0 : T.video) == null ? void 0 : k.thumbnailUrl,
|
|
251
|
+
aspectRatio: b ? "1/1" : "16/9",
|
|
245
252
|
onPlay: () => {
|
|
246
253
|
$.emit("advertisement", {
|
|
247
254
|
action: "videoPlay",
|
|
@@ -252,53 +259,53 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
252
259
|
});
|
|
253
260
|
}
|
|
254
261
|
}
|
|
255
|
-
) : (B = o.banner) != null && B.imageUrl ? /* @__PURE__ */ e(
|
|
256
|
-
!
|
|
257
|
-
((L = o.banner) == null ? void 0 : L.title) && /* @__PURE__ */ e(
|
|
258
|
-
((
|
|
262
|
+
) : (B = o.banner) != null && B.imageUrl ? /* @__PURE__ */ e(Vo, { style: b ? { aspectRatio: "1/1" } : {}, src: (E = o.banner) == null ? void 0 : E.imageUrl, alt: "promo" }) : null }),
|
|
263
|
+
!b && /* @__PURE__ */ c(z, { children: [
|
|
264
|
+
((L = o.banner) == null ? void 0 : L.title) && /* @__PURE__ */ e(le, { className: f("AdvTitle", y && de), children: (O = o.banner) == null ? void 0 : O.title }),
|
|
265
|
+
((x = o.banner) == null ? void 0 : x.body) && /* @__PURE__ */ e(Yo, { className: "AdvDescription", children: (_ = o.banner) == null ? void 0 : _.body })
|
|
259
266
|
] })
|
|
260
267
|
] }),
|
|
261
|
-
/* @__PURE__ */ e(
|
|
262
|
-
|
|
268
|
+
/* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(
|
|
269
|
+
re,
|
|
263
270
|
{
|
|
264
|
-
href: (
|
|
271
|
+
href: (P = o.banner) == null ? void 0 : P.url,
|
|
265
272
|
style: {
|
|
266
|
-
backgroundColor: ((
|
|
267
|
-
color: ((
|
|
273
|
+
backgroundColor: ((R = (j = o.banner) == null ? void 0 : j.ctaButton) == null ? void 0 : R.color) || "#009dc4",
|
|
274
|
+
color: ((q = (D = o.banner) == null ? void 0 : D.ctaButton) == null ? void 0 : q.textColor) || "#fff"
|
|
268
275
|
},
|
|
269
276
|
"data-analytics": "button",
|
|
270
277
|
"data-promo-id": s,
|
|
271
278
|
"data-promo-type": o.type,
|
|
272
279
|
target: "_blank",
|
|
273
|
-
children: (U = (
|
|
280
|
+
children: (U = (F = o.banner) == null ? void 0 : F.ctaButton) == null ? void 0 : U.label
|
|
274
281
|
}
|
|
275
282
|
) })
|
|
276
283
|
] });
|
|
277
|
-
},
|
|
284
|
+
}, ce = /* @__PURE__ */ n("div")({
|
|
278
285
|
name: "SidebarContainer",
|
|
279
286
|
class: "s1abskp8",
|
|
280
287
|
propsAsIs: !1
|
|
281
|
-
}),
|
|
288
|
+
}), me = ({
|
|
282
289
|
children: o,
|
|
283
290
|
direction: s,
|
|
284
291
|
style: r,
|
|
285
292
|
className: i,
|
|
286
293
|
hiding: a
|
|
287
|
-
}) => /* @__PURE__ */ e(
|
|
294
|
+
}) => /* @__PURE__ */ e(C, {
|
|
288
295
|
direction: s,
|
|
289
296
|
style: r,
|
|
290
297
|
hiding: a,
|
|
291
298
|
className: i,
|
|
292
|
-
children: /* @__PURE__ */ e(
|
|
299
|
+
children: /* @__PURE__ */ e(ce, {
|
|
293
300
|
children: o
|
|
294
301
|
})
|
|
295
|
-
}),
|
|
302
|
+
}), pe = (o) => (o == null ? void 0 : o.type) === I.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === I.INGAME_IAB21_LBAR, ue = (o) => (o == null ? void 0 : o.type) === I.INGAME_IAB11 || (o == null ? void 0 : o.type) === I.INGAME_IAB21, ve = ({ advertisement: o, skipTypeCheck: s, layoutMode: r = "side-by-side", sidebar: i, isNotification: a, banner: l }) => {
|
|
296
303
|
const t = N(o.data);
|
|
297
304
|
return !t.data && t.loading ? null : t.error ? /* @__PURE__ */ c("div", { children: [
|
|
298
305
|
"error ",
|
|
299
306
|
/* @__PURE__ */ e("button", { onClick: o.close, children: "close" })
|
|
300
|
-
] }) : t.data ? a ? /* @__PURE__ */ e(
|
|
301
|
-
|
|
307
|
+
] }) : t.data ? a ? /* @__PURE__ */ e(wo, { notification: t.data.notification, promotionId: o.id }) : !i && !l && (s || ue(t.data.promotions)) ? /* @__PURE__ */ e(Go, { className: "PromoOverlayContainer", children: /* @__PURE__ */ e(H, { promotionId: o.id, promotion: t.data.promotions, onClose: o.close }) }) : i && (s || pe(t.data.promotions)) ? /* @__PURE__ */ e(me, { className: "PromoSidebarContainer", direction: i, hiding: o.hiding, children: /* @__PURE__ */ e(H, { promotionId: o.id, promotion: t.data.promotions, onClose: o.close }) }) : l ? /* @__PURE__ */ e(
|
|
308
|
+
fo,
|
|
302
309
|
{
|
|
303
310
|
promotionId: o.id,
|
|
304
311
|
hiding: o.hiding,
|
|
@@ -309,14 +316,14 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
309
316
|
"empty promo ",
|
|
310
317
|
/* @__PURE__ */ e("button", { onClick: o.close, children: "close" })
|
|
311
318
|
] });
|
|
312
|
-
},
|
|
319
|
+
}, Ie = /* @__PURE__ */ n("div")({
|
|
313
320
|
name: "AdvertisementUIWrap",
|
|
314
321
|
class: "aa6pjif",
|
|
315
322
|
propsAsIs: !1
|
|
316
|
-
}),
|
|
323
|
+
}), ge = (o) => {
|
|
317
324
|
const s = o.target;
|
|
318
325
|
if (s instanceof HTMLAnchorElement && s.target === "_blank") {
|
|
319
|
-
const r = s.getAttribute("data-promo-id") || "", i = s.getAttribute("data-promo-type") ||
|
|
326
|
+
const r = s.getAttribute("data-promo-id") || "", i = s.getAttribute("data-promo-type") || I.UNSET;
|
|
320
327
|
s.getAttribute("data-analytics") === "button" && $.emit("advertisement", {
|
|
321
328
|
action: "buttonSelect",
|
|
322
329
|
payload: {
|
|
@@ -331,7 +338,7 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
331
338
|
}
|
|
332
339
|
});
|
|
333
340
|
}
|
|
334
|
-
},
|
|
341
|
+
}, he = ({
|
|
335
342
|
gamification: o,
|
|
336
343
|
layoutMode: s,
|
|
337
344
|
skipTypeCheck: r,
|
|
@@ -350,14 +357,14 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
350
357
|
return Y(u, {
|
|
351
358
|
enabled: !!m,
|
|
352
359
|
event: "click",
|
|
353
|
-
listener:
|
|
354
|
-
}), m ? /* @__PURE__ */ e(
|
|
360
|
+
listener: ge
|
|
361
|
+
}), m ? /* @__PURE__ */ e(Ie, {
|
|
355
362
|
ref: u,
|
|
356
363
|
style: {
|
|
357
364
|
height: !a && !i ? "auto" : "100%"
|
|
358
365
|
},
|
|
359
366
|
className: t ? "mobile-view" : "",
|
|
360
|
-
children: /* @__PURE__ */ e(
|
|
367
|
+
children: /* @__PURE__ */ e(ve, {
|
|
361
368
|
skipTypeCheck: r,
|
|
362
369
|
sidebar: i,
|
|
363
370
|
banner: a,
|
|
@@ -366,7 +373,7 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
366
373
|
isNotification: l
|
|
367
374
|
})
|
|
368
375
|
}) : null;
|
|
369
|
-
},
|
|
376
|
+
}, Ae = ({
|
|
370
377
|
sdk: o,
|
|
371
378
|
sidebar: s,
|
|
372
379
|
banner: r,
|
|
@@ -393,8 +400,8 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
393
400
|
});
|
|
394
401
|
if (!m)
|
|
395
402
|
return null;
|
|
396
|
-
const d = o.getFeature(
|
|
397
|
-
return d ? /* @__PURE__ */ e(
|
|
403
|
+
const d = o.getFeature(ao.GAMES);
|
|
404
|
+
return d ? /* @__PURE__ */ e(he, {
|
|
398
405
|
gamification: d,
|
|
399
406
|
sidebar: s,
|
|
400
407
|
banner: r,
|
|
@@ -404,7 +411,7 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
404
411
|
notification: u,
|
|
405
412
|
skipTypeCheck: i
|
|
406
413
|
}) : null;
|
|
407
|
-
},
|
|
414
|
+
}, Ce = ({
|
|
408
415
|
event: o,
|
|
409
416
|
sidebar: s,
|
|
410
417
|
banner: r,
|
|
@@ -414,7 +421,7 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
414
421
|
}) => {
|
|
415
422
|
const t = oo();
|
|
416
423
|
return t ? /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(eo, { children: /* @__PURE__ */ e(
|
|
417
|
-
|
|
424
|
+
Ae,
|
|
418
425
|
{
|
|
419
426
|
sdk: t,
|
|
420
427
|
event: o,
|
|
@@ -428,6 +435,6 @@ const ao = /* @__PURE__ */ n("div")({
|
|
|
428
435
|
) }) }) : null;
|
|
429
436
|
};
|
|
430
437
|
export {
|
|
431
|
-
|
|
432
|
-
|
|
438
|
+
Ce as StreamLayerSDKAdvertisement,
|
|
439
|
+
Ae as StreamLayerSDKAdvertisementUI
|
|
433
440
|
};
|