@streamlayer/react 1.22.3 → 1.23.0

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