@streamlayer/react 1.22.3 → 1.23.1

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