@streamlayer/react 1.23.0 → 1.23.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.
Files changed (167) hide show
  1. package/lib/app/pause-ad.d.ts +2 -4
  2. package/lib/app/polymarket.d.ts +7 -0
  3. package/lib/cjs/Question.js +1 -1
  4. package/lib/cjs/advertisement.js +28 -223
  5. package/lib/cjs/analytics.js +1 -1
  6. package/lib/cjs/auth.js +1 -1
  7. package/lib/cjs/bet-pack.js +1 -1
  8. package/lib/cjs/feature.js +1 -0
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/gamification-feature2.js +1 -1
  11. package/lib/cjs/hooks-WfHlJH12.js +1 -0
  12. package/lib/cjs/index-eShKGO10.js +1 -5
  13. package/lib/cjs/index.js +1 -1
  14. package/lib/cjs/index10.js +1 -4
  15. package/lib/cjs/index11.js +3 -1
  16. package/lib/cjs/index12.js +1 -1
  17. package/lib/cjs/index13.js +3 -1
  18. package/lib/cjs/index14.js +1 -1
  19. package/lib/cjs/index15.js +1 -5
  20. package/lib/cjs/index16.js +3 -0
  21. package/lib/cjs/index2.js +1 -1
  22. package/lib/cjs/index3.js +1 -1
  23. package/lib/cjs/index4.js +3 -5
  24. package/lib/cjs/index5.js +1 -1
  25. package/lib/cjs/index6.js +1 -1
  26. package/lib/cjs/index7.js +1 -1
  27. package/lib/cjs/index8.js +1 -1
  28. package/lib/cjs/index9.js +1 -1
  29. package/lib/cjs/insight.js +1 -1
  30. package/lib/cjs/masters.js +1 -1
  31. package/lib/cjs/masters2.js +1 -13
  32. package/lib/cjs/notification.js +1 -1
  33. package/lib/cjs/pause-ad.js +1 -1
  34. package/lib/cjs/points.js +1 -1
  35. package/lib/cjs/polymarket.js +9 -0
  36. package/lib/cjs/sl-types.js +1 -15
  37. package/lib/cjs/storage.js +1 -1
  38. package/lib/cjs/style.css +1 -0
  39. package/lib/cjs/theme.js +1 -17
  40. package/lib/cjs/useStreamLayerApp.js +1 -1
  41. package/lib/cjs/useStreamLayerApp2.js +3 -17
  42. package/lib/cjs/utils.js +1 -47
  43. package/lib/classic/app/pause-ad.d.ts +2 -4
  44. package/lib/classic/app/polymarket.d.ts +7 -0
  45. package/lib/classic/cjs/Question.js +1 -1
  46. package/lib/classic/cjs/advertisement.js +28 -223
  47. package/lib/classic/cjs/analytics.js +1 -1
  48. package/lib/classic/cjs/auth.js +1 -1
  49. package/lib/classic/cjs/bet-pack.js +3 -5
  50. package/lib/classic/cjs/feature.js +1 -0
  51. package/lib/classic/cjs/gamification-feature.js +1 -1
  52. package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
  53. package/lib/classic/cjs/index-eShKGO10.js +1 -5
  54. package/lib/classic/cjs/index.js +1 -1
  55. package/lib/classic/cjs/index10.js +1 -1
  56. package/lib/classic/cjs/index11.js +1 -1
  57. package/lib/classic/cjs/index12.js +1 -4
  58. package/lib/classic/cjs/index13.js +3 -0
  59. package/lib/classic/cjs/index2.js +3 -5
  60. package/lib/classic/cjs/index3.js +1 -1
  61. package/lib/classic/cjs/index4.js +1 -1
  62. package/lib/classic/cjs/index5.js +1 -1
  63. package/lib/classic/cjs/index6.js +1 -1
  64. package/lib/classic/cjs/index7.js +1 -1
  65. package/lib/classic/cjs/index8.js +1 -1
  66. package/lib/classic/cjs/index9.js +3 -1
  67. package/lib/classic/cjs/insight.js +1 -1
  68. package/lib/classic/cjs/notification.js +1 -1
  69. package/lib/classic/cjs/notification2.js +1 -1
  70. package/lib/classic/cjs/pause-ad.js +1 -1
  71. package/lib/classic/cjs/points.js +1 -1
  72. package/lib/classic/cjs/polymarket.js +9 -0
  73. package/lib/classic/cjs/sl-types.js +1 -15
  74. package/lib/classic/cjs/style.css +1 -0
  75. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  76. package/lib/classic/cjs/useStreamLayerApp2.js +3 -17
  77. package/lib/classic/cjs/utils.js +1 -47
  78. package/lib/classic/es/Question.js +277 -264
  79. package/lib/classic/es/advertisement.js +34990 -18881
  80. package/lib/classic/es/analytics.js +58 -56
  81. package/lib/classic/es/auth.js +14 -8
  82. package/lib/classic/es/bet-pack.js +2448 -2418
  83. package/lib/classic/es/feature.js +108 -0
  84. package/lib/classic/es/gamification-feature.js +2 -2
  85. package/lib/classic/es/hooks-WfHlJH12.js +98 -0
  86. package/lib/classic/es/index-eShKGO10.js +948 -948
  87. package/lib/classic/es/index.js +13 -13
  88. package/lib/classic/es/index10.js +83 -2295
  89. package/lib/classic/es/index11.js +3095 -179
  90. package/lib/classic/es/index12.js +174 -821
  91. package/lib/classic/es/index13.js +850 -0
  92. package/lib/classic/es/index2.js +2099 -1763
  93. package/lib/classic/es/index3.js +11 -11
  94. package/lib/classic/es/index4.js +127 -127
  95. package/lib/classic/es/index5.js +3 -5
  96. package/lib/classic/es/index6.js +10 -11
  97. package/lib/classic/es/index7.js +6 -62
  98. package/lib/classic/es/index8.js +9 -316
  99. package/lib/classic/es/index9.js +316 -82
  100. package/lib/classic/es/insight.js +58 -53
  101. package/lib/classic/es/notification.js +5 -5
  102. package/lib/classic/es/notification2.js +765 -722
  103. package/lib/classic/es/pause-ad.js +190 -167
  104. package/lib/classic/es/points.js +55 -47
  105. package/lib/classic/es/polymarket.js +6848 -0
  106. package/lib/classic/es/sl-types.js +193 -125
  107. package/lib/classic/es/useStreamLayerApp.js +2 -2
  108. package/lib/classic/es/useStreamLayerApp2.js +9727 -7592
  109. package/lib/classic/es/utils.js +28 -28
  110. package/lib/classic/index.d.ts +1 -0
  111. package/lib/classic/style.css +1 -0
  112. package/lib/dist/cjs/gamification-feature.js +1 -1
  113. package/lib/dist/cjs/index-eShKGO10.js +1 -5
  114. package/lib/dist/cjs/index.js +1 -1
  115. package/lib/dist/cjs/masters.js +3 -77
  116. package/lib/dist/es/gamification-feature.js +2 -2
  117. package/lib/dist/es/index-eShKGO10.js +948 -948
  118. package/lib/dist/es/index.js +7 -8
  119. package/lib/dist/es/masters.js +18212 -14741
  120. package/lib/dist/index.d.ts +29 -8
  121. package/lib/dist/style.css +1 -1
  122. package/lib/es/Question.js +108 -106
  123. package/lib/es/advertisement.js +34990 -18881
  124. package/lib/es/analytics.js +58 -56
  125. package/lib/es/auth.js +14 -8
  126. package/lib/es/bet-pack.js +29 -17
  127. package/lib/es/feature.js +108 -0
  128. package/lib/es/gamification-feature.js +2 -2
  129. package/lib/es/gamification-feature2.js +2 -2
  130. package/lib/es/hooks-WfHlJH12.js +98 -0
  131. package/lib/es/index-eShKGO10.js +948 -948
  132. package/lib/es/index.js +14 -13
  133. package/lib/es/index10.js +258 -816
  134. package/lib/es/index11.js +837 -170
  135. package/lib/es/index12.js +181 -312
  136. package/lib/es/index13.js +316 -82
  137. package/lib/es/index14.js +83 -2350
  138. package/lib/es/index15.js +3069 -1224
  139. package/lib/es/index16.js +1453 -0
  140. package/lib/es/index2.js +1118 -984
  141. package/lib/es/index3.js +3 -62
  142. package/lib/es/index4.js +2424 -2407
  143. package/lib/es/index5.js +11 -11
  144. package/lib/es/index6.js +127 -127
  145. package/lib/es/index7.js +10 -7
  146. package/lib/es/index8.js +5 -9
  147. package/lib/es/index9.js +10 -265
  148. package/lib/es/insight.js +58 -53
  149. package/lib/es/masters.js +6 -5
  150. package/lib/es/masters2.js +696 -558
  151. package/lib/es/notification.js +697 -655
  152. package/lib/es/pause-ad.js +190 -167
  153. package/lib/es/points.js +56 -48
  154. package/lib/es/polymarket.js +6848 -0
  155. package/lib/es/sl-types.js +200 -132
  156. package/lib/es/storage.js +75 -74
  157. package/lib/es/theme.js +177 -31
  158. package/lib/es/useStreamLayerApp.js +2 -2
  159. package/lib/es/useStreamLayerApp2.js +9727 -7592
  160. package/lib/es/utils.js +28 -28
  161. package/lib/index.d.ts +1 -0
  162. package/lib/style.css +1 -1
  163. package/package.json +33 -20
  164. package/lib/cjs/hooks-B0Qttldg.js +0 -1
  165. package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
  166. package/lib/classic/es/hooks-B0Qttldg.js +0 -98
  167. package/lib/es/hooks-B0Qttldg.js +0 -98
@@ -1,1037 +1,1079 @@
1
- import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
- import { h as Is } from "./index7.js";
3
- import { useState as w, useRef as K, useEffect as T, useCallback as hs, useMemo as $s } from "react";
4
- import { s as e, c as gs, u as ws, a as R } from "./sl-types.js";
5
- import { e as Ts } from "./index3.js";
6
- import { x as G } from "./storage.js";
7
- import { D as ys, a as Cs, e as H, o as bs } from "./index11.js";
8
- import { B as I } from "./index6.js";
9
- import { d as v, Q as $, a as J, N as E, S as fs, A as B } from "./useStreamLayerApp2.js";
10
- import { O as D } from "./index13.js";
11
- import { E as Ns, y as ks } from "./index12.js";
12
- import { d as qs } from "./index5.js";
13
- import { B as xs, z as Es, F as Ss } from "./hooks-B0Qttldg.js";
14
- const C = /* @__PURE__ */ e("div")({
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { h as h$4 } from "./index8.js";
3
+ import { useState, useRef, useEffect, useCallback, useMemo } from "react";
4
+ import { s as styled_default, c as cx_default, u as useStore, a as NotificationType } from "./sl-types.js";
5
+ import { e as eventBus } from "./index3.js";
6
+ import "./feature.js";
7
+ import { x as x$4 } from "./storage.js";
8
+ import { D as D$2, a as D$3, e as e$6, o as o$4 } from "./index12.js";
9
+ import { B as B1 } from "./index6.js";
10
+ import { d as QuestionImages, Q as QuestionType, a as QuestionStatus, N as NotificationUseContentMedia, S as SdkOverlayType, A as AdUnit } from "./useStreamLayerApp2.js";
11
+ import { O as O$2 } from "./index14.js";
12
+ import { E as Et, y as y$4 } from "./index13.js";
13
+ import { d as d$3 } from "./index5.js";
14
+ import { B, z as z$1, F as F$2 } from "./hooks-WfHlJH12.js";
15
+ const e$5 = /* @__PURE__ */ styled_default("div")({
15
16
  name: "Media",
16
17
  class: "m1bcvojl",
17
- propsAsIs: !1
18
- }), Ds = () => C, Ls = /* @__PURE__ */ e(Ds())({
18
+ propsAsIs: false
19
+ }), I$3 = () => e$5, l$9 = /* @__PURE__ */ styled_default(I$3())({
19
20
  name: "MediaImgBottom",
20
21
  class: "m58gin0",
21
- propsAsIs: !0
22
- }), Ms = () => C, x = /* @__PURE__ */ e(Ms())({
22
+ propsAsIs: true
23
+ }), g$2 = () => e$5, t$d = /* @__PURE__ */ styled_default(g$2())({
23
24
  name: "MediaImgSolid",
24
25
  class: "m1atm8do",
25
- propsAsIs: !0
26
- }), Os = () => C, Rs = /* @__PURE__ */ e(Os())({
26
+ propsAsIs: true
27
+ }), M = () => e$5, u$6 = /* @__PURE__ */ styled_default(M())({
27
28
  name: "MediaImgRounded",
28
29
  class: "myx3xoi",
29
- propsAsIs: !0
30
- }), Bs = () => C, js = /* @__PURE__ */ e(Bs())({
30
+ propsAsIs: true
31
+ }), x$3 = () => e$5, N$3 = /* @__PURE__ */ styled_default(x$3())({
31
32
  name: "MediaImgCentered",
32
33
  class: "m1bwv0gx",
33
- propsAsIs: !0
34
- }), zs = () => C, Ps = /* @__PURE__ */ e(zs())({
34
+ propsAsIs: true
35
+ }), f$3 = () => e$5, A$5 = /* @__PURE__ */ styled_default(f$3())({
35
36
  name: "MediaImgInsight",
36
37
  class: "mntjanp",
37
- propsAsIs: !0
38
- }), Us = /* @__PURE__ */ e("div")({
38
+ propsAsIs: true
39
+ }), E$2 = /* @__PURE__ */ styled_default("div")({
39
40
  name: "VideoIcon",
40
41
  class: "v1kofb47",
41
- propsAsIs: !1
42
- }), Fs = {
43
- [v.UNSET]: x,
44
- [v.NONE]: x,
45
- [v.ROUNDED]: Rs,
46
- [v.CENTERED]: js,
47
- [v.TRANSPARENT]: Ls,
48
- [v.SOLID]: x
49
- }, j = ({
50
- src: n,
51
- imageMode: o = v.UNSET,
52
- withVideo: t,
53
- fromInsight: i
42
+ propsAsIs: false
43
+ }), S$3 = {
44
+ [QuestionImages.UNSET]: t$d,
45
+ [QuestionImages.NONE]: t$d,
46
+ [QuestionImages.ROUNDED]: u$6,
47
+ [QuestionImages.CENTERED]: N$3,
48
+ [QuestionImages.TRANSPARENT]: l$9,
49
+ [QuestionImages.SOLID]: t$d
50
+ }, h$3 = ({
51
+ src: a2,
52
+ imageMode: i2 = QuestionImages.UNSET,
53
+ withVideo: m2,
54
+ fromInsight: c2
54
55
  }) => {
55
- if (o === v.NONE)
56
+ if (i2 === QuestionImages.NONE)
56
57
  return null;
57
- const a = i ? Ps : Fs[o];
58
- return /* @__PURE__ */ l(a, {
59
- children: [/* @__PURE__ */ s("img", {
60
- src: n,
58
+ const d2 = c2 ? A$5 : S$3[i2];
59
+ return /* @__PURE__ */ jsxs(d2, {
60
+ children: [/* @__PURE__ */ jsx("img", {
61
+ src: a2,
61
62
  alt: ""
62
- }), t && /* @__PURE__ */ s(Us, {
63
- children: /* @__PURE__ */ s(I, {
63
+ }), m2 && /* @__PURE__ */ jsx(E$2, {
64
+ children: /* @__PURE__ */ jsx(B1, {
64
65
  name: "icon-play"
65
66
  })
66
67
  })]
67
68
  });
68
- }, Vs = /* @__PURE__ */ e("div")({
69
+ };
70
+ const i$8 = /* @__PURE__ */ styled_default("div")({
69
71
  name: "NotificationContent",
70
72
  class: "nuraq9m",
71
- propsAsIs: !1
72
- }), Qs = /* @__PURE__ */ e("div")({
73
+ propsAsIs: false
74
+ }), c$9 = /* @__PURE__ */ styled_default("div")({
73
75
  name: "NotificationContainer",
74
76
  class: "ns1nzpg",
75
- propsAsIs: !1
76
- }), X = /* @__PURE__ */ e("div")({
77
+ propsAsIs: false
78
+ }), r$8 = /* @__PURE__ */ styled_default("div")({
77
79
  name: "Body",
78
80
  class: "b1j59nzs",
79
- propsAsIs: !1
80
- }), Ws = /* @__PURE__ */ e("div")({
81
+ propsAsIs: false
82
+ }), p$9 = /* @__PURE__ */ styled_default("div")({
81
83
  name: "Title",
82
84
  class: "t9vmnpp",
83
- propsAsIs: !1
84
- }), Ys = /* @__PURE__ */ e("button")({
85
+ propsAsIs: false
86
+ }), l$8 = /* @__PURE__ */ styled_default("button")({
85
87
  name: "Button",
86
88
  class: "b14ivj5k",
87
- propsAsIs: !1
88
- }), _s = () => I, Ks = /* @__PURE__ */ e(_s())({
89
+ propsAsIs: false
90
+ }), t$c = () => B1, m$4 = /* @__PURE__ */ styled_default(t$c())({
89
91
  name: "StyledChevronRight",
90
92
  class: "s1atci8n",
91
- propsAsIs: !0
92
- }), Gs = /* @__PURE__ */ e("div")({
93
+ propsAsIs: true
94
+ });
95
+ const a$a = /* @__PURE__ */ styled_default("div")({
93
96
  name: "QuoteWrap",
94
97
  class: "q4w8jgs",
95
- propsAsIs: !1
96
- }), Hs = /* @__PURE__ */ e("blockquote")({
98
+ propsAsIs: false
99
+ }), e$4 = /* @__PURE__ */ styled_default("blockquote")({
97
100
  name: "Quote",
98
101
  class: "qaa0kez",
99
- propsAsIs: !1
100
- }), Js = /* @__PURE__ */ e("div")({
102
+ propsAsIs: false
103
+ }), t$b = /* @__PURE__ */ styled_default("div")({
101
104
  name: "Body",
102
105
  class: "b1wvd52w",
103
- propsAsIs: !1
104
- }), Xs = /* @__PURE__ */ e("div")({
106
+ propsAsIs: false
107
+ }), n$3 = /* @__PURE__ */ styled_default("div")({
105
108
  name: "Container",
106
109
  class: "ccvukea",
107
- propsAsIs: !1
108
- }), Zs = ({ image: n, tweet: o, account: t, accountVerified: i, body: a, title: p }) => {
109
- var d;
110
- return /* @__PURE__ */ l(Xs, { children: [
111
- p && /* @__PURE__ */ s(Gs, { children: /* @__PURE__ */ s(Hs, { children: p }) }),
112
- /* @__PURE__ */ s(
113
- ys,
110
+ propsAsIs: false
111
+ });
112
+ const Q = ({ image: m2, tweet: r2, account: a2, accountVerified: c2, body: d2, title: n2 }) => {
113
+ var i2;
114
+ return /* @__PURE__ */ jsxs(n$3, { children: [
115
+ n2 && /* @__PURE__ */ jsx(a$a, { children: /* @__PURE__ */ jsx(e$4, { children: n2 }) }),
116
+ /* @__PURE__ */ jsx(
117
+ D$2,
114
118
  {
115
- image: n,
116
- name: (d = o == null ? void 0 : o.meta) == null ? void 0 : d.accountName,
117
- userName: t,
118
- verified: i,
119
- createdTweet: o == null ? void 0 : o.date
119
+ image: m2,
120
+ name: (i2 = r2 == null ? void 0 : r2.meta) == null ? void 0 : i2.accountName,
121
+ userName: a2,
122
+ verified: c2,
123
+ createdTweet: r2 == null ? void 0 : r2.date
120
124
  }
121
125
  ),
122
- /* @__PURE__ */ s(Js, { children: Cs(a) })
126
+ /* @__PURE__ */ jsx(t$b, { children: D$3(d2) })
123
127
  ] });
124
- }, se = ({ title: n, questionType: o, questionTypeData: t }) => /* @__PURE__ */ l(X, { children: [
125
- /* @__PURE__ */ s(
126
- G,
128
+ };
129
+ const F$1 = ({ title: t2, questionType: n2, questionTypeData: r2 }) => /* @__PURE__ */ jsxs(r$8, { children: [
130
+ /* @__PURE__ */ jsx(
131
+ x$4,
127
132
  {
128
- questionTypeData: t,
129
- questionType: o,
130
- questionStatus: J.UNSET
133
+ questionTypeData: r2,
134
+ questionType: n2,
135
+ questionStatus: QuestionStatus.UNSET
131
136
  }
132
137
  ),
133
- n && /* @__PURE__ */ s(Ws, { children: n })
134
- ] }), ee = ({ tweet: n }) => n ? /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(Zs, { ...n, controlVideo: () => {
135
- } }) }) : null, ne = ({ action: n, questionType: o, inApp: t, insight: i, tweet: a }) => {
136
- var p;
137
- const d = H[o], r = bs[o];
138
- if (!d || !t || !t.notification)
138
+ t2 && /* @__PURE__ */ jsx(p$9, { children: t2 })
139
+ ] }), L$3 = ({ tweet: t2 }) => t2 ? /* @__PURE__ */ jsx(r$8, { children: /* @__PURE__ */ jsx(Q, { ...t2, controlVideo: () => {
140
+ } }) }) : null, k$2 = ({ action: t2, questionType: n2, inApp: r2, insight: e2, tweet: i2 }) => {
141
+ var s2;
142
+ const d2 = e$6[n2], C2 = o$4[n2];
143
+ if (!d2 || !r2 || !r2.notification)
139
144
  return null;
140
- const { title: m, image: u, imageMode: A } = t.notification;
141
- let g = u;
142
- o === $.TWEET && a != null && a.tweetMedia && (g = a.tweetMedia.image), A === v.NONE && (g = "");
143
- const h = t.useMediaFromContent && (i == null ? void 0 : i.image), c = o === $.TWEET && ((p = a == null ? void 0 : a.tweetMedia) == null ? void 0 : p.video) || o === $.FACTOID && (i == null ? void 0 : i.video);
144
- return /* @__PURE__ */ s(Qs, { "data-a": "intr", className: "SL_InApp", onClick: n, children: /* @__PURE__ */ l(Vs, { style: g ? {} : { paddingLeft: "1.5rem" }, children: [
145
- g && !h && /* @__PURE__ */ s(j, { src: g, imageMode: A, withVideo: !!c }),
146
- h && /* @__PURE__ */ s(j, { src: h, fromInsight: !0, withVideo: !!c }),
147
- o === $.TWEET ? /* @__PURE__ */ s(ee, { tweet: a }) : /* @__PURE__ */ s(se, { questionTypeData: d, questionType: o, title: m }),
148
- /* @__PURE__ */ s(Ys, { name: "inapp-button", children: r || "Open" }),
149
- /* @__PURE__ */ s(Ks, { name: "chevronRight" })
145
+ const { title: E2, image: I2, imageMode: f2 } = r2.notification;
146
+ let a2 = I2;
147
+ n2 === QuestionType.TWEET && (i2 != null && i2.tweetMedia) && (a2 = i2.tweetMedia.image), f2 === QuestionImages.NONE && (a2 = "");
148
+ const m2 = r2.useMediaFromContent && (e2 == null ? void 0 : e2.image), l2 = n2 === QuestionType.TWEET && ((s2 = i2 == null ? void 0 : i2.tweetMedia) == null ? void 0 : s2.video) || n2 === QuestionType.FACTOID && (e2 == null ? void 0 : e2.video);
149
+ return /* @__PURE__ */ jsx(c$9, { "data-a": "intr", className: "SL_InApp", onClick: t2, children: /* @__PURE__ */ jsxs(i$8, { style: a2 ? {} : { paddingLeft: "1.5rem" }, children: [
150
+ a2 && !m2 && /* @__PURE__ */ jsx(h$3, { src: a2, imageMode: f2, withVideo: !!l2 }),
151
+ m2 && /* @__PURE__ */ jsx(h$3, { src: m2, fromInsight: true, withVideo: !!l2 }),
152
+ n2 === QuestionType.TWEET ? /* @__PURE__ */ jsx(L$3, { tweet: i2 }) : /* @__PURE__ */ jsx(F$1, { questionTypeData: d2, questionType: n2, title: E2 }),
153
+ /* @__PURE__ */ jsx(l$8, { name: "inapp-button", children: C2 || "Open" }),
154
+ /* @__PURE__ */ jsx(m$4, { name: "chevronRight" })
150
155
  ] }) });
151
- }, oe = () => ({
152
- color: n
153
- }) => n || "transparent", z = /* @__PURE__ */ e("div")({
156
+ };
157
+ const N$2 = () => ({
158
+ color: n2
159
+ }) => n2 || "transparent", m$3 = /* @__PURE__ */ styled_default("div")({
154
160
  name: "MediaComponentWrap",
155
161
  class: "mek728j",
156
- propsAsIs: !1,
162
+ propsAsIs: false,
157
163
  vars: {
158
- "mek728j-0": [oe()]
164
+ "mek728j-0": [N$2()]
159
165
  }
160
- }), y = /* @__PURE__ */ e("div")({
166
+ }), t$a = /* @__PURE__ */ styled_default("div")({
161
167
  name: "Media",
162
168
  class: "m461t56",
163
- propsAsIs: !1
164
- }), ie = () => y, te = /* @__PURE__ */ e(ie())({
169
+ propsAsIs: false
170
+ }), u$5 = () => t$a, g$1 = /* @__PURE__ */ styled_default(u$5())({
165
171
  name: "MediaImgBottom",
166
172
  class: "m22bh04",
167
- propsAsIs: !0
168
- }), ae = () => y, re = /* @__PURE__ */ e(ae())({
173
+ propsAsIs: true
174
+ }), A$4 = () => t$a, f$2 = /* @__PURE__ */ styled_default(A$4())({
169
175
  name: "MediaVideo",
170
176
  class: "m17u1e34",
171
- propsAsIs: !0
172
- }), ce = () => y, le = /* @__PURE__ */ e(ce())({
177
+ propsAsIs: true
178
+ }), C$3 = () => t$a, x$2 = /* @__PURE__ */ styled_default(C$3())({
173
179
  name: "MediaImgContentMedia",
174
180
  class: "m4j3eds",
175
- propsAsIs: !0
176
- }), de = () => y, pe = /* @__PURE__ */ e(de())({
181
+ propsAsIs: true
182
+ }), E$1 = () => t$a, _$1 = /* @__PURE__ */ styled_default(E$1())({
177
183
  name: "MediaImgSolid",
178
184
  class: "m1lp3swr",
179
- propsAsIs: !0
180
- }), me = () => y, ue = /* @__PURE__ */ e(me())({
185
+ propsAsIs: true
186
+ }), R$1 = () => t$a, S$2 = /* @__PURE__ */ styled_default(R$1())({
181
187
  name: "MediaImgRounded",
182
188
  class: "mc7lij",
183
- propsAsIs: !0
184
- }), ve = () => y, Ae = /* @__PURE__ */ e(ve())({
189
+ propsAsIs: true
190
+ }), h$2 = () => t$a, j = /* @__PURE__ */ styled_default(h$2())({
185
191
  name: "MediaImgCentered",
186
192
  class: "mwwaw7o",
187
- propsAsIs: !0
188
- }), Ie = () => y, S = /* @__PURE__ */ e(Ie())({
193
+ propsAsIs: true
194
+ }), v$3 = () => t$a, a$9 = /* @__PURE__ */ styled_default(v$3())({
189
195
  name: "MediaNone",
190
196
  class: "mqfzyyr",
191
- propsAsIs: !0
192
- }), he = "v170mtgf", $e = {
193
- [v.UNSET]: S,
194
- [v.NONE]: S,
195
- [v.ROUNDED]: ue,
196
- [v.CENTERED]: Ae,
197
- [v.TRANSPARENT]: te,
198
- [v.SOLID]: pe
199
- }, P = ({
200
- src: n,
201
- imageMode: o = v.UNSET,
202
- withVideo: t,
203
- color: i,
204
- useContentMedia: a,
205
- thumbnailUrl: p
197
+ propsAsIs: true
198
+ }), D$1 = "v170mtgf", T$1 = {
199
+ [QuestionImages.UNSET]: a$9,
200
+ [QuestionImages.NONE]: a$9,
201
+ [QuestionImages.ROUNDED]: S$2,
202
+ [QuestionImages.CENTERED]: j,
203
+ [QuestionImages.TRANSPARENT]: g$1,
204
+ [QuestionImages.SOLID]: _$1
205
+ }, O$1 = ({
206
+ src: n2,
207
+ imageMode: d2 = QuestionImages.UNSET,
208
+ withVideo: r2,
209
+ color: i2,
210
+ useContentMedia: p2,
211
+ thumbnailUrl: c2
206
212
  }) => {
207
- if (!n)
208
- return /* @__PURE__ */ s(z, {
209
- color: i,
210
- children: /* @__PURE__ */ s(S, {})
213
+ if (!n2)
214
+ return /* @__PURE__ */ jsx(m$3, {
215
+ color: i2,
216
+ children: /* @__PURE__ */ jsx(a$9, {})
211
217
  });
212
- const d = a === E.ENABLED ? le : $e[o];
213
- return /* @__PURE__ */ s(z, {
214
- color: i,
215
- children: t ? /* @__PURE__ */ s(re, {
216
- children: /* @__PURE__ */ s(Ns, {
217
- className: he,
218
- source: n,
219
- poster: p || ""
218
+ const M2 = p2 === NotificationUseContentMedia.ENABLED ? x$2 : T$1[d2];
219
+ return /* @__PURE__ */ jsx(m$3, {
220
+ color: i2,
221
+ children: r2 ? /* @__PURE__ */ jsx(f$2, {
222
+ children: /* @__PURE__ */ jsx(Et, {
223
+ className: D$1,
224
+ source: n2,
225
+ poster: c2 || ""
220
226
  })
221
- }) : /* @__PURE__ */ s(d, {
222
- children: /* @__PURE__ */ s("img", {
223
- src: n,
227
+ }) : /* @__PURE__ */ jsx(M2, {
228
+ children: /* @__PURE__ */ jsx("img", {
229
+ src: n2,
224
230
  alt: ""
225
231
  })
226
232
  })
227
233
  });
228
- }, ge = () => ({
229
- withoutPadding: n
230
- }) => n ? "0px" : "1rem", Z = /* @__PURE__ */ e("div")({
234
+ };
235
+ const i$7 = () => ({
236
+ withoutPadding: s2
237
+ }) => s2 ? "0px" : "1rem", _ = /* @__PURE__ */ styled_default("div")({
231
238
  name: "NotificationContent",
232
239
  class: "n1p3bk1c",
233
- propsAsIs: !1,
240
+ propsAsIs: false,
234
241
  vars: {
235
- "n1p3bk1c-0": [ge()]
242
+ "n1p3bk1c-0": [i$7()]
236
243
  }
237
- }), we = /* @__PURE__ */ e("div")({
244
+ }), T = /* @__PURE__ */ styled_default("div")({
238
245
  name: "MainContent",
239
246
  class: "m1g211mu",
240
- propsAsIs: !1
241
- }), Te = () => I, ye = /* @__PURE__ */ e(Te())({
247
+ propsAsIs: false
248
+ }), r$7 = () => B1, h$1 = /* @__PURE__ */ styled_default(r$7())({
242
249
  name: "StyledChevronRight",
243
250
  class: "sx1hq4c",
244
- propsAsIs: !0
245
- }), ss = /* @__PURE__ */ e("div")({
251
+ propsAsIs: true
252
+ }), c$8 = /* @__PURE__ */ styled_default("div")({
246
253
  name: "NotificationContainer",
247
254
  class: "n1fcriet",
248
- propsAsIs: !1
249
- }), Ce = () => ({
250
- questionType: n
251
- }) => n === $.FACTOID ? "7.3rem" : "4.5rem", be = () => ({
252
- webos: n
253
- }) => n ? "11px 0px 8px 0px" : "11px 0px", fe = () => ({
254
- imageMode: n,
255
- webos: o
256
- }) => o ? "330px" : n === v.SOLID ? "310px" : n === v.CENTERED || n === v.ROUNDED || n === v.TRANSPARENT ? "370px" : "430px", Ne = /* @__PURE__ */ e("div")({
255
+ propsAsIs: false
256
+ }), l$7 = () => ({
257
+ questionType: s2
258
+ }) => s2 === QuestionType.FACTOID ? "7.3rem" : "4.5rem", m$2 = () => ({
259
+ webos: s2
260
+ }) => s2 ? "11px 0px 8px 0px" : "11px 0px", x$1 = () => ({
261
+ imageMode: s2,
262
+ webos: e2
263
+ }) => e2 ? "330px" : s2 === QuestionImages.SOLID ? "310px" : s2 === QuestionImages.CENTERED || s2 === QuestionImages.ROUNDED || s2 === QuestionImages.TRANSPARENT ? "370px" : "430px", N$1 = /* @__PURE__ */ styled_default("div")({
257
264
  name: "Body",
258
265
  class: "b1byyovs",
259
- propsAsIs: !1,
266
+ propsAsIs: false,
260
267
  vars: {
261
- "b1byyovs-0": [Ce()],
262
- "b1byyovs-1": [be()],
263
- "b1byyovs-2": [fe()]
268
+ "b1byyovs-0": [l$7()],
269
+ "b1byyovs-1": [m$2()],
270
+ "b1byyovs-2": [x$1()]
264
271
  }
265
- }), ke = () => ({
266
- webos: n
267
- }) => n ? "0.85rem" : "1.033rem", qe = () => ({
268
- webos: n
269
- }) => n ? "0.95rem" : "1.25rem", xe = () => ({
270
- webos: n
271
- }) => n ? "4.7rem" : "2.25rem", Ee = () => ({
272
- webos: n
273
- }) => n ? "pre-wrap" : "nowrap", Se = /* @__PURE__ */ e("div")({
272
+ }), I$2 = () => ({
273
+ webos: s2
274
+ }) => s2 ? "0.85rem" : "1.033rem", d$2 = () => ({
275
+ webos: s2
276
+ }) => s2 ? "0.95rem" : "1.25rem", f$1 = () => ({
277
+ webos: s2
278
+ }) => s2 ? "4.7rem" : "2.25rem", A$3 = () => ({
279
+ webos: s2
280
+ }) => s2 ? "pre-wrap" : "nowrap", D = /* @__PURE__ */ styled_default("div")({
274
281
  name: "Title",
275
282
  class: "t1y5k5id",
276
- propsAsIs: !1,
283
+ propsAsIs: false,
277
284
  vars: {
278
- "t1y5k5id-0": [ke()],
279
- "t1y5k5id-1": [qe()],
280
- "t1y5k5id-2": [xe()],
281
- "t1y5k5id-3": [Ee()]
285
+ "t1y5k5id-0": [I$2()],
286
+ "t1y5k5id-1": [d$2()],
287
+ "t1y5k5id-2": [f$1()],
288
+ "t1y5k5id-3": [A$3()]
282
289
  }
283
- }), De = /* @__PURE__ */ e("div")({
290
+ }), k$1 = /* @__PURE__ */ styled_default("div")({
284
291
  name: "Description",
285
292
  class: "dw9eb7l",
286
- propsAsIs: !1
287
- }), Le = /* @__PURE__ */ e("div")({
293
+ propsAsIs: false
294
+ }), R = /* @__PURE__ */ styled_default("div")({
288
295
  name: "LogoImgContainer",
289
296
  class: "ldu8wgy",
290
- propsAsIs: !1
291
- }), es = /* @__PURE__ */ e("img")({
297
+ propsAsIs: false
298
+ }), E = /* @__PURE__ */ styled_default("img")({
292
299
  name: "LogoImg",
293
300
  class: "ln4a3eh",
294
- propsAsIs: !1
295
- }), Me = () => ss, Oe = /* @__PURE__ */ e(Me())({
301
+ propsAsIs: false
302
+ }), u$4 = () => c$8, L$2 = /* @__PURE__ */ styled_default(u$4())({
296
303
  name: "NotificationInterstitialContainer",
297
304
  class: "no2k63v",
298
- propsAsIs: !0
299
- }), Re = /* @__PURE__ */ e("div")({
305
+ propsAsIs: true
306
+ }), S$1 = /* @__PURE__ */ styled_default("div")({
300
307
  name: "TVButtons",
301
308
  class: "th9nn6a",
302
- propsAsIs: !1
303
- }), ns = /* @__PURE__ */ e("button")({
309
+ propsAsIs: false
310
+ }), o$3 = /* @__PURE__ */ styled_default("button")({
304
311
  name: "TVButton",
305
312
  class: "t1eee77p",
306
- propsAsIs: !1
307
- }), Be = () => ns, je = /* @__PURE__ */ e(Be())({
313
+ propsAsIs: false
314
+ }), v$2 = () => o$3, V = /* @__PURE__ */ styled_default(v$2())({
308
315
  name: "DismissButton",
309
316
  class: "ds000hw",
310
- propsAsIs: !0
311
- }), ze = () => ns, Pe = /* @__PURE__ */ e(ze())({
317
+ propsAsIs: true
318
+ }), y$3 = () => o$3, O = /* @__PURE__ */ styled_default(y$3())({
312
319
  name: "AnswerButton",
313
320
  class: "a1nz9hoe",
314
- propsAsIs: !0
315
- }), Ue = ({ title: n, questionType: o, questionTypeData: t, description: i, imageMode: a, webos: p }) => /* @__PURE__ */ l(Ne, { imageMode: a, questionType: o, webos: p, children: [
316
- /* @__PURE__ */ s(
317
- G,
321
+ propsAsIs: true
322
+ });
323
+ const g = ({ title: a2, questionType: c2, questionTypeData: e2, description: o2, imageMode: t2, webos: n2 }) => /* @__PURE__ */ jsxs(N$1, { imageMode: t2, questionType: c2, webos: n2, children: [
324
+ /* @__PURE__ */ jsx(
325
+ x$4,
318
326
  {
319
- questionTypeData: t,
320
- questionType: o,
321
- questionStatus: J.UNSET
327
+ questionTypeData: e2,
328
+ questionType: c2,
329
+ questionStatus: QuestionStatus.UNSET
322
330
  }
323
331
  ),
324
- n && /* @__PURE__ */ s(Se, { webos: p, children: n }),
325
- i && /* @__PURE__ */ s(De, { children: i })
326
- ] }), Fe = D(Oe), Ve = D(je), Qe = D(Pe), We = ({
327
- className: n,
328
- sponsorLogo: o,
329
- onClick: t,
330
- webos: i
331
- }) => /* @__PURE__ */ s(
332
- Fe,
332
+ a2 && /* @__PURE__ */ jsx(D, { webos: n2, children: a2 }),
333
+ o2 && /* @__PURE__ */ jsx(k$1, { children: o2 })
334
+ ] }), A$2 = O$2(L$2), p$8 = O$2(V), oo = O$2(O), to = ({
335
+ className: a2,
336
+ sponsorLogo: c2,
337
+ onClick: e2,
338
+ webos: o2
339
+ }) => /* @__PURE__ */ jsx(
340
+ A$2,
333
341
  {
334
- className: n,
335
- autoFocus: !0,
336
- webos: i,
337
- onClick: t,
338
- "data-webos": i,
339
- children: /* @__PURE__ */ s(Z, { withoutPadding: !0, children: /* @__PURE__ */ s(es, { src: o }) })
342
+ className: a2,
343
+ autoFocus: true,
344
+ webos: o2,
345
+ onClick: e2,
346
+ "data-webos": o2,
347
+ children: /* @__PURE__ */ jsx(_, { withoutPadding: true, children: /* @__PURE__ */ jsx(E, { src: c2 }) })
340
348
  }
341
- ), Ye = ({
342
- action: n,
343
- close: o,
344
- questionType: t,
345
- inApp: i,
346
- insight: a,
347
- color: p,
348
- webos: d,
349
- className: r
349
+ ), io = ({
350
+ action: a2,
351
+ close: c2,
352
+ questionType: e2,
353
+ inApp: o2,
354
+ insight: t2,
355
+ color: n2,
356
+ webos: s2,
357
+ className: L2
350
358
  }) => {
351
- var m, u, A;
352
- const [g, h] = w(!1), c = K();
353
- T(() => (i != null && i.sponsorLogo && (h(!0), c.current = setTimeout(() => {
354
- h(!1);
355
- }, 5e3)), () => clearTimeout(c.current)), [i == null ? void 0 : i.sponsorLogo]);
356
- const O = H[t];
357
- if (!O || !i || !i.notification)
359
+ var B2, F2, w2;
360
+ const [v2, m2] = useState(false), N2 = useRef();
361
+ useEffect(() => (o2 != null && o2.sponsorLogo && (m2(true), N2.current = setTimeout(() => {
362
+ m2(false);
363
+ }, 5e3)), () => clearTimeout(N2.current)), [o2 == null ? void 0 : o2.sponsorLogo]);
364
+ const T$12 = e$6[e2];
365
+ if (!T$12 || !o2 || !o2.notification)
358
366
  return null;
359
- const { title: ps, image: ms, imageMode: f, useContentMedia: N } = i.notification, us = t === $.FACTOID ? a == null ? void 0 : a.heading : ps, vs = t === $.FACTOID ? a == null ? void 0 : a.body : "", As = ms, k = t === $.FACTOID && ((m = a == null ? void 0 : a.video) == null ? void 0 : m.url) && (i == null ? void 0 : i.isVideo) && N === E.ENABLED, q = N === E.ENABLED ? k ? (u = a == null ? void 0 : a.video) == null ? void 0 : u.url : a == null ? void 0 : a.image : "";
360
- return i != null && i.sponsorLogo && g ? /* @__PURE__ */ s(
361
- We,
367
+ const { title: M2, image: U, imageMode: i2, useContentMedia: f2 } = o2.notification, V2 = e2 === QuestionType.FACTOID ? t2 == null ? void 0 : t2.heading : M2, k2 = e2 === QuestionType.FACTOID ? t2 == null ? void 0 : t2.body : "", x2 = U, C2 = e2 === QuestionType.FACTOID && ((B2 = t2 == null ? void 0 : t2.video) == null ? void 0 : B2.url) && (o2 == null ? void 0 : o2.isVideo) && f2 === NotificationUseContentMedia.ENABLED, I2 = f2 === NotificationUseContentMedia.ENABLED ? C2 ? (F2 = t2 == null ? void 0 : t2.video) == null ? void 0 : F2.url : t2 == null ? void 0 : t2.image : "";
368
+ return o2 != null && o2.sponsorLogo && v2 ? /* @__PURE__ */ jsx(
369
+ to,
362
370
  {
363
- className: r,
364
- sponsorLogo: i == null ? void 0 : i.sponsorLogo,
365
- webos: d,
366
- onClick: () => h(!1)
371
+ className: L2,
372
+ sponsorLogo: o2 == null ? void 0 : o2.sponsorLogo,
373
+ webos: s2,
374
+ onClick: () => m2(false)
367
375
  }
368
- ) : /* @__PURE__ */ l(
369
- ss,
376
+ ) : /* @__PURE__ */ jsxs(
377
+ c$8,
370
378
  {
371
379
  "data-a": "intr",
372
- className: gs("SL_InApp", r),
373
- onClick: (b) => {
374
- d || n == null || n(b);
380
+ className: cx_default("SL_InApp", L2),
381
+ onClick: (d2) => {
382
+ s2 || a2 == null || a2(d2);
375
383
  },
376
- "data-is-insight": t === $.FACTOID,
377
- "data-webos": d,
384
+ "data-is-insight": e2 === QuestionType.FACTOID,
385
+ "data-webos": s2,
378
386
  children: [
379
- (i == null ? void 0 : i.sponsorLogo) && /* @__PURE__ */ s(Le, { children: /* @__PURE__ */ s(es, { src: i == null ? void 0 : i.sponsorLogo }) }),
380
- /* @__PURE__ */ l(Z, { children: [
381
- /* @__PURE__ */ l(we, { children: [
382
- !q && /* @__PURE__ */ s(P, { src: As, imageMode: f, withVideo: !!k, color: p }),
383
- q && /* @__PURE__ */ s(
384
- P,
387
+ (o2 == null ? void 0 : o2.sponsorLogo) && /* @__PURE__ */ jsx(R, { children: /* @__PURE__ */ jsx(E, { src: o2 == null ? void 0 : o2.sponsorLogo }) }),
388
+ /* @__PURE__ */ jsxs(_, { children: [
389
+ /* @__PURE__ */ jsxs(T, { children: [
390
+ !I2 && /* @__PURE__ */ jsx(O$1, { src: x2, imageMode: i2, withVideo: !!C2, color: n2 }),
391
+ I2 && /* @__PURE__ */ jsx(
392
+ O$1,
385
393
  {
386
- src: q,
387
- imageMode: f,
388
- withVideo: !!k,
389
- color: p,
390
- useContentMedia: N,
391
- thumbnailUrl: (A = a == null ? void 0 : a.video) == null ? void 0 : A.thumbnailUrl
394
+ src: I2,
395
+ imageMode: i2,
396
+ withVideo: !!C2,
397
+ color: n2,
398
+ useContentMedia: f2,
399
+ thumbnailUrl: (w2 = t2 == null ? void 0 : t2.video) == null ? void 0 : w2.thumbnailUrl
392
400
  }
393
401
  ),
394
- /* @__PURE__ */ s(
395
- Ue,
402
+ /* @__PURE__ */ jsx(
403
+ g,
396
404
  {
397
- questionTypeData: O,
398
- questionType: t,
399
- title: us,
400
- description: vs,
401
- imageMode: f,
402
- webos: d
405
+ questionTypeData: T$12,
406
+ questionType: e2,
407
+ title: V2,
408
+ description: k2,
409
+ imageMode: i2,
410
+ webos: s2
403
411
  }
404
412
  )
405
413
  ] }),
406
- !d && /* @__PURE__ */ s(ye, { name: "chevronRight" }),
407
- d && /* @__PURE__ */ l(Re, { children: [
408
- /* @__PURE__ */ s(
409
- Ve,
414
+ !s2 && /* @__PURE__ */ jsx(h$1, { name: "chevronRight" }),
415
+ s2 && /* @__PURE__ */ jsxs(S$1, { children: [
416
+ /* @__PURE__ */ jsx(
417
+ p$8,
410
418
  {
411
- webos: !0,
419
+ webos: true,
412
420
  "data-close-btn": "true",
413
- onClick: (b) => {
414
- b.stopPropagation(), o == null || o(b);
421
+ onClick: (d2) => {
422
+ d2.stopPropagation(), c2 == null || c2(d2);
415
423
  },
416
424
  children: "Dismiss"
417
425
  }
418
426
  ),
419
- /* @__PURE__ */ s(Qe, { webos: !0, autoFocus: !0, onClick: n, children: "Answer" })
427
+ /* @__PURE__ */ jsx(oo, { webos: true, autoFocus: true, onClick: a2, children: "Answer" })
420
428
  ] })
421
429
  ] })
422
430
  ]
423
431
  }
424
432
  );
425
- }, _e = /* @__PURE__ */ e("div")({
433
+ };
434
+ const p$7 = /* @__PURE__ */ styled_default("div")({
426
435
  name: "NotificationContainer",
427
436
  class: "n11jcrxe",
428
- propsAsIs: !1
429
- }), U = /* @__PURE__ */ e("img")({
437
+ propsAsIs: false
438
+ }), r$6 = /* @__PURE__ */ styled_default("img")({
430
439
  name: "Icon",
431
440
  class: "i1vmpt6u",
432
- propsAsIs: !1
433
- }), Ke = /* @__PURE__ */ e("div")({
441
+ propsAsIs: false
442
+ }), l$6 = /* @__PURE__ */ styled_default("div")({
434
443
  name: "IconContainer",
435
444
  class: "i180665s",
436
- propsAsIs: !1
437
- }), Ge = () => I, He = /* @__PURE__ */ e(Ge())({
445
+ propsAsIs: false
446
+ }), t$9 = () => B1, m$1 = /* @__PURE__ */ styled_default(t$9())({
438
447
  name: "TitleIcon",
439
448
  class: "t16zzzei",
440
- propsAsIs: !0
441
- }), Je = () => ks, Xe = /* @__PURE__ */ e(Je())({
449
+ propsAsIs: true
450
+ }), e$3 = () => y$4, I$1 = /* @__PURE__ */ styled_default(e$3())({
442
451
  name: "Close",
443
452
  class: "c1sur0q2",
444
- propsAsIs: !0
445
- }), Ze = /* @__PURE__ */ e("div")({
453
+ propsAsIs: true
454
+ }), f = /* @__PURE__ */ styled_default("div")({
446
455
  name: "Body",
447
456
  class: "bai9j52",
448
- propsAsIs: !1
449
- }), sn = /* @__PURE__ */ e("div")({
457
+ propsAsIs: false
458
+ }), d$1 = /* @__PURE__ */ styled_default("div")({
450
459
  name: "Title",
451
460
  class: "t1bnt25p",
452
- propsAsIs: !1
453
- }), en = /* @__PURE__ */ e("div")({
461
+ propsAsIs: false
462
+ }), u$3 = /* @__PURE__ */ styled_default("div")({
454
463
  name: "Description",
455
464
  class: "dmixjec",
456
- propsAsIs: !1
457
- }), nn = /* @__PURE__ */ e("button")({
465
+ propsAsIs: false
466
+ }), A$1 = /* @__PURE__ */ styled_default("button")({
458
467
  name: "Button",
459
468
  class: "b1ubkw1q",
460
- propsAsIs: !1
461
- }), on = ({
462
- open: n,
463
- close: o,
464
- ...t
469
+ propsAsIs: false
470
+ });
471
+ const u$2 = ({
472
+ open: a2,
473
+ close: e2,
474
+ ...t2
465
475
  }) => {
466
- var i, a;
467
- return /* @__PURE__ */ l(
468
- _e,
476
+ var n2, c2;
477
+ return /* @__PURE__ */ jsxs(
478
+ p$7,
469
479
  {
470
480
  "data-a": "intr",
471
481
  onClick: () => {
472
- n == null || n(), t && t.markIstantOpen();
482
+ a2 == null || a2(), t2 && t2.markIstantOpen();
473
483
  },
474
484
  children: [
475
- /* @__PURE__ */ l(Ke, { children: [
476
- /* @__PURE__ */ s(U, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
477
- /* @__PURE__ */ s(
478
- U,
485
+ /* @__PURE__ */ jsxs(l$6, { children: [
486
+ /* @__PURE__ */ jsx(r$6, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
487
+ /* @__PURE__ */ jsx(
488
+ r$6,
479
489
  {
480
490
  className: "on-dark",
481
491
  src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification-dark.png"
482
492
  }
483
493
  )
484
494
  ] }),
485
- /* @__PURE__ */ l(Ze, { children: [
486
- /* @__PURE__ */ l(sn, { children: [
487
- /* @__PURE__ */ s(He, { name: "icon-trophy-solid" }),
488
- (i = t == null ? void 0 : t.titleCard) == null ? void 0 : i.title
495
+ /* @__PURE__ */ jsxs(f, { children: [
496
+ /* @__PURE__ */ jsxs(d$1, { children: [
497
+ /* @__PURE__ */ jsx(m$1, { name: "icon-trophy-solid" }),
498
+ (n2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : n2.title
489
499
  ] }),
490
- /* @__PURE__ */ l(en, { children: [
491
- /* @__PURE__ */ s("span", { children: (a = t == null ? void 0 : t.titleCard) == null ? void 0 : a.subtitle }),
492
- /* @__PURE__ */ s(nn, { name: "inapp-button", children: "Play Now" })
500
+ /* @__PURE__ */ jsxs(u$3, { children: [
501
+ /* @__PURE__ */ jsx("span", { children: (c2 = t2 == null ? void 0 : t2.titleCard) == null ? void 0 : c2.subtitle }),
502
+ /* @__PURE__ */ jsx(A$1, { name: "inapp-button", children: "Play Now" })
493
503
  ] })
494
504
  ] }),
495
- /* @__PURE__ */ s(
496
- Xe,
505
+ /* @__PURE__ */ jsx(
506
+ I$1,
497
507
  {
498
- close: (p) => {
499
- p == null || p.stopPropagation(), o == null || o();
508
+ close: (r2) => {
509
+ r2 == null || r2.stopPropagation(), e2 == null || e2();
500
510
  }
501
511
  }
502
512
  )
503
513
  ]
504
514
  }
505
515
  );
506
- }, tn = /* @__PURE__ */ e("div")({
516
+ };
517
+ const v$1 = /* @__PURE__ */ styled_default("div")({
507
518
  name: "Container",
508
519
  class: "cef8huz",
509
- propsAsIs: !1
510
- }), an = () => I, rn = /* @__PURE__ */ e(an())({
520
+ propsAsIs: false
521
+ }), C$2 = () => B1, k = /* @__PURE__ */ styled_default(C$2())({
511
522
  name: "CheckIcon",
512
523
  class: "c1mo15kk",
513
- propsAsIs: !0
514
- }), cn = () => I, ln = /* @__PURE__ */ e(cn())({
524
+ propsAsIs: true
525
+ }), A = () => B1, y$2 = /* @__PURE__ */ styled_default(A())({
515
526
  name: "PredictionIcon",
516
527
  class: "p16zkqnm",
517
- propsAsIs: !0
518
- }), dn = /* @__PURE__ */ e("div")({
528
+ propsAsIs: true
529
+ }), x = /* @__PURE__ */ styled_default("div")({
519
530
  name: "PredictionIconContainer",
520
531
  class: "pjszi7a",
521
- propsAsIs: !1
522
- }), pn = /* @__PURE__ */ e("div")({
532
+ propsAsIs: false
533
+ }), w$1 = /* @__PURE__ */ styled_default("div")({
523
534
  name: "BodyContainer",
524
535
  class: "bftbmo3",
525
- propsAsIs: !1
526
- }), mn = /* @__PURE__ */ e("div")({
536
+ propsAsIs: false
537
+ }), z = /* @__PURE__ */ styled_default("div")({
527
538
  name: "Body",
528
539
  class: "barrbyu",
529
- propsAsIs: !1
530
- }), un = /* @__PURE__ */ e("div")({
540
+ propsAsIs: false
541
+ }), P = /* @__PURE__ */ styled_default("div")({
531
542
  name: "Subtitle",
532
543
  class: "sz7237i",
533
- propsAsIs: !1
534
- }), vn = ({
535
- step: n,
536
- children: o,
537
- answer: t,
538
- state: i = "pending"
544
+ propsAsIs: false
545
+ }), q = ({
546
+ step: d2,
547
+ children: p2,
548
+ answer: l2,
549
+ state: m2 = "pending"
539
550
  }) => {
540
- const [a, p] = w(0), [d] = w(() => new ResizeObserver((m) => {
551
+ const [f2, I2] = useState(0), [o2] = useState(() => new ResizeObserver((n2) => {
541
552
  window.requestAnimationFrame(() => {
542
- var u, A;
543
- p(((A = (u = m == null ? void 0 : m[0]) == null ? void 0 : u.contentRect) == null ? void 0 : A.width) ?? 0);
553
+ var t2, c2;
554
+ I2(((c2 = (t2 = n2 == null ? void 0 : n2[0]) == null ? void 0 : t2.contentRect) == null ? void 0 : c2.width) ?? 0);
544
555
  });
545
- })), r = hs((m) => {
546
- m ? d.observe(m) : d.disconnect();
547
- }, [d]);
548
- return T(() => () => {
549
- d.disconnect();
550
- }, [d]), /* @__PURE__ */ l(tn, {
551
- children: [/* @__PURE__ */ s(dn, {
552
- children: /* @__PURE__ */ s(ln, {
556
+ })), h2 = useCallback((n2) => {
557
+ n2 ? o2.observe(n2) : o2.disconnect();
558
+ }, [o2]);
559
+ return useEffect(() => () => {
560
+ o2.disconnect();
561
+ }, [o2]), /* @__PURE__ */ jsxs(v$1, {
562
+ children: [/* @__PURE__ */ jsx(x, {
563
+ children: /* @__PURE__ */ jsx(y$2, {
553
564
  name: "icon-prediction"
554
565
  })
555
- }), /* @__PURE__ */ s(pn, {
566
+ }), /* @__PURE__ */ jsx(w$1, {
556
567
  style: {
557
- minWidth: `${a}px`
568
+ minWidth: `${f2}px`
558
569
  },
559
- children: /* @__PURE__ */ s(mn, {
560
- children: o
561
- }, n)
562
- }), /* @__PURE__ */ s(un, {
563
- ref: r,
564
- className: i,
565
- children: /* @__PURE__ */ l("div", {
566
- children: [/* @__PURE__ */ s(rn, {
570
+ children: /* @__PURE__ */ jsx(z, {
571
+ children: p2
572
+ }, d2)
573
+ }), /* @__PURE__ */ jsx(P, {
574
+ ref: h2,
575
+ className: m2,
576
+ children: /* @__PURE__ */ jsxs("div", {
577
+ children: [/* @__PURE__ */ jsx(k, {
567
578
  name: "icon-check"
568
- }), "Your Pick: ", t]
579
+ }), "Your Pick: ", l2]
569
580
  })
570
581
  })]
571
582
  });
572
- }, An = /* @__PURE__ */ e("div")({
583
+ };
584
+ const i$6 = /* @__PURE__ */ styled_default("div")({
573
585
  name: "Container",
574
586
  class: "ckyzolp",
575
- propsAsIs: !1
576
- }), L = /* @__PURE__ */ e("div")({
587
+ propsAsIs: false
588
+ }), n$2 = /* @__PURE__ */ styled_default("div")({
577
589
  name: "Line",
578
590
  class: "l16t1zr7",
579
- propsAsIs: !1
580
- }), In = () => L, hn = /* @__PURE__ */ e(In())({
591
+ propsAsIs: false
592
+ }), r$5 = () => n$2, t$8 = /* @__PURE__ */ styled_default(r$5())({
581
593
  name: "Line1",
582
594
  class: "le78kvg",
583
- propsAsIs: !0
584
- }), $n = () => L, gn = /* @__PURE__ */ e($n())({
595
+ propsAsIs: true
596
+ }), c$7 = () => n$2, l$5 = /* @__PURE__ */ styled_default(c$7())({
585
597
  name: "Line2",
586
598
  class: "l1o7966d",
587
- propsAsIs: !0
588
- }), wn = () => L, Tn = /* @__PURE__ */ e(wn())({
599
+ propsAsIs: true
600
+ }), p$6 = () => n$2, a$8 = /* @__PURE__ */ styled_default(p$6())({
589
601
  name: "Line3",
590
602
  class: "lu9lyxq",
591
- propsAsIs: !0
592
- }), yn = () => /* @__PURE__ */ l(An, {
593
- children: [/* @__PURE__ */ s(hn, {
594
- children: /* @__PURE__ */ s("div", {})
595
- }), /* @__PURE__ */ s(gn, {
596
- children: /* @__PURE__ */ s("div", {})
597
- }), /* @__PURE__ */ s(Tn, {
598
- children: /* @__PURE__ */ s("div", {})
603
+ propsAsIs: true
604
+ }), L$1 = () => /* @__PURE__ */ jsxs(i$6, {
605
+ children: [/* @__PURE__ */ jsx(t$8, {
606
+ children: /* @__PURE__ */ jsx("div", {})
607
+ }), /* @__PURE__ */ jsx(l$5, {
608
+ children: /* @__PURE__ */ jsx("div", {})
609
+ }), /* @__PURE__ */ jsx(a$8, {
610
+ children: /* @__PURE__ */ jsx("div", {})
599
611
  })]
600
- }), Cn = /* @__PURE__ */ e("div")({
612
+ });
613
+ const n$1 = /* @__PURE__ */ styled_default("div")({
601
614
  name: "Container",
602
615
  class: "c10jy6zf",
603
- propsAsIs: !1
604
- }), bn = () => I, fn = /* @__PURE__ */ e(bn())({
616
+ propsAsIs: false
617
+ }), r$4 = () => B1, t$7 = /* @__PURE__ */ styled_default(r$4())({
605
618
  name: "CheckIcon",
606
619
  class: "c1c7scay",
607
- propsAsIs: !0
608
- }), Nn = () => /* @__PURE__ */ l(Cn, {
609
- children: [/* @__PURE__ */ s(fn, {
620
+ propsAsIs: true
621
+ }), m = () => /* @__PURE__ */ jsxs(n$1, {
622
+ children: [/* @__PURE__ */ jsx(t$7, {
610
623
  name: "icon-check"
611
624
  }), " Prediction results are in!"]
612
- }), kn = /* @__PURE__ */ e("div")({
625
+ });
626
+ const o$2 = /* @__PURE__ */ styled_default("div")({
613
627
  name: "Container",
614
628
  class: "cf6k2yy",
615
- propsAsIs: !1
616
- }), qn = /* @__PURE__ */ e("div")({
629
+ propsAsIs: false
630
+ }), r$3 = /* @__PURE__ */ styled_default("div")({
617
631
  name: "Caption",
618
632
  class: "c1c8xjus",
619
- propsAsIs: !1
620
- }), xn = /* @__PURE__ */ e("div")({
633
+ propsAsIs: false
634
+ }), i$5 = /* @__PURE__ */ styled_default("div")({
621
635
  name: "Title",
622
636
  class: "t1d1uekn",
623
- propsAsIs: !1
624
- }), En = ({
625
- title: n
626
- }) => /* @__PURE__ */ l(kn, {
627
- children: [/* @__PURE__ */ s(qn, {
637
+ propsAsIs: false
638
+ }), l$4 = ({
639
+ title: n2
640
+ }) => /* @__PURE__ */ jsxs(o$2, {
641
+ children: [/* @__PURE__ */ jsx(r$3, {
628
642
  children: "Results for"
629
- }), /* @__PURE__ */ s(xn, {
630
- children: n
643
+ }), /* @__PURE__ */ jsx(i$5, {
644
+ children: n2
631
645
  })]
632
- }), os = /* @__PURE__ */ e("div")({
646
+ });
647
+ const n = /* @__PURE__ */ styled_default("div")({
633
648
  name: "Container",
634
649
  class: "c181a1as",
635
- propsAsIs: !1
636
- }), is = /* @__PURE__ */ e("div")({
650
+ propsAsIs: false
651
+ }), c$6 = /* @__PURE__ */ styled_default("div")({
637
652
  name: "Title",
638
653
  class: "t1cduox6",
639
- propsAsIs: !1
640
- }), Sn = () => I, ts = /* @__PURE__ */ e(Sn())({
654
+ propsAsIs: false
655
+ }), i$4 = () => B1, s$1 = /* @__PURE__ */ styled_default(i$4())({
641
656
  name: "CorrectIcon",
642
657
  class: "c1onrv6j",
643
- propsAsIs: !0
644
- }), Dn = () => ts, Ln = /* @__PURE__ */ e(Dn())({
658
+ propsAsIs: true
659
+ }), l$3 = () => s$1, p$5 = /* @__PURE__ */ styled_default(l$3())({
645
660
  name: "InCorrectIcon",
646
661
  class: "i17n9o7e",
647
- propsAsIs: !0
648
- }), Mn = () => /* @__PURE__ */ l(os, {
649
- children: [/* @__PURE__ */ l(is, {
650
- children: ["Congratulations!", /* @__PURE__ */ s("br", {}), "You answered correctly."]
651
- }), /* @__PURE__ */ s(ts, {
662
+ propsAsIs: true
663
+ }), d = () => /* @__PURE__ */ jsxs(n, {
664
+ children: [/* @__PURE__ */ jsxs(c$6, {
665
+ children: ["Congratulations!", /* @__PURE__ */ jsx("br", {}), "You answered correctly."]
666
+ }), /* @__PURE__ */ jsx(s$1, {
652
667
  name: "icon-check"
653
668
  })]
654
- }), On = ({
655
- title: n
656
- }) => /* @__PURE__ */ l(os, {
657
- children: [/* @__PURE__ */ l(is, {
658
- children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", n]
659
- }), /* @__PURE__ */ s(Ln, {
669
+ }), u$1 = ({
670
+ title: t2
671
+ }) => /* @__PURE__ */ jsxs(n, {
672
+ children: [/* @__PURE__ */ jsxs(c$6, {
673
+ children: ["Better luck next time!", /* @__PURE__ */ jsx("br", {}), "Correct: ", t2]
674
+ }), /* @__PURE__ */ jsx(p$5, {
660
675
  name: "icon-cross"
661
676
  })]
662
- }), Rn = /* @__PURE__ */ e("div")({
677
+ });
678
+ const c$5 = /* @__PURE__ */ styled_default("div")({
663
679
  name: "Container",
664
680
  class: "cnxgcs2",
665
- propsAsIs: !1
666
- }), Bn = /* @__PURE__ */ e("div")({
681
+ propsAsIs: false
682
+ }), i$3 = /* @__PURE__ */ styled_default("div")({
667
683
  name: "Title",
668
684
  class: "t903f8n",
669
- propsAsIs: !1
670
- }), jn = () => I, zn = /* @__PURE__ */ e(jn())({
685
+ propsAsIs: false
686
+ }), p$4 = () => B1, a$7 = /* @__PURE__ */ styled_default(p$4())({
671
687
  name: "CheckIcon",
672
688
  class: "ceyu3qj",
673
- propsAsIs: !0
674
- }), Pn = ({
675
- points: n
676
- }) => /* @__PURE__ */ l(Rn, {
677
- children: [/* @__PURE__ */ l(Bn, {
678
- children: ["You won ", /* @__PURE__ */ s(qs, {
689
+ propsAsIs: true
690
+ }), u = ({
691
+ points: n2
692
+ }) => /* @__PURE__ */ jsxs(c$5, {
693
+ children: [/* @__PURE__ */ jsxs(i$3, {
694
+ children: ["You won ", /* @__PURE__ */ jsx(d$3, {
679
695
  delay: 0.5,
680
696
  prefix: "+",
681
697
  suffix: " points",
682
- value: n
698
+ value: n2
683
699
  })]
684
- }), /* @__PURE__ */ s(zn, {
700
+ }), /* @__PURE__ */ jsx(a$7, {
685
701
  name: "icon-trophy-solid"
686
702
  })]
687
- }), F = /* @__PURE__ */ e("div")({
703
+ });
704
+ const a$6 = /* @__PURE__ */ styled_default("div")({
688
705
  name: "Container",
689
706
  class: "cq3agu2",
690
- propsAsIs: !1
691
- }), V = /* @__PURE__ */ e("div")({
707
+ propsAsIs: false
708
+ }), r$2 = /* @__PURE__ */ styled_default("div")({
692
709
  name: "Body",
693
710
  class: "b16qj0do",
694
- propsAsIs: !1
695
- }), Q = {
711
+ propsAsIs: false
712
+ });
713
+ const a$5 = {
696
714
  1: 3e3,
697
715
  2: 4e3,
698
716
  3: 4e3,
699
717
  4: 4e3
700
- }, Un = ({ close: n, action: o, setStep: t, votedAnswer: i, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
701
- if (T(() => {
702
- if (t) {
703
- const u = setTimeout(() => {
704
- Q[r + 1] && (a || r < 3) ? t(r + 1) : n == null || n();
705
- }, Q[r]);
718
+ }, y$1 = ({ close: m$12, action: o2, setStep: f2, votedAnswer: t2, correct: n2, correctAnswerTitle: u$22, questionTitle: e2, step: i2 }) => {
719
+ if (useEffect(() => {
720
+ if (f2) {
721
+ const p2 = setTimeout(() => {
722
+ a$5[i2 + 1] && (n2 || i2 < 3) ? f2(i2 + 1) : m$12 == null || m$12();
723
+ }, a$5[i2]);
706
724
  return () => {
707
- u && clearTimeout(u);
725
+ p2 && clearTimeout(p2);
708
726
  };
709
727
  }
710
728
  return () => {
711
729
  };
712
- }, [t, r, n, a]), r === 1)
713
- return /* @__PURE__ */ s(F, { children: /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(Nn, {}) }) });
714
- let m = "pending";
715
- return (r === 3 || r === 4) && (m = a ? "correct" : "incorrect"), /* @__PURE__ */ s(F, { "data-a": "intr", onClick: () => o == null ? void 0 : o(), children: /* @__PURE__ */ l(V, { children: [
716
- r !== 1 && /* @__PURE__ */ s(yn, {}, r),
717
- /* @__PURE__ */ l(vn, { state: m, step: r, answer: (i == null ? void 0 : i.title) || "unknown", children: [
718
- r === 2 && /* @__PURE__ */ s(En, { title: d || "unknown" }),
719
- r === 3 && a && /* @__PURE__ */ s(Mn, {}),
720
- r === 3 && !a && /* @__PURE__ */ s(On, { title: p || "unknown" }),
721
- r === 4 && /* @__PURE__ */ s(Pn, { points: (i == null ? void 0 : i.points) || 0 })
730
+ }, [f2, i2, m$12, n2]), i2 === 1)
731
+ return /* @__PURE__ */ jsx(a$6, { children: /* @__PURE__ */ jsx(r$2, { children: /* @__PURE__ */ jsx(m, {}) }) });
732
+ let l2 = "pending";
733
+ return (i2 === 3 || i2 === 4) && (l2 = n2 ? "correct" : "incorrect"), /* @__PURE__ */ jsx(a$6, { "data-a": "intr", onClick: () => o2 == null ? void 0 : o2(), children: /* @__PURE__ */ jsxs(r$2, { children: [
734
+ i2 !== 1 && /* @__PURE__ */ jsx(L$1, {}, i2),
735
+ /* @__PURE__ */ jsxs(q, { state: l2, step: i2, answer: (t2 == null ? void 0 : t2.title) || "unknown", children: [
736
+ i2 === 2 && /* @__PURE__ */ jsx(l$4, { title: e2 || "unknown" }),
737
+ i2 === 3 && n2 && /* @__PURE__ */ jsx(d, {}),
738
+ i2 === 3 && !n2 && /* @__PURE__ */ jsx(u$1, { title: u$22 || "unknown" }),
739
+ i2 === 4 && /* @__PURE__ */ jsx(u, { points: (t2 == null ? void 0 : t2.points) || 0 })
722
740
  ] })
723
741
  ] }) });
724
- }, Fn = ({ close: n, action: o, votedAnswer: t, correct: i, correctAnswerTitle: a, questionTitle: p }) => {
725
- const [d, r] = w(1);
726
- return /* @__PURE__ */ s(
727
- Un,
742
+ }, G = ({ close: m2, action: o2, votedAnswer: f2, correct: t2, correctAnswerTitle: n2, questionTitle: u2 }) => {
743
+ const [e2, i2] = useState(1);
744
+ return /* @__PURE__ */ jsx(
745
+ y$1,
728
746
  {
729
- close: n,
730
- action: o,
731
- votedAnswer: t,
732
- correct: i,
733
- correctAnswerTitle: a,
734
- questionTitle: p,
735
- setStep: r,
736
- step: d,
747
+ close: m2,
748
+ action: o2,
749
+ votedAnswer: f2,
750
+ correct: t2,
751
+ correctAnswerTitle: n2,
752
+ questionTitle: u2,
753
+ setStep: i2,
754
+ step: e2,
737
755
  title: ""
738
756
  }
739
757
  );
740
- }, Vn = /* @__PURE__ */ e("div")({
758
+ };
759
+ const t$6 = /* @__PURE__ */ styled_default("div")({
741
760
  name: "NotificationContainer",
742
761
  class: "n1i4h28u",
743
- propsAsIs: !1
744
- }), Qn = ({ className: n, ...o }) => /* @__PURE__ */ s(Vn, { className: n, children: /* @__PURE__ */ s(Fn, { ...o }) }), Wn = /* @__PURE__ */ e("div")({
762
+ propsAsIs: false
763
+ });
764
+ const c$4 = ({ className: r2, ...t2 }) => /* @__PURE__ */ jsx(t$6, { className: r2, children: /* @__PURE__ */ jsx(G, { ...t2 }) });
765
+ const h = /* @__PURE__ */ styled_default("div")({
745
766
  name: "Container",
746
767
  class: "cwa9tgs",
747
- propsAsIs: !1
748
- }), Yn = /* @__PURE__ */ e("div")({
768
+ propsAsIs: false
769
+ }), l$2 = /* @__PURE__ */ styled_default("div")({
749
770
  name: "BodyContainer",
750
771
  class: "b1xx7swj",
751
- propsAsIs: !1
752
- }), _n = /* @__PURE__ */ e("div")({
772
+ propsAsIs: false
773
+ }), w = /* @__PURE__ */ styled_default("div")({
753
774
  name: "Body",
754
775
  class: "b1a21en",
755
- propsAsIs: !1
756
- }), Kn = ({
757
- step: n,
758
- children: o,
759
- state: t = "pending"
776
+ propsAsIs: false
777
+ }), C$1 = ({
778
+ step: n2,
779
+ children: i2,
780
+ state: c2 = "pending"
760
781
  }) => {
761
- const [i, a] = w(0);
762
- return T(() => {
763
- const p = new ResizeObserver((d) => {
782
+ const [d2, a2] = useState(0);
783
+ return useEffect(() => {
784
+ const p2 = new ResizeObserver((t2) => {
764
785
  window.requestAnimationFrame(() => {
765
- var r, m;
766
- const u = ((m = (r = d == null ? void 0 : d[0]) == null ? void 0 : r.contentRect) == null ? void 0 : m.width) ?? 0;
767
- a(u);
786
+ var o2, r2;
787
+ const x2 = ((r2 = (o2 = t2 == null ? void 0 : t2[0]) == null ? void 0 : o2.contentRect) == null ? void 0 : r2.width) ?? 0;
788
+ a2(x2);
768
789
  });
769
790
  });
770
791
  return () => {
771
- p.disconnect();
792
+ p2.disconnect();
772
793
  };
773
- }, []), /* @__PURE__ */ s(Wn, {
794
+ }, []), /* @__PURE__ */ jsx(h, {
774
795
  style: {
775
- padding: `${n === 3 && t === "incorrect" || n === 1 ? "5px 100px" : "5px 40px"}`
796
+ padding: `${n2 === 3 && c2 === "incorrect" || n2 === 1 ? "5px 100px" : "5px 40px"}`
776
797
  },
777
- children: /* @__PURE__ */ s(Yn, {
798
+ children: /* @__PURE__ */ jsx(l$2, {
778
799
  style: {
779
- minWidth: `${i}px`
800
+ minWidth: `${d2}px`
780
801
  },
781
- children: /* @__PURE__ */ s(_n, {
782
- children: o
783
- }, n)
802
+ children: /* @__PURE__ */ jsx(w, {
803
+ children: i2
804
+ }, n2)
784
805
  })
785
806
  });
786
- }, Gn = /* @__PURE__ */ e("div")({
807
+ };
808
+ const o$1 = /* @__PURE__ */ styled_default("div")({
787
809
  name: "Container",
788
810
  class: "c1nd5cu8",
789
- propsAsIs: !1
790
- }), M = /* @__PURE__ */ e("div")({
811
+ propsAsIs: false
812
+ }), e$2 = /* @__PURE__ */ styled_default("div")({
791
813
  name: "Line",
792
814
  class: "lgbipw0",
793
- propsAsIs: !1
794
- }), Hn = () => M, Jn = /* @__PURE__ */ e(Hn())({
815
+ propsAsIs: false
816
+ }), r$1 = () => e$2, c$3 = /* @__PURE__ */ styled_default(r$1())({
795
817
  name: "Line1",
796
818
  class: "l1anth16",
797
- propsAsIs: !0
798
- }), Xn = () => M, Zn = /* @__PURE__ */ e(Xn())({
819
+ propsAsIs: true
820
+ }), t$5 = () => e$2, p$3 = /* @__PURE__ */ styled_default(t$5())({
799
821
  name: "Line2",
800
822
  class: "l193yd7v",
801
- propsAsIs: !0
802
- }), so = () => M, eo = /* @__PURE__ */ e(so())({
823
+ propsAsIs: true
824
+ }), l$1 = () => e$2, a$4 = /* @__PURE__ */ styled_default(l$1())({
803
825
  name: "Line3",
804
826
  class: "lhbflsp",
805
- propsAsIs: !0
806
- }), no = () => /* @__PURE__ */ l(Gn, {
807
- children: [/* @__PURE__ */ s(Jn, {
808
- children: /* @__PURE__ */ s("div", {})
809
- }), /* @__PURE__ */ s(Zn, {
810
- children: /* @__PURE__ */ s("div", {})
811
- }), /* @__PURE__ */ s(eo, {
812
- children: /* @__PURE__ */ s("div", {})
827
+ propsAsIs: true
828
+ }), L = () => /* @__PURE__ */ jsxs(o$1, {
829
+ children: [/* @__PURE__ */ jsx(c$3, {
830
+ children: /* @__PURE__ */ jsx("div", {})
831
+ }), /* @__PURE__ */ jsx(p$3, {
832
+ children: /* @__PURE__ */ jsx("div", {})
833
+ }), /* @__PURE__ */ jsx(a$4, {
834
+ children: /* @__PURE__ */ jsx("div", {})
813
835
  })]
814
- }), oo = /* @__PURE__ */ e("div")({
836
+ });
837
+ const t$4 = /* @__PURE__ */ styled_default("div")({
815
838
  name: "Container",
816
839
  class: "c1lvd429",
817
- propsAsIs: !1
818
- }), io = () => I, to = /* @__PURE__ */ e(io())({
840
+ propsAsIs: false
841
+ }), e$1 = () => B1, i$2 = /* @__PURE__ */ styled_default(e$1())({
819
842
  name: "PredictionIcon",
820
843
  class: "p1n4m87t",
821
- propsAsIs: !0
822
- }), ao = () => /* @__PURE__ */ l(oo, {
823
- children: [/* @__PURE__ */ s(to, {
844
+ propsAsIs: true
845
+ }), a$3 = () => /* @__PURE__ */ jsxs(t$4, {
846
+ children: [/* @__PURE__ */ jsx(i$2, {
824
847
  name: "icon-prediction"
825
848
  }), " Prediction results are in!"]
826
- }), ro = () => I, co = /* @__PURE__ */ e(ro())({
849
+ });
850
+ const t$3 = () => B1, i$1 = /* @__PURE__ */ styled_default(t$3())({
827
851
  name: "CheckIcon",
828
852
  class: "c126r8f9",
829
- propsAsIs: !0
830
- }), lo = /* @__PURE__ */ e("div")({
853
+ propsAsIs: true
854
+ }), p$2 = /* @__PURE__ */ styled_default("div")({
831
855
  name: "Answer",
832
856
  class: "a1o2rpgl",
833
- propsAsIs: !1
834
- }), po = /* @__PURE__ */ e("div")({
857
+ propsAsIs: false
858
+ }), a$2 = /* @__PURE__ */ styled_default("div")({
835
859
  name: "Container",
836
860
  class: "cej6ci1",
837
- propsAsIs: !1
838
- }), mo = /* @__PURE__ */ e("div")({
861
+ propsAsIs: false
862
+ }), l = /* @__PURE__ */ styled_default("div")({
839
863
  name: "Title",
840
864
  class: "tob24mr",
841
- propsAsIs: !1
842
- }), uo = ({
843
- title: n,
844
- answer: o
845
- }) => /* @__PURE__ */ l(po, {
846
- children: [/* @__PURE__ */ s(mo, {
847
- children: n
848
- }), /* @__PURE__ */ l(lo, {
849
- children: [/* @__PURE__ */ s(co, {
865
+ propsAsIs: false
866
+ }), I = ({
867
+ title: n2,
868
+ answer: r2
869
+ }) => /* @__PURE__ */ jsxs(a$2, {
870
+ children: [/* @__PURE__ */ jsx(l, {
871
+ children: n2
872
+ }), /* @__PURE__ */ jsxs(p$2, {
873
+ children: [/* @__PURE__ */ jsx(i$1, {
850
874
  name: "icon-prediction"
851
- }), "Your Pick: ", o]
875
+ }), "Your Pick: ", r2]
852
876
  })]
853
- }), as = /* @__PURE__ */ e("div")({
877
+ });
878
+ const o = /* @__PURE__ */ styled_default("div")({
854
879
  name: "Container",
855
880
  class: "c1lesal4",
856
- propsAsIs: !1
857
- }), rs = /* @__PURE__ */ e("div")({
881
+ propsAsIs: false
882
+ }), c$2 = /* @__PURE__ */ styled_default("div")({
858
883
  name: "Title",
859
884
  class: "tv66n4w",
860
- propsAsIs: !1
861
- }), vo = () => I, Ao = /* @__PURE__ */ e(vo())({
885
+ propsAsIs: false
886
+ }), a$1 = () => B1, p$1 = /* @__PURE__ */ styled_default(a$1())({
862
887
  name: "CorrectIcon",
863
888
  class: "cx0vlv2",
864
- propsAsIs: !0
865
- }), cs = /* @__PURE__ */ e("div")({
889
+ propsAsIs: true
890
+ }), t$2 = /* @__PURE__ */ styled_default("div")({
866
891
  name: "Answer",
867
892
  class: "akfh4v5",
868
- propsAsIs: !1
869
- }), Io = ({
870
- answer: n
871
- }) => /* @__PURE__ */ l(as, {
872
- children: [/* @__PURE__ */ s(rs, {
893
+ propsAsIs: false
894
+ }), v = ({
895
+ answer: s2
896
+ }) => /* @__PURE__ */ jsxs(o, {
897
+ children: [/* @__PURE__ */ jsx(c$2, {
873
898
  children: "Congratulations! You answered correctly."
874
- }), /* @__PURE__ */ l(cs, {
875
- children: [/* @__PURE__ */ s(Ao, {
899
+ }), /* @__PURE__ */ jsxs(t$2, {
900
+ children: [/* @__PURE__ */ jsx(p$1, {
876
901
  name: "icon-correct"
877
- }), "Your Pick: ", n]
902
+ }), "Your Pick: ", s2]
878
903
  })]
879
- }), ho = ({
880
- title: n,
881
- answer: o
882
- }) => /* @__PURE__ */ l(as, {
883
- children: [/* @__PURE__ */ l(rs, {
884
- children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", n]
885
- }), /* @__PURE__ */ l(cs, {
886
- children: ["Your Pick: ", o]
904
+ }), C = ({
905
+ title: s2,
906
+ answer: l2
907
+ }) => /* @__PURE__ */ jsxs(o, {
908
+ children: [/* @__PURE__ */ jsxs(c$2, {
909
+ children: ["Better luck next time!", /* @__PURE__ */ jsx("br", {}), "Correct: ", s2]
910
+ }), /* @__PURE__ */ jsxs(t$2, {
911
+ children: ["Your Pick: ", l2]
887
912
  })]
888
- }), W = /* @__PURE__ */ e("div")({
913
+ });
914
+ const a = /* @__PURE__ */ styled_default("div")({
889
915
  name: "Container",
890
916
  class: "cmox3ot",
891
- propsAsIs: !1
892
- }), Y = /* @__PURE__ */ e("div")({
917
+ propsAsIs: false
918
+ }), t$1 = /* @__PURE__ */ styled_default("div")({
893
919
  name: "Body",
894
920
  class: "bqq1ix4",
895
- propsAsIs: !1
896
- }), _ = {
921
+ propsAsIs: false
922
+ });
923
+ const c$1 = {
897
924
  1: 3e3,
898
925
  2: 4e3,
899
926
  3: 4e3
900
- }, $o = ({ close: n, action: o, setStep: t, votedAnswer: i, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
901
- if (T(() => {
902
- if (t) {
903
- const u = setTimeout(() => {
904
- _[r + 1] && (a || r < 3) ? t(r + 1) : n == null || n();
905
- }, _[r]);
927
+ }, y = ({ close: m2, action: u2, setStep: f2, votedAnswer: n2, correct: t2, correctAnswerTitle: o2, questionTitle: l2, step: i2 }) => {
928
+ if (useEffect(() => {
929
+ if (f2) {
930
+ const k2 = setTimeout(() => {
931
+ c$1[i2 + 1] && (t2 || i2 < 3) ? f2(i2 + 1) : m2 == null || m2();
932
+ }, c$1[i2]);
906
933
  return () => {
907
- u && clearTimeout(u);
934
+ k2 && clearTimeout(k2);
908
935
  };
909
936
  }
910
937
  return () => {
911
938
  };
912
- }, [t, r, n, a]), r === 1)
913
- return /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(Y, { children: /* @__PURE__ */ s(ao, {}) }) });
914
- let m = "pending";
915
- return r === 3 && (m = a ? "correct" : "incorrect"), /* @__PURE__ */ s(W, { "data-a": "intr", onClick: () => o == null ? void 0 : o(), children: /* @__PURE__ */ l(Y, { children: [
916
- r !== 1 && /* @__PURE__ */ s(no, {}, r),
917
- /* @__PURE__ */ l(Kn, { state: m, step: r, children: [
918
- r === 2 && /* @__PURE__ */ s(uo, { title: d || "unknown", answer: (i == null ? void 0 : i.title) || "unknown" }),
919
- r === 3 && a && /* @__PURE__ */ s(Io, { answer: (i == null ? void 0 : i.title) || "unknown" }),
920
- r === 3 && !a && /* @__PURE__ */ s(ho, { title: p || "unknown", answer: (i == null ? void 0 : i.title) || "unknown" })
939
+ }, [f2, i2, m2, t2]), i2 === 1)
940
+ return /* @__PURE__ */ jsx(a, { children: /* @__PURE__ */ jsx(t$1, { children: /* @__PURE__ */ jsx(a$3, {}) }) });
941
+ let a$12 = "pending";
942
+ return i2 === 3 && (a$12 = t2 ? "correct" : "incorrect"), /* @__PURE__ */ jsx(a, { "data-a": "intr", onClick: () => u2 == null ? void 0 : u2(), children: /* @__PURE__ */ jsxs(t$1, { children: [
943
+ i2 !== 1 && /* @__PURE__ */ jsx(L, {}, i2),
944
+ /* @__PURE__ */ jsxs(C$1, { state: a$12, step: i2, children: [
945
+ i2 === 2 && /* @__PURE__ */ jsx(I, { title: l2 || "unknown", answer: (n2 == null ? void 0 : n2.title) || "unknown" }),
946
+ i2 === 3 && t2 && /* @__PURE__ */ jsx(v, { answer: (n2 == null ? void 0 : n2.title) || "unknown" }),
947
+ i2 === 3 && !t2 && /* @__PURE__ */ jsx(C, { title: o2 || "unknown", answer: (n2 == null ? void 0 : n2.title) || "unknown" })
921
948
  ] })
922
949
  ] }) });
923
- }, go = ({ close: n, action: o, votedAnswer: t, correct: i, correctAnswerTitle: a, questionTitle: p }) => {
924
- const [d, r] = w(1);
925
- return /* @__PURE__ */ s(
926
- $o,
950
+ }, F = ({ close: m2, action: u2, votedAnswer: f2, correct: n2, correctAnswerTitle: t2, questionTitle: o2 }) => {
951
+ const [l2, i2] = useState(1);
952
+ return /* @__PURE__ */ jsx(
953
+ y,
927
954
  {
928
- close: n,
929
- action: o,
930
- votedAnswer: t,
931
- correct: i,
932
- correctAnswerTitle: a,
933
- questionTitle: p,
934
- setStep: r,
935
- step: d,
955
+ close: m2,
956
+ action: u2,
957
+ votedAnswer: f2,
958
+ correct: n2,
959
+ correctAnswerTitle: t2,
960
+ questionTitle: o2,
961
+ setStep: i2,
962
+ step: l2,
936
963
  title: ""
937
964
  }
938
965
  );
939
- }, ls = /* @__PURE__ */ e("div")({
966
+ };
967
+ const s = /* @__PURE__ */ styled_default("div")({
940
968
  name: "NotificationContainer",
941
969
  class: "nn0nqh6",
942
- propsAsIs: !1
943
- }), wo = () => ({
944
- withoutPadding: n
945
- }) => n ? "0px" : "1rem", To = /* @__PURE__ */ e("div")({
970
+ propsAsIs: false
971
+ }), t = () => ({
972
+ withoutPadding: n2
973
+ }) => n2 ? "0px" : "1rem", e = /* @__PURE__ */ styled_default("div")({
946
974
  name: "NotificationContent",
947
975
  class: "n1bcdf3j",
948
- propsAsIs: !1,
976
+ propsAsIs: false,
949
977
  vars: {
950
- "n1bcdf3j-0": [wo()]
978
+ "n1bcdf3j-0": [t()]
951
979
  }
952
- }), ds = /* @__PURE__ */ e("img")({
980
+ }), c = /* @__PURE__ */ styled_default("img")({
953
981
  name: "LogoImg",
954
982
  class: "l8jorbq",
955
- propsAsIs: !1
956
- }), yo = () => ls, Co = /* @__PURE__ */ e(yo())({
983
+ propsAsIs: false
984
+ }), i = () => s, r = /* @__PURE__ */ styled_default(i())({
957
985
  name: "NotificationInterstitialContainer",
958
986
  class: "nf920y3",
959
- propsAsIs: !0
960
- }), bo = /* @__PURE__ */ e("div")({
987
+ propsAsIs: true
988
+ }), p = /* @__PURE__ */ styled_default("div")({
961
989
  name: "LogoImgContainer",
962
990
  class: "lzsmehn",
963
- propsAsIs: !1
964
- }), fo = ({
965
- className: n,
966
- sponsorLogo: o,
967
- onClick: t
968
- }) => /* @__PURE__ */ s(Co, { className: n, onClick: t, children: /* @__PURE__ */ s(To, { withoutPadding: !0, children: /* @__PURE__ */ s(ds, { src: o }) }) }), No = ({ className: n, ...o }) => {
969
- var t, i, a, p, d;
970
- const [r, m] = w(!1), u = K();
971
- return T(() => {
972
- var A;
973
- return (A = o == null ? void 0 : o.inApp) != null && A.sponsorLogo && (m(!0), u.current = setTimeout(() => {
974
- m(!1);
975
- }, 5e3)), () => clearTimeout(u.current);
976
- }, [(t = o == null ? void 0 : o.inApp) == null ? void 0 : t.sponsorLogo]), (i = o == null ? void 0 : o.inApp) != null && i.sponsorLogo && r ? /* @__PURE__ */ s(
977
- fo,
991
+ propsAsIs: false
992
+ });
993
+ const N = ({
994
+ className: t2,
995
+ sponsorLogo: r$12,
996
+ onClick: i2
997
+ }) => /* @__PURE__ */ jsx(r, { className: t2, onClick: i2, children: /* @__PURE__ */ jsx(e, { withoutPadding: true, children: /* @__PURE__ */ jsx(c, { src: r$12 }) }) }), S = ({ className: t2, ...r2 }) => {
998
+ var c$12, e2, a2, f2, l2;
999
+ const [i2, p$12] = useState(false), n2 = useRef();
1000
+ return useEffect(() => {
1001
+ var d2;
1002
+ return (d2 = r2 == null ? void 0 : r2.inApp) != null && d2.sponsorLogo && (p$12(true), n2.current = setTimeout(() => {
1003
+ p$12(false);
1004
+ }, 5e3)), () => clearTimeout(n2.current);
1005
+ }, [(c$12 = r2 == null ? void 0 : r2.inApp) == null ? void 0 : c$12.sponsorLogo]), (e2 = r2 == null ? void 0 : r2.inApp) != null && e2.sponsorLogo && i2 ? /* @__PURE__ */ jsx(
1006
+ N,
978
1007
  {
979
- className: n,
980
- sponsorLogo: (a = o.inApp) == null ? void 0 : a.sponsorLogo,
981
- onClick: () => m(!1)
1008
+ className: t2,
1009
+ sponsorLogo: (a2 = r2.inApp) == null ? void 0 : a2.sponsorLogo,
1010
+ onClick: () => p$12(false)
982
1011
  }
983
- ) : /* @__PURE__ */ s(ls, { className: n, children: /* @__PURE__ */ l("div", { children: [
984
- ((p = o == null ? void 0 : o.inApp) == null ? void 0 : p.sponsorLogo) && /* @__PURE__ */ s(bo, { children: /* @__PURE__ */ s(ds, { src: (d = o == null ? void 0 : o.inApp) == null ? void 0 : d.sponsorLogo }) }),
985
- /* @__PURE__ */ s(go, { ...o })
1012
+ ) : /* @__PURE__ */ jsx(s, { className: t2, children: /* @__PURE__ */ jsxs("div", { children: [
1013
+ ((f2 = r2 == null ? void 0 : r2.inApp) == null ? void 0 : f2.sponsorLogo) && /* @__PURE__ */ jsx(p, { children: /* @__PURE__ */ jsx(c, { src: (l2 = r2 == null ? void 0 : r2.inApp) == null ? void 0 : l2.sponsorLogo }) }),
1014
+ /* @__PURE__ */ jsx(F, { ...r2 })
986
1015
  ] }) });
987
- }, ko = ({ sdk: n, webos: o }) => {
988
- var t, i, a, p, d, r, m, u;
989
- const [A] = w(n.getNotificationsStore()), g = ws(A), h = n.getFeature(fs.GAMES), c = $s(() => n.getActiveNotification(), [n, g]);
990
- return T(() => {
991
- c && Ts.emit("notification", {
1016
+ };
1017
+ const K = ({ sdk: i2, webos: A2 }) => {
1018
+ var e2, a2, r2, p2, c2, s2, d2, u2;
1019
+ const [l2] = useState(i2.getNotificationsStore()), N2 = useStore(l2), n2 = i2.getFeature(SdkOverlayType.GAMES), t2 = useMemo(() => i2.getActiveNotification(), [i2, N2]);
1020
+ return useEffect(() => {
1021
+ t2 && eventBus.emit("notification", {
992
1022
  action: "rendered",
993
1023
  payload: {
994
- questionId: c.data.questionId,
995
- questionType: c.data.questionType
1024
+ questionId: t2.data.questionId,
1025
+ questionType: t2.data.questionType
996
1026
  }
997
1027
  });
998
- }, [c]), c && c.type === R.QUESTION_RESOLVED ? c.data.question && c.data.questionType === $.PREDICTION ? c && ((t = c.data.inApp) == null ? void 0 : t.adUnit) === B.STANDART ? /* @__PURE__ */ s(
999
- No,
1028
+ }, [t2]), t2 && t2.type === NotificationType.QUESTION_RESOLVED ? t2.data.question && t2.data.questionType === QuestionType.PREDICTION ? t2 && ((e2 = t2.data.inApp) == null ? void 0 : e2.adUnit) === AdUnit.STANDART ? /* @__PURE__ */ jsx(
1029
+ S,
1000
1030
  {
1001
- action: c.action,
1002
- close: c.close,
1003
- ...c.data.question,
1004
- inApp: c.data.inApp
1031
+ action: t2.action,
1032
+ close: t2.close,
1033
+ ...t2.data.question,
1034
+ inApp: t2.data.inApp
1005
1035
  }
1006
- ) : /* @__PURE__ */ s(
1007
- Qn,
1036
+ ) : /* @__PURE__ */ jsx(
1037
+ c$4,
1008
1038
  {
1009
- action: c.action,
1010
- close: c.close,
1011
- ...c.data.question
1039
+ action: t2.action,
1040
+ close: t2.close,
1041
+ ...t2.data.question
1012
1042
  }
1013
- ) : null : c && c.type === R.ONBOARDING ? c.data.onboarding ? /* @__PURE__ */ s(
1014
- on,
1043
+ ) : null : t2 && t2.type === NotificationType.ONBOARDING ? t2.data.onboarding ? /* @__PURE__ */ jsx(
1044
+ u$2,
1015
1045
  {
1016
- open: h == null ? void 0 : h.openOnboarding,
1017
- close: c.close,
1018
- ...c.data.onboarding
1046
+ open: n2 == null ? void 0 : n2.openOnboarding,
1047
+ close: t2.close,
1048
+ ...t2.data.onboarding
1019
1049
  }
1020
- ) : null : c && ((i = c.data.inApp) == null ? void 0 : i.adUnit) === B.STANDART ? /* @__PURE__ */ s(
1021
- Ye,
1050
+ ) : null : t2 && ((a2 = t2.data.inApp) == null ? void 0 : a2.adUnit) === AdUnit.STANDART ? /* @__PURE__ */ jsx(
1051
+ io,
1022
1052
  {
1023
- ...c.data,
1024
- action: c.action,
1025
- close: c.close,
1026
- 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),
1027
- webos: o
1053
+ ...t2.data,
1054
+ action: t2.action,
1055
+ close: t2.close,
1056
+ color: ((c2 = (p2 = (r2 = t2 == null ? void 0 : t2.data) == null ? void 0 : r2.inApp) == null ? void 0 : p2.notification) == null ? void 0 : c2.indicatorColor) || ((u2 = (d2 = (s2 = t2 == null ? void 0 : t2.data) == null ? void 0 : s2.inApp) == null ? void 0 : d2.appearance) == null ? void 0 : u2.primaryColor),
1057
+ webos: A2
1058
+ }
1059
+ ) : t2 && /* @__PURE__ */ jsx(k$2, { ...t2.data, action: t2.action });
1060
+ };
1061
+ const StreamLayerSDKNotification = ({ theme }) => {
1062
+ const sdk = B();
1063
+ const baseTheme = z$1();
1064
+ const uiState = F$2();
1065
+ if (!sdk) {
1066
+ return null;
1067
+ }
1068
+ if (uiState.appNotification || uiState.onboardingNotification) {
1069
+ if (uiState.app && !uiState.onboardingNotification) {
1070
+ return null;
1028
1071
  }
1029
- ) : c && /* @__PURE__ */ s(ne, { ...c.data, action: c.action });
1030
- }, Uo = ({ theme: n }) => {
1031
- const o = xs(), t = Es(), i = Ss();
1032
- return o && (i.appNotification || i.onboardingNotification) ? i.app && !i.onboardingNotification ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(Is, { customTheme: n ?? t.theme, themeMode: t.themeMode, children: /* @__PURE__ */ s(ko, { sdk: o }) }) }) : null;
1072
+ return /* @__PURE__ */ jsx("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ jsx(h$4, { customTheme: theme ?? baseTheme.theme, themeMode: baseTheme.themeMode, children: /* @__PURE__ */ jsx(K, { sdk }) }) });
1073
+ }
1074
+ return null;
1033
1075
  };
1034
1076
  export {
1035
- Uo as StreamLayerSDKNotification,
1036
- ko as StreamLayerSDKNotificationUI
1077
+ StreamLayerSDKNotification,
1078
+ K as StreamLayerSDKNotificationUI
1037
1079
  };