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