@streamlayer/react 1.18.5 → 1.18.7
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/cjs/advertisement.js +1 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/provider.js +20 -20
- package/lib/cjs/useStreamLayerApp2.js +1 -1
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/provider.js +19 -19
- package/lib/classic/cjs/useStreamLayerApp2.js +1 -1
- package/lib/classic/es/advertisement.js +1 -1
- package/lib/classic/es/notification.js +174 -164
- package/lib/classic/es/provider.js +6032 -6140
- package/lib/classic/es/useStreamLayerApp2.js +1 -1
- package/lib/dist/cjs/masters.js +37 -37
- package/lib/dist/es/masters.js +5036 -5121
- package/lib/dist/style.css +1 -1
- package/lib/es/notification.js +168 -158
- package/lib/es/provider.js +4642 -4727
- package/lib/es/useStreamLayerApp2.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +14 -14
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { s as n, B as A, D as As, q as
|
|
1
|
+
import { s as n, B as A, D as As, q as Is, x as _, r as K, t as hs, E as $s, O as x, y as gs, d as ws, a as ys, e as Ts, N as O, u as bs, b as Cs, p as fs, h as ks } from "./provider.js";
|
|
2
2
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { useState as w, useRef as
|
|
4
|
-
import { l as v, Q as
|
|
3
|
+
import { useState as w, useRef as G, useEffect as y, useCallback as Ns, useMemo as qs } from "react";
|
|
4
|
+
import { l as v, Q as h, m as H, r as L, S as Es, A as R } from "./useStreamLayerApp2.js";
|
|
5
5
|
const b = /* @__PURE__ */ n("div")({
|
|
6
6
|
name: "Media",
|
|
7
7
|
class: "m1bcvojl",
|
|
8
8
|
propsAsIs: !1
|
|
9
|
-
}),
|
|
9
|
+
}), Ls = () => b, Ss = /* @__PURE__ */ n(Ls())({
|
|
10
10
|
name: "MediaImgBottom",
|
|
11
11
|
class: "m58gin0",
|
|
12
12
|
propsAsIs: !0
|
|
13
|
-
}), xs = () => b,
|
|
13
|
+
}), xs = () => b, E = /* @__PURE__ */ n(xs())({
|
|
14
14
|
name: "MediaImgSolid",
|
|
15
15
|
class: "m1atm8do",
|
|
16
16
|
propsAsIs: !0
|
|
@@ -31,13 +31,13 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
31
31
|
class: "v1kofb47",
|
|
32
32
|
propsAsIs: !1
|
|
33
33
|
}), Us = {
|
|
34
|
-
[v.UNSET]:
|
|
35
|
-
[v.NONE]:
|
|
34
|
+
[v.UNSET]: E,
|
|
35
|
+
[v.NONE]: E,
|
|
36
36
|
[v.ROUNDED]: Ms,
|
|
37
37
|
[v.CENTERED]: Rs,
|
|
38
|
-
[v.TRANSPARENT]:
|
|
39
|
-
[v.SOLID]:
|
|
40
|
-
},
|
|
38
|
+
[v.TRANSPARENT]: Ss,
|
|
39
|
+
[v.SOLID]: E
|
|
40
|
+
}, B = ({
|
|
41
41
|
src: e,
|
|
42
42
|
imageMode: i = v.UNSET,
|
|
43
43
|
withVideo: t,
|
|
@@ -64,7 +64,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
64
64
|
name: "NotificationContainer",
|
|
65
65
|
class: "ns1nzpg",
|
|
66
66
|
propsAsIs: !1
|
|
67
|
-
}),
|
|
67
|
+
}), J = /* @__PURE__ */ n("div")({
|
|
68
68
|
name: "Body",
|
|
69
69
|
class: "b1j59nzs",
|
|
70
70
|
propsAsIs: !1
|
|
@@ -110,38 +110,38 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
110
110
|
createdTweet: i == null ? void 0 : i.date
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
/* @__PURE__ */ s(Gs, { children:
|
|
113
|
+
/* @__PURE__ */ s(Gs, { children: Is(a) })
|
|
114
114
|
] });
|
|
115
|
-
}, Xs = ({ title: e, questionType: i, questionTypeData: t }) => /* @__PURE__ */ l(
|
|
115
|
+
}, Xs = ({ title: e, questionType: i, questionTypeData: t }) => /* @__PURE__ */ l(J, { children: [
|
|
116
116
|
/* @__PURE__ */ s(
|
|
117
|
-
|
|
117
|
+
_,
|
|
118
118
|
{
|
|
119
119
|
questionTypeData: t,
|
|
120
120
|
questionType: i,
|
|
121
|
-
questionStatus:
|
|
121
|
+
questionStatus: H.UNSET
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
124
|
e && /* @__PURE__ */ s(Fs, { children: e })
|
|
125
|
-
] }), Zs = ({ tweet: e }) => e ? /* @__PURE__ */ s(
|
|
125
|
+
] }), Zs = ({ tweet: e }) => e ? /* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(Js, { ...e, controlVideo: () => {
|
|
126
126
|
} }) }) : null, se = ({ action: e, questionType: i, inApp: t, insight: o, tweet: a }) => {
|
|
127
127
|
var p;
|
|
128
|
-
const d =
|
|
128
|
+
const d = K[i], r = hs[i];
|
|
129
129
|
if (!d || !t || !t.notification)
|
|
130
130
|
return null;
|
|
131
|
-
const { title:
|
|
132
|
-
let
|
|
133
|
-
i ===
|
|
134
|
-
const g = t.useMediaFromContent && (o == null ? void 0 : o.image), c = i ===
|
|
135
|
-
return /* @__PURE__ */ s(Vs, { "data-a": "intr", className: "SL_InApp", onClick: e, children: /* @__PURE__ */ l(zs, { style:
|
|
136
|
-
|
|
137
|
-
g && /* @__PURE__ */ s(
|
|
138
|
-
i ===
|
|
131
|
+
const { title: u, image: m, imageMode: $ } = t.notification;
|
|
132
|
+
let I = m;
|
|
133
|
+
i === h.TWEET && a != null && a.tweetMedia && (I = a.tweetMedia.image), $ === v.NONE && (I = "");
|
|
134
|
+
const g = t.useMediaFromContent && (o == null ? void 0 : o.image), c = i === h.TWEET && ((p = a == null ? void 0 : a.tweetMedia) == null ? void 0 : p.video) || i === h.FACTOID && (o == null ? void 0 : o.video);
|
|
135
|
+
return /* @__PURE__ */ s(Vs, { "data-a": "intr", className: "SL_InApp", onClick: e, children: /* @__PURE__ */ l(zs, { style: I ? {} : { paddingLeft: "1.5rem" }, children: [
|
|
136
|
+
I && !g && /* @__PURE__ */ s(B, { src: I, imageMode: $, withVideo: !!c }),
|
|
137
|
+
g && /* @__PURE__ */ s(B, { src: g, fromInsight: !0, withVideo: !!c }),
|
|
138
|
+
i === h.TWEET ? /* @__PURE__ */ s(Zs, { tweet: a }) : /* @__PURE__ */ s(Xs, { questionTypeData: d, questionType: i, title: u }),
|
|
139
139
|
/* @__PURE__ */ s(Qs, { name: "inapp-button", children: r || "Open" }),
|
|
140
140
|
/* @__PURE__ */ s(Ys, { name: "chevronRight" })
|
|
141
141
|
] }) });
|
|
142
142
|
}, ee = () => ({
|
|
143
143
|
color: e
|
|
144
|
-
}) => e,
|
|
144
|
+
}) => e, j = /* @__PURE__ */ n("div")({
|
|
145
145
|
name: "MediaComponentWrap",
|
|
146
146
|
class: "mek728j",
|
|
147
147
|
propsAsIs: !1,
|
|
@@ -172,7 +172,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
172
172
|
name: "MediaImgRounded",
|
|
173
173
|
class: "mc7lij",
|
|
174
174
|
propsAsIs: !0
|
|
175
|
-
}),
|
|
175
|
+
}), ue = () => T, me = /* @__PURE__ */ n(ue())({
|
|
176
176
|
name: "MediaImgCentered",
|
|
177
177
|
class: "mwwaw7o",
|
|
178
178
|
propsAsIs: !0
|
|
@@ -180,14 +180,14 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
180
180
|
name: "MediaNone",
|
|
181
181
|
class: "mqfzyyr",
|
|
182
182
|
propsAsIs: !0
|
|
183
|
-
}), Ae = "v170mtgf",
|
|
183
|
+
}), Ae = "v170mtgf", Ie = {
|
|
184
184
|
[v.UNSET]: S,
|
|
185
185
|
[v.NONE]: S,
|
|
186
186
|
[v.ROUNDED]: pe,
|
|
187
|
-
[v.CENTERED]:
|
|
187
|
+
[v.CENTERED]: me,
|
|
188
188
|
[v.TRANSPARENT]: oe,
|
|
189
189
|
[v.SOLID]: le
|
|
190
|
-
},
|
|
190
|
+
}, P = ({
|
|
191
191
|
src: e,
|
|
192
192
|
imageMode: i = v.UNSET,
|
|
193
193
|
withVideo: t,
|
|
@@ -196,12 +196,12 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
196
196
|
thumbnailUrl: p
|
|
197
197
|
}) => {
|
|
198
198
|
if (!e)
|
|
199
|
-
return /* @__PURE__ */ s(
|
|
199
|
+
return /* @__PURE__ */ s(j, {
|
|
200
200
|
color: o,
|
|
201
201
|
children: /* @__PURE__ */ s(S, {})
|
|
202
202
|
});
|
|
203
|
-
const d = a === L.ENABLED ? re :
|
|
204
|
-
return /* @__PURE__ */ s(
|
|
203
|
+
const d = a === L.ENABLED ? re : Ie[i];
|
|
204
|
+
return /* @__PURE__ */ s(j, {
|
|
205
205
|
color: o,
|
|
206
206
|
children: t ? /* @__PURE__ */ s(te, {
|
|
207
207
|
children: /* @__PURE__ */ s($s, {
|
|
@@ -216,14 +216,14 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
216
216
|
})
|
|
217
217
|
})
|
|
218
218
|
});
|
|
219
|
-
},
|
|
219
|
+
}, he = () => ({
|
|
220
220
|
withoutPadding: e
|
|
221
|
-
}) => e ? "0px" : "1rem",
|
|
221
|
+
}) => e ? "0px" : "1rem", X = /* @__PURE__ */ n("div")({
|
|
222
222
|
name: "NotificationContent",
|
|
223
223
|
class: "n1p3bk1c",
|
|
224
224
|
propsAsIs: !1,
|
|
225
225
|
vars: {
|
|
226
|
-
"n1p3bk1c-0": [
|
|
226
|
+
"n1p3bk1c-0": [he()]
|
|
227
227
|
}
|
|
228
228
|
}), $e = /* @__PURE__ */ n("div")({
|
|
229
229
|
name: "MainContent",
|
|
@@ -233,13 +233,13 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
233
233
|
name: "StyledChevronRight",
|
|
234
234
|
class: "sx1hq4c",
|
|
235
235
|
propsAsIs: !0
|
|
236
|
-
}),
|
|
236
|
+
}), Z = /* @__PURE__ */ n("div")({
|
|
237
237
|
name: "NotificationContainer",
|
|
238
238
|
class: "n1fcriet",
|
|
239
239
|
propsAsIs: !1
|
|
240
240
|
}), ye = () => ({
|
|
241
241
|
questionType: e
|
|
242
|
-
}) => e ===
|
|
242
|
+
}) => e === h.FACTOID ? "7.3rem" : "4.5rem", Te = () => ({
|
|
243
243
|
webos: e
|
|
244
244
|
}) => e ? "11px 0px 8px 0px" : "11px 0px", be = () => ({
|
|
245
245
|
imageMode: e,
|
|
@@ -261,7 +261,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
261
261
|
webos: e
|
|
262
262
|
}) => e ? "4.7rem" : "2.25rem", qe = () => ({
|
|
263
263
|
webos: e
|
|
264
|
-
}) => e ? "pre-wrap" : "nowrap",
|
|
264
|
+
}) => e ? "pre-wrap" : "nowrap", Ee = /* @__PURE__ */ n("div")({
|
|
265
265
|
name: "Title",
|
|
266
266
|
class: "t1y5k5id",
|
|
267
267
|
propsAsIs: !1,
|
|
@@ -271,19 +271,19 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
271
271
|
"t1y5k5id-2": [Ne()],
|
|
272
272
|
"t1y5k5id-3": [qe()]
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
274
|
+
}), Le = /* @__PURE__ */ n("div")({
|
|
275
275
|
name: "Description",
|
|
276
276
|
class: "dw9eb7l",
|
|
277
277
|
propsAsIs: !1
|
|
278
|
-
}),
|
|
278
|
+
}), Se = /* @__PURE__ */ n("div")({
|
|
279
279
|
name: "LogoImgContainer",
|
|
280
280
|
class: "ldu8wgy",
|
|
281
281
|
propsAsIs: !1
|
|
282
|
-
}),
|
|
282
|
+
}), ss = /* @__PURE__ */ n("img")({
|
|
283
283
|
name: "LogoImg",
|
|
284
284
|
class: "ln4a3eh",
|
|
285
285
|
propsAsIs: !1
|
|
286
|
-
}), xe = () =>
|
|
286
|
+
}), xe = () => Z, De = /* @__PURE__ */ n(xe())({
|
|
287
287
|
name: "NotificationInterstitialContainer",
|
|
288
288
|
class: "no2k63v",
|
|
289
289
|
propsAsIs: !0
|
|
@@ -291,34 +291,34 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
291
291
|
name: "TVButtons",
|
|
292
292
|
class: "th9nn6a",
|
|
293
293
|
propsAsIs: !1
|
|
294
|
-
}),
|
|
294
|
+
}), es = /* @__PURE__ */ n("button")({
|
|
295
295
|
name: "TVButton",
|
|
296
296
|
class: "t1eee77p",
|
|
297
297
|
propsAsIs: !1
|
|
298
|
-
}), Oe = () =>
|
|
298
|
+
}), Oe = () => es, Re = /* @__PURE__ */ n(Oe())({
|
|
299
299
|
name: "DismissButton",
|
|
300
300
|
class: "ds000hw",
|
|
301
301
|
propsAsIs: !0
|
|
302
|
-
}), Be = () =>
|
|
302
|
+
}), Be = () => es, je = /* @__PURE__ */ n(Be())({
|
|
303
303
|
name: "AnswerButton",
|
|
304
304
|
class: "a1nz9hoe",
|
|
305
305
|
propsAsIs: !0
|
|
306
306
|
}), Pe = ({ title: e, questionType: i, questionTypeData: t, description: o, imageMode: a, webos: p }) => /* @__PURE__ */ l(Ce, { imageMode: a, questionType: i, webos: p, children: [
|
|
307
307
|
/* @__PURE__ */ s(
|
|
308
|
-
|
|
308
|
+
_,
|
|
309
309
|
{
|
|
310
310
|
questionTypeData: t,
|
|
311
311
|
questionType: i,
|
|
312
|
-
questionStatus:
|
|
312
|
+
questionStatus: H.UNSET
|
|
313
313
|
}
|
|
314
314
|
),
|
|
315
|
-
e && /* @__PURE__ */ s(
|
|
316
|
-
o && /* @__PURE__ */ s(
|
|
317
|
-
] }), Ue =
|
|
315
|
+
e && /* @__PURE__ */ s(Ee, { webos: p, children: e }),
|
|
316
|
+
o && /* @__PURE__ */ s(Le, { children: o })
|
|
317
|
+
] }), Ue = x(De), ze = x(Re), Ve = x(je), Fe = ({
|
|
318
318
|
sponsorLogo: e,
|
|
319
319
|
onClick: i,
|
|
320
320
|
webos: t
|
|
321
|
-
}) => /* @__PURE__ */ s(Ue, { autoFocus: !0, webos: t, onClick: i, "data-webos": t, children: /* @__PURE__ */ s(
|
|
321
|
+
}) => /* @__PURE__ */ s(Ue, { autoFocus: !0, webos: t, onClick: i, "data-webos": t, children: /* @__PURE__ */ s(X, { withoutPadding: !0, children: /* @__PURE__ */ s(ss, { src: e }) }) }), Qe = ({
|
|
322
322
|
action: e,
|
|
323
323
|
close: i,
|
|
324
324
|
questionType: t,
|
|
@@ -327,46 +327,46 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
327
327
|
color: p,
|
|
328
328
|
webos: d
|
|
329
329
|
}) => {
|
|
330
|
-
var r,
|
|
331
|
-
const [$,
|
|
332
|
-
y(() => (o != null && o.sponsorLogo && (
|
|
333
|
-
|
|
330
|
+
var r, u, m;
|
|
331
|
+
const [$, I] = w(!1), g = G();
|
|
332
|
+
y(() => (o != null && o.sponsorLogo && (I(!0), g.current = setTimeout(() => {
|
|
333
|
+
I(!1);
|
|
334
334
|
}, 5e3)), () => clearTimeout(g.current)), [o == null ? void 0 : o.sponsorLogo]);
|
|
335
|
-
const c =
|
|
335
|
+
const c = K[t];
|
|
336
336
|
if (!c || !o || !o.notification)
|
|
337
337
|
return null;
|
|
338
|
-
const { title:
|
|
338
|
+
const { title: ds, image: ps, imageMode: f, useContentMedia: k } = o.notification, us = t === h.FACTOID ? a == null ? void 0 : a.heading : ds, ms = t === h.FACTOID ? a == null ? void 0 : a.body : "", vs = ps, N = t === h.FACTOID && ((r = a == null ? void 0 : a.video) == null ? void 0 : r.url) && (o == null ? void 0 : o.isVideo) && k === L.ENABLED, q = k === L.ENABLED ? N ? (u = a == null ? void 0 : a.video) == null ? void 0 : u.url : a == null ? void 0 : a.image : "";
|
|
339
339
|
return o != null && o.sponsorLogo && $ ? /* @__PURE__ */ s(
|
|
340
340
|
Fe,
|
|
341
341
|
{
|
|
342
342
|
sponsorLogo: o == null ? void 0 : o.sponsorLogo,
|
|
343
343
|
webos: d,
|
|
344
|
-
onClick: () =>
|
|
344
|
+
onClick: () => I(!1)
|
|
345
345
|
}
|
|
346
346
|
) : /* @__PURE__ */ l(
|
|
347
|
-
|
|
347
|
+
Z,
|
|
348
348
|
{
|
|
349
349
|
"data-a": "intr",
|
|
350
350
|
className: "SL_InApp",
|
|
351
|
-
onClick: (
|
|
352
|
-
d
|
|
351
|
+
onClick: (C) => {
|
|
352
|
+
d || e == null || e(C);
|
|
353
353
|
},
|
|
354
|
-
"data-is-insight": t ===
|
|
354
|
+
"data-is-insight": t === h.FACTOID,
|
|
355
355
|
"data-webos": d,
|
|
356
356
|
children: [
|
|
357
|
-
(o == null ? void 0 : o.sponsorLogo) && /* @__PURE__ */ s(
|
|
358
|
-
/* @__PURE__ */ l(
|
|
357
|
+
(o == null ? void 0 : o.sponsorLogo) && /* @__PURE__ */ s(Se, { children: /* @__PURE__ */ s(ss, { src: o == null ? void 0 : o.sponsorLogo }) }),
|
|
358
|
+
/* @__PURE__ */ l(X, { children: [
|
|
359
359
|
/* @__PURE__ */ l($e, { children: [
|
|
360
|
-
!
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
!q && /* @__PURE__ */ s(P, { src: vs, imageMode: f, withVideo: !!N, color: p }),
|
|
361
|
+
q && /* @__PURE__ */ s(
|
|
362
|
+
P,
|
|
363
363
|
{
|
|
364
|
-
src:
|
|
365
|
-
imageMode:
|
|
366
|
-
withVideo: !!
|
|
364
|
+
src: q,
|
|
365
|
+
imageMode: f,
|
|
366
|
+
withVideo: !!N,
|
|
367
367
|
color: p,
|
|
368
|
-
useContentMedia:
|
|
369
|
-
thumbnailUrl: (
|
|
368
|
+
useContentMedia: k,
|
|
369
|
+
thumbnailUrl: (m = a == null ? void 0 : a.video) == null ? void 0 : m.thumbnailUrl
|
|
370
370
|
}
|
|
371
371
|
),
|
|
372
372
|
/* @__PURE__ */ s(
|
|
@@ -374,16 +374,26 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
374
374
|
{
|
|
375
375
|
questionTypeData: c,
|
|
376
376
|
questionType: t,
|
|
377
|
-
title:
|
|
377
|
+
title: us,
|
|
378
378
|
description: ms,
|
|
379
|
-
imageMode:
|
|
379
|
+
imageMode: f,
|
|
380
380
|
webos: d
|
|
381
381
|
}
|
|
382
382
|
)
|
|
383
383
|
] }),
|
|
384
384
|
!d && /* @__PURE__ */ s(we, { name: "chevronRight" }),
|
|
385
385
|
d && /* @__PURE__ */ l(Me, { children: [
|
|
386
|
-
/* @__PURE__ */ s(
|
|
386
|
+
/* @__PURE__ */ s(
|
|
387
|
+
ze,
|
|
388
|
+
{
|
|
389
|
+
webos: !0,
|
|
390
|
+
"data-close-btn": "true",
|
|
391
|
+
onClick: (C) => {
|
|
392
|
+
C.stopPropagation(), i == null || i(C);
|
|
393
|
+
},
|
|
394
|
+
children: "Dismiss"
|
|
395
|
+
}
|
|
396
|
+
),
|
|
387
397
|
/* @__PURE__ */ s(Ve, { webos: !0, autoFocus: !0, onClick: e, children: "Answer" })
|
|
388
398
|
] })
|
|
389
399
|
] })
|
|
@@ -394,7 +404,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
394
404
|
name: "NotificationContainer",
|
|
395
405
|
class: "n11jcrxe",
|
|
396
406
|
propsAsIs: !1
|
|
397
|
-
}),
|
|
407
|
+
}), U = /* @__PURE__ */ n("img")({
|
|
398
408
|
name: "Icon",
|
|
399
409
|
class: "i1vmpt6u",
|
|
400
410
|
propsAsIs: !1
|
|
@@ -441,9 +451,9 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
441
451
|
},
|
|
442
452
|
children: [
|
|
443
453
|
/* @__PURE__ */ l(Ye, { children: [
|
|
444
|
-
/* @__PURE__ */ s(
|
|
454
|
+
/* @__PURE__ */ s(U, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
|
|
445
455
|
/* @__PURE__ */ s(
|
|
446
|
-
|
|
456
|
+
U,
|
|
447
457
|
{
|
|
448
458
|
className: "on-dark",
|
|
449
459
|
src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification-dark.png"
|
|
@@ -499,19 +509,19 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
499
509
|
name: "Subtitle",
|
|
500
510
|
class: "sz7237i",
|
|
501
511
|
propsAsIs: !1
|
|
502
|
-
}),
|
|
512
|
+
}), un = ({
|
|
503
513
|
step: e,
|
|
504
514
|
children: i,
|
|
505
515
|
answer: t,
|
|
506
516
|
state: o = "pending"
|
|
507
517
|
}) => {
|
|
508
|
-
const [a, p] = w(0), [d] = w(() => new ResizeObserver((
|
|
518
|
+
const [a, p] = w(0), [d] = w(() => new ResizeObserver((u) => {
|
|
509
519
|
window.requestAnimationFrame(() => {
|
|
510
|
-
var
|
|
511
|
-
p((($ = (
|
|
520
|
+
var m, $;
|
|
521
|
+
p((($ = (m = u == null ? void 0 : u[0]) == null ? void 0 : m.contentRect) == null ? void 0 : $.width) ?? 0);
|
|
512
522
|
});
|
|
513
|
-
})), r = Ns((
|
|
514
|
-
|
|
523
|
+
})), r = Ns((u) => {
|
|
524
|
+
u ? d.observe(u) : d.disconnect();
|
|
515
525
|
}, [d]);
|
|
516
526
|
return y(() => () => {
|
|
517
527
|
d.disconnect();
|
|
@@ -537,30 +547,30 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
537
547
|
})
|
|
538
548
|
})]
|
|
539
549
|
});
|
|
540
|
-
},
|
|
550
|
+
}, mn = /* @__PURE__ */ n("div")({
|
|
541
551
|
name: "Container",
|
|
542
552
|
class: "ckyzolp",
|
|
543
553
|
propsAsIs: !1
|
|
544
|
-
}),
|
|
554
|
+
}), D = /* @__PURE__ */ n("div")({
|
|
545
555
|
name: "Line",
|
|
546
556
|
class: "l16t1zr7",
|
|
547
557
|
propsAsIs: !1
|
|
548
|
-
}), vn = () =>
|
|
558
|
+
}), vn = () => D, An = /* @__PURE__ */ n(vn())({
|
|
549
559
|
name: "Line1",
|
|
550
560
|
class: "le78kvg",
|
|
551
561
|
propsAsIs: !0
|
|
552
|
-
}),
|
|
562
|
+
}), In = () => D, hn = /* @__PURE__ */ n(In())({
|
|
553
563
|
name: "Line2",
|
|
554
564
|
class: "l1o7966d",
|
|
555
565
|
propsAsIs: !0
|
|
556
|
-
}), $n = () =>
|
|
566
|
+
}), $n = () => D, gn = /* @__PURE__ */ n($n())({
|
|
557
567
|
name: "Line3",
|
|
558
568
|
class: "lu9lyxq",
|
|
559
569
|
propsAsIs: !0
|
|
560
|
-
}), wn = () => /* @__PURE__ */ l(
|
|
570
|
+
}), wn = () => /* @__PURE__ */ l(mn, {
|
|
561
571
|
children: [/* @__PURE__ */ s(An, {
|
|
562
572
|
children: /* @__PURE__ */ s("div", {})
|
|
563
|
-
}), /* @__PURE__ */ s(
|
|
573
|
+
}), /* @__PURE__ */ s(hn, {
|
|
564
574
|
children: /* @__PURE__ */ s("div", {})
|
|
565
575
|
}), /* @__PURE__ */ s(gn, {
|
|
566
576
|
children: /* @__PURE__ */ s("div", {})
|
|
@@ -597,34 +607,34 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
597
607
|
}), /* @__PURE__ */ s(Nn, {
|
|
598
608
|
children: e
|
|
599
609
|
})]
|
|
600
|
-
}),
|
|
610
|
+
}), ns = /* @__PURE__ */ n("div")({
|
|
601
611
|
name: "Container",
|
|
602
612
|
class: "c181a1as",
|
|
603
613
|
propsAsIs: !1
|
|
604
|
-
}),
|
|
614
|
+
}), os = /* @__PURE__ */ n("div")({
|
|
605
615
|
name: "Title",
|
|
606
616
|
class: "t1cduox6",
|
|
607
617
|
propsAsIs: !1
|
|
608
|
-
}),
|
|
618
|
+
}), En = () => A, is = /* @__PURE__ */ n(En())({
|
|
609
619
|
name: "CorrectIcon",
|
|
610
620
|
class: "c1onrv6j",
|
|
611
621
|
propsAsIs: !0
|
|
612
|
-
}),
|
|
622
|
+
}), Ln = () => is, Sn = /* @__PURE__ */ n(Ln())({
|
|
613
623
|
name: "InCorrectIcon",
|
|
614
624
|
class: "i17n9o7e",
|
|
615
625
|
propsAsIs: !0
|
|
616
|
-
}), xn = () => /* @__PURE__ */ l(
|
|
617
|
-
children: [/* @__PURE__ */ l(
|
|
626
|
+
}), xn = () => /* @__PURE__ */ l(ns, {
|
|
627
|
+
children: [/* @__PURE__ */ l(os, {
|
|
618
628
|
children: ["Congratulations!", /* @__PURE__ */ s("br", {}), "You answered correctly."]
|
|
619
|
-
}), /* @__PURE__ */ s(
|
|
629
|
+
}), /* @__PURE__ */ s(is, {
|
|
620
630
|
name: "icon-check"
|
|
621
631
|
})]
|
|
622
632
|
}), Dn = ({
|
|
623
633
|
title: e
|
|
624
|
-
}) => /* @__PURE__ */ l(
|
|
625
|
-
children: [/* @__PURE__ */ l(
|
|
634
|
+
}) => /* @__PURE__ */ l(ns, {
|
|
635
|
+
children: [/* @__PURE__ */ l(os, {
|
|
626
636
|
children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", e]
|
|
627
|
-
}), /* @__PURE__ */ s(
|
|
637
|
+
}), /* @__PURE__ */ s(Sn, {
|
|
628
638
|
name: "icon-cross"
|
|
629
639
|
})]
|
|
630
640
|
}), Mn = /* @__PURE__ */ n("div")({
|
|
@@ -652,15 +662,15 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
652
662
|
}), /* @__PURE__ */ s(Bn, {
|
|
653
663
|
name: "icon-trophy-solid"
|
|
654
664
|
})]
|
|
655
|
-
}),
|
|
665
|
+
}), z = /* @__PURE__ */ n("div")({
|
|
656
666
|
name: "Container",
|
|
657
667
|
class: "cq3agu2",
|
|
658
668
|
propsAsIs: !1
|
|
659
|
-
}),
|
|
669
|
+
}), V = /* @__PURE__ */ n("div")({
|
|
660
670
|
name: "Body",
|
|
661
671
|
class: "b16qj0do",
|
|
662
672
|
propsAsIs: !1
|
|
663
|
-
}),
|
|
673
|
+
}), F = {
|
|
664
674
|
1: 3e3,
|
|
665
675
|
2: 4e3,
|
|
666
676
|
3: 4e3,
|
|
@@ -668,21 +678,21 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
668
678
|
}, Pn = ({ close: e, action: i, setStep: t, votedAnswer: o, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
|
|
669
679
|
if (y(() => {
|
|
670
680
|
if (t) {
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
},
|
|
681
|
+
const m = setTimeout(() => {
|
|
682
|
+
F[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
|
|
683
|
+
}, F[r]);
|
|
674
684
|
return () => {
|
|
675
|
-
|
|
685
|
+
m && clearTimeout(m);
|
|
676
686
|
};
|
|
677
687
|
}
|
|
678
688
|
return () => {
|
|
679
689
|
};
|
|
680
690
|
}, [t, r, e, a]), r === 1)
|
|
681
|
-
return /* @__PURE__ */ s(
|
|
682
|
-
let
|
|
683
|
-
return (r === 3 || r === 4) && (
|
|
691
|
+
return /* @__PURE__ */ s(z, { children: /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(Cn, {}) }) });
|
|
692
|
+
let u = "pending";
|
|
693
|
+
return (r === 3 || r === 4) && (u = a ? "correct" : "incorrect"), /* @__PURE__ */ s(z, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ l(V, { children: [
|
|
684
694
|
r !== 1 && /* @__PURE__ */ s(wn, {}, r),
|
|
685
|
-
/* @__PURE__ */ l(
|
|
695
|
+
/* @__PURE__ */ l(un, { state: u, step: r, answer: (o == null ? void 0 : o.title) || "unknown", children: [
|
|
686
696
|
r === 2 && /* @__PURE__ */ s(qn, { title: d || "unknown" }),
|
|
687
697
|
r === 3 && a && /* @__PURE__ */ s(xn, {}),
|
|
688
698
|
r === 3 && !a && /* @__PURE__ */ s(Dn, { title: p || "unknown" }),
|
|
@@ -730,9 +740,9 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
730
740
|
return y(() => {
|
|
731
741
|
const p = new ResizeObserver((d) => {
|
|
732
742
|
window.requestAnimationFrame(() => {
|
|
733
|
-
var r,
|
|
734
|
-
const
|
|
735
|
-
a(
|
|
743
|
+
var r, u;
|
|
744
|
+
const m = ((u = (r = d == null ? void 0 : d[0]) == null ? void 0 : r.contentRect) == null ? void 0 : u.width) ?? 0;
|
|
745
|
+
a(m);
|
|
736
746
|
});
|
|
737
747
|
});
|
|
738
748
|
return () => {
|
|
@@ -755,19 +765,19 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
755
765
|
name: "Container",
|
|
756
766
|
class: "c1nd5cu8",
|
|
757
767
|
propsAsIs: !1
|
|
758
|
-
}),
|
|
768
|
+
}), M = /* @__PURE__ */ n("div")({
|
|
759
769
|
name: "Line",
|
|
760
770
|
class: "lgbipw0",
|
|
761
771
|
propsAsIs: !1
|
|
762
|
-
}), Kn = () =>
|
|
772
|
+
}), Kn = () => M, Gn = /* @__PURE__ */ n(Kn())({
|
|
763
773
|
name: "Line1",
|
|
764
774
|
class: "l1anth16",
|
|
765
775
|
propsAsIs: !0
|
|
766
|
-
}), Hn = () =>
|
|
776
|
+
}), Hn = () => M, Jn = /* @__PURE__ */ n(Hn())({
|
|
767
777
|
name: "Line2",
|
|
768
778
|
class: "l193yd7v",
|
|
769
779
|
propsAsIs: !0
|
|
770
|
-
}), Xn = () =>
|
|
780
|
+
}), Xn = () => M, Zn = /* @__PURE__ */ n(Xn())({
|
|
771
781
|
name: "Line3",
|
|
772
782
|
class: "lhbflsp",
|
|
773
783
|
propsAsIs: !0
|
|
@@ -818,80 +828,80 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
818
828
|
name: "icon-prediction"
|
|
819
829
|
}), "Your Pick: ", i]
|
|
820
830
|
})]
|
|
821
|
-
}),
|
|
831
|
+
}), ts = /* @__PURE__ */ n("div")({
|
|
822
832
|
name: "Container",
|
|
823
833
|
class: "c1lesal4",
|
|
824
834
|
propsAsIs: !1
|
|
825
|
-
}),
|
|
835
|
+
}), as = /* @__PURE__ */ n("div")({
|
|
826
836
|
name: "Title",
|
|
827
837
|
class: "tv66n4w",
|
|
828
838
|
propsAsIs: !1
|
|
829
|
-
}),
|
|
839
|
+
}), uo = () => A, mo = /* @__PURE__ */ n(uo())({
|
|
830
840
|
name: "CorrectIcon",
|
|
831
841
|
class: "cx0vlv2",
|
|
832
842
|
propsAsIs: !0
|
|
833
|
-
}),
|
|
843
|
+
}), rs = /* @__PURE__ */ n("div")({
|
|
834
844
|
name: "Answer",
|
|
835
845
|
class: "akfh4v5",
|
|
836
846
|
propsAsIs: !1
|
|
837
847
|
}), vo = ({
|
|
838
848
|
answer: e
|
|
839
|
-
}) => /* @__PURE__ */ l(
|
|
840
|
-
children: [/* @__PURE__ */ s(
|
|
849
|
+
}) => /* @__PURE__ */ l(ts, {
|
|
850
|
+
children: [/* @__PURE__ */ s(as, {
|
|
841
851
|
children: "Congratulations! You answered correctly."
|
|
842
|
-
}), /* @__PURE__ */ l(
|
|
843
|
-
children: [/* @__PURE__ */ s(
|
|
852
|
+
}), /* @__PURE__ */ l(rs, {
|
|
853
|
+
children: [/* @__PURE__ */ s(mo, {
|
|
844
854
|
name: "icon-correct"
|
|
845
855
|
}), "Your Pick: ", e]
|
|
846
856
|
})]
|
|
847
857
|
}), Ao = ({
|
|
848
858
|
title: e,
|
|
849
859
|
answer: i
|
|
850
|
-
}) => /* @__PURE__ */ l(
|
|
851
|
-
children: [/* @__PURE__ */ l(
|
|
860
|
+
}) => /* @__PURE__ */ l(ts, {
|
|
861
|
+
children: [/* @__PURE__ */ l(as, {
|
|
852
862
|
children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", e]
|
|
853
|
-
}), /* @__PURE__ */ l(
|
|
863
|
+
}), /* @__PURE__ */ l(rs, {
|
|
854
864
|
children: ["Your Pick: ", i]
|
|
855
865
|
})]
|
|
856
|
-
}),
|
|
866
|
+
}), Q = /* @__PURE__ */ n("div")({
|
|
857
867
|
name: "Container",
|
|
858
868
|
class: "cmox3ot",
|
|
859
869
|
propsAsIs: !1
|
|
860
|
-
}),
|
|
870
|
+
}), W = /* @__PURE__ */ n("div")({
|
|
861
871
|
name: "Body",
|
|
862
872
|
class: "bqq1ix4",
|
|
863
873
|
propsAsIs: !1
|
|
864
|
-
}),
|
|
874
|
+
}), Y = {
|
|
865
875
|
1: 3e3,
|
|
866
876
|
2: 4e3,
|
|
867
877
|
3: 4e3
|
|
868
|
-
},
|
|
878
|
+
}, Io = ({ close: e, action: i, setStep: t, votedAnswer: o, correct: a, correctAnswerTitle: p, questionTitle: d, step: r }) => {
|
|
869
879
|
if (y(() => {
|
|
870
880
|
if (t) {
|
|
871
|
-
const
|
|
872
|
-
|
|
873
|
-
},
|
|
881
|
+
const m = setTimeout(() => {
|
|
882
|
+
Y[r + 1] && (a || r < 3) ? t(r + 1) : e == null || e();
|
|
883
|
+
}, Y[r]);
|
|
874
884
|
return () => {
|
|
875
|
-
|
|
885
|
+
m && clearTimeout(m);
|
|
876
886
|
};
|
|
877
887
|
}
|
|
878
888
|
return () => {
|
|
879
889
|
};
|
|
880
890
|
}, [t, r, e, a]), r === 1)
|
|
881
|
-
return /* @__PURE__ */ s(
|
|
882
|
-
let
|
|
883
|
-
return r === 3 && (
|
|
891
|
+
return /* @__PURE__ */ s(Q, { children: /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(io, {}) }) });
|
|
892
|
+
let u = "pending";
|
|
893
|
+
return r === 3 && (u = a ? "correct" : "incorrect"), /* @__PURE__ */ s(Q, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ l(W, { children: [
|
|
884
894
|
r !== 1 && /* @__PURE__ */ s(so, {}, r),
|
|
885
|
-
/* @__PURE__ */ l(Yn, { state:
|
|
895
|
+
/* @__PURE__ */ l(Yn, { state: u, step: r, children: [
|
|
886
896
|
r === 2 && /* @__PURE__ */ s(po, { title: d || "unknown", answer: (o == null ? void 0 : o.title) || "unknown" }),
|
|
887
897
|
r === 3 && a && /* @__PURE__ */ s(vo, { answer: (o == null ? void 0 : o.title) || "unknown" }),
|
|
888
898
|
r === 3 && !a && /* @__PURE__ */ s(Ao, { title: p || "unknown", answer: (o == null ? void 0 : o.title) || "unknown" })
|
|
889
899
|
] })
|
|
890
900
|
] }) });
|
|
891
|
-
},
|
|
901
|
+
}, ho = ({ close: e, action: i, votedAnswer: t, correct: o, correctAnswerTitle: a, questionTitle: p }) => {
|
|
892
902
|
const [d, r] = w(1);
|
|
893
903
|
return /* @__PURE__ */ s(
|
|
894
|
-
|
|
904
|
+
Io,
|
|
895
905
|
{
|
|
896
906
|
close: e,
|
|
897
907
|
action: i,
|
|
@@ -904,7 +914,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
904
914
|
title: ""
|
|
905
915
|
}
|
|
906
916
|
);
|
|
907
|
-
},
|
|
917
|
+
}, cs = /* @__PURE__ */ n("div")({
|
|
908
918
|
name: "NotificationContainer",
|
|
909
919
|
class: "nn0nqh6",
|
|
910
920
|
propsAsIs: !1
|
|
@@ -917,11 +927,11 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
917
927
|
vars: {
|
|
918
928
|
"n1bcdf3j-0": [$o()]
|
|
919
929
|
}
|
|
920
|
-
}),
|
|
930
|
+
}), ls = /* @__PURE__ */ n("img")({
|
|
921
931
|
name: "LogoImg",
|
|
922
932
|
class: "l8jorbq",
|
|
923
933
|
propsAsIs: !1
|
|
924
|
-
}), wo = () =>
|
|
934
|
+
}), wo = () => cs, yo = /* @__PURE__ */ n(wo())({
|
|
925
935
|
name: "NotificationInterstitialContainer",
|
|
926
936
|
class: "nf920y3",
|
|
927
937
|
propsAsIs: !0
|
|
@@ -929,21 +939,21 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
929
939
|
name: "LogoImgContainer",
|
|
930
940
|
class: "lzsmehn",
|
|
931
941
|
propsAsIs: !1
|
|
932
|
-
}), bo = ({ sponsorLogo: e, onClick: i }) => /* @__PURE__ */ s(yo, { onClick: i, children: /* @__PURE__ */ s(go, { withoutPadding: !0, children: /* @__PURE__ */ s(
|
|
942
|
+
}), bo = ({ sponsorLogo: e, onClick: i }) => /* @__PURE__ */ s(yo, { onClick: i, children: /* @__PURE__ */ s(go, { withoutPadding: !0, children: /* @__PURE__ */ s(ls, { src: e }) }) }), Co = (e) => {
|
|
933
943
|
var i, t, o, a, p;
|
|
934
|
-
const [d, r] = w(!1),
|
|
944
|
+
const [d, r] = w(!1), u = G();
|
|
935
945
|
return y(() => {
|
|
936
|
-
var
|
|
937
|
-
return (
|
|
946
|
+
var m;
|
|
947
|
+
return (m = e == null ? void 0 : e.inApp) != null && m.sponsorLogo && (r(!0), u.current = setTimeout(() => {
|
|
938
948
|
r(!1);
|
|
939
|
-
}, 5e3)), () => clearTimeout(
|
|
940
|
-
}, [(i = e == null ? void 0 : e.inApp) == null ? void 0 : i.sponsorLogo]), (t = e == null ? void 0 : e.inApp) != null && t.sponsorLogo && d ? /* @__PURE__ */ s(bo, { sponsorLogo: (o = e.inApp) == null ? void 0 : o.sponsorLogo, onClick: () => r(!1) }) : /* @__PURE__ */ s(
|
|
941
|
-
((a = e == null ? void 0 : e.inApp) == null ? void 0 : a.sponsorLogo) && /* @__PURE__ */ s(To, { children: /* @__PURE__ */ s(
|
|
942
|
-
/* @__PURE__ */ s(
|
|
949
|
+
}, 5e3)), () => clearTimeout(u.current);
|
|
950
|
+
}, [(i = e == null ? void 0 : e.inApp) == null ? void 0 : i.sponsorLogo]), (t = e == null ? void 0 : e.inApp) != null && t.sponsorLogo && d ? /* @__PURE__ */ s(bo, { sponsorLogo: (o = e.inApp) == null ? void 0 : o.sponsorLogo, onClick: () => r(!1) }) : /* @__PURE__ */ s(cs, { children: /* @__PURE__ */ l("div", { children: [
|
|
951
|
+
((a = e == null ? void 0 : e.inApp) == null ? void 0 : a.sponsorLogo) && /* @__PURE__ */ s(To, { children: /* @__PURE__ */ s(ls, { src: (p = e == null ? void 0 : e.inApp) == null ? void 0 : p.sponsorLogo }) }),
|
|
952
|
+
/* @__PURE__ */ s(ho, { ...e })
|
|
943
953
|
] }) });
|
|
944
954
|
}, fo = ({ sdk: e, webos: i }) => {
|
|
945
|
-
var t, o, a, p, d, r,
|
|
946
|
-
const [$] = w(e.getNotificationsStore()),
|
|
955
|
+
var t, o, a, p, d, r, u, m;
|
|
956
|
+
const [$] = w(e.getNotificationsStore()), I = ys($), g = e.getFeature(Es.GAMES), c = qs(() => e.getActiveNotification(), [e, I]);
|
|
947
957
|
return y(() => {
|
|
948
958
|
c && Ts.emit("notification", {
|
|
949
959
|
action: "rendered",
|
|
@@ -952,7 +962,7 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
952
962
|
questionType: c.data.questionType
|
|
953
963
|
}
|
|
954
964
|
});
|
|
955
|
-
}, [c]), c && c.type ===
|
|
965
|
+
}, [c]), c && c.type === O.QUESTION_RESOLVED ? c.data.question && c.data.questionType === h.PREDICTION ? c && ((t = c.data.inApp) == null ? void 0 : t.adUnit) === R.STANDART ? /* @__PURE__ */ s(
|
|
956
966
|
Co,
|
|
957
967
|
{
|
|
958
968
|
action: c.action,
|
|
@@ -967,28 +977,28 @@ const b = /* @__PURE__ */ n("div")({
|
|
|
967
977
|
close: c.close,
|
|
968
978
|
...c.data.question
|
|
969
979
|
}
|
|
970
|
-
) : null : c && c.type ===
|
|
980
|
+
) : null : c && c.type === O.ONBOARDING ? c.data.onboarding ? /* @__PURE__ */ s(
|
|
971
981
|
en,
|
|
972
982
|
{
|
|
973
983
|
open: g == null ? void 0 : g.openOnboarding,
|
|
974
984
|
close: c.close,
|
|
975
985
|
...c.data.onboarding
|
|
976
986
|
}
|
|
977
|
-
) : null : c && ((o = c.data.inApp) == null ? void 0 : o.adUnit) ===
|
|
987
|
+
) : null : c && ((o = c.data.inApp) == null ? void 0 : o.adUnit) === R.STANDART ? /* @__PURE__ */ s(
|
|
978
988
|
Qe,
|
|
979
989
|
{
|
|
980
990
|
...c.data,
|
|
981
991
|
action: c.action,
|
|
982
992
|
close: c.close,
|
|
983
|
-
color: ((d = (p = (a = c == null ? void 0 : c.data) == null ? void 0 : a.inApp) == null ? void 0 : p.notification) == null ? void 0 : d.indicatorColor) || ((
|
|
993
|
+
color: ((d = (p = (a = c == null ? void 0 : c.data) == null ? void 0 : a.inApp) == null ? void 0 : p.notification) == null ? void 0 : d.indicatorColor) || ((m = (u = (r = c == null ? void 0 : c.data) == null ? void 0 : r.inApp) == null ? void 0 : u.appearance) == null ? void 0 : m.primaryColor),
|
|
984
994
|
webos: i
|
|
985
995
|
}
|
|
986
996
|
) : c && /* @__PURE__ */ s(se, { ...c.data, action: c.action });
|
|
987
|
-
},
|
|
997
|
+
}, Lo = ({ theme: e }) => {
|
|
988
998
|
const i = bs(), t = Cs(), o = fs();
|
|
989
999
|
return i && (o.appNotification || o.onboardingNotification) ? o.app && !o.onboardingNotification ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(ks, { customTheme: e ?? t.theme, themeMode: t.themeMode, children: /* @__PURE__ */ s(fo, { sdk: i }) }) }) : null;
|
|
990
1000
|
};
|
|
991
1001
|
export {
|
|
992
|
-
|
|
1002
|
+
Lo as StreamLayerSDKNotification,
|
|
993
1003
|
fo as StreamLayerSDKNotificationUI
|
|
994
1004
|
};
|