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