@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.
@@ -1,42 +1,42 @@
1
- import { jsx as n, jsxs as m, Fragment as eo } from "react/jsx-runtime";
2
- import { useEffect as io, useRef as to } from "react";
3
- import { f as $, s, c as ao, g as lo, X as ro, h as k, a as Q, L as co, u as po, i as mo, b as uo, d as vo, S as Ao } from "./index2.js";
4
- import { N as h, a as Y, b as Z, C as oo, c as no, P as g, d as N, A as Io, e as ho, S as go } from "./useStreamLayerApp2.js";
5
- const yo = /* @__PURE__ */ s("div")({
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", M = ({
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: l = !0,
14
- hiding: r,
13
+ enabled: r = !0,
14
+ hiding: l,
15
15
  direction: a = "left",
16
16
  onAnimationEnd: d
17
- }) => /* @__PURE__ */ n(yo, {
17
+ }) => /* @__PURE__ */ s(yo, {
18
18
  style: e,
19
- className: $(i, bo, ko(a), l && !r && To(a), l && r && So(a)),
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__ */ s("a")({
22
+ }), Mo = /* @__PURE__ */ n("a")({
23
23
  name: "Link",
24
24
  class: "l1sgte8c",
25
25
  propsAsIs: !1
26
- }), Lo = /* @__PURE__ */ s("div")({
26
+ }), Lo = /* @__PURE__ */ n("div")({
27
27
  name: "BannerContainer",
28
28
  class: "b7yfc72",
29
29
  propsAsIs: !1
30
- }), Oo = () => Mo, Bo = /* @__PURE__ */ s(Oo())({
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: l = "bottom" }) => {
35
- var r, a;
36
- if (!((r = o.additionalBanner) != null && r.imageUrl))
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__ */ n(M, { direction: l, hiding: i, children: /* @__PURE__ */ n(Lo, { className: "BannerContainer", children: /* @__PURE__ */ n(
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__ */ s("div")({
51
+ }, _o = /* @__PURE__ */ n("div")({
52
52
  name: "NotificationContent",
53
53
  class: "n18wsqoo",
54
54
  propsAsIs: !1
55
- }), Po = /* @__PURE__ */ s("div")({
55
+ }), Po = /* @__PURE__ */ n("div")({
56
56
  name: "Body",
57
57
  class: "b1ia90c2",
58
58
  propsAsIs: !1
59
- }), xo = /* @__PURE__ */ s("div")({
59
+ }), xo = /* @__PURE__ */ n("div")({
60
60
  name: "Title",
61
61
  class: "tg2z08v",
62
62
  propsAsIs: !1
63
- }), Ro = /* @__PURE__ */ s("div")({
63
+ }), Ro = /* @__PURE__ */ n("div")({
64
64
  name: "Text",
65
65
  class: "t59zdk1",
66
66
  propsAsIs: !1
67
- }), L = /* @__PURE__ */ s("div")({
67
+ }), O = /* @__PURE__ */ n("div")({
68
68
  name: "MediaImgBottom",
69
69
  class: "m1ab9fq",
70
70
  propsAsIs: !1
71
- }), Do = () => L, qo = /* @__PURE__ */ s(Do())({
71
+ }), Do = () => O, qo = /* @__PURE__ */ n(Do())({
72
72
  name: "MediaImgMiddle",
73
73
  class: "m9fsr0y",
74
74
  propsAsIs: !0
75
- }), wo = /* @__PURE__ */ s("img")({
75
+ }), wo = /* @__PURE__ */ n("img")({
76
76
  name: "CtaIcon",
77
77
  class: "cvi9y5q",
78
78
  propsAsIs: !1
79
- }), jo = /* @__PURE__ */ s("button")({
79
+ }), jo = /* @__PURE__ */ n("button")({
80
80
  name: "Button",
81
81
  class: "bgl6boa",
82
82
  propsAsIs: !1
83
- }), Fo = /* @__PURE__ */ s("div")({
83
+ }), Fo = /* @__PURE__ */ n("div")({
84
84
  name: "Logo",
85
85
  class: "l5mq0z",
86
86
  propsAsIs: !1
87
- }), Uo = /* @__PURE__ */ s("div")({
87
+ }), Uo = /* @__PURE__ */ n("div")({
88
88
  name: "Footer",
89
89
  class: "f1mse0ft",
90
90
  propsAsIs: !1
91
- }), zo = /* @__PURE__ */ s("div")({
91
+ }), zo = /* @__PURE__ */ n("div")({
92
92
  name: "Vector",
93
93
  class: "v1hcloah",
94
94
  propsAsIs: !1
95
- }), Vo = /* @__PURE__ */ s("div")({
95
+ }), Vo = /* @__PURE__ */ n("div")({
96
96
  name: "NotificationContainer",
97
97
  class: "n3n65jf",
98
98
  propsAsIs: !1
99
99
  }), Go = {
100
- [h.BOTTOM]: L,
100
+ [h.BOTTOM]: O,
101
101
  [h.MIDDLE]: qo
102
102
  }, Wo = ({ src: o, imagePosition: e }) => {
103
- const i = Go[e] || L;
104
- return /* @__PURE__ */ n(i, { children: /* @__PURE__ */ n("img", { src: o, alt: "" }) });
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 !== Y.NOTIFICATION_ENABLED)
106
+ if (!o || !o.promotion || o.enabled !== Z.NOTIFICATION_ENABLED)
107
107
  return null;
108
- const { title: i, body: l, image: r, promotion: a } = o, { sponsorLogo: d, sponsorLogoMode: c, imagePosition: u, ctaButton: t } = a;
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__ */ n(Wo, { src: r, imagePosition: u }),
111
+ /* @__PURE__ */ s(Wo, { src: l, imagePosition: u }),
112
112
  /* @__PURE__ */ m(Po, { children: [
113
- i && /* @__PURE__ */ n(xo, { children: i }),
114
- l && /* @__PURE__ */ n(Ro, { children: l })
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 !== Z.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ m(eo, { children: [
119
- /* @__PURE__ */ n(Fo, { children: /* @__PURE__ */ n("img", { src: d, alt: i }) }),
120
- /* @__PURE__ */ n(zo, {})
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) === oo.CTA_ICON_TRANSPARENT && /* @__PURE__ */ n(wo, { src: t == null ? void 0 : t.ctaIcon, alt: "cta-icon" }),
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__ */ s("div")({
128
+ }, Ko = /* @__PURE__ */ n("div")({
129
129
  name: "NotificationContent",
130
130
  class: "n1ku6hz",
131
131
  propsAsIs: !1
132
- }), Xo = /* @__PURE__ */ s("div")({
132
+ }), Xo = /* @__PURE__ */ n("div")({
133
133
  name: "NotificationContainer",
134
134
  class: "nbxqmol",
135
135
  propsAsIs: !1
136
- }), Jo = /* @__PURE__ */ s("div")({
136
+ }), Jo = /* @__PURE__ */ n("div")({
137
137
  name: "Body",
138
138
  class: "b1gu3eml",
139
139
  propsAsIs: !1
140
- }), Qo = /* @__PURE__ */ s("div")({
140
+ }), Qo = /* @__PURE__ */ n("div")({
141
141
  name: "Title",
142
142
  class: "t1u17zva",
143
143
  propsAsIs: !1
144
- }), Yo = /* @__PURE__ */ s("div")({
144
+ }), Yo = /* @__PURE__ */ n("div")({
145
145
  name: "Text",
146
146
  class: "t10ko1g",
147
147
  propsAsIs: !1
148
- }), C = /* @__PURE__ */ s("div")({
148
+ }), T = /* @__PURE__ */ n("div")({
149
149
  name: "Media",
150
150
  class: "mntc42e",
151
151
  propsAsIs: !1
152
- }), Zo = () => C, H = /* @__PURE__ */ s(Zo())({
152
+ }), Zo = () => T, K = /* @__PURE__ */ n(Zo())({
153
153
  name: "MediaImgFit",
154
154
  class: "ml060eo",
155
155
  propsAsIs: !0
156
- }), on = () => C, so = /* @__PURE__ */ s(on())({
156
+ }), os = () => T, eo = /* @__PURE__ */ n(os())({
157
157
  name: "MediaImgCentered",
158
158
  class: "m1vqlvig",
159
159
  propsAsIs: !0
160
- }), nn = () => so, sn = /* @__PURE__ */ s(nn())({
160
+ }), ss = () => eo, ns = /* @__PURE__ */ n(ss())({
161
161
  name: "MediaImgBottom",
162
162
  class: "m1e7tvi5",
163
163
  propsAsIs: !0
164
- }), en = () => C, tn = /* @__PURE__ */ s(en())({
164
+ }), es = () => T, is = /* @__PURE__ */ n(es())({
165
165
  name: "MediaImgSolid",
166
166
  class: "mqvntt2",
167
167
  propsAsIs: !0
168
- }), an = () => C, ln = /* @__PURE__ */ s(an())({
168
+ }), ts = () => T, as = /* @__PURE__ */ n(ts())({
169
169
  name: "MediaImgMiddle",
170
170
  class: "m12jtj3u",
171
171
  propsAsIs: !0
172
- }), rn = /* @__PURE__ */ s("img")({
172
+ }), rs = /* @__PURE__ */ n("img")({
173
173
  name: "CtaIcon",
174
174
  class: "ckq1frv",
175
175
  propsAsIs: !1
176
- }), dn = /* @__PURE__ */ s("button")({
176
+ }), ls = /* @__PURE__ */ n("button")({
177
177
  name: "Button",
178
178
  class: "bis90pl",
179
179
  propsAsIs: !1
180
- }), cn = () => ao, pn = /* @__PURE__ */ s(cn())({
180
+ }), ds = () => ro, cs = /* @__PURE__ */ n(ds())({
181
181
  name: "StyledChevronRight",
182
182
  class: "s9mjmz3",
183
183
  propsAsIs: !0
184
- }), mn = /* @__PURE__ */ s("div")({
184
+ }), ps = /* @__PURE__ */ n("div")({
185
185
  name: "Logo",
186
186
  class: "l1cf50a7",
187
187
  propsAsIs: !1
188
- }), un = {
189
- [h.UNSET]: H,
190
- [h.FIT]: H,
191
- [h.CENTERED]: so,
192
- [h.BOTTOM]: sn,
193
- [h.SOLID]: tn,
194
- [h.MIDDLE]: ln
195
- }, vn = ({ src: o, imagePosition: e }) => {
196
- const i = un[e];
197
- return /* @__PURE__ */ n(i, { children: /* @__PURE__ */ n("img", { src: o, alt: "" }) });
198
- }, An = ({ notification: o, open: e, promotionId: i, hiding: l, direction: r = "left" }) => {
199
- if (!o || !o.promotion || o.enabled !== Y.NOTIFICATION_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__ */ n(Ho, { notification: o, open: e });
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__ */ n(M, { className: "SL_Rich_Notification", direction: r, hiding: l, children: /* @__PURE__ */ m(Xo, { onClick: e, children: [
205
- v !== Z.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ n(mn, { children: /* @__PURE__ */ n("img", { src: t, alt: a }) }),
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__ */ n(vn, { src: c, imagePosition: I }),
207
+ /* @__PURE__ */ s(us, { src: c, imagePosition: I }),
208
208
  /* @__PURE__ */ m(Jo, { children: [
209
- a && /* @__PURE__ */ n(Qo, { children: a }),
210
- d && /* @__PURE__ */ n(Yo, { children: d })
209
+ a && /* @__PURE__ */ s(Qo, { children: a }),
210
+ d && /* @__PURE__ */ s(Yo, { children: d })
211
211
  ] }),
212
- /* @__PURE__ */ m(dn, { 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) === oo.CTA_ICON_TRANSPARENT && /* @__PURE__ */ n(rn, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
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__ */ n(pn, { name: "chevronRight" })
216
+ /* @__PURE__ */ s(cs, { name: "chevronRight" })
217
217
  ] })
218
218
  ] }) });
219
- }, In = /* @__PURE__ */ s("div")({
219
+ }, As = /* @__PURE__ */ n("div")({
220
220
  name: "OverlayContainer",
221
221
  class: "okzhq2w",
222
222
  propsAsIs: !1
223
- }), hn = /* @__PURE__ */ s("div")({
223
+ }), Is = /* @__PURE__ */ n("div")({
224
224
  name: "PromoOverlay",
225
225
  class: "pmgz5i",
226
226
  propsAsIs: !1
227
- }), gn = /* @__PURE__ */ s("div")({
227
+ }), hs = /* @__PURE__ */ n("div")({
228
228
  name: "Header",
229
229
  class: "hyxi3jt",
230
230
  propsAsIs: !1
231
- }), yn = /* @__PURE__ */ s("div")({
231
+ }), gs = /* @__PURE__ */ n("div")({
232
232
  name: "HeaderContent",
233
233
  class: "h149e3gp",
234
234
  propsAsIs: !1
235
- }), bn = "h10toh7", K = /* @__PURE__ */ s("img")({
235
+ }), ys = "h10toh7", X = /* @__PURE__ */ n("img")({
236
236
  name: "SponsorLogo",
237
237
  class: "s1jyea6t",
238
238
  propsAsIs: !1
239
- }), fn = /* @__PURE__ */ s("div")({
239
+ }), bs = /* @__PURE__ */ n("div")({
240
240
  name: "SponsorName",
241
241
  class: "szpfa3h",
242
242
  propsAsIs: !1
243
- }), Nn = /* @__PURE__ */ s("div")({
243
+ }), fs = /* @__PURE__ */ n("div")({
244
244
  name: "Media",
245
245
  class: "m1crmu01",
246
246
  propsAsIs: !1
247
- }), $n = /* @__PURE__ */ s("img")({
247
+ }), Ns = /* @__PURE__ */ n("img")({
248
248
  name: "PromoImg",
249
249
  class: "p1l37r8s",
250
250
  propsAsIs: !1
251
- }), Cn = "s1nmch9k", X = /* @__PURE__ */ s("div")({
251
+ }), $s = "s1nmch9k", J = /* @__PURE__ */ n("div")({
252
252
  name: "Content",
253
253
  class: "c1er0ljd",
254
254
  propsAsIs: !1
255
- }), Tn = /* @__PURE__ */ s("div")({
255
+ }), Cs = /* @__PURE__ */ n("div")({
256
256
  name: "Description",
257
257
  class: "dydopmr",
258
258
  propsAsIs: !1
259
- }), Sn = /* @__PURE__ */ s("div")({
259
+ }), Ts = /* @__PURE__ */ n("div")({
260
260
  name: "Sponsor",
261
261
  class: "s1w6nt04",
262
262
  propsAsIs: !1
263
- }), kn = /* @__PURE__ */ s("div")({
263
+ }), Ss = /* @__PURE__ */ n("div")({
264
264
  name: "SponsorText",
265
265
  class: "s1evcmtq",
266
266
  propsAsIs: !1
267
- }), Mn = /* @__PURE__ */ s("div")({
267
+ }), ks = /* @__PURE__ */ n("div")({
268
268
  name: "ADLogo",
269
269
  class: "awodx0x",
270
270
  propsAsIs: !1
271
- }), Ln = /* @__PURE__ */ s("span")({
271
+ }), Ms = /* @__PURE__ */ n("span")({
272
272
  name: "SponsoredText",
273
273
  class: "s1q3n6oi",
274
274
  propsAsIs: !1
275
- }), On = /* @__PURE__ */ s("div")({
275
+ }), Ls = /* @__PURE__ */ n("div")({
276
276
  name: "ActionBtnWrap",
277
277
  class: "a8d4xfk",
278
278
  propsAsIs: !1
279
- }), Bn = /* @__PURE__ */ s("a")({
279
+ }), Os = /* @__PURE__ */ n("a")({
280
280
  name: "ActionButton",
281
281
  class: "at6oobh",
282
282
  propsAsIs: !1
283
- }), En = /* @__PURE__ */ s("div")({
283
+ }), Bs = /* @__PURE__ */ n("div")({
284
284
  name: "Title",
285
285
  class: "t1gyg7tt",
286
286
  propsAsIs: !1
287
- }), _n = "h17rwbtk", J = ({ promotion: o, skipAutoClose: e, promotionId: i, onClose: l, markAsViewed: r }) => {
288
- var a, d, c, u, t, v, I, p, A, b, f, O, B, E, _, P, x, R, D, q, w, j, F, U, z, V, G, W;
289
- const T = o.type === g.INGAME_IAB11_LBAR || o.type === g.INGAME_IAB11, S = ((a = o.sponsor) == null ? void 0 : a.logo) && o.logoMode === N.CENTER;
290
- io(() => {
291
- i && o.type && r && r();
292
- }, [i, o.type, r]);
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(hn, { className: "PromoOverlay", children: [
295
- /* @__PURE__ */ m(gn, { children: [
296
- /* @__PURE__ */ m(yn, { className: $(!S && bn), children: [
297
- ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === N.LEFT && /* @__PURE__ */ n(K, { src: (u = o.sponsor) == null ? void 0 : u.logo, alt: "promo" }),
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
- Sn,
299
+ Ts,
300
300
  {
301
301
  style: {
302
- paddingLeft: (t = o.sponsor) != null && t.logo && o.logoMode === N.LEFT ? "0px" : "8px"
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 === N.LEFT && /* @__PURE__ */ n(fn, { children: (I = o.sponsor) == null ? void 0 : I.name }),
306
- /* @__PURE__ */ m(kn, { className: "SponsorText", children: [
307
- /* @__PURE__ */ n(Mn, { children: "AD" }),
308
- /* @__PURE__ */ n(Ln, { children: "SPONSORED" })
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__ */ n(
314
+ /* @__PURE__ */ s(
315
315
  lo,
316
316
  {
317
317
  className: "ClosePromoIcon",
318
- close: l,
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(Nn, { children: [
325
- S && /* @__PURE__ */ n(K, { className: Cn, src: (b = o.sponsor) == null ? void 0 : b.logo, alt: "promo" }),
326
- /* @__PURE__ */ n(X, { children: (O = (f = o.banner) == null ? void 0 : f.video) != null && O.url ? /* @__PURE__ */ n(
327
- ro,
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: (E = (B = o.banner) == null ? void 0 : B.video) == null ? void 0 : E.url,
330
- poster: (P = (_ = o.banner) == null ? void 0 : _.video) == null ? void 0 : P.thumbnailUrl,
331
- aspectRatio: T ? "1/1" : "16/9",
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
- k.emit("advertisement", {
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
- ) : (x = o.banner) != null && x.imageUrl ? /* @__PURE__ */ n($n, { style: T ? { aspectRatio: "1/1" } : {}, src: (R = o.banner) == null ? void 0 : R.imageUrl, alt: "promo" }) : null }),
344
- !T && /* @__PURE__ */ m(X, { children: [
345
- ((D = o.banner) == null ? void 0 : D.title) && /* @__PURE__ */ n(En, { className: $("AdvTitle", S && _n), children: (q = o.banner) == null ? void 0 : q.title }),
346
- ((w = o.banner) == null ? void 0 : w.body) && /* @__PURE__ */ n(Tn, { className: "AdvDescription", children: (j = o.banner) == null ? void 0 : j.body })
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__ */ n(On, { children: /* @__PURE__ */ n(
350
- Bn,
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: ((U = (F = o.banner) == null ? void 0 : F.ctaButton) == null ? void 0 : U.color) || "#009dc4",
355
- color: ((V = (z = o.banner) == null ? void 0 : z.ctaButton) == null ? void 0 : V.textColor) || "#fff"
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: (W = (G = o.banner) == null ? void 0 : G.ctaButton) == null ? void 0 : W.label
361
+ children: (H = (W = o.banner) == null ? void 0 : W.ctaButton) == null ? void 0 : H.label
362
362
  }
363
363
  ) })
364
364
  ] });
365
- }, Pn = /* @__PURE__ */ s("div")({
365
+ }, _s = /* @__PURE__ */ n("div")({
366
366
  name: "SidebarContainer",
367
367
  class: "s1abskp8",
368
368
  propsAsIs: !1
369
- }), xn = ({
369
+ }), Ps = ({
370
370
  children: o,
371
371
  direction: e,
372
372
  style: i,
373
- className: l,
374
- hiding: r
375
- }) => /* @__PURE__ */ n(M, {
373
+ className: r,
374
+ hiding: l
375
+ }) => /* @__PURE__ */ s(L, {
376
376
  direction: e,
377
377
  style: i,
378
- hiding: r,
379
- className: l,
380
- children: /* @__PURE__ */ n(Pn, {
378
+ hiding: l,
379
+ className: r,
380
+ children: /* @__PURE__ */ s(_s, {
381
381
  children: o
382
382
  })
383
- }), Rn = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === g.INGAME_IAB21_LBAR, Dn = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11 || (o == null ? void 0 : o.type) === g.INGAME_IAB21, qn = ({
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: l,
388
- layoutMode: r = "side-by-side",
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__ */ n(An, { open: t, notification: o.notification, promotionId: o.question.id }) : !a && !c && (i || Dn(o.promotion)) ? /* @__PURE__ */ n(In, { className: "PromoOverlayContainer", children: /* @__PURE__ */ n(
395
- J,
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: l
401
+ skipAutoClose: r
402
402
  }
403
- ) }) : a && (i || Rn(o.promotion)) ? /* @__PURE__ */ n(xn, { className: "PromoSidebarContainer", direction: a, hiding: !1, children: /* @__PURE__ */ n(
404
- J,
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: l
410
+ skipAutoClose: r
411
411
  }
412
- ) }) : c ? /* @__PURE__ */ n(
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, wn = /* @__PURE__ */ s("div")({
420
+ ) : null : null, qs = /* @__PURE__ */ n("div")({
421
421
  name: "AdvertisementUIWrap",
422
422
  class: "aa6pjif",
423
423
  propsAsIs: !1
424
- }), jn = (o) => {
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") || "", l = e.getAttribute("data-promo-type") || g.UNSET;
428
- e.getAttribute("data-analytics") === "button" && k.emit("advertisement", {
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: l
432
+ type: r
433
433
  }
434
- }), e.getAttribute("data-analytics") === "banner" && k.emit("advertisement", {
434
+ }), e.getAttribute("data-analytics") === "banner" && M.emit("advertisement", {
435
435
  action: "bannerSelect",
436
436
  payload: {
437
437
  id: i,
438
- type: l
438
+ type: r
439
439
  }
440
440
  });
441
441
  }
442
- }, Fn = ({
442
+ }, js = ({
443
443
  gamification: o,
444
444
  layoutMode: e,
445
445
  skipAutoClose: i,
446
- skipTypeCheck: l,
447
- sidebar: r,
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 = to(null), A = Q(o.advertisement.$store);
455
- co(p, {
454
+ const p = ao(null), A = Y(o.advertisement.$store);
455
+ po(p, {
456
456
  enabled: !!A.data,
457
457
  event: "click",
458
- listener: jn
458
+ listener: ws
459
459
  });
460
- const b = !a && !r;
460
+ const f = !a && !l;
461
461
  if (A.data === void 0 || !u && A.isViewed)
462
462
  return null;
463
- const f = ((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__ */ n(wn, {
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: b ? "auto" : "100%"
467
+ height: f ? "auto" : "100%"
468
468
  },
469
- className: $("SL-AdvertisementUIWrap", c && "mobile-view", f && "SL-AdvertisementUIWrap--lower-third"),
470
- children: /* @__PURE__ */ n(qn, {
471
- skipTypeCheck: l,
472
- sidebar: r,
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
- }, Un = ({
483
+ }, Fs = ({
484
484
  sdk: o,
485
485
  sidebar: e,
486
486
  banner: i,
487
- skipAutoClose: l,
488
- skipTypeCheck: r,
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 = Q(o.featuresList.getStore());
494
+ const t = Y(o.featuresList.getStore());
495
495
  if (e && i)
496
- return /* @__PURE__ */ n("div", {
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__ */ n(Fn, {
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: r,
514
- skipAutoClose: l
513
+ skipTypeCheck: l,
514
+ skipAutoClose: r
515
515
  }) : null;
516
- }, Hn = ({
516
+ }, Ws = ({
517
517
  event: o,
518
518
  sidebar: e,
519
519
  banner: i,
520
- isMobileScreen: l,
521
- skipAutoClose: r,
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 = po(), v = mo(), I = uo();
528
- return !t || e && !v.promotionSidebar || i && !v.promotionBanner || c && !v.promotionNotification || !i && !e && !c && !v.promotionOverlay ? null : /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: [
529
- /* @__PURE__ */ n(vo, { customTheme: d ?? I, children: /* @__PURE__ */ n(
530
- Un,
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: l,
535
+ isMobileScreen: r,
536
536
  persistent: a,
537
537
  notification: c,
538
538
  skipTypeCheck: u,
539
- skipAutoClose: r,
539
+ skipAutoClose: l,
540
540
  layoutMode: "side-by-side"
541
541
  }
542
542
  ) }),
543
- o !== void 0 && /* @__PURE__ */ n(Ao, { event: o })
544
- ] });
543
+ o !== void 0 && /* @__PURE__ */ s(b, { event: o })
544
+ ] }) : null;
545
545
  };
546
546
  export {
547
- Hn as StreamLayerSDKAdvertisement,
548
- Un as StreamLayerSDKAdvertisementUI
547
+ Ws as StreamLayerSDKAdvertisement,
548
+ Fs as StreamLayerSDKAdvertisementUI
549
549
  };