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