@streamlayer/react 1.11.3-rc.5 → 1.12.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/advertisement.d.ts +18 -0
- package/lib/app/app.d.ts +19 -0
- package/lib/{auth.d.ts → app/auth.d.ts} +4 -13
- package/lib/app/bet-pack.d.ts +20 -0
- package/lib/app/event.d.ts +4 -0
- package/lib/app/insight.d.ts +13 -0
- package/lib/app/masters.d.ts +28 -0
- package/lib/app/notification.d.ts +5 -0
- package/lib/app/points.d.ts +3 -0
- package/lib/app/provider.d.ts +43 -0
- package/lib/app/useStreamLayerApp.d.ts +19 -0
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -0
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +5 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -0
- package/lib/cjs/masters2.js +9 -0
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +98 -85
- package/lib/cjs/useStreamLayerApp2.js +17 -15
- package/lib/classic/app/advertisement.d.ts +18 -0
- package/lib/classic/app/app.d.ts +19 -0
- package/lib/classic/{auth.d.ts → app/auth.d.ts} +4 -13
- package/lib/classic/app/bet-pack.d.ts +20 -0
- package/lib/classic/app/event.d.ts +4 -0
- package/lib/classic/app/insight.d.ts +13 -0
- package/lib/classic/app/masters.d.ts +28 -0
- package/lib/classic/app/notification.d.ts +5 -0
- package/lib/classic/app/points.d.ts +3 -0
- package/lib/classic/app/provider.d.ts +43 -0
- package/lib/classic/app/useStreamLayerApp.d.ts +19 -0
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +1 -0
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/gamification-feature2.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/masters.js +1 -0
- package/lib/classic/cjs/masters2.js +9 -0
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +98 -85
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -15
- package/lib/classic/es/advertisement.js +617 -717
- package/lib/classic/es/auth.js +2 -5
- package/lib/classic/es/bet-pack.js +14 -0
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/gamification-feature2.js +4 -0
- package/lib/classic/es/index.js +14 -11
- package/lib/classic/es/index2.js +2890 -0
- package/lib/classic/es/insight.js +33 -33
- package/lib/classic/es/masters.js +8 -0
- package/lib/classic/es/masters2.js +981 -0
- package/lib/classic/es/notification.js +378 -453
- package/lib/classic/es/points.js +39 -64
- package/lib/classic/es/provider.js +16443 -13824
- package/lib/classic/es/useStreamLayerApp2.js +8187 -4455
- package/lib/classic/index.d.ts +14 -218
- package/lib/classic/masters.d.ts +9 -0
- package/lib/classic/style.css +1 -455
- package/lib/dist/cjs/gamification-feature.js +1 -0
- package/lib/dist/cjs/gamification-feature2.js +1 -0
- package/lib/dist/cjs/index.js +1 -0
- package/lib/dist/cjs/masters.js +223 -0
- package/lib/dist/cjs/package.json +1 -0
- package/lib/dist/es/gamification-feature.js +4 -0
- package/lib/dist/es/gamification-feature2.js +123 -0
- package/lib/dist/es/index.js +11 -0
- package/lib/dist/es/masters.js +45904 -0
- package/lib/dist/es/package.json +1 -0
- package/lib/dist/style.css +1 -0
- package/lib/es/advertisement.js +617 -717
- package/lib/es/auth.js +2 -5
- package/lib/es/bet-pack.js +14 -0
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/gamification-feature2.js +4 -0
- package/lib/es/index.js +14 -11
- package/lib/es/index2.js +2890 -0
- package/lib/es/insight.js +33 -33
- package/lib/es/masters.js +8 -0
- package/lib/es/masters2.js +981 -0
- package/lib/es/notification.js +378 -453
- package/lib/es/points.js +39 -64
- package/lib/es/provider.js +16267 -13641
- package/lib/es/useStreamLayerApp2.js +8187 -4455
- package/lib/index.d.ts +14 -218
- package/lib/masters.d.ts +9 -0
- package/lib/style.css +1 -1
- package/package.json +57 -3
- package/lib/advertisement.d.ts +0 -146
- package/lib/classic/advertisement.d.ts +0 -146
- package/lib/classic/insight.d.ts +0 -136
- package/lib/classic/notification.d.ts +0 -120
- package/lib/classic/points.d.ts +0 -12
- package/lib/classic/useStreamLayerApp.d.ts +0 -167
- package/lib/insight.d.ts +0 -136
- package/lib/notification.d.ts +0 -120
- package/lib/points.d.ts +0 -12
- package/lib/useStreamLayerApp.d.ts +0 -167
|
@@ -1,543 +1,468 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class: "v1jt3w2c",
|
|
1
|
+
import { E as m, s as e, a7 as L, a8 as z, a9 as B, R as O, aa as R, e as P, d as Q, a as U, g as V, N as T, u as F, b as W, i as G, h as K } from "./provider.js";
|
|
2
|
+
import { j as p, Q as I, k as Y, S as _ } from "./useStreamLayerApp2.js";
|
|
3
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
4
|
+
import { useState as q, useEffect as E, useMemo as H } from "react";
|
|
5
|
+
const h = /* @__PURE__ */ e("div")({
|
|
6
|
+
name: "Media",
|
|
7
|
+
class: "m1bcvojl",
|
|
8
|
+
propsAsIs: !1
|
|
9
|
+
}), J = () => h, X = /* @__PURE__ */ e(J())({
|
|
10
|
+
name: "MediaImgBottom",
|
|
11
|
+
class: "m58gin0",
|
|
13
12
|
propsAsIs: !0
|
|
14
|
-
}),
|
|
15
|
-
name: "
|
|
16
|
-
class: "
|
|
13
|
+
}), Z = () => h, C = /* @__PURE__ */ e(Z())({
|
|
14
|
+
name: "MediaImgSolid",
|
|
15
|
+
class: "m1atm8do",
|
|
17
16
|
propsAsIs: !0
|
|
18
|
-
}),
|
|
19
|
-
name: "
|
|
20
|
-
class: "
|
|
17
|
+
}), ss = () => h, es = /* @__PURE__ */ e(ss())({
|
|
18
|
+
name: "MediaImgRounded",
|
|
19
|
+
class: "myx3xoi",
|
|
21
20
|
propsAsIs: !0
|
|
22
|
-
}),
|
|
23
|
-
name: "
|
|
24
|
-
class: "
|
|
21
|
+
}), ns = () => h, ts = /* @__PURE__ */ e(ns())({
|
|
22
|
+
name: "MediaImgCentered",
|
|
23
|
+
class: "m1bwv0gx",
|
|
25
24
|
propsAsIs: !0
|
|
26
|
-
}),
|
|
27
|
-
name: "
|
|
28
|
-
class: "
|
|
25
|
+
}), os = () => h, is = /* @__PURE__ */ e(os())({
|
|
26
|
+
name: "MediaImgInsight",
|
|
27
|
+
class: "mntjanp",
|
|
29
28
|
propsAsIs: !0
|
|
30
|
-
}),
|
|
31
|
-
name: "
|
|
32
|
-
class: "
|
|
33
|
-
propsAsIs: !1
|
|
34
|
-
}),
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
29
|
+
}), as = /* @__PURE__ */ e("div")({
|
|
30
|
+
name: "VideoIcon",
|
|
31
|
+
class: "v1kofb47",
|
|
32
|
+
propsAsIs: !1
|
|
33
|
+
}), cs = {
|
|
34
|
+
[p.UNSET]: C,
|
|
35
|
+
[p.NONE]: C,
|
|
36
|
+
[p.ROUNDED]: es,
|
|
37
|
+
[p.CENTERED]: ts,
|
|
38
|
+
[p.TRANSPARENT]: X
|
|
40
39
|
}, N = ({
|
|
41
|
-
src:
|
|
42
|
-
imageMode:
|
|
40
|
+
src: t,
|
|
41
|
+
imageMode: o = p.UNSET,
|
|
43
42
|
withVideo: i,
|
|
44
|
-
fromInsight:
|
|
43
|
+
fromInsight: a
|
|
45
44
|
}) => {
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
if (o === p.NONE)
|
|
46
|
+
return null;
|
|
47
|
+
const n = a ? is : cs[o];
|
|
48
|
+
return /* @__PURE__ */ c(n, {
|
|
49
|
+
children: [/* @__PURE__ */ s("img", {
|
|
50
|
+
src: t,
|
|
51
51
|
alt: ""
|
|
52
|
-
}), i && /* @__PURE__ */
|
|
53
|
-
children: /* @__PURE__ */
|
|
52
|
+
}), i && /* @__PURE__ */ s(as, {
|
|
53
|
+
children: /* @__PURE__ */ s(m, {
|
|
54
54
|
name: "icon-play"
|
|
55
55
|
})
|
|
56
56
|
})]
|
|
57
57
|
});
|
|
58
|
-
},
|
|
59
|
-
name: "
|
|
60
|
-
class: "
|
|
58
|
+
}, rs = /* @__PURE__ */ e("div")({
|
|
59
|
+
name: "NotificationContent",
|
|
60
|
+
class: "nuraq9m",
|
|
61
61
|
propsAsIs: !1
|
|
62
|
-
}),
|
|
63
|
-
name: "
|
|
64
|
-
class: "
|
|
62
|
+
}), ls = /* @__PURE__ */ e("div")({
|
|
63
|
+
name: "NotificationContainer",
|
|
64
|
+
class: "ns1nzpg",
|
|
65
65
|
propsAsIs: !1
|
|
66
|
-
}),
|
|
67
|
-
name: "
|
|
68
|
-
class: "
|
|
66
|
+
}), M = /* @__PURE__ */ e("div")({
|
|
67
|
+
name: "Body",
|
|
68
|
+
class: "b1j59nzs",
|
|
69
69
|
propsAsIs: !1
|
|
70
|
-
}),
|
|
71
|
-
name: "
|
|
72
|
-
class: "
|
|
70
|
+
}), ds = /* @__PURE__ */ e("div")({
|
|
71
|
+
name: "Title",
|
|
72
|
+
class: "t9vmnpp",
|
|
73
73
|
propsAsIs: !1
|
|
74
|
-
}),
|
|
75
|
-
name: "
|
|
76
|
-
class: "
|
|
74
|
+
}), ps = /* @__PURE__ */ e("button")({
|
|
75
|
+
name: "Button",
|
|
76
|
+
class: "b14ivj5k",
|
|
77
77
|
propsAsIs: !1
|
|
78
|
-
}),
|
|
79
|
-
name: "
|
|
80
|
-
class: "
|
|
78
|
+
}), ms = () => m, us = /* @__PURE__ */ e(ms())({
|
|
79
|
+
name: "StyledChevronRight",
|
|
80
|
+
class: "s1atci8n",
|
|
81
81
|
propsAsIs: !0
|
|
82
|
-
}),
|
|
83
|
-
name: "
|
|
84
|
-
class: "
|
|
85
|
-
propsAsIs: !1
|
|
86
|
-
}),
|
|
87
|
-
name: "
|
|
88
|
-
class: "
|
|
89
|
-
propsAsIs: !1
|
|
90
|
-
}),
|
|
91
|
-
name: "
|
|
92
|
-
class: "
|
|
93
|
-
propsAsIs: !1
|
|
94
|
-
}),
|
|
95
|
-
name: "
|
|
96
|
-
class: "
|
|
97
|
-
propsAsIs: !1
|
|
98
|
-
}),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
});
|
|
122
|
-
}, _e = ({
|
|
123
|
-
title: n,
|
|
124
|
-
questionType: a,
|
|
125
|
-
questionTypeData: i
|
|
126
|
-
}) => /* @__PURE__ */ l(j, {
|
|
127
|
-
children: [/* @__PURE__ */ e(L, {
|
|
128
|
-
questionTypeData: i,
|
|
129
|
-
questionType: a,
|
|
130
|
-
questionStatus: Z.UNSET
|
|
131
|
-
}), n && /* @__PURE__ */ e(qe, {
|
|
132
|
-
children: n
|
|
133
|
-
})]
|
|
134
|
-
}), je = ({
|
|
135
|
-
tweet: n
|
|
136
|
-
}) => n ? /* @__PURE__ */ e(j, {
|
|
137
|
-
children: /* @__PURE__ */ e(Ee, {
|
|
138
|
-
...n,
|
|
139
|
-
controlVideo: () => {
|
|
82
|
+
}), Is = /* @__PURE__ */ e("div")({
|
|
83
|
+
name: "QuoteWrap",
|
|
84
|
+
class: "q4w8jgs",
|
|
85
|
+
propsAsIs: !1
|
|
86
|
+
}), hs = /* @__PURE__ */ e("blockquote")({
|
|
87
|
+
name: "Quote",
|
|
88
|
+
class: "qaa0kez",
|
|
89
|
+
propsAsIs: !1
|
|
90
|
+
}), vs = /* @__PURE__ */ e("div")({
|
|
91
|
+
name: "Body",
|
|
92
|
+
class: "b1wvd52w",
|
|
93
|
+
propsAsIs: !1
|
|
94
|
+
}), As = /* @__PURE__ */ e("div")({
|
|
95
|
+
name: "Container",
|
|
96
|
+
class: "ccvukea",
|
|
97
|
+
propsAsIs: !1
|
|
98
|
+
}), $s = ({ image: t, tweet: o, account: i, accountVerified: a, body: n, title: l }) => {
|
|
99
|
+
var d;
|
|
100
|
+
return /* @__PURE__ */ c(As, { children: [
|
|
101
|
+
l && /* @__PURE__ */ s(Is, { children: /* @__PURE__ */ s(hs, { children: l }) }),
|
|
102
|
+
/* @__PURE__ */ s(
|
|
103
|
+
L,
|
|
104
|
+
{
|
|
105
|
+
image: t,
|
|
106
|
+
name: (d = o == null ? void 0 : o.meta) == null ? void 0 : d.accountName,
|
|
107
|
+
userName: i,
|
|
108
|
+
verified: a,
|
|
109
|
+
createdTweet: o == null ? void 0 : o.date
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ s(vs, { children: z(n) })
|
|
113
|
+
] });
|
|
114
|
+
}, ys = ({ title: t, questionType: o, questionTypeData: i }) => /* @__PURE__ */ c(M, { children: [
|
|
115
|
+
/* @__PURE__ */ s(
|
|
116
|
+
B,
|
|
117
|
+
{
|
|
118
|
+
questionTypeData: i,
|
|
119
|
+
questionType: o,
|
|
120
|
+
questionStatus: Y.UNSET
|
|
140
121
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}), a === f.TWEET ? /* @__PURE__ */ e(je, {
|
|
176
|
-
tweet: t
|
|
177
|
-
}) : /* @__PURE__ */ e(_e, {
|
|
178
|
-
questionTypeData: p,
|
|
179
|
-
questionType: a,
|
|
180
|
-
title: v
|
|
181
|
-
}), /* @__PURE__ */ e(we, {
|
|
182
|
-
name: "inapp-button",
|
|
183
|
-
children: r || "Open"
|
|
184
|
-
}), /* @__PURE__ */ e(Ne, {
|
|
185
|
-
name: "chevronRight"
|
|
186
|
-
})]
|
|
187
|
-
})
|
|
188
|
-
});
|
|
189
|
-
}, Oe = /* @__PURE__ */ s("div")({
|
|
190
|
-
name: "ht",
|
|
191
|
-
class: "hjq7nef",
|
|
192
|
-
propsAsIs: !1
|
|
193
|
-
}), k = /* @__PURE__ */ s("img")({
|
|
194
|
-
name: "S",
|
|
195
|
-
class: "s1wpz4bk",
|
|
196
|
-
propsAsIs: !1
|
|
197
|
-
}), Ce = /* @__PURE__ */ s("div")({
|
|
198
|
-
name: "mt",
|
|
199
|
-
class: "m9a4mjd",
|
|
200
|
-
propsAsIs: !1
|
|
201
|
-
}), De = /* @__PURE__ */ s(ce())({
|
|
202
|
-
name: "ft",
|
|
203
|
-
class: "f1hieehz",
|
|
122
|
+
),
|
|
123
|
+
t && /* @__PURE__ */ s(ds, { children: t })
|
|
124
|
+
] }), fs = ({ tweet: t }) => t ? /* @__PURE__ */ s(M, { children: /* @__PURE__ */ s($s, { ...t, controlVideo: () => {
|
|
125
|
+
} }) }) : null, gs = ({ action: t, questionType: o, inApp: i, insight: a, tweet: n }) => {
|
|
126
|
+
var l;
|
|
127
|
+
const d = O[o], r = R[o];
|
|
128
|
+
if (!d || !i || !i.notification)
|
|
129
|
+
return null;
|
|
130
|
+
const { title: v, image: A, imageMode: f } = i.notification;
|
|
131
|
+
let u = A;
|
|
132
|
+
o === I.TWEET && n != null && n.tweetMedia && (u = n.tweetMedia.image), f === p.NONE && (u = "");
|
|
133
|
+
const $ = i.useMediaFromContent && (a == null ? void 0 : a.image), g = o === I.TWEET && ((l = n == null ? void 0 : n.tweetMedia) == null ? void 0 : l.video) || o === I.FACTOID && (a == null ? void 0 : a.video);
|
|
134
|
+
return /* @__PURE__ */ s(ls, { className: "SL_InApp", onClick: t, children: /* @__PURE__ */ c(rs, { style: u ? {} : { paddingLeft: "1.5rem" }, children: [
|
|
135
|
+
u && !$ && /* @__PURE__ */ s(N, { src: u, imageMode: f, withVideo: !!g }),
|
|
136
|
+
$ && /* @__PURE__ */ s(N, { src: $, fromInsight: !0, withVideo: !!g }),
|
|
137
|
+
o === I.TWEET ? /* @__PURE__ */ s(fs, { tweet: n }) : /* @__PURE__ */ s(ys, { questionTypeData: d, questionType: o, title: v }),
|
|
138
|
+
/* @__PURE__ */ s(ps, { name: "inapp-button", children: r || "Open" }),
|
|
139
|
+
/* @__PURE__ */ s(us, { name: "chevronRight" })
|
|
140
|
+
] }) });
|
|
141
|
+
}, Ts = /* @__PURE__ */ e("div")({
|
|
142
|
+
name: "NotificationContainer",
|
|
143
|
+
class: "n11jcrxe",
|
|
144
|
+
propsAsIs: !1
|
|
145
|
+
}), k = /* @__PURE__ */ e("img")({
|
|
146
|
+
name: "Icon",
|
|
147
|
+
class: "i1vmpt6u",
|
|
148
|
+
propsAsIs: !1
|
|
149
|
+
}), Cs = /* @__PURE__ */ e("div")({
|
|
150
|
+
name: "IconContainer",
|
|
151
|
+
class: "i180665s",
|
|
152
|
+
propsAsIs: !1
|
|
153
|
+
}), Ns = () => m, ks = /* @__PURE__ */ e(Ns())({
|
|
154
|
+
name: "TitleIcon",
|
|
155
|
+
class: "t16zzzei",
|
|
204
156
|
propsAsIs: !0
|
|
205
|
-
}),
|
|
206
|
-
name: "
|
|
207
|
-
class: "
|
|
157
|
+
}), bs = () => P, ws = /* @__PURE__ */ e(bs())({
|
|
158
|
+
name: "Close",
|
|
159
|
+
class: "c1sur0q2",
|
|
208
160
|
propsAsIs: !0
|
|
209
|
-
}),
|
|
210
|
-
name: "
|
|
211
|
-
class: "
|
|
161
|
+
}), Ss = /* @__PURE__ */ e("div")({
|
|
162
|
+
name: "Body",
|
|
163
|
+
class: "bai9j52",
|
|
212
164
|
propsAsIs: !1
|
|
213
|
-
}),
|
|
214
|
-
name: "
|
|
215
|
-
class: "
|
|
165
|
+
}), qs = /* @__PURE__ */ e("div")({
|
|
166
|
+
name: "Title",
|
|
167
|
+
class: "t1bnt25p",
|
|
216
168
|
propsAsIs: !1
|
|
217
|
-
}),
|
|
218
|
-
name: "
|
|
219
|
-
class: "
|
|
169
|
+
}), Es = /* @__PURE__ */ e("div")({
|
|
170
|
+
name: "Description",
|
|
171
|
+
class: "dmixjec",
|
|
220
172
|
propsAsIs: !1
|
|
221
|
-
}),
|
|
222
|
-
name: "
|
|
223
|
-
class: "
|
|
173
|
+
}), Ms = /* @__PURE__ */ e("button")({
|
|
174
|
+
name: "Button",
|
|
175
|
+
class: "b1ubkw1q",
|
|
224
176
|
propsAsIs: !1
|
|
225
|
-
}),
|
|
226
|
-
open:
|
|
227
|
-
close:
|
|
177
|
+
}), js = ({
|
|
178
|
+
open: t,
|
|
179
|
+
close: o,
|
|
228
180
|
...i
|
|
229
181
|
}) => {
|
|
230
|
-
var
|
|
231
|
-
return /* @__PURE__ */
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}),
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
children:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
182
|
+
var a, n;
|
|
183
|
+
return /* @__PURE__ */ c(
|
|
184
|
+
Ts,
|
|
185
|
+
{
|
|
186
|
+
onClick: () => {
|
|
187
|
+
t == null || t(), i && (i.instantOpen = !0);
|
|
188
|
+
},
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ c(Cs, { children: [
|
|
191
|
+
/* @__PURE__ */ s(k, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
|
|
192
|
+
/* @__PURE__ */ s(
|
|
193
|
+
k,
|
|
194
|
+
{
|
|
195
|
+
className: "on-dark",
|
|
196
|
+
src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification-dark.png"
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
] }),
|
|
200
|
+
/* @__PURE__ */ c(Ss, { children: [
|
|
201
|
+
/* @__PURE__ */ c(qs, { children: [
|
|
202
|
+
/* @__PURE__ */ s(ks, { name: "icon-trophy-solid" }),
|
|
203
|
+
(a = i == null ? void 0 : i.titleCard) == null ? void 0 : a.title
|
|
204
|
+
] }),
|
|
205
|
+
/* @__PURE__ */ c(Es, { children: [
|
|
206
|
+
/* @__PURE__ */ s("span", { children: (n = i == null ? void 0 : i.titleCard) == null ? void 0 : n.subtitle }),
|
|
207
|
+
/* @__PURE__ */ s(Ms, { name: "inapp-button", children: "Play Now" })
|
|
208
|
+
] })
|
|
209
|
+
] }),
|
|
210
|
+
/* @__PURE__ */ s(
|
|
211
|
+
ws,
|
|
212
|
+
{
|
|
213
|
+
close: (l) => {
|
|
214
|
+
l == null || l.stopPropagation(), o == null || o();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
)
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
}, xs = /* @__PURE__ */ e("div")({
|
|
222
|
+
name: "Container",
|
|
223
|
+
class: "cef8huz",
|
|
224
|
+
propsAsIs: !1
|
|
225
|
+
}), Ds = () => m, Ls = /* @__PURE__ */ e(Ds())({
|
|
226
|
+
name: "CheckIcon",
|
|
227
|
+
class: "c1mo15kk",
|
|
269
228
|
propsAsIs: !0
|
|
270
|
-
}),
|
|
271
|
-
name: "
|
|
272
|
-
class: "
|
|
229
|
+
}), zs = () => m, Bs = /* @__PURE__ */ e(zs())({
|
|
230
|
+
name: "PredictionIcon",
|
|
231
|
+
class: "p16zkqnm",
|
|
273
232
|
propsAsIs: !0
|
|
274
|
-
}),
|
|
275
|
-
name: "
|
|
276
|
-
class: "
|
|
233
|
+
}), Os = /* @__PURE__ */ e("div")({
|
|
234
|
+
name: "PredictionIconContainer",
|
|
235
|
+
class: "pjszi7a",
|
|
277
236
|
propsAsIs: !1
|
|
278
|
-
}),
|
|
279
|
-
name: "
|
|
280
|
-
class: "
|
|
237
|
+
}), Rs = /* @__PURE__ */ e("div")({
|
|
238
|
+
name: "BodyContainer",
|
|
239
|
+
class: "bftbmo3",
|
|
281
240
|
propsAsIs: !1
|
|
282
|
-
}),
|
|
283
|
-
name: "
|
|
284
|
-
class: "
|
|
241
|
+
}), Ps = /* @__PURE__ */ e("div")({
|
|
242
|
+
name: "Body",
|
|
243
|
+
class: "barrbyu",
|
|
285
244
|
propsAsIs: !1
|
|
286
|
-
}),
|
|
287
|
-
name: "
|
|
288
|
-
class: "
|
|
245
|
+
}), Qs = /* @__PURE__ */ e("div")({
|
|
246
|
+
name: "Subtitle",
|
|
247
|
+
class: "sz7237i",
|
|
289
248
|
propsAsIs: !1
|
|
290
|
-
}),
|
|
291
|
-
step:
|
|
292
|
-
children:
|
|
249
|
+
}), Us = ({
|
|
250
|
+
step: t,
|
|
251
|
+
children: o,
|
|
293
252
|
answer: i,
|
|
294
|
-
state:
|
|
295
|
-
}) => /* @__PURE__ */
|
|
296
|
-
children: [/* @__PURE__ */
|
|
297
|
-
children: /* @__PURE__ */
|
|
253
|
+
state: a = "pending"
|
|
254
|
+
}) => /* @__PURE__ */ c(xs, {
|
|
255
|
+
children: [/* @__PURE__ */ s(Os, {
|
|
256
|
+
children: /* @__PURE__ */ s(Bs, {
|
|
298
257
|
name: "icon-prediction"
|
|
299
258
|
})
|
|
300
|
-
}), /* @__PURE__ */
|
|
301
|
-
children: /* @__PURE__ */
|
|
302
|
-
children:
|
|
303
|
-
},
|
|
304
|
-
}), /* @__PURE__ */
|
|
305
|
-
className:
|
|
306
|
-
children: /* @__PURE__ */
|
|
307
|
-
children: [/* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ s(Rs, {
|
|
260
|
+
children: /* @__PURE__ */ s(Ps, {
|
|
261
|
+
children: o
|
|
262
|
+
}, t)
|
|
263
|
+
}), /* @__PURE__ */ s(Qs, {
|
|
264
|
+
className: a,
|
|
265
|
+
children: /* @__PURE__ */ c("div", {
|
|
266
|
+
children: [/* @__PURE__ */ s(Ls, {
|
|
308
267
|
name: "icon-check"
|
|
309
268
|
}), "Your Pick: ", i]
|
|
310
269
|
})
|
|
311
270
|
})]
|
|
312
|
-
}),
|
|
313
|
-
name: "
|
|
314
|
-
class: "
|
|
271
|
+
}), Vs = /* @__PURE__ */ e("div")({
|
|
272
|
+
name: "Container",
|
|
273
|
+
class: "ckyzolp",
|
|
315
274
|
propsAsIs: !1
|
|
316
|
-
}),
|
|
317
|
-
name: "
|
|
318
|
-
class: "
|
|
275
|
+
}), y = /* @__PURE__ */ e("div")({
|
|
276
|
+
name: "Line",
|
|
277
|
+
class: "l16t1zr7",
|
|
319
278
|
propsAsIs: !1
|
|
320
|
-
}),
|
|
321
|
-
name: "
|
|
322
|
-
class: "
|
|
279
|
+
}), Fs = () => y, Ws = /* @__PURE__ */ e(Fs())({
|
|
280
|
+
name: "Line1",
|
|
281
|
+
class: "le78kvg",
|
|
323
282
|
propsAsIs: !0
|
|
324
|
-
}),
|
|
325
|
-
name: "
|
|
326
|
-
class: "
|
|
283
|
+
}), Gs = () => y, Ks = /* @__PURE__ */ e(Gs())({
|
|
284
|
+
name: "Line2",
|
|
285
|
+
class: "l1o7966d",
|
|
327
286
|
propsAsIs: !0
|
|
328
|
-
}),
|
|
329
|
-
name: "
|
|
330
|
-
class: "
|
|
287
|
+
}), Ys = () => y, _s = /* @__PURE__ */ e(Ys())({
|
|
288
|
+
name: "Line3",
|
|
289
|
+
class: "lu9lyxq",
|
|
331
290
|
propsAsIs: !0
|
|
332
|
-
}),
|
|
333
|
-
children: [/* @__PURE__ */
|
|
334
|
-
children: /* @__PURE__ */
|
|
335
|
-
}), /* @__PURE__ */
|
|
336
|
-
children: /* @__PURE__ */
|
|
337
|
-
}), /* @__PURE__ */
|
|
338
|
-
children: /* @__PURE__ */
|
|
291
|
+
}), Hs = () => /* @__PURE__ */ c(Vs, {
|
|
292
|
+
children: [/* @__PURE__ */ s(Ws, {
|
|
293
|
+
children: /* @__PURE__ */ s("div", {})
|
|
294
|
+
}), /* @__PURE__ */ s(Ks, {
|
|
295
|
+
children: /* @__PURE__ */ s("div", {})
|
|
296
|
+
}), /* @__PURE__ */ s(_s, {
|
|
297
|
+
children: /* @__PURE__ */ s("div", {})
|
|
339
298
|
})]
|
|
340
|
-
}),
|
|
341
|
-
name: "
|
|
342
|
-
class: "
|
|
299
|
+
}), Js = /* @__PURE__ */ e("div")({
|
|
300
|
+
name: "Container",
|
|
301
|
+
class: "c10jy6zf",
|
|
343
302
|
propsAsIs: !1
|
|
344
|
-
}),
|
|
345
|
-
name: "
|
|
346
|
-
class: "
|
|
303
|
+
}), Xs = () => m, Zs = /* @__PURE__ */ e(Xs())({
|
|
304
|
+
name: "CheckIcon",
|
|
305
|
+
class: "c1c7scay",
|
|
347
306
|
propsAsIs: !0
|
|
348
|
-
}),
|
|
349
|
-
children: [/* @__PURE__ */
|
|
307
|
+
}), se = () => /* @__PURE__ */ c(Js, {
|
|
308
|
+
children: [/* @__PURE__ */ s(Zs, {
|
|
350
309
|
name: "icon-check"
|
|
351
310
|
}), " Prediction results are in!"]
|
|
352
|
-
}),
|
|
353
|
-
name: "
|
|
354
|
-
class: "
|
|
355
|
-
propsAsIs: !1
|
|
356
|
-
}),
|
|
357
|
-
name: "
|
|
358
|
-
class: "
|
|
359
|
-
propsAsIs: !1
|
|
360
|
-
}),
|
|
361
|
-
name: "
|
|
362
|
-
class: "
|
|
363
|
-
propsAsIs: !1
|
|
364
|
-
}),
|
|
365
|
-
title:
|
|
366
|
-
}) => /* @__PURE__ */
|
|
367
|
-
children: [/* @__PURE__ */
|
|
311
|
+
}), ee = /* @__PURE__ */ e("div")({
|
|
312
|
+
name: "Container",
|
|
313
|
+
class: "cf6k2yy",
|
|
314
|
+
propsAsIs: !1
|
|
315
|
+
}), ne = /* @__PURE__ */ e("div")({
|
|
316
|
+
name: "Caption",
|
|
317
|
+
class: "c1c8xjus",
|
|
318
|
+
propsAsIs: !1
|
|
319
|
+
}), te = /* @__PURE__ */ e("div")({
|
|
320
|
+
name: "Title",
|
|
321
|
+
class: "t1d1uekn",
|
|
322
|
+
propsAsIs: !1
|
|
323
|
+
}), oe = ({
|
|
324
|
+
title: t
|
|
325
|
+
}) => /* @__PURE__ */ c(ee, {
|
|
326
|
+
children: [/* @__PURE__ */ s(ne, {
|
|
368
327
|
children: "Results for"
|
|
369
|
-
}), /* @__PURE__ */
|
|
370
|
-
children:
|
|
328
|
+
}), /* @__PURE__ */ s(te, {
|
|
329
|
+
children: t
|
|
371
330
|
})]
|
|
372
|
-
}),
|
|
373
|
-
name: "
|
|
374
|
-
class: "
|
|
331
|
+
}), j = /* @__PURE__ */ e("div")({
|
|
332
|
+
name: "Container",
|
|
333
|
+
class: "c181a1as",
|
|
375
334
|
propsAsIs: !1
|
|
376
|
-
}),
|
|
377
|
-
name: "
|
|
378
|
-
class: "
|
|
335
|
+
}), x = /* @__PURE__ */ e("div")({
|
|
336
|
+
name: "Title",
|
|
337
|
+
class: "t1cduox6",
|
|
379
338
|
propsAsIs: !1
|
|
380
|
-
}),
|
|
381
|
-
name: "
|
|
382
|
-
class: "
|
|
339
|
+
}), ie = () => m, D = /* @__PURE__ */ e(ie())({
|
|
340
|
+
name: "CorrectIcon",
|
|
341
|
+
class: "c1onrv6j",
|
|
383
342
|
propsAsIs: !0
|
|
384
|
-
}),
|
|
385
|
-
name: "
|
|
386
|
-
class: "
|
|
343
|
+
}), ae = () => D, ce = /* @__PURE__ */ e(ae())({
|
|
344
|
+
name: "InCorrectIcon",
|
|
345
|
+
class: "i17n9o7e",
|
|
387
346
|
propsAsIs: !0
|
|
388
|
-
}),
|
|
389
|
-
children: [/* @__PURE__ */
|
|
390
|
-
children: ["Congratulations!", /* @__PURE__ */
|
|
391
|
-
}), /* @__PURE__ */
|
|
347
|
+
}), re = () => /* @__PURE__ */ c(j, {
|
|
348
|
+
children: [/* @__PURE__ */ c(x, {
|
|
349
|
+
children: ["Congratulations!", /* @__PURE__ */ s("br", {}), "You answered correctly."]
|
|
350
|
+
}), /* @__PURE__ */ s(D, {
|
|
392
351
|
name: "icon-check"
|
|
393
352
|
})]
|
|
394
|
-
}),
|
|
395
|
-
title:
|
|
396
|
-
}) => /* @__PURE__ */
|
|
397
|
-
children: [/* @__PURE__ */
|
|
398
|
-
children: ["Better luck next time!", /* @__PURE__ */
|
|
399
|
-
}), /* @__PURE__ */
|
|
353
|
+
}), le = ({
|
|
354
|
+
title: t
|
|
355
|
+
}) => /* @__PURE__ */ c(j, {
|
|
356
|
+
children: [/* @__PURE__ */ c(x, {
|
|
357
|
+
children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", t]
|
|
358
|
+
}), /* @__PURE__ */ s(ce, {
|
|
400
359
|
name: "icon-cross"
|
|
401
360
|
})]
|
|
402
|
-
}),
|
|
403
|
-
name: "
|
|
404
|
-
class: "
|
|
361
|
+
}), de = /* @__PURE__ */ e("div")({
|
|
362
|
+
name: "Container",
|
|
363
|
+
class: "cnxgcs2",
|
|
405
364
|
propsAsIs: !1
|
|
406
|
-
}),
|
|
407
|
-
name: "
|
|
408
|
-
class: "
|
|
365
|
+
}), pe = /* @__PURE__ */ e("div")({
|
|
366
|
+
name: "Title",
|
|
367
|
+
class: "t903f8n",
|
|
409
368
|
propsAsIs: !1
|
|
410
|
-
}),
|
|
411
|
-
name: "
|
|
412
|
-
class: "
|
|
369
|
+
}), me = () => m, ue = /* @__PURE__ */ e(me())({
|
|
370
|
+
name: "CheckIcon",
|
|
371
|
+
class: "ceyu3qj",
|
|
413
372
|
propsAsIs: !0
|
|
414
|
-
}),
|
|
415
|
-
points:
|
|
416
|
-
}) => /* @__PURE__ */
|
|
417
|
-
children: [/* @__PURE__ */
|
|
418
|
-
children: ["You won ", /* @__PURE__ */
|
|
373
|
+
}), Ie = ({
|
|
374
|
+
points: t
|
|
375
|
+
}) => /* @__PURE__ */ c(de, {
|
|
376
|
+
children: [/* @__PURE__ */ c(pe, {
|
|
377
|
+
children: ["You won ", /* @__PURE__ */ s(Q, {
|
|
419
378
|
delay: 0.5,
|
|
420
379
|
prefix: "+",
|
|
421
380
|
suffix: " points",
|
|
422
|
-
value:
|
|
381
|
+
value: t
|
|
423
382
|
})]
|
|
424
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ s(ue, {
|
|
425
384
|
name: "icon-trophy-solid"
|
|
426
385
|
})]
|
|
427
|
-
}),
|
|
428
|
-
name: "
|
|
429
|
-
class: "
|
|
386
|
+
}), b = /* @__PURE__ */ e("div")({
|
|
387
|
+
name: "Container",
|
|
388
|
+
class: "cq3agu2",
|
|
430
389
|
propsAsIs: !1
|
|
431
|
-
}),
|
|
432
|
-
name: "
|
|
433
|
-
class: "
|
|
390
|
+
}), w = /* @__PURE__ */ e("div")({
|
|
391
|
+
name: "Body",
|
|
392
|
+
class: "b16qj0do",
|
|
434
393
|
propsAsIs: !1
|
|
435
|
-
}),
|
|
394
|
+
}), S = {
|
|
436
395
|
1: 3e3,
|
|
437
396
|
2: 4e3,
|
|
438
397
|
3: 4e3,
|
|
439
398
|
4: 4e3
|
|
440
|
-
},
|
|
441
|
-
|
|
442
|
-
action: a,
|
|
443
|
-
setStep: i,
|
|
444
|
-
votedAnswer: o,
|
|
445
|
-
correct: t,
|
|
446
|
-
correctAnswerTitle: c,
|
|
447
|
-
questionTitle: p,
|
|
448
|
-
step: r
|
|
449
|
-
}) => {
|
|
450
|
-
if (_(() => {
|
|
399
|
+
}, he = ({ close: t, action: o, setStep: i, votedAnswer: a, correct: n, correctAnswerTitle: l, questionTitle: d, step: r }) => {
|
|
400
|
+
if (E(() => {
|
|
451
401
|
if (i) {
|
|
452
|
-
const
|
|
453
|
-
|
|
454
|
-
},
|
|
402
|
+
const A = setTimeout(() => {
|
|
403
|
+
S[r + 1] && (n || r < 3) ? i(r + 1) : t == null || t();
|
|
404
|
+
}, S[r]);
|
|
455
405
|
return () => {
|
|
456
|
-
|
|
406
|
+
A && clearTimeout(A);
|
|
457
407
|
};
|
|
458
408
|
}
|
|
459
409
|
return () => {
|
|
460
410
|
};
|
|
461
|
-
}, [i, r,
|
|
462
|
-
children: /* @__PURE__ */
|
|
463
|
-
children: /* @__PURE__ */ e(ns, {})
|
|
464
|
-
})
|
|
465
|
-
});
|
|
411
|
+
}, [i, r, t, n]), r === 1)
|
|
412
|
+
return /* @__PURE__ */ s(b, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(se, {}) }) });
|
|
466
413
|
let v = "pending";
|
|
467
|
-
return (r === 3 || r === 4) && (v =
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
setStep: r,
|
|
501
|
-
step: p,
|
|
502
|
-
title: ""
|
|
503
|
-
});
|
|
504
|
-
}, Is = /* @__PURE__ */ s("div")({
|
|
505
|
-
name: "Ht",
|
|
506
|
-
class: "hvynqnf",
|
|
507
|
-
propsAsIs: !1
|
|
508
|
-
}), As = (n) => /* @__PURE__ */ e(Is, {
|
|
509
|
-
children: /* @__PURE__ */ e(vs, {
|
|
510
|
-
...n
|
|
511
|
-
})
|
|
512
|
-
}), gs = ({
|
|
513
|
-
sdk: n
|
|
514
|
-
}) => {
|
|
515
|
-
const [a] = E(n.getNotificationsStore()), i = D(a), o = n.getFeature(Y.GAMES), t = H(() => n.getActiveNotification(), [n, i]);
|
|
516
|
-
return _(() => {
|
|
517
|
-
t && M.emit("notification", {
|
|
414
|
+
return (r === 3 || r === 4) && (v = n ? "correct" : "incorrect"), /* @__PURE__ */ s(b, { onClick: () => o == null ? void 0 : o(), children: /* @__PURE__ */ c(w, { children: [
|
|
415
|
+
r !== 1 && /* @__PURE__ */ s(Hs, {}, r),
|
|
416
|
+
/* @__PURE__ */ c(Us, { state: v, step: r, answer: (a == null ? void 0 : a.title) || "unknown", children: [
|
|
417
|
+
r === 2 && /* @__PURE__ */ s(oe, { title: d || "unknown" }),
|
|
418
|
+
r === 3 && n && /* @__PURE__ */ s(re, {}),
|
|
419
|
+
r === 3 && !n && /* @__PURE__ */ s(le, { title: l || "unknown" }),
|
|
420
|
+
r === 4 && /* @__PURE__ */ s(Ie, { points: (a == null ? void 0 : a.points) || 0 })
|
|
421
|
+
] })
|
|
422
|
+
] }) });
|
|
423
|
+
}, ve = ({ close: t, action: o, votedAnswer: i, correct: a, correctAnswerTitle: n, questionTitle: l }) => {
|
|
424
|
+
const [d, r] = q(1);
|
|
425
|
+
return /* @__PURE__ */ s(
|
|
426
|
+
he,
|
|
427
|
+
{
|
|
428
|
+
close: t,
|
|
429
|
+
action: o,
|
|
430
|
+
votedAnswer: i,
|
|
431
|
+
correct: a,
|
|
432
|
+
correctAnswerTitle: n,
|
|
433
|
+
questionTitle: l,
|
|
434
|
+
setStep: r,
|
|
435
|
+
step: d,
|
|
436
|
+
title: ""
|
|
437
|
+
}
|
|
438
|
+
);
|
|
439
|
+
}, Ae = /* @__PURE__ */ e("div")({
|
|
440
|
+
name: "NotificationContainer",
|
|
441
|
+
class: "n1i4h28u",
|
|
442
|
+
propsAsIs: !1
|
|
443
|
+
}), $e = (t) => /* @__PURE__ */ s(Ae, { children: /* @__PURE__ */ s(ve, { ...t }) }), ye = ({ sdk: t }) => {
|
|
444
|
+
const [o] = q(t.getNotificationsStore()), i = U(o), a = t.getFeature(_.GAMES), n = H(() => t.getActiveNotification(), [t, i]);
|
|
445
|
+
return E(() => {
|
|
446
|
+
n && V.emit("notification", {
|
|
518
447
|
action: "rendered",
|
|
519
448
|
payload: {
|
|
520
|
-
questionId:
|
|
521
|
-
questionType:
|
|
449
|
+
questionId: n.data.questionId,
|
|
450
|
+
questionType: n.data.questionType
|
|
522
451
|
}
|
|
523
452
|
});
|
|
524
|
-
}, [
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
});
|
|
536
|
-
}, ks = ({ theme: n }) => {
|
|
537
|
-
const a = K(), i = W(), o = B();
|
|
538
|
-
return a && o.appNotification ? o.app ? null : /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(G, { customTheme: n ?? i.theme, themeMode: i.themeMode, children: /* @__PURE__ */ e(gs, { sdk: a }) }) }) : null;
|
|
453
|
+
}, [n]), n && n.type === T.QUESTION_RESOLVED ? n.data.question && n.data.questionType === I.PREDICTION ? /* @__PURE__ */ s(
|
|
454
|
+
$e,
|
|
455
|
+
{
|
|
456
|
+
action: n.action,
|
|
457
|
+
close: n.close,
|
|
458
|
+
...n.data.question
|
|
459
|
+
}
|
|
460
|
+
) : null : n && n.type === T.ONBOARDING ? n.data.onboarding ? /* @__PURE__ */ s(js, { open: a == null ? void 0 : a.openFeature, close: n.close, ...n.data.onboarding }) : null : n && /* @__PURE__ */ s(gs, { ...n.data, action: n.action });
|
|
461
|
+
}, Ne = ({ theme: t }) => {
|
|
462
|
+
const o = F(), i = W(), a = G();
|
|
463
|
+
return o && a.appNotification ? a.app ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(K, { customTheme: t ?? i.theme, themeMode: i.themeMode, children: /* @__PURE__ */ s(ye, { sdk: o }) }) }) : null;
|
|
539
464
|
};
|
|
540
465
|
export {
|
|
541
|
-
|
|
542
|
-
|
|
466
|
+
Ne as StreamLayerSDKNotification,
|
|
467
|
+
ye as StreamLayerSDKNotificationUI
|
|
543
468
|
};
|