@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.
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as A, Fragment as ro } from "react/jsx-runtime";
2
- import { useRef as j, useState as L, useCallback as Eo, useEffect as B } from "react";
3
- import { e as S, s as n, h as So, g as lo, i as x, Y as ko, a as co, L as Lo, u as Mo, j as Oo, b as Po, S as T, d as _o } from "./index2.js";
4
- import { N, a as po, b as mo, C as uo, c as Ao, P as M, d as E, A as Bo, e as xo, S as Ro } from "./useStreamLayerApp2.js";
5
- const Do = /* @__PURE__ */ n("div")({
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
- }), qo = "a1rlj479", wo = "s35f1di", Vo = "sj4471g", jo = "b12050d8", Uo = "b1d5ybek", Fo = (o) => o === "left" || o === "right" ? wo : jo, zo = (o) => o === "left" || o === "right" ? Vo : Uo, Go = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", U = ({
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(Do, {
17
+ }) => /* @__PURE__ */ e(qo, {
18
18
  style: s,
19
- className: S(i, qo, Go(r), t && !l && Fo(r), t && l && zo(r)),
19
+ className: k(i, wo, Wo(r), t && !l && zo(r), t && l && Go(r)),
20
20
  onAnimationEnd: c,
21
21
  children: o
22
- }), Wo = /* @__PURE__ */ n("a")({
22
+ }), Ho = /* @__PURE__ */ n("a")({
23
23
  name: "Link",
24
24
  class: "l1sgte8c",
25
25
  propsAsIs: !1
26
- }), Ho = /* @__PURE__ */ n("div")({
26
+ }), Ko = /* @__PURE__ */ n("div")({
27
27
  name: "BannerContainer",
28
28
  class: "b7yfc72",
29
29
  propsAsIs: !1
30
- }), Ko = () => Wo, Yo = /* @__PURE__ */ n(Ko())({
30
+ }), Yo = () => Ho, Jo = /* @__PURE__ */ n(Yo())({
31
31
  name: "BannerLink",
32
32
  class: "bejjq94",
33
33
  propsAsIs: !0
34
- }), Jo = ({ promotion: o, promotionId: s, hiding: i, direction: t = "bottom" }) => {
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(U, { direction: t, hiding: i, children: /* @__PURE__ */ e(Ho, { className: "BannerContainer", children: /* @__PURE__ */ e(
40
- Yo,
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
- }, Qo = /* @__PURE__ */ n("div")({
51
+ }, Zo = /* @__PURE__ */ n("div")({
52
52
  name: "NotificationContent",
53
53
  class: "n18wsqoo",
54
54
  propsAsIs: !1
55
- }), Xo = /* @__PURE__ */ n("div")({
55
+ }), Qo = /* @__PURE__ */ n("div")({
56
56
  name: "Body",
57
57
  class: "b1ia90c2",
58
58
  propsAsIs: !1
59
- }), Zo = /* @__PURE__ */ n("div")({
59
+ }), oe = /* @__PURE__ */ n("div")({
60
60
  name: "Title",
61
61
  class: "tg2z08v",
62
62
  propsAsIs: !1
63
- }), oe = /* @__PURE__ */ n("div")({
63
+ }), ee = /* @__PURE__ */ n("div")({
64
64
  name: "Text",
65
65
  class: "t59zdk1",
66
66
  propsAsIs: !1
67
- }), F = /* @__PURE__ */ n("div")({
67
+ }), G = /* @__PURE__ */ n("div")({
68
68
  name: "MediaImgBottom",
69
69
  class: "m1ab9fq",
70
70
  propsAsIs: !1
71
- }), ee = () => F, ne = /* @__PURE__ */ n(ee())({
71
+ }), ne = () => G, se = /* @__PURE__ */ n(ne())({
72
72
  name: "MediaImgMiddle",
73
73
  class: "m9fsr0y",
74
74
  propsAsIs: !0
75
- }), se = /* @__PURE__ */ n("img")({
75
+ }), te = /* @__PURE__ */ n("img")({
76
76
  name: "CtaIcon",
77
77
  class: "cvi9y5q",
78
78
  propsAsIs: !1
79
- }), te = /* @__PURE__ */ n("button")({
79
+ }), ie = /* @__PURE__ */ n("button")({
80
80
  name: "Button",
81
81
  class: "bgl6boa",
82
82
  propsAsIs: !1
83
- }), ie = /* @__PURE__ */ n("div")({
83
+ }), ae = /* @__PURE__ */ n("div")({
84
84
  name: "Logo",
85
85
  class: "l5mq0z",
86
86
  propsAsIs: !1
87
- }), ae = /* @__PURE__ */ n("div")({
87
+ }), re = /* @__PURE__ */ n("div")({
88
88
  name: "Footer",
89
89
  class: "f1mse0ft",
90
90
  propsAsIs: !1
91
- }), re = /* @__PURE__ */ n("div")({
91
+ }), le = /* @__PURE__ */ n("div")({
92
92
  name: "Vector",
93
93
  class: "v1hcloah",
94
94
  propsAsIs: !1
95
- }), le = /* @__PURE__ */ n("div")({
95
+ }), de = /* @__PURE__ */ n("div")({
96
96
  name: "NotificationContainer",
97
97
  class: "n3n65jf",
98
98
  propsAsIs: !1
99
- }), de = {
100
- [N.BOTTOM]: F,
101
- [N.MIDDLE]: ne
102
- }, ce = ({ src: o, imagePosition: s }) => {
103
- const i = de[s] || F;
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
- }, pe = ({ notification: o, open: s }) => {
106
- if (!o || !o.promotion || o.enabled !== po.NOTIFICATION_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: p, imagePosition: v, ctaButton: a } = r;
109
- return /* @__PURE__ */ A(le, { className: "SL_Lower_Third_Notification", onClick: s, children: [
110
- /* @__PURE__ */ A(Qo, { children: [
111
- /* @__PURE__ */ e(ce, { src: l, imagePosition: v }),
112
- /* @__PURE__ */ A(Xo, { children: [
113
- i && /* @__PURE__ */ e(Zo, { children: i }),
114
- t && /* @__PURE__ */ e(oe, { children: t })
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__ */ A(ae, { children: [
118
- p !== mo.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ A(ro, { children: [
119
- /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ e("img", { src: c, alt: i }) }),
120
- /* @__PURE__ */ e(re, {})
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__ */ A(te, { 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) === uo.CTA_ICON_TRANSPARENT && /* @__PURE__ */ e(se, { src: a == null ? void 0 : a.ctaIcon, alt: "cta-icon" }),
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
- }, me = /* @__PURE__ */ n("div")({
128
+ }, ue = /* @__PURE__ */ n("div")({
129
129
  name: "NotificationContent",
130
130
  class: "n1ku6hz",
131
131
  propsAsIs: !1
132
- }), ue = /* @__PURE__ */ n("div")({
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
- }), ve = /* @__PURE__ */ n("div")({
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
- }), R = /* @__PURE__ */ n("div")({
148
+ }), q = /* @__PURE__ */ n("div")({
149
149
  name: "Media",
150
150
  class: "mntc42e",
151
151
  propsAsIs: !1
152
- }), Ie = () => R, no = /* @__PURE__ */ n(Ie())({
152
+ }), Ie = () => q, to = /* @__PURE__ */ n(Ie())({
153
153
  name: "MediaImgFit",
154
154
  class: "ml060eo",
155
155
  propsAsIs: !0
156
- }), ge = () => R, vo = /* @__PURE__ */ n(ge())({
156
+ }), ye = () => q, ho = /* @__PURE__ */ n(ye())({
157
157
  name: "MediaImgCentered",
158
158
  class: "m1vqlvig",
159
159
  propsAsIs: !0
160
- }), ye = () => vo, be = /* @__PURE__ */ n(ye())({
160
+ }), be = () => ho, fe = /* @__PURE__ */ n(be())({
161
161
  name: "MediaImgBottom",
162
162
  class: "m1e7tvi5",
163
163
  propsAsIs: !0
164
- }), fe = () => R, Ne = /* @__PURE__ */ n(fe())({
164
+ }), Ne = () => q, $e = /* @__PURE__ */ n(Ne())({
165
165
  name: "MediaImgSolid",
166
166
  class: "mqvntt2",
167
167
  propsAsIs: !0
168
- }), $e = () => R, Ce = /* @__PURE__ */ n($e())({
168
+ }), Ce = () => q, Te = /* @__PURE__ */ n(Ce())({
169
169
  name: "MediaImgMiddle",
170
170
  class: "m12jtj3u",
171
171
  propsAsIs: !0
172
- }), Te = /* @__PURE__ */ n("img")({
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
- }), Se = () => So, ke = /* @__PURE__ */ n(Se())({
180
+ }), ke = () => ko, Le = /* @__PURE__ */ n(ke())({
181
181
  name: "StyledChevronRight",
182
182
  class: "s9mjmz3",
183
183
  propsAsIs: !0
184
- }), Le = /* @__PURE__ */ n("div")({
184
+ }), Me = /* @__PURE__ */ n("div")({
185
185
  name: "Logo",
186
186
  class: "l1cf50a7",
187
187
  propsAsIs: !1
188
- }), Me = {
189
- [N.UNSET]: no,
190
- [N.FIT]: no,
191
- [N.CENTERED]: vo,
192
- [N.BOTTOM]: be,
193
- [N.SOLID]: Ne,
194
- [N.MIDDLE]: Ce
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 = Me[s];
196
+ const i = Pe[s];
197
197
  return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("img", { src: o, alt: "" }) });
198
- }, Pe = ({ notification: o, open: s, promotionId: i, hiding: t, direction: l = "left" }) => {
199
- if (!o || !o.promotion || o.enabled !== po.NOTIFICATION_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 === Ao.LOWER_THIRD)
202
- return /* @__PURE__ */ e(pe, { notification: o, open: s });
203
- const { title: r, body: c, image: p, promotion: v } = o, { sponsorLogo: a, sponsorLogoMode: h, imagePosition: u, ctaButton: m } = v;
204
- return /* @__PURE__ */ e(U, { className: "SL_Rich_Notification", direction: l, hiding: t, children: /* @__PURE__ */ A(ue, { onClick: s, children: [
205
- h !== mo.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e("img", { src: a, alt: r }) }),
206
- /* @__PURE__ */ A(me, { children: [
207
- /* @__PURE__ */ e(Oe, { src: p, imagePosition: u }),
208
- /* @__PURE__ */ A(Ae, { children: [
209
- r && /* @__PURE__ */ e(ve, { children: r }),
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__ */ A(Ee, { name: "promo-button", style: { color: m == null ? void 0 : m.textColor, backgroundColor: m == null ? void 0 : m.color }, children: [
213
- (m == null ? void 0 : m.ctaIcon) && (m == null ? void 0 : m.ctaIconMode) === uo.CTA_ICON_TRANSPARENT && /* @__PURE__ */ e(Te, { src: m == null ? void 0 : m.ctaIcon, alt: "cta-icon" }),
214
- (m == null ? void 0 : m.label) || "Open"
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(ke, { name: "chevronRight" })
216
+ /* @__PURE__ */ e(Le, { name: "chevronRight" })
217
217
  ] })
218
218
  ] }) });
219
- }, _e = /* @__PURE__ */ n("div")({
219
+ }, Be = /* @__PURE__ */ n("div")({
220
220
  name: "OverlayContainer",
221
221
  class: "okzhq2w",
222
222
  propsAsIs: !1
223
- }), ho = /* @__PURE__ */ n("div")({
223
+ }), Io = /* @__PURE__ */ n("div")({
224
224
  name: "PromoOverlay",
225
225
  class: "pmgz5i",
226
226
  propsAsIs: !1
227
- }), Io = /* @__PURE__ */ n("div")({
227
+ }), yo = /* @__PURE__ */ n("div")({
228
228
  name: "Header",
229
229
  class: "hyxi3jt",
230
230
  propsAsIs: !1
231
- }), go = /* @__PURE__ */ n("div")({
231
+ }), bo = /* @__PURE__ */ n("div")({
232
232
  name: "HeaderContent",
233
233
  class: "h149e3gp",
234
234
  propsAsIs: !1
235
- }), yo = "h10toh7", so = /* @__PURE__ */ n("img")({
235
+ }), fo = "h10toh7", io = /* @__PURE__ */ n("img")({
236
236
  name: "SponsorLogo",
237
237
  class: "s1jyea6t",
238
238
  propsAsIs: !1
239
- }), Be = /* @__PURE__ */ n("div")({
239
+ }), xe = /* @__PURE__ */ n("div")({
240
240
  name: "SponsorName",
241
241
  class: "szpfa3h",
242
242
  propsAsIs: !1
243
- }), bo = /* @__PURE__ */ n("div")({
243
+ }), No = /* @__PURE__ */ n("div")({
244
244
  name: "Media",
245
245
  class: "m1crmu01",
246
246
  propsAsIs: !1
247
- }), xe = /* @__PURE__ */ n("img")({
247
+ }), Re = /* @__PURE__ */ n("img")({
248
248
  name: "PromoImg",
249
249
  class: "p1l37r8s",
250
250
  propsAsIs: !1
251
- }), Re = "s1nmch9k", to = /* @__PURE__ */ n("div")({
251
+ }), De = "s1nmch9k", ao = /* @__PURE__ */ n("div")({
252
252
  name: "Content",
253
253
  class: "c1er0ljd",
254
254
  propsAsIs: !1
255
- }), De = /* @__PURE__ */ n("div")({
255
+ }), qe = /* @__PURE__ */ n("div")({
256
256
  name: "Description",
257
257
  class: "dydopmr",
258
258
  propsAsIs: !1
259
- }), qe = /* @__PURE__ */ n("div")({
259
+ }), we = /* @__PURE__ */ n("div")({
260
260
  name: "Sponsor",
261
261
  class: "s1w6nt04",
262
262
  propsAsIs: !1
263
- }), we = /* @__PURE__ */ n("div")({
263
+ }), Ve = /* @__PURE__ */ n("div")({
264
264
  name: "SponsorText",
265
265
  class: "s1evcmtq",
266
266
  propsAsIs: !1
267
- }), fo = /* @__PURE__ */ n("div")({
267
+ }), $o = /* @__PURE__ */ n("div")({
268
268
  name: "ADLogo",
269
269
  class: "awodx0x",
270
270
  propsAsIs: !1
271
- }), Ve = /* @__PURE__ */ n("span")({
271
+ }), je = /* @__PURE__ */ n("span")({
272
272
  name: "SponsoredText",
273
273
  class: "s1q3n6oi",
274
274
  propsAsIs: !1
275
- }), je = /* @__PURE__ */ n("div")({
275
+ }), Ue = /* @__PURE__ */ n("div")({
276
276
  name: "ActionBtnWrap",
277
277
  class: "a8d4xfk",
278
278
  propsAsIs: !1
279
- }), Ue = /* @__PURE__ */ n("a")({
279
+ }), Fe = /* @__PURE__ */ n("a")({
280
280
  name: "ActionButton",
281
281
  class: "at6oobh",
282
282
  propsAsIs: !1
283
- }), Fe = /* @__PURE__ */ n("div")({
283
+ }), ze = /* @__PURE__ */ n("div")({
284
284
  name: "Title",
285
285
  class: "t1gyg7tt",
286
286
  propsAsIs: !1
287
- }), ze = "h17rwbtk", Ge = /* @__PURE__ */ n("div")({
287
+ }), Ge = "h17rwbtk", We = /* @__PURE__ */ n("div")({
288
288
  name: "Container",
289
289
  class: "c10m2bce",
290
290
  propsAsIs: !1
291
- }), io = /* @__PURE__ */ n("div")({
291
+ }), ro = /* @__PURE__ */ n("div")({
292
292
  name: "Item",
293
293
  class: "ig23yq5",
294
294
  propsAsIs: !1
295
- }), We = /* @__PURE__ */ n("div")({
295
+ }), He = /* @__PURE__ */ n("div")({
296
296
  name: "Dot",
297
297
  class: "d1f6aqua",
298
298
  propsAsIs: !1
299
- }), He = ({
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__ */ A(Ge, {
306
- children: [s > 1 && /* @__PURE__ */ A(ro, {
307
- children: [/* @__PURE__ */ A(io, {
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(We, {})]
310
- }), /* @__PURE__ */ A(io, {
309
+ }), /* @__PURE__ */ e(He, {})]
310
+ }), /* @__PURE__ */ v(ro, {
311
311
  children: [t, ":", l < 10 ? `0${l}` : l]
312
312
  })]
313
313
  });
314
- }, Ke = (o, s, { onPlay: i, onStop: t, onProgress: l }) => {
314
+ }, Ye = (o, s, { onPlay: i, onStop: t, onProgress: l }) => {
315
315
  const r = google.ima;
316
- let c = new r.AdDisplayContainer(o), p = new r.AdsLoader(c), v = new r.AdsRequest(), a;
317
- p.addEventListener(
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, (m) => l(m.getAdData())), a.init(o.clientWidth, o.clientHeight, r.ViewMode.NORMAL), a.start();
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
- ), p.addEventListener(
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
- ), v.linearAdSlotWidth = o.clientWidth, v.linearAdSlotHeight = o.clientHeight, v.adTagUrl = s, p.requestAds(v);
330
- const h = () => {
331
- a == null || a.destroy(), p == null || p.destroy(), c == null || c.destroy(), c = void 0, p = void 0, v = void 0, a = void 0;
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 h;
339
+ return g;
340
340
  };
341
- }, Ye = /* @__PURE__ */ n("div")({
341
+ }, Je = /* @__PURE__ */ n("div")({
342
342
  name: "Container",
343
343
  class: "c4q6dw1",
344
344
  propsAsIs: !1
345
- }), Je = /* @__PURE__ */ n("div")({
345
+ }), Xe = /* @__PURE__ */ n("div")({
346
346
  name: "ControlsContainer",
347
347
  class: "c1la67r",
348
348
  propsAsIs: !1
349
- }), Qe = "m3guev", Xe = "m7099mt", Ze = "mmm6o5s", on = ({
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 p = j(null), [v, a] = L(!1), [h, u] = L(0), [m, b] = L(0), [$, I] = L(0), g = j(), y = Eo(() => {
359
- u(0), b(0), I(0), a(!1), s == null || s({
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
- B(() => {
364
- if (l != null && l.url && p.current) {
365
- y();
366
- const f = Ke(p.current, l.url, {
363
+ P(() => {
364
+ if (l != null && l.url && m.current) {
365
+ b();
366
+ const f = Ye(m.current, l.url, {
367
367
  onPlay: () => {
368
- x.emit("advertisement", {
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(), y();
379
+ t == null || t(), b();
380
380
  },
381
381
  onProgress: (C) => {
382
- u(Math.round(C.duration - C.currentTime)), b(C.totalAds), I(C.adPosition);
382
+ u(Math.round(C.duration - C.currentTime)), I(C.totalAds), h(C.adPosition);
383
383
  }
384
384
  })();
385
- return g.current = f, () => {
386
- g.current = void 0, f();
385
+ return y.current = f, () => {
386
+ y.current = void 0, f();
387
387
  };
388
388
  }
389
- }, [l == null ? void 0 : l.url, s, y, i, o.type, t]);
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__ */ A(ho, {
391
+ return /* @__PURE__ */ v(Io, {
392
392
  className: "PromoOverlay",
393
- children: [/* @__PURE__ */ A(Io, {
394
- children: [/* @__PURE__ */ e(go, {
395
- className: S(!O && yo),
396
- children: /* @__PURE__ */ e(fo, {
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__ */ A(Je, {
403
- children: [/* @__PURE__ */ e(He, {
404
- time: h,
405
- adCount: m,
402
+ }), /* @__PURE__ */ v(Xe, {
403
+ children: [/* @__PURE__ */ e(Ke, {
404
+ time: g,
405
+ adCount: p,
406
406
  adPosition: $
407
- }), r && /* @__PURE__ */ e(lo, {
407
+ }), r && /* @__PURE__ */ e(po, {
408
408
  className: "ClosePromoIcon",
409
409
  close: () => {
410
410
  var f;
411
- (f = g.current) == null || f.call(g), t == null || t(), y();
411
+ (f = y.current) == null || f.call(y), t == null || t(), b();
412
412
  }
413
413
  })]
414
414
  })]
415
- }), /* @__PURE__ */ e(bo, {
416
- className: S(Qe, v && Xe, !v && Ze),
417
- children: /* @__PURE__ */ e(Ye, {
418
- ref: p
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
- }, ao = (o) => {
423
- var s, i, t, l, r, c, p, v, a, h, u, m, b, $, I, g, y, O, f, C, z, G, W, H, K, Y, J, Q, X, Z;
424
- const { promotion: d, controlVideo: P, skipAutoClose: No, promotionId: _, onClose: $o, markAsViewed: D, externalAd: oo } = o, q = d.type === E.INGAME_IAB11_LBAR || d.type === E.INGAME_IAB11, w = ((s = d.sponsor) == null ? void 0 : s.logo) && d.logoMode === M.CENTER, Co = !!((t = (i = d.banner) == null ? void 0 : i.video) != null && t.url), V = d.autoPlayVideo === Bo.ENABLED, [To, eo] = L(!Co || !V);
425
- if (B(() => {
426
- _ && d.type && D && D();
427
- }, [_, d.type, D]), B(() => () => {
428
- P == null || P({ muted: !1 });
429
- }, [P]), oo)
430
- return /* @__PURE__ */ e(on, { ...o, externalAd: oo });
431
- let k = (l = d.banner) == null ? void 0 : l.url;
432
- return k && k.indexOf("http") !== 0 && (k = `https://${k}`), /* @__PURE__ */ A(ho, { className: "PromoOverlay", children: [
433
- /* @__PURE__ */ A(Io, { children: [
434
- /* @__PURE__ */ A(go, { className: S(!w && yo), children: [
435
- ((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode === M.LEFT && /* @__PURE__ */ e(so, { src: (c = d.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
436
- /* @__PURE__ */ A(
437
- qe,
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: (p = d.sponsor) != null && p.logo && d.logoMode === M.LEFT ? "0px" : "8px"
454
+ paddingLeft: (m = d.sponsor) != null && m.logo && d.logoMode === M.LEFT ? "0px" : "8px"
441
455
  },
442
456
  children: [
443
- ((v = d.sponsor) == null ? void 0 : v.logo) && d.logoMode === M.LEFT && /* @__PURE__ */ e(Be, { children: (a = d.sponsor) == null ? void 0 : a.name }),
444
- /* @__PURE__ */ A(we, { className: "SponsorText", children: [
445
- /* @__PURE__ */ e(fo, { children: "AD" }),
446
- /* @__PURE__ */ e(Ve, { children: "SPONSORED" })
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
- lo,
467
+ po,
454
468
  {
455
469
  className: "ClosePromoIcon",
456
- close: $o,
457
- autoClose: (h = d.closeTimer) == null ? void 0 : h.auto,
458
- duration: No ? 0 : (u = d.closeTimer) == null ? void 0 : u.seconds,
459
- isPlaying: To
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__ */ A(bo, { children: [
464
- w && /* @__PURE__ */ e(so, { className: Re, src: (m = d.sponsor) == null ? void 0 : m.logo, alt: "promo" }),
465
- /* @__PURE__ */ e(to, { children: ($ = (b = d.banner) == null ? void 0 : b.video) != null && $.url ? /* @__PURE__ */ e(
466
- ko,
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: (g = (I = d.banner) == null ? void 0 : I.video) == null ? void 0 : g.url,
469
- poster: (O = (y = d.banner) == null ? void 0 : y.video) == null ? void 0 : O.thumbnailUrl,
470
- aspectRatio: q ? "1/1" : "16/9",
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
- V && eo(!1);
486
+ x && (E == null || E(!0));
473
487
  },
474
488
  onPlay: () => {
475
- x.emit("advertisement", {
489
+ D.emit("advertisement", {
476
490
  action: "videoPlay",
477
491
  payload: {
478
- id: _,
492
+ id: B,
479
493
  type: d.type
480
494
  }
481
- }), eo(!0);
495
+ }), E == null || E(!1);
482
496
  },
483
- controlVideo: P,
484
- autoPlay: V
497
+ controlVideo: _,
498
+ autoPlay: x
485
499
  }
486
- ) : (f = d.banner) != null && f.imageUrl ? /* @__PURE__ */ e(xe, { style: q ? { aspectRatio: "1/1" } : {}, src: (C = d.banner) == null ? void 0 : C.imageUrl, alt: "promo" }) : null }),
487
- !q && /* @__PURE__ */ A(to, { children: [
488
- ((z = d.banner) == null ? void 0 : z.title) && /* @__PURE__ */ e(Fe, { className: S("AdvTitle", w && ze), children: (G = d.banner) == null ? void 0 : G.title }),
489
- ((W = d.banner) == null ? void 0 : W.body) && /* @__PURE__ */ e(De, { className: "AdvDescription", children: (H = d.banner) == null ? void 0 : H.body })
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 !== xo.NO_BUTTON && /* @__PURE__ */ e(je, { children: /* @__PURE__ */ e(
493
- Ue,
506
+ d.buttonType !== Ro.NO_BUTTON && /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
507
+ Fe,
494
508
  {
495
- href: k,
509
+ href: L,
496
510
  style: {
497
- backgroundColor: ((Y = (K = d.banner) == null ? void 0 : K.ctaButton) == null ? void 0 : Y.color) || "#009dc4",
498
- color: ((Q = (J = d.banner) == null ? void 0 : J.ctaButton) == null ? void 0 : Q.textColor) || "#fff"
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: (Z = (X = d.banner) == null ? void 0 : X.ctaButton) == null ? void 0 : Z.label
518
+ children: (eo = (oo = d.banner) == null ? void 0 : oo.ctaButton) == null ? void 0 : eo.label
505
519
  }
506
520
  ) })
507
521
  ] });
508
- }, en = /* @__PURE__ */ n("div")({
522
+ }, nn = /* @__PURE__ */ n("div")({
509
523
  name: "SidebarContainer",
510
524
  class: "s1abskp8",
511
525
  propsAsIs: !1
512
- }), nn = ({
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(U, {
532
+ }) => /* @__PURE__ */ e(z, {
519
533
  direction: s,
520
534
  style: i,
521
535
  hiding: l,
522
536
  className: t,
523
- children: /* @__PURE__ */ e(en, {
537
+ children: /* @__PURE__ */ e(nn, {
524
538
  children: o
525
539
  })
526
- }), sn = (o) => (o == null ? void 0 : o.type) === E.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === E.INGAME_IAB21_LBAR, tn = (o) => (o == null ? void 0 : o.type) === E.INGAME_IAB11 || (o == null ? void 0 : o.type) === E.INGAME_IAB21, an = ({
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: p,
535
- markAsViewed: v,
548
+ banner: m,
549
+ markAsViewed: A,
536
550
  open: a,
537
- externalAd: h,
538
- controlVideo: u
539
- }) => o.promotion ? c && o.notification ? /* @__PURE__ */ e(Pe, { open: a, notification: o.notification, promotionId: o.question.id }) : !r && !p && (i || tn(o.promotion)) ? /* @__PURE__ */ e(_e, { className: "PromoOverlayContainer", children: /* @__PURE__ */ e(
540
- ao,
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: v,
558
+ markAsViewed: A,
543
559
  promotionId: o.question.id,
544
560
  promotion: o.promotion,
545
561
  onClose: s,
546
562
  skipAutoClose: t,
547
- externalAd: h,
548
- controlVideo: u
563
+ externalAd: g,
564
+ controlVideo: u,
565
+ advertisementPaused: p,
566
+ togglePause: I
549
567
  }
550
- ) }) : r && (i || sn(o.promotion)) ? /* @__PURE__ */ e(nn, { className: "PromoSidebarContainer", direction: r, hiding: !1, children: /* @__PURE__ */ e(
551
- ao,
568
+ ) }) : r && (i || tn(o.promotion)) ? /* @__PURE__ */ e(sn, { className: "PromoSidebarContainer", direction: r, hiding: !1, children: /* @__PURE__ */ e(
569
+ lo,
552
570
  {
553
- markAsViewed: v,
571
+ markAsViewed: A,
554
572
  promotionId: o.question.id,
555
573
  promotion: o.promotion,
556
- externalAd: h,
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
- ) }) : p ? /* @__PURE__ */ e(
562
- Jo,
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: p
587
+ direction: m
568
588
  }
569
- ) : null : null, rn = /* @__PURE__ */ n("div")({
589
+ ) : null : null, ln = /* @__PURE__ */ n("div")({
570
590
  name: "AdvertisementUIWrap",
571
591
  class: "aa6pjif",
572
592
  propsAsIs: !1
573
- }), ln = (o) => {
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") || E.UNSET;
577
- s.getAttribute("data-analytics") === "button" && x.emit("advertisement", {
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" && x.emit("advertisement", {
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
- }, dn = ({
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: p,
600
- persistent: v,
619
+ isMobileScreen: m,
620
+ persistent: A,
601
621
  externalAd: a,
602
- controlVideo: h
622
+ controlVideo: g
603
623
  }) => {
604
- var u, m, b;
605
- const $ = j(null), I = co(o.advertisement.$store);
606
- Lo($, {
607
- enabled: !!I.data,
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: ln
629
+ listener: dn
610
630
  });
611
- const g = !r && !l;
612
- if (I.data === void 0 || !v && I.isViewed)
631
+ const y = !r && !l;
632
+ if (h.data === void 0 || !A && h.isViewed)
613
633
  return null;
614
- const y = ((b = (m = (u = I == null ? void 0 : I.data) == null ? void 0 : u.notification) == null ? void 0 : m.promotion) == null ? void 0 : b.mode) === Ao.LOWER_THIRD;
615
- return /* @__PURE__ */ e(rn, {
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: g ? "auto" : "100%"
638
+ height: y ? "auto" : "100%"
619
639
  },
620
- className: S("SL-AdvertisementUIWrap", p && "mobile-view", y && "SL-AdvertisementUIWrap--lower-third"),
621
- children: /* @__PURE__ */ e(an, {
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: I.data,
626
- close: I.close,
627
- externalAd: a ? I.externalAd : void 0,
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: h
655
+ controlVideo: g
634
656
  })
635
657
  });
636
- }, cn = ({
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: p,
645
- persistent: v,
666
+ isMobileScreen: m,
667
+ persistent: A,
646
668
  notification: a
647
669
  }) => {
648
- const h = co(o.featuresList.getStore());
649
- if (B(() => {
670
+ const g = mo(o.featuresList.getStore());
671
+ if (P(() => {
650
672
  if (i) {
651
- const m = document.createElement("script");
652
- m.async = !0, m.src = "https://imasdk.googleapis.com/js/sdkloader/ima3.js", document.body.appendChild(m);
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 (!h)
690
+ if (!g)
669
691
  return null;
670
- const u = o.getFeature(Ro.GAMES);
671
- return u ? /* @__PURE__ */ e(dn, {
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: p,
677
- persistent: v,
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
- }, vn = ({
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: p,
693
- skipTypeCheck: v,
714
+ notification: m,
715
+ skipTypeCheck: A,
694
716
  externalAd: a
695
717
  }) => {
696
- const h = Mo(), u = Oo(), m = Po();
697
- return h ? 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 }) : p && !u.promotionNotification ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : !i && !s && !p && !u.promotionOverlay ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : /* @__PURE__ */ A("div", { className: "StreamLayerSDK", children: [
698
- /* @__PURE__ */ e(_o, { customTheme: c ?? m, children: /* @__PURE__ */ e(
699
- cn,
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: h,
723
+ sdk: g,
702
724
  sidebar: s,
703
725
  banner: i,
704
726
  isMobileScreen: t,
705
727
  persistent: r,
706
- notification: p,
707
- skipTypeCheck: v,
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
- vn as StreamLayerSDKAdvertisement,
718
- cn as StreamLayerSDKAdvertisementUI
739
+ gn as StreamLayerSDKAdvertisement,
740
+ pn as StreamLayerSDKAdvertisementUI
719
741
  };