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