@streamlayer/react 1.18.5 → 1.18.7

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,7 +1,7 @@
1
- import { s as n, B as A, $ as As, a0 as hs, a1 as W, G as _, a2 as Is, Y as $s, V as E, X as gs, d as ws, a as ys, e as Ts, N as M, u as bs, b as Cs, _ as fs, h as ks } from "./provider.js";
1
+ import { s as n, B as A, $ as As, a0 as Is, a1 as _, G, a2 as hs, Y as $s, V as x, X as gs, d as ws, a as ys, e as Ts, N as R, u as bs, b as Cs, _ as fs, h as ks } from "./provider.js";
2
2
  import { jsxs as l, jsx as s } from "react/jsx-runtime";
3
- import { useState as w, useRef as G, useEffect as y, useCallback as Ns, useMemo as qs } from "react";
4
- import { l as v, Q as I, m as K, r as L, S as Ls, A as R } from "./useStreamLayerApp2.js";
3
+ import { useState as w, useRef as K, useEffect as y, useCallback as Ns, useMemo as qs } from "react";
4
+ import { l as v, Q as h, m as X, r as S, S as Ls, A as O } from "./useStreamLayerApp2.js";
5
5
  const b = /* @__PURE__ */ n("div")({
6
6
  name: "Media",
7
7
  class: "m1bcvojl",
@@ -10,7 +10,7 @@ const b = /* @__PURE__ */ n("div")({
10
10
  name: "MediaImgBottom",
11
11
  class: "m58gin0",
12
12
  propsAsIs: !0
13
- }), xs = () => b, q = /* @__PURE__ */ n(xs())({
13
+ }), xs = () => b, L = /* @__PURE__ */ n(xs())({
14
14
  name: "MediaImgSolid",
15
15
  class: "m1atm8do",
16
16
  propsAsIs: !0
@@ -31,13 +31,13 @@ const b = /* @__PURE__ */ n("div")({
31
31
  class: "v1kofb47",
32
32
  propsAsIs: !1
33
33
  }), Us = {
34
- [v.UNSET]: q,
35
- [v.NONE]: q,
34
+ [v.UNSET]: L,
35
+ [v.NONE]: L,
36
36
  [v.ROUNDED]: Ms,
37
37
  [v.CENTERED]: Os,
38
38
  [v.TRANSPARENT]: Es,
39
- [v.SOLID]: q
40
- }, O = ({
39
+ [v.SOLID]: L
40
+ }, B = ({
41
41
  src: e,
42
42
  imageMode: i = v.UNSET,
43
43
  withVideo: t,
@@ -64,7 +64,7 @@ const b = /* @__PURE__ */ n("div")({
64
64
  name: "NotificationContainer",
65
65
  class: "ns1nzpg",
66
66
  propsAsIs: !1
67
- }), X = /* @__PURE__ */ n("div")({
67
+ }), H = /* @__PURE__ */ n("div")({
68
68
  name: "Body",
69
69
  class: "b1j59nzs",
70
70
  propsAsIs: !1
@@ -110,38 +110,38 @@ const b = /* @__PURE__ */ n("div")({
110
110
  createdTweet: i == null ? void 0 : i.date
111
111
  }
112
112
  ),
113
- /* @__PURE__ */ s(Ks, { children: hs(a) })
113
+ /* @__PURE__ */ s(Ks, { children: Is(a) })
114
114
  ] });
115
- }, Js = ({ title: e, questionType: i, questionTypeData: t }) => /* @__PURE__ */ l(X, { children: [
115
+ }, Js = ({ title: e, questionType: i, questionTypeData: t }) => /* @__PURE__ */ l(H, { children: [
116
116
  /* @__PURE__ */ s(
117
- W,
117
+ _,
118
118
  {
119
119
  questionTypeData: t,
120
120
  questionType: i,
121
- questionStatus: K.UNSET
121
+ questionStatus: X.UNSET
122
122
  }
123
123
  ),
124
124
  e && /* @__PURE__ */ s(Fs, { children: e })
125
- ] }), Zs = ({ tweet: e }) => e ? /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(Hs, { ...e, controlVideo: () => {
125
+ ] }), Zs = ({ tweet: e }) => e ? /* @__PURE__ */ s(H, { children: /* @__PURE__ */ s(Hs, { ...e, controlVideo: () => {
126
126
  } }) }) : null, se = ({ action: e, questionType: i, inApp: t, insight: o, tweet: a }) => {
127
127
  var p;
128
- const d = _[i], r = Is[i];
128
+ const d = G[i], r = hs[i];
129
129
  if (!d || !t || !t.notification)
130
130
  return null;
131
- const { title: m, image: u, imageMode: $ } = t.notification;
132
- let h = u;
133
- i === I.TWEET && a != null && a.tweetMedia && (h = a.tweetMedia.image), $ === v.NONE && (h = "");
134
- const g = t.useMediaFromContent && (o == null ? void 0 : o.image), c = i === I.TWEET && ((p = a == null ? void 0 : a.tweetMedia) == null ? void 0 : p.video) || i === I.FACTOID && (o == null ? void 0 : o.video);
135
- return /* @__PURE__ */ s(Vs, { "data-a": "intr", className: "SL_InApp", onClick: e, children: /* @__PURE__ */ l(zs, { style: h ? {} : { paddingLeft: "1.5rem" }, children: [
136
- h && !g && /* @__PURE__ */ s(O, { src: h, imageMode: $, withVideo: !!c }),
137
- g && /* @__PURE__ */ s(O, { src: g, fromInsight: !0, withVideo: !!c }),
138
- i === I.TWEET ? /* @__PURE__ */ s(Zs, { tweet: a }) : /* @__PURE__ */ s(Js, { questionTypeData: d, questionType: i, title: m }),
131
+ const { title: u, image: m, imageMode: $ } = t.notification;
132
+ let I = m;
133
+ i === h.TWEET && a != null && a.tweetMedia && (I = a.tweetMedia.image), $ === v.NONE && (I = "");
134
+ const g = t.useMediaFromContent && (o == null ? void 0 : o.image), c = i === h.TWEET && ((p = a == null ? void 0 : a.tweetMedia) == null ? void 0 : p.video) || i === h.FACTOID && (o == null ? void 0 : o.video);
135
+ return /* @__PURE__ */ s(Vs, { "data-a": "intr", className: "SL_InApp", onClick: e, children: /* @__PURE__ */ l(zs, { style: I ? {} : { paddingLeft: "1.5rem" }, children: [
136
+ I && !g && /* @__PURE__ */ s(B, { src: I, imageMode: $, withVideo: !!c }),
137
+ g && /* @__PURE__ */ s(B, { src: g, fromInsight: !0, withVideo: !!c }),
138
+ i === h.TWEET ? /* @__PURE__ */ s(Zs, { tweet: a }) : /* @__PURE__ */ s(Js, { questionTypeData: d, questionType: i, title: u }),
139
139
  /* @__PURE__ */ s(Qs, { name: "inapp-button", children: r || "Open" }),
140
140
  /* @__PURE__ */ s(Ws, { name: "chevronRight" })
141
141
  ] }) });
142
142
  }, ee = () => ({
143
143
  color: e
144
- }) => e, B = /* @__PURE__ */ n("div")({
144
+ }) => e, j = /* @__PURE__ */ n("div")({
145
145
  name: "MediaComponentWrap",
146
146
  class: "mek728j",
147
147
  propsAsIs: !1,
@@ -172,22 +172,22 @@ const b = /* @__PURE__ */ n("div")({
172
172
  name: "MediaImgRounded",
173
173
  class: "mc7lij",
174
174
  propsAsIs: !0
175
- }), me = () => T, ue = /* @__PURE__ */ n(me())({
175
+ }), ue = () => T, me = /* @__PURE__ */ n(ue())({
176
176
  name: "MediaImgCentered",
177
177
  class: "mwwaw7o",
178
178
  propsAsIs: !0
179
- }), ve = () => T, S = /* @__PURE__ */ n(ve())({
179
+ }), ve = () => T, E = /* @__PURE__ */ n(ve())({
180
180
  name: "MediaNone",
181
181
  class: "mqfzyyr",
182
182
  propsAsIs: !0
183
- }), Ae = "v170mtgf", he = {
184
- [v.UNSET]: S,
185
- [v.NONE]: S,
183
+ }), Ae = "v170mtgf", Ie = {
184
+ [v.UNSET]: E,
185
+ [v.NONE]: E,
186
186
  [v.ROUNDED]: pe,
187
- [v.CENTERED]: ue,
187
+ [v.CENTERED]: me,
188
188
  [v.TRANSPARENT]: oe,
189
189
  [v.SOLID]: le
190
- }, j = ({
190
+ }, P = ({
191
191
  src: e,
192
192
  imageMode: i = v.UNSET,
193
193
  withVideo: t,
@@ -196,12 +196,12 @@ const b = /* @__PURE__ */ n("div")({
196
196
  thumbnailUrl: p
197
197
  }) => {
198
198
  if (!e)
199
- return /* @__PURE__ */ s(B, {
199
+ return /* @__PURE__ */ s(j, {
200
200
  color: o,
201
- children: /* @__PURE__ */ s(S, {})
201
+ children: /* @__PURE__ */ s(E, {})
202
202
  });
203
- const d = a === L.ENABLED ? re : he[i];
204
- return /* @__PURE__ */ s(B, {
203
+ const d = a === S.ENABLED ? re : Ie[i];
204
+ return /* @__PURE__ */ s(j, {
205
205
  color: o,
206
206
  children: t ? /* @__PURE__ */ s(te, {
207
207
  children: /* @__PURE__ */ s($s, {
@@ -216,14 +216,14 @@ const b = /* @__PURE__ */ n("div")({
216
216
  })
217
217
  })
218
218
  });
219
- }, Ie = () => ({
219
+ }, he = () => ({
220
220
  withoutPadding: e
221
- }) => e ? "0px" : "1rem", H = /* @__PURE__ */ n("div")({
221
+ }) => e ? "0px" : "1rem", J = /* @__PURE__ */ n("div")({
222
222
  name: "NotificationContent",
223
223
  class: "n1p3bk1c",
224
224
  propsAsIs: !1,
225
225
  vars: {
226
- "n1p3bk1c-0": [Ie()]
226
+ "n1p3bk1c-0": [he()]
227
227
  }
228
228
  }), $e = /* @__PURE__ */ n("div")({
229
229
  name: "MainContent",
@@ -233,13 +233,13 @@ const b = /* @__PURE__ */ n("div")({
233
233
  name: "StyledChevronRight",
234
234
  class: "sx1hq4c",
235
235
  propsAsIs: !0
236
- }), J = /* @__PURE__ */ n("div")({
236
+ }), Z = /* @__PURE__ */ n("div")({
237
237
  name: "NotificationContainer",
238
238
  class: "n1fcriet",
239
239
  propsAsIs: !1
240
240
  }), ye = () => ({
241
241
  questionType: e
242
- }) => e === I.FACTOID ? "7.3rem" : "4.5rem", Te = () => ({
242
+ }) => e === h.FACTOID ? "7.3rem" : "4.5rem", Te = () => ({
243
243
  webos: e
244
244
  }) => e ? "11px 0px 8px 0px" : "11px 0px", be = () => ({
245
245
  imageMode: e,
@@ -279,11 +279,11 @@ const b = /* @__PURE__ */ n("div")({
279
279
  name: "LogoImgContainer",
280
280
  class: "ldu8wgy",
281
281
  propsAsIs: !1
282
- }), Z = /* @__PURE__ */ n("img")({
282
+ }), ss = /* @__PURE__ */ n("img")({
283
283
  name: "LogoImg",
284
284
  class: "ln4a3eh",
285
285
  propsAsIs: !1
286
- }), xe = () => J, De = /* @__PURE__ */ n(xe())({
286
+ }), xe = () => Z, De = /* @__PURE__ */ n(xe())({
287
287
  name: "NotificationInterstitialContainer",
288
288
  class: "no2k63v",
289
289
  propsAsIs: !0
@@ -291,34 +291,34 @@ const b = /* @__PURE__ */ n("div")({
291
291
  name: "TVButtons",
292
292
  class: "th9nn6a",
293
293
  propsAsIs: !1
294
- }), ss = /* @__PURE__ */ n("button")({
294
+ }), es = /* @__PURE__ */ n("button")({
295
295
  name: "TVButton",
296
296
  class: "t1eee77p",
297
297
  propsAsIs: !1
298
- }), Re = () => ss, Oe = /* @__PURE__ */ n(Re())({
298
+ }), Re = () => es, Oe = /* @__PURE__ */ n(Re())({
299
299
  name: "DismissButton",
300
300
  class: "ds000hw",
301
301
  propsAsIs: !0
302
- }), Be = () => ss, je = /* @__PURE__ */ n(Be())({
302
+ }), Be = () => es, je = /* @__PURE__ */ n(Be())({
303
303
  name: "AnswerButton",
304
304
  class: "a1nz9hoe",
305
305
  propsAsIs: !0
306
306
  }), Pe = ({ title: e, questionType: i, questionTypeData: t, description: o, imageMode: a, webos: p }) => /* @__PURE__ */ l(Ce, { imageMode: a, questionType: i, webos: p, children: [
307
307
  /* @__PURE__ */ s(
308
- W,
308
+ _,
309
309
  {
310
310
  questionTypeData: t,
311
311
  questionType: i,
312
- questionStatus: K.UNSET
312
+ questionStatus: X.UNSET
313
313
  }
314
314
  ),
315
315
  e && /* @__PURE__ */ s(Le, { webos: p, children: e }),
316
316
  o && /* @__PURE__ */ s(Se, { children: o })
317
- ] }), Ue = E(De), ze = E(Oe), Ve = E(je), Fe = ({
317
+ ] }), Ue = x(De), ze = x(Oe), Ve = x(je), Fe = ({
318
318
  sponsorLogo: e,
319
319
  onClick: i,
320
320
  webos: t
321
- }) => /* @__PURE__ */ s(Ue, { autoFocus: !0, webos: t, onClick: i, "data-webos": t, children: /* @__PURE__ */ s(H, { withoutPadding: !0, children: /* @__PURE__ */ s(Z, { src: e }) }) }), Qe = ({
321
+ }) => /* @__PURE__ */ s(Ue, { autoFocus: !0, webos: t, onClick: i, "data-webos": t, children: /* @__PURE__ */ s(J, { withoutPadding: !0, children: /* @__PURE__ */ s(ss, { src: e }) }) }), Qe = ({
322
322
  action: e,
323
323
  close: i,
324
324
  questionType: t,
@@ -327,46 +327,46 @@ const b = /* @__PURE__ */ n("div")({
327
327
  color: p,
328
328
  webos: d
329
329
  }) => {
330
- var r, m, u;
331
- const [$, h] = w(!1), g = G();
332
- y(() => (o != null && o.sponsorLogo && (h(!0), g.current = setTimeout(() => {
333
- h(!1);
330
+ var r, u, m;
331
+ const [$, I] = w(!1), g = K();
332
+ y(() => (o != null && o.sponsorLogo && (I(!0), g.current = setTimeout(() => {
333
+ I(!1);
334
334
  }, 5e3)), () => clearTimeout(g.current)), [o == null ? void 0 : o.sponsorLogo]);
335
- const c = _[t];
335
+ const c = G[t];
336
336
  if (!c || !o || !o.notification)
337
337
  return null;
338
- const { title: ls, image: ds, imageMode: C, useContentMedia: f } = o.notification, ps = t === I.FACTOID ? a == null ? void 0 : a.heading : ls, ms = t === I.FACTOID ? a == null ? void 0 : a.body : "", us = ds, k = t === I.FACTOID && ((r = a == null ? void 0 : a.video) == null ? void 0 : r.url) && (o == null ? void 0 : o.isVideo) && f === L.ENABLED, N = f === L.ENABLED ? k ? (m = a == null ? void 0 : a.video) == null ? void 0 : m.url : a == null ? void 0 : a.image : "";
338
+ const { title: ds, image: ps, imageMode: f, useContentMedia: k } = o.notification, us = t === h.FACTOID ? a == null ? void 0 : a.heading : ds, ms = t === h.FACTOID ? a == null ? void 0 : a.body : "", vs = ps, N = t === h.FACTOID && ((r = a == null ? void 0 : a.video) == null ? void 0 : r.url) && (o == null ? void 0 : o.isVideo) && k === S.ENABLED, q = k === S.ENABLED ? N ? (u = a == null ? void 0 : a.video) == null ? void 0 : u.url : a == null ? void 0 : a.image : "";
339
339
  return o != null && o.sponsorLogo && $ ? /* @__PURE__ */ s(
340
340
  Fe,
341
341
  {
342
342
  sponsorLogo: o == null ? void 0 : o.sponsorLogo,
343
343
  webos: d,
344
- onClick: () => h(!1)
344
+ onClick: () => I(!1)
345
345
  }
346
346
  ) : /* @__PURE__ */ l(
347
- J,
347
+ Z,
348
348
  {
349
349
  "data-a": "intr",
350
350
  className: "SL_InApp",
351
- onClick: (vs) => {
352
- d && (e == null || e(vs));
351
+ onClick: (C) => {
352
+ d || e == null || e(C);
353
353
  },
354
- "data-is-insight": t === I.FACTOID,
354
+ "data-is-insight": t === h.FACTOID,
355
355
  "data-webos": d,
356
356
  children: [
357
- (o == null ? void 0 : o.sponsorLogo) && /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(Z, { src: o == null ? void 0 : o.sponsorLogo }) }),
358
- /* @__PURE__ */ l(H, { children: [
357
+ (o == null ? void 0 : o.sponsorLogo) && /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(ss, { src: o == null ? void 0 : o.sponsorLogo }) }),
358
+ /* @__PURE__ */ l(J, { children: [
359
359
  /* @__PURE__ */ l($e, { children: [
360
- !N && /* @__PURE__ */ s(j, { src: us, imageMode: C, withVideo: !!k, color: p }),
361
- N && /* @__PURE__ */ s(
362
- j,
360
+ !q && /* @__PURE__ */ s(P, { src: vs, imageMode: f, withVideo: !!N, color: p }),
361
+ q && /* @__PURE__ */ s(
362
+ P,
363
363
  {
364
- src: N,
365
- imageMode: C,
366
- withVideo: !!k,
364
+ src: q,
365
+ imageMode: f,
366
+ withVideo: !!N,
367
367
  color: p,
368
- useContentMedia: f,
369
- thumbnailUrl: (u = a == null ? void 0 : a.video) == null ? void 0 : u.thumbnailUrl
368
+ useContentMedia: k,
369
+ thumbnailUrl: (m = a == null ? void 0 : a.video) == null ? void 0 : m.thumbnailUrl
370
370
  }
371
371
  ),
372
372
  /* @__PURE__ */ s(
@@ -374,16 +374,26 @@ const b = /* @__PURE__ */ n("div")({
374
374
  {
375
375
  questionTypeData: c,
376
376
  questionType: t,
377
- title: ps,
377
+ title: us,
378
378
  description: ms,
379
- imageMode: C,
379
+ imageMode: f,
380
380
  webos: d
381
381
  }
382
382
  )
383
383
  ] }),
384
384
  !d && /* @__PURE__ */ s(we, { name: "chevronRight" }),
385
385
  d && /* @__PURE__ */ l(Me, { children: [
386
- /* @__PURE__ */ s(ze, { webos: !0, "data-close-btn": "true", onClick: i, children: "Dismiss" }),
386
+ /* @__PURE__ */ s(
387
+ ze,
388
+ {
389
+ webos: !0,
390
+ "data-close-btn": "true",
391
+ onClick: (C) => {
392
+ C.stopPropagation(), i == null || i(C);
393
+ },
394
+ children: "Dismiss"
395
+ }
396
+ ),
387
397
  /* @__PURE__ */ s(Ve, { webos: !0, autoFocus: !0, onClick: e, children: "Answer" })
388
398
  ] })
389
399
  ] })
@@ -394,7 +404,7 @@ const b = /* @__PURE__ */ n("div")({
394
404
  name: "NotificationContainer",
395
405
  class: "n11jcrxe",
396
406
  propsAsIs: !1
397
- }), P = /* @__PURE__ */ n("img")({
407
+ }), U = /* @__PURE__ */ n("img")({
398
408
  name: "Icon",
399
409
  class: "i1vmpt6u",
400
410
  propsAsIs: !1
@@ -441,9 +451,9 @@ const b = /* @__PURE__ */ n("div")({
441
451
  },
442
452
  children: [
443
453
  /* @__PURE__ */ l(We, { children: [
444
- /* @__PURE__ */ s(P, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
454
+ /* @__PURE__ */ s(U, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
445
455
  /* @__PURE__ */ s(
446
- P,
456
+ U,
447
457
  {
448
458
  className: "on-dark",
449
459
  src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification-dark.png"
@@ -499,19 +509,19 @@ const b = /* @__PURE__ */ n("div")({
499
509
  name: "Subtitle",
500
510
  class: "sz7237i",
501
511
  propsAsIs: !1
502
- }), mn = ({
512
+ }), un = ({
503
513
  step: e,
504
514
  children: i,
505
515
  answer: t,
506
516
  state: o = "pending"
507
517
  }) => {
508
- const [a, p] = w(0), [d] = w(() => new ResizeObserver((m) => {
518
+ const [a, p] = w(0), [d] = w(() => new ResizeObserver((u) => {
509
519
  window.requestAnimationFrame(() => {
510
- var u, $;
511
- p((($ = (u = m == null ? void 0 : m[0]) == null ? void 0 : u.contentRect) == null ? void 0 : $.width) ?? 0);
520
+ var m, $;
521
+ p((($ = (m = u == null ? void 0 : u[0]) == null ? void 0 : m.contentRect) == null ? void 0 : $.width) ?? 0);
512
522
  });
513
- })), r = Ns((m) => {
514
- m ? d.observe(m) : d.disconnect();
523
+ })), r = Ns((u) => {
524
+ u ? d.observe(u) : d.disconnect();
515
525
  }, [d]);
516
526
  return y(() => () => {
517
527
  d.disconnect();
@@ -537,30 +547,30 @@ const b = /* @__PURE__ */ n("div")({
537
547
  })
538
548
  })]
539
549
  });
540
- }, un = /* @__PURE__ */ n("div")({
550
+ }, mn = /* @__PURE__ */ n("div")({
541
551
  name: "Container",
542
552
  class: "ckyzolp",
543
553
  propsAsIs: !1
544
- }), x = /* @__PURE__ */ n("div")({
554
+ }), D = /* @__PURE__ */ n("div")({
545
555
  name: "Line",
546
556
  class: "l16t1zr7",
547
557
  propsAsIs: !1
548
- }), vn = () => x, An = /* @__PURE__ */ n(vn())({
558
+ }), vn = () => D, An = /* @__PURE__ */ n(vn())({
549
559
  name: "Line1",
550
560
  class: "le78kvg",
551
561
  propsAsIs: !0
552
- }), hn = () => x, In = /* @__PURE__ */ n(hn())({
562
+ }), In = () => D, hn = /* @__PURE__ */ n(In())({
553
563
  name: "Line2",
554
564
  class: "l1o7966d",
555
565
  propsAsIs: !0
556
- }), $n = () => x, gn = /* @__PURE__ */ n($n())({
566
+ }), $n = () => D, gn = /* @__PURE__ */ n($n())({
557
567
  name: "Line3",
558
568
  class: "lu9lyxq",
559
569
  propsAsIs: !0
560
- }), wn = () => /* @__PURE__ */ l(un, {
570
+ }), wn = () => /* @__PURE__ */ l(mn, {
561
571
  children: [/* @__PURE__ */ s(An, {
562
572
  children: /* @__PURE__ */ s("div", {})
563
- }), /* @__PURE__ */ s(In, {
573
+ }), /* @__PURE__ */ s(hn, {
564
574
  children: /* @__PURE__ */ s("div", {})
565
575
  }), /* @__PURE__ */ s(gn, {
566
576
  children: /* @__PURE__ */ s("div", {})
@@ -597,32 +607,32 @@ const b = /* @__PURE__ */ n("div")({
597
607
  }), /* @__PURE__ */ s(Nn, {
598
608
  children: e
599
609
  })]
600
- }), es = /* @__PURE__ */ n("div")({
610
+ }), ns = /* @__PURE__ */ n("div")({
601
611
  name: "Container",
602
612
  class: "c181a1as",
603
613
  propsAsIs: !1
604
- }), ns = /* @__PURE__ */ n("div")({
614
+ }), os = /* @__PURE__ */ n("div")({
605
615
  name: "Title",
606
616
  class: "t1cduox6",
607
617
  propsAsIs: !1
608
- }), Ln = () => A, os = /* @__PURE__ */ n(Ln())({
618
+ }), Ln = () => A, is = /* @__PURE__ */ n(Ln())({
609
619
  name: "CorrectIcon",
610
620
  class: "c1onrv6j",
611
621
  propsAsIs: !0
612
- }), Sn = () => os, En = /* @__PURE__ */ n(Sn())({
622
+ }), Sn = () => is, En = /* @__PURE__ */ n(Sn())({
613
623
  name: "InCorrectIcon",
614
624
  class: "i17n9o7e",
615
625
  propsAsIs: !0
616
- }), xn = () => /* @__PURE__ */ l(es, {
617
- children: [/* @__PURE__ */ l(ns, {
626
+ }), xn = () => /* @__PURE__ */ l(ns, {
627
+ children: [/* @__PURE__ */ l(os, {
618
628
  children: ["Congratulations!", /* @__PURE__ */ s("br", {}), "You answered correctly."]
619
- }), /* @__PURE__ */ s(os, {
629
+ }), /* @__PURE__ */ s(is, {
620
630
  name: "icon-check"
621
631
  })]
622
632
  }), Dn = ({
623
633
  title: e
624
- }) => /* @__PURE__ */ l(es, {
625
- children: [/* @__PURE__ */ l(ns, {
634
+ }) => /* @__PURE__ */ l(ns, {
635
+ children: [/* @__PURE__ */ l(os, {
626
636
  children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", e]
627
637
  }), /* @__PURE__ */ s(En, {
628
638
  name: "icon-cross"
@@ -652,15 +662,15 @@ const b = /* @__PURE__ */ n("div")({
652
662
  }), /* @__PURE__ */ s(Bn, {
653
663
  name: "icon-trophy-solid"
654
664
  })]
655
- }), U = /* @__PURE__ */ n("div")({
665
+ }), z = /* @__PURE__ */ n("div")({
656
666
  name: "Container",
657
667
  class: "cq3agu2",
658
668
  propsAsIs: !1
659
- }), z = /* @__PURE__ */ n("div")({
669
+ }), V = /* @__PURE__ */ n("div")({
660
670
  name: "Body",
661
671
  class: "b16qj0do",
662
672
  propsAsIs: !1
663
- }), V = {
673
+ }), F = {
664
674
  1: 3e3,
665
675
  2: 4e3,
666
676
  3: 4e3,
@@ -668,21 +678,21 @@ const b = /* @__PURE__ */ n("div")({
668
678
  }, Pn = ({ close: e, action: i, setStep: t, votedAnswer: o, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
669
679
  if (y(() => {
670
680
  if (t) {
671
- const u = setTimeout(() => {
672
- V[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
673
- }, V[r]);
681
+ const m = setTimeout(() => {
682
+ F[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
683
+ }, F[r]);
674
684
  return () => {
675
- u && clearTimeout(u);
685
+ m && clearTimeout(m);
676
686
  };
677
687
  }
678
688
  return () => {
679
689
  };
680
690
  }, [t, r, e, a]), r === 1)
681
- return /* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(z, { children: /* @__PURE__ */ s(Cn, {}) }) });
682
- let m = "pending";
683
- return (r === 3 || r === 4) && (m = a ? "correct" : "incorrect"), /* @__PURE__ */ s(U, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ l(z, { children: [
691
+ return /* @__PURE__ */ s(z, { children: /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(Cn, {}) }) });
692
+ let u = "pending";
693
+ return (r === 3 || r === 4) && (u = a ? "correct" : "incorrect"), /* @__PURE__ */ s(z, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ l(V, { children: [
684
694
  r !== 1 && /* @__PURE__ */ s(wn, {}, r),
685
- /* @__PURE__ */ l(mn, { state: m, step: r, answer: (o == null ? void 0 : o.title) || "unknown", children: [
695
+ /* @__PURE__ */ l(un, { state: u, step: r, answer: (o == null ? void 0 : o.title) || "unknown", children: [
686
696
  r === 2 && /* @__PURE__ */ s(qn, { title: d || "unknown" }),
687
697
  r === 3 && a && /* @__PURE__ */ s(xn, {}),
688
698
  r === 3 && !a && /* @__PURE__ */ s(Dn, { title: p || "unknown" }),
@@ -730,9 +740,9 @@ const b = /* @__PURE__ */ n("div")({
730
740
  return y(() => {
731
741
  const p = new ResizeObserver((d) => {
732
742
  window.requestAnimationFrame(() => {
733
- var r, m;
734
- const u = ((m = (r = d == null ? void 0 : d[0]) == null ? void 0 : r.contentRect) == null ? void 0 : m.width) ?? 0;
735
- a(u);
743
+ var r, u;
744
+ const m = ((u = (r = d == null ? void 0 : d[0]) == null ? void 0 : r.contentRect) == null ? void 0 : u.width) ?? 0;
745
+ a(m);
736
746
  });
737
747
  });
738
748
  return () => {
@@ -755,19 +765,19 @@ const b = /* @__PURE__ */ n("div")({
755
765
  name: "Container",
756
766
  class: "c1nd5cu8",
757
767
  propsAsIs: !1
758
- }), D = /* @__PURE__ */ n("div")({
768
+ }), M = /* @__PURE__ */ n("div")({
759
769
  name: "Line",
760
770
  class: "lgbipw0",
761
771
  propsAsIs: !1
762
- }), Gn = () => D, Kn = /* @__PURE__ */ n(Gn())({
772
+ }), Gn = () => M, Kn = /* @__PURE__ */ n(Gn())({
763
773
  name: "Line1",
764
774
  class: "l1anth16",
765
775
  propsAsIs: !0
766
- }), Xn = () => D, Hn = /* @__PURE__ */ n(Xn())({
776
+ }), Xn = () => M, Hn = /* @__PURE__ */ n(Xn())({
767
777
  name: "Line2",
768
778
  class: "l193yd7v",
769
779
  propsAsIs: !0
770
- }), Jn = () => D, Zn = /* @__PURE__ */ n(Jn())({
780
+ }), Jn = () => M, Zn = /* @__PURE__ */ n(Jn())({
771
781
  name: "Line3",
772
782
  class: "lhbflsp",
773
783
  propsAsIs: !0
@@ -818,80 +828,80 @@ const b = /* @__PURE__ */ n("div")({
818
828
  name: "icon-prediction"
819
829
  }), "Your Pick: ", i]
820
830
  })]
821
- }), is = /* @__PURE__ */ n("div")({
831
+ }), ts = /* @__PURE__ */ n("div")({
822
832
  name: "Container",
823
833
  class: "c1lesal4",
824
834
  propsAsIs: !1
825
- }), ts = /* @__PURE__ */ n("div")({
835
+ }), as = /* @__PURE__ */ n("div")({
826
836
  name: "Title",
827
837
  class: "tv66n4w",
828
838
  propsAsIs: !1
829
- }), mo = () => A, uo = /* @__PURE__ */ n(mo())({
839
+ }), uo = () => A, mo = /* @__PURE__ */ n(uo())({
830
840
  name: "CorrectIcon",
831
841
  class: "cx0vlv2",
832
842
  propsAsIs: !0
833
- }), as = /* @__PURE__ */ n("div")({
843
+ }), rs = /* @__PURE__ */ n("div")({
834
844
  name: "Answer",
835
845
  class: "akfh4v5",
836
846
  propsAsIs: !1
837
847
  }), vo = ({
838
848
  answer: e
839
- }) => /* @__PURE__ */ l(is, {
840
- children: [/* @__PURE__ */ s(ts, {
849
+ }) => /* @__PURE__ */ l(ts, {
850
+ children: [/* @__PURE__ */ s(as, {
841
851
  children: "Congratulations! You answered correctly."
842
- }), /* @__PURE__ */ l(as, {
843
- children: [/* @__PURE__ */ s(uo, {
852
+ }), /* @__PURE__ */ l(rs, {
853
+ children: [/* @__PURE__ */ s(mo, {
844
854
  name: "icon-correct"
845
855
  }), "Your Pick: ", e]
846
856
  })]
847
857
  }), Ao = ({
848
858
  title: e,
849
859
  answer: i
850
- }) => /* @__PURE__ */ l(is, {
851
- children: [/* @__PURE__ */ l(ts, {
860
+ }) => /* @__PURE__ */ l(ts, {
861
+ children: [/* @__PURE__ */ l(as, {
852
862
  children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", e]
853
- }), /* @__PURE__ */ l(as, {
863
+ }), /* @__PURE__ */ l(rs, {
854
864
  children: ["Your Pick: ", i]
855
865
  })]
856
- }), F = /* @__PURE__ */ n("div")({
866
+ }), Q = /* @__PURE__ */ n("div")({
857
867
  name: "Container",
858
868
  class: "cmox3ot",
859
869
  propsAsIs: !1
860
- }), Q = /* @__PURE__ */ n("div")({
870
+ }), Y = /* @__PURE__ */ n("div")({
861
871
  name: "Body",
862
872
  class: "bqq1ix4",
863
873
  propsAsIs: !1
864
- }), Y = {
874
+ }), W = {
865
875
  1: 3e3,
866
876
  2: 4e3,
867
877
  3: 4e3
868
- }, ho = ({ close: e, action: i, setStep: t, votedAnswer: o, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
878
+ }, Io = ({ close: e, action: i, setStep: t, votedAnswer: o, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
869
879
  if (y(() => {
870
880
  if (t) {
871
- const u = setTimeout(() => {
872
- Y[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
873
- }, Y[r]);
881
+ const m = setTimeout(() => {
882
+ W[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
883
+ }, W[r]);
874
884
  return () => {
875
- u && clearTimeout(u);
885
+ m && clearTimeout(m);
876
886
  };
877
887
  }
878
888
  return () => {
879
889
  };
880
890
  }, [t, r, e, a]), r === 1)
881
- return /* @__PURE__ */ s(F, { children: /* @__PURE__ */ s(Q, { children: /* @__PURE__ */ s(io, {}) }) });
882
- let m = "pending";
883
- return r === 3 && (m = a ? "correct" : "incorrect"), /* @__PURE__ */ s(F, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ l(Q, { children: [
891
+ return /* @__PURE__ */ s(Q, { children: /* @__PURE__ */ s(Y, { children: /* @__PURE__ */ s(io, {}) }) });
892
+ let u = "pending";
893
+ return r === 3 && (u = a ? "correct" : "incorrect"), /* @__PURE__ */ s(Q, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ l(Y, { children: [
884
894
  r !== 1 && /* @__PURE__ */ s(so, {}, r),
885
- /* @__PURE__ */ l(Wn, { state: m, step: r, children: [
895
+ /* @__PURE__ */ l(Wn, { state: u, step: r, children: [
886
896
  r === 2 && /* @__PURE__ */ s(po, { title: d || "unknown", answer: (o == null ? void 0 : o.title) || "unknown" }),
887
897
  r === 3 && a && /* @__PURE__ */ s(vo, { answer: (o == null ? void 0 : o.title) || "unknown" }),
888
898
  r === 3 && !a && /* @__PURE__ */ s(Ao, { title: p || "unknown", answer: (o == null ? void 0 : o.title) || "unknown" })
889
899
  ] })
890
900
  ] }) });
891
- }, Io = ({ close: e, action: i, votedAnswer: t, correct: o, correctAnswerTitle: a, questionTitle: p }) => {
901
+ }, ho = ({ close: e, action: i, votedAnswer: t, correct: o, correctAnswerTitle: a, questionTitle: p }) => {
892
902
  const [d, r] = w(1);
893
903
  return /* @__PURE__ */ s(
894
- ho,
904
+ Io,
895
905
  {
896
906
  close: e,
897
907
  action: i,
@@ -904,7 +914,7 @@ const b = /* @__PURE__ */ n("div")({
904
914
  title: ""
905
915
  }
906
916
  );
907
- }, rs = /* @__PURE__ */ n("div")({
917
+ }, cs = /* @__PURE__ */ n("div")({
908
918
  name: "NotificationContainer",
909
919
  class: "nn0nqh6",
910
920
  propsAsIs: !1
@@ -917,11 +927,11 @@ const b = /* @__PURE__ */ n("div")({
917
927
  vars: {
918
928
  "n1bcdf3j-0": [$o()]
919
929
  }
920
- }), cs = /* @__PURE__ */ n("img")({
930
+ }), ls = /* @__PURE__ */ n("img")({
921
931
  name: "LogoImg",
922
932
  class: "l8jorbq",
923
933
  propsAsIs: !1
924
- }), wo = () => rs, yo = /* @__PURE__ */ n(wo())({
934
+ }), wo = () => cs, yo = /* @__PURE__ */ n(wo())({
925
935
  name: "NotificationInterstitialContainer",
926
936
  class: "nf920y3",
927
937
  propsAsIs: !0
@@ -929,21 +939,21 @@ const b = /* @__PURE__ */ n("div")({
929
939
  name: "LogoImgContainer",
930
940
  class: "lzsmehn",
931
941
  propsAsIs: !1
932
- }), bo = ({ sponsorLogo: e, onClick: i }) => /* @__PURE__ */ s(yo, { onClick: i, children: /* @__PURE__ */ s(go, { withoutPadding: !0, children: /* @__PURE__ */ s(cs, { src: e }) }) }), Co = (e) => {
942
+ }), bo = ({ sponsorLogo: e, onClick: i }) => /* @__PURE__ */ s(yo, { onClick: i, children: /* @__PURE__ */ s(go, { withoutPadding: !0, children: /* @__PURE__ */ s(ls, { src: e }) }) }), Co = (e) => {
933
943
  var i, t, o, a, p;
934
- const [d, r] = w(!1), m = G();
944
+ const [d, r] = w(!1), u = K();
935
945
  return y(() => {
936
- var u;
937
- return (u = e == null ? void 0 : e.inApp) != null && u.sponsorLogo && (r(!0), m.current = setTimeout(() => {
946
+ var m;
947
+ return (m = e == null ? void 0 : e.inApp) != null && m.sponsorLogo && (r(!0), u.current = setTimeout(() => {
938
948
  r(!1);
939
- }, 5e3)), () => clearTimeout(m.current);
940
- }, [(i = e == null ? void 0 : e.inApp) == null ? void 0 : i.sponsorLogo]), (t = e == null ? void 0 : e.inApp) != null && t.sponsorLogo && d ? /* @__PURE__ */ s(bo, { sponsorLogo: (o = e.inApp) == null ? void 0 : o.sponsorLogo, onClick: () => r(!1) }) : /* @__PURE__ */ s(rs, { children: /* @__PURE__ */ l("div", { children: [
941
- ((a = e == null ? void 0 : e.inApp) == null ? void 0 : a.sponsorLogo) && /* @__PURE__ */ s(To, { children: /* @__PURE__ */ s(cs, { src: (p = e == null ? void 0 : e.inApp) == null ? void 0 : p.sponsorLogo }) }),
942
- /* @__PURE__ */ s(Io, { ...e })
949
+ }, 5e3)), () => clearTimeout(u.current);
950
+ }, [(i = e == null ? void 0 : e.inApp) == null ? void 0 : i.sponsorLogo]), (t = e == null ? void 0 : e.inApp) != null && t.sponsorLogo && d ? /* @__PURE__ */ s(bo, { sponsorLogo: (o = e.inApp) == null ? void 0 : o.sponsorLogo, onClick: () => r(!1) }) : /* @__PURE__ */ s(cs, { children: /* @__PURE__ */ l("div", { children: [
951
+ ((a = e == null ? void 0 : e.inApp) == null ? void 0 : a.sponsorLogo) && /* @__PURE__ */ s(To, { children: /* @__PURE__ */ s(ls, { src: (p = e == null ? void 0 : e.inApp) == null ? void 0 : p.sponsorLogo }) }),
952
+ /* @__PURE__ */ s(ho, { ...e })
943
953
  ] }) });
944
954
  }, fo = ({ sdk: e, webos: i }) => {
945
- var t, o, a, p, d, r, m, u;
946
- const [$] = w(e.getNotificationsStore()), h = ys($), g = e.getFeature(Ls.GAMES), c = qs(() => e.getActiveNotification(), [e, h]);
955
+ var t, o, a, p, d, r, u, m;
956
+ const [$] = w(e.getNotificationsStore()), I = ys($), g = e.getFeature(Ls.GAMES), c = qs(() => e.getActiveNotification(), [e, I]);
947
957
  return y(() => {
948
958
  c && Ts.emit("notification", {
949
959
  action: "rendered",
@@ -952,7 +962,7 @@ const b = /* @__PURE__ */ n("div")({
952
962
  questionType: c.data.questionType
953
963
  }
954
964
  });
955
- }, [c]), c && c.type === M.QUESTION_RESOLVED ? c.data.question && c.data.questionType === I.PREDICTION ? c && ((t = c.data.inApp) == null ? void 0 : t.adUnit) === R.STANDART ? /* @__PURE__ */ s(
965
+ }, [c]), c && c.type === R.QUESTION_RESOLVED ? c.data.question && c.data.questionType === h.PREDICTION ? c && ((t = c.data.inApp) == null ? void 0 : t.adUnit) === O.STANDART ? /* @__PURE__ */ s(
956
966
  Co,
957
967
  {
958
968
  action: c.action,
@@ -967,20 +977,20 @@ const b = /* @__PURE__ */ n("div")({
967
977
  close: c.close,
968
978
  ...c.data.question
969
979
  }
970
- ) : null : c && c.type === M.ONBOARDING ? c.data.onboarding ? /* @__PURE__ */ s(
980
+ ) : null : c && c.type === R.ONBOARDING ? c.data.onboarding ? /* @__PURE__ */ s(
971
981
  en,
972
982
  {
973
983
  open: g == null ? void 0 : g.openOnboarding,
974
984
  close: c.close,
975
985
  ...c.data.onboarding
976
986
  }
977
- ) : null : c && ((o = c.data.inApp) == null ? void 0 : o.adUnit) === R.STANDART ? /* @__PURE__ */ s(
987
+ ) : null : c && ((o = c.data.inApp) == null ? void 0 : o.adUnit) === O.STANDART ? /* @__PURE__ */ s(
978
988
  Qe,
979
989
  {
980
990
  ...c.data,
981
991
  action: c.action,
982
992
  close: c.close,
983
- color: ((d = (p = (a = c == null ? void 0 : c.data) == null ? void 0 : a.inApp) == null ? void 0 : p.notification) == null ? void 0 : d.indicatorColor) || ((u = (m = (r = c == null ? void 0 : c.data) == null ? void 0 : r.inApp) == null ? void 0 : m.appearance) == null ? void 0 : u.primaryColor),
993
+ color: ((d = (p = (a = c == null ? void 0 : c.data) == null ? void 0 : a.inApp) == null ? void 0 : p.notification) == null ? void 0 : d.indicatorColor) || ((m = (u = (r = c == null ? void 0 : c.data) == null ? void 0 : r.inApp) == null ? void 0 : u.appearance) == null ? void 0 : m.primaryColor),
984
994
  webos: i
985
995
  }
986
996
  ) : c && /* @__PURE__ */ s(se, { ...c.data, action: c.action });