@streamlayer/react 1.24.5 → 1.24.6
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/Question.js +1 -1
- package/lib/cjs/advertisement.js +26 -26
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -1
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +4 -1
- package/lib/cjs/index14.js +1 -4
- 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/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index9.js +2 -2
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters2.js +3 -3
- 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 +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +13 -13
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +26 -26
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/{index-DvqmgCor.js → index-CfSdnrfA.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 +1 -1
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index7.js +2 -2
- 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/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 +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +13 -13
- package/lib/classic/es/Question.js +313 -198
- package/lib/classic/es/advertisement.js +1988 -1955
- package/lib/classic/es/bet-pack.js +12 -13
- package/lib/classic/es/feature.js +188 -37
- package/lib/{es/index-DvqmgCor.js → classic/es/index-CfSdnrfA.js} +1 -1
- package/lib/classic/es/index10.js +309 -2580
- package/lib/classic/es/index11.js +2580 -305
- package/lib/classic/es/index12.js +12 -12
- package/lib/classic/es/index13.js +2 -2
- package/lib/classic/es/index2.js +129 -121
- package/lib/classic/es/index5.js +0 -1
- package/lib/classic/es/index7.js +2 -2
- package/lib/classic/es/index8.js +1 -1
- package/lib/classic/es/index9.js +1 -1
- package/lib/classic/es/insight.js +1 -1
- package/lib/classic/es/notification2.js +137 -138
- package/lib/classic/es/pause-ad.js +124 -149
- package/lib/classic/es/points.js +3 -4
- package/lib/classic/es/polymarket.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +2931 -2877
- package/lib/classic/source.css +1 -1
- package/lib/dist/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
- package/lib/dist/cjs/masters.js +31 -31
- package/lib/dist/es/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
- package/lib/dist/es/masters.js +7957 -7774
- package/lib/dist/index.d.ts +2 -0
- package/lib/es/Question.js +66 -65
- package/lib/es/advertisement.js +1988 -1955
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/feature.js +188 -37
- package/lib/{classic/es/index-DvqmgCor.js → es/index-CfSdnrfA.js} +1 -1
- package/lib/es/index10.js +1 -1
- package/lib/es/index11.js +12 -12
- package/lib/es/index12.js +366 -2579
- package/lib/es/index13.js +789 -234
- package/lib/es/index14.js +293 -792
- package/lib/es/index15.js +2580 -305
- package/lib/es/index16.js +41 -42
- package/lib/es/index2.js +279 -271
- package/lib/es/index4.js +15 -16
- package/lib/es/index6.js +0 -1
- package/lib/es/index7.js +1 -1
- package/lib/es/index9.js +2 -2
- package/lib/es/insight.js +1 -1
- package/lib/es/masters2.js +194 -183
- package/lib/es/notification.js +22 -23
- package/lib/es/pause-ad.js +124 -149
- package/lib/es/points.js +20 -21
- package/lib/es/polymarket.js +1 -1
- package/lib/es/storage.js +1 -1
- package/lib/es/useStreamLayerApp2.js +2931 -2877
- package/lib/source.css +1 -1
- package/lib/style.css +1 -1
- package/package.json +72 -53
- package/lib/cjs/sl-types.js +0 -1
- package/lib/classic/cjs/sl-types.js +0 -1
- package/lib/classic/es/sl-types.js +0 -156
- package/lib/es/sl-types.js +0 -156
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { h as hs } from "./index8.js";
|
|
3
3
|
import { useState as h, useRef as J, useEffect as f, useCallback as fs, useMemo as vs } from "react";
|
|
4
|
-
import { s as e, c as gs, u as ws, N as P } from "./
|
|
4
|
+
import { s as e, c as gs, u as ws, N as P } from "./feature.js";
|
|
5
5
|
import { e as ys } from "./index4.js";
|
|
6
|
-
import "./feature.js";
|
|
7
6
|
import { e as D, D as Ts, j as bs, o as Cs } from "./index12.js";
|
|
8
|
-
import { e as Ns, i as
|
|
7
|
+
import { e as Ns, i as V } from "./index9.js";
|
|
9
8
|
import { B as u } from "./index6.js";
|
|
10
|
-
import { Q as I, c as M, f as b, a as d, N as L, S as ks, b as
|
|
9
|
+
import { Q as I, c as M, f as b, a as d, N as L, S as ks, b as Q } from "./useStreamLayerApp2.js";
|
|
11
10
|
import { b as R } from "./index7.js";
|
|
12
|
-
import {
|
|
11
|
+
import { V as qs, y as Ss } from "./index10.js";
|
|
13
12
|
import { p as Es } from "./index3.js";
|
|
14
13
|
import { Y as Ls, _ as xs, q as Ds } from "./hooks-n9ax4LRT.js";
|
|
15
14
|
const Ms = /* @__PURE__ */ e("div")({
|
|
@@ -32,11 +31,11 @@ const Ms = /* @__PURE__ */ e("div")({
|
|
|
32
31
|
name: "QuestionActionIcon",
|
|
33
32
|
class: "q1fa0b9h",
|
|
34
33
|
propsAsIs: !0
|
|
35
|
-
}), Ps = () => C,
|
|
34
|
+
}), Ps = () => C, Vs = /* @__PURE__ */ e(Ps())({
|
|
36
35
|
name: "QuestionCheckIcon",
|
|
37
36
|
class: "qxlt78s",
|
|
38
37
|
propsAsIs: !0
|
|
39
|
-
}),
|
|
38
|
+
}), Qs = () => u, zs = /* @__PURE__ */ e(Qs())({
|
|
40
39
|
name: "QuestionTypeIcon",
|
|
41
40
|
class: "qmg0vkx",
|
|
42
41
|
propsAsIs: !0
|
|
@@ -62,16 +61,16 @@ const Ms = /* @__PURE__ */ e("div")({
|
|
|
62
61
|
propsAsIs: !0
|
|
63
62
|
}), Gs = {
|
|
64
63
|
[b.LOST]: /* @__PURE__ */ s(C, { name: "incorrectVoted" }),
|
|
65
|
-
[b.WON]: /* @__PURE__ */ s(
|
|
64
|
+
[b.WON]: /* @__PURE__ */ s(Vs, { name: "icon-check" }),
|
|
66
65
|
[b.UNSET]: /* @__PURE__ */ s(C, { name: "icon-arrow" }),
|
|
67
66
|
[b.DNP]: /* @__PURE__ */ s(C, { name: "icon-arrow" })
|
|
68
|
-
},
|
|
69
|
-
/* @__PURE__ */ s(
|
|
70
|
-
/* @__PURE__ */ s(
|
|
67
|
+
}, ta = () => /* @__PURE__ */ l(Ys, { children: [
|
|
68
|
+
/* @__PURE__ */ s(V, { loading: !0, style: { width: "35%" } }),
|
|
69
|
+
/* @__PURE__ */ s(V, { loading: !0, style: { width: "70%" } }),
|
|
71
70
|
/* @__PURE__ */ s(Ks, {})
|
|
72
|
-
] }), O = ({ questionTypeData: n, questionType: o, questionStatus:
|
|
71
|
+
] }), O = ({ questionTypeData: n, questionType: o, questionStatus: t }) => /* @__PURE__ */ l(Rs, { className: "SL_QuestionCaption", children: [
|
|
73
72
|
/* @__PURE__ */ s(
|
|
74
|
-
|
|
73
|
+
zs,
|
|
75
74
|
{
|
|
76
75
|
className: "SL_QuestionTypeIcon",
|
|
77
76
|
"data-testid": "question-type-icon",
|
|
@@ -82,17 +81,17 @@ const Ms = /* @__PURE__ */ e("div")({
|
|
|
82
81
|
),
|
|
83
82
|
/* @__PURE__ */ l(Us, { className: "SL_QuestionTypeLabel", children: [
|
|
84
83
|
n.label,
|
|
85
|
-
o === I.TRIVIA &&
|
|
84
|
+
o === I.TRIVIA && t === M.RESOLVED && " • Expired"
|
|
86
85
|
] })
|
|
87
|
-
] }),
|
|
86
|
+
] }), ia = ({
|
|
88
87
|
questionId: n,
|
|
89
88
|
questionType: o,
|
|
90
|
-
questionStatus:
|
|
89
|
+
questionStatus: t,
|
|
91
90
|
subject: i,
|
|
92
91
|
openForVoting: r,
|
|
93
|
-
status:
|
|
92
|
+
status: a
|
|
94
93
|
}) => {
|
|
95
|
-
const p = D[o], c = Gs[
|
|
94
|
+
const p = D[o], c = Gs[a];
|
|
96
95
|
return p ? /* @__PURE__ */ l(Ms, { "data-a": "intr", "data-name": n, children: [
|
|
97
96
|
/* @__PURE__ */ l(Fs, { children: [
|
|
98
97
|
/* @__PURE__ */ s(
|
|
@@ -100,7 +99,7 @@ const Ms = /* @__PURE__ */ e("div")({
|
|
|
100
99
|
{
|
|
101
100
|
questionTypeData: p,
|
|
102
101
|
questionType: o,
|
|
103
|
-
questionStatus:
|
|
102
|
+
questionStatus: t
|
|
104
103
|
}
|
|
105
104
|
),
|
|
106
105
|
/* @__PURE__ */ s(Os, { children: i || "" })
|
|
@@ -108,10 +107,10 @@ const Ms = /* @__PURE__ */ e("div")({
|
|
|
108
107
|
/* @__PURE__ */ s(js, { children: r ? /* @__PURE__ */ s(_s, { "data-a": "intr", "data-name": n, children: "Play" }) : c })
|
|
109
108
|
] }) : null;
|
|
110
109
|
};
|
|
111
|
-
var
|
|
110
|
+
var z;
|
|
112
111
|
(function(n) {
|
|
113
112
|
n.OPENED = "opened";
|
|
114
|
-
})(
|
|
113
|
+
})(z || (z = {}));
|
|
115
114
|
const w = /* @__PURE__ */ e("div")({
|
|
116
115
|
name: "Media",
|
|
117
116
|
class: "m1bcvojl",
|
|
@@ -132,11 +131,11 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
132
131
|
name: "MediaImgCentered",
|
|
133
132
|
class: "m1bwv0gx",
|
|
134
133
|
propsAsIs: !0
|
|
135
|
-
}), oe = () => w,
|
|
134
|
+
}), oe = () => w, ae = /* @__PURE__ */ e(oe())({
|
|
136
135
|
name: "MediaImgInsight",
|
|
137
136
|
class: "mntjanp",
|
|
138
137
|
propsAsIs: !0
|
|
139
|
-
}),
|
|
138
|
+
}), te = /* @__PURE__ */ e("div")({
|
|
140
139
|
name: "VideoIcon",
|
|
141
140
|
class: "v1kofb47",
|
|
142
141
|
propsAsIs: !1
|
|
@@ -150,17 +149,17 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
150
149
|
}, U = ({
|
|
151
150
|
src: n,
|
|
152
151
|
imageMode: o = d.UNSET,
|
|
153
|
-
withVideo:
|
|
152
|
+
withVideo: t,
|
|
154
153
|
fromInsight: i
|
|
155
154
|
}) => {
|
|
156
155
|
if (o === d.NONE)
|
|
157
156
|
return null;
|
|
158
|
-
const r = i ?
|
|
157
|
+
const r = i ? ae : ie[o];
|
|
159
158
|
return /* @__PURE__ */ l(r, {
|
|
160
159
|
children: [/* @__PURE__ */ s("img", {
|
|
161
160
|
src: n,
|
|
162
161
|
alt: ""
|
|
163
|
-
}),
|
|
162
|
+
}), t && /* @__PURE__ */ s(te, {
|
|
164
163
|
children: /* @__PURE__ */ s(u, {
|
|
165
164
|
name: "icon-play"
|
|
166
165
|
})
|
|
@@ -206,42 +205,42 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
206
205
|
name: "Container",
|
|
207
206
|
class: "ccvukea",
|
|
208
207
|
propsAsIs: !1
|
|
209
|
-
}), he = ({ image: n, tweet: o, account:
|
|
210
|
-
|
|
208
|
+
}), he = ({ image: n, tweet: o, account: t, accountVerified: i, body: r, title: a }) => /* @__PURE__ */ l($e, { children: [
|
|
209
|
+
a && /* @__PURE__ */ s(ue, { children: /* @__PURE__ */ s(Ie, { children: a }) }),
|
|
211
210
|
/* @__PURE__ */ s(
|
|
212
211
|
Ts,
|
|
213
212
|
{
|
|
214
213
|
image: n,
|
|
215
214
|
name: o?.meta?.accountName,
|
|
216
|
-
userName:
|
|
215
|
+
userName: t,
|
|
217
216
|
verified: i,
|
|
218
217
|
createdTweet: o?.date
|
|
219
218
|
}
|
|
220
219
|
),
|
|
221
220
|
/* @__PURE__ */ s(Ae, { children: bs(r) })
|
|
222
|
-
] }), fe = ({ title: n, questionType: o, questionTypeData:
|
|
221
|
+
] }), fe = ({ title: n, questionType: o, questionTypeData: t }) => /* @__PURE__ */ l(ss, { children: [
|
|
223
222
|
/* @__PURE__ */ s(
|
|
224
223
|
O,
|
|
225
224
|
{
|
|
226
|
-
questionTypeData:
|
|
225
|
+
questionTypeData: t,
|
|
227
226
|
questionType: o,
|
|
228
227
|
questionStatus: M.UNSET
|
|
229
228
|
}
|
|
230
229
|
),
|
|
231
230
|
n && /* @__PURE__ */ s(le, { children: n })
|
|
232
231
|
] }), ve = ({ tweet: n }) => n ? /* @__PURE__ */ s(ss, { children: /* @__PURE__ */ s(he, { ...n, controlVideo: () => {
|
|
233
|
-
} }) }) : null, ge = ({ action: n, questionType: o, inApp:
|
|
234
|
-
const
|
|
235
|
-
if (!
|
|
232
|
+
} }) }) : null, ge = ({ action: n, questionType: o, inApp: t, insight: i, tweet: r }) => {
|
|
233
|
+
const a = D[o], p = Cs[o];
|
|
234
|
+
if (!a || !t || !t.notification)
|
|
236
235
|
return null;
|
|
237
|
-
const { title: c, image: m, imageMode: A } =
|
|
236
|
+
const { title: c, image: m, imageMode: A } = t.notification;
|
|
238
237
|
let $ = m;
|
|
239
238
|
o === I.TWEET && r?.tweetMedia && ($ = r.tweetMedia.image), A === d.NONE && ($ = "");
|
|
240
|
-
const g =
|
|
239
|
+
const g = t.useMediaFromContent && i?.image, y = o === I.TWEET && r?.tweetMedia?.video || o === I.FACTOID && i?.video;
|
|
241
240
|
return /* @__PURE__ */ s(ce, { "data-a": "intr", className: "SL_InApp", onClick: n, children: /* @__PURE__ */ l(re, { style: $ ? {} : { paddingLeft: "1.5rem" }, children: [
|
|
242
241
|
$ && !g && /* @__PURE__ */ s(U, { src: $, imageMode: A, withVideo: !!y }),
|
|
243
242
|
g && /* @__PURE__ */ s(U, { src: g, fromInsight: !0, withVideo: !!y }),
|
|
244
|
-
o === I.TWEET ? /* @__PURE__ */ s(ve, { tweet: r }) : /* @__PURE__ */ s(fe, { questionTypeData:
|
|
243
|
+
o === I.TWEET ? /* @__PURE__ */ s(ve, { tweet: r }) : /* @__PURE__ */ s(fe, { questionTypeData: a, questionType: o, title: c }),
|
|
245
244
|
/* @__PURE__ */ s(pe, { name: "inapp-button", children: p || "Open" }),
|
|
246
245
|
/* @__PURE__ */ s(me, { name: "chevronRight" })
|
|
247
246
|
] }) });
|
|
@@ -296,10 +295,10 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
296
295
|
}, _ = ({
|
|
297
296
|
src: n,
|
|
298
297
|
imageMode: o = d.UNSET,
|
|
299
|
-
withVideo:
|
|
298
|
+
withVideo: t,
|
|
300
299
|
color: i,
|
|
301
300
|
useContentMedia: r,
|
|
302
|
-
thumbnailUrl:
|
|
301
|
+
thumbnailUrl: a
|
|
303
302
|
}) => {
|
|
304
303
|
if (!n)
|
|
305
304
|
return /* @__PURE__ */ s(F, {
|
|
@@ -309,11 +308,11 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
309
308
|
const p = r === L.ENABLED ? ke : Oe[o];
|
|
310
309
|
return /* @__PURE__ */ s(F, {
|
|
311
310
|
color: i,
|
|
312
|
-
children:
|
|
311
|
+
children: t ? /* @__PURE__ */ s(Ce, {
|
|
313
312
|
children: /* @__PURE__ */ s(qs, {
|
|
314
313
|
className: Re,
|
|
315
314
|
source: n,
|
|
316
|
-
poster:
|
|
315
|
+
poster: a || ""
|
|
317
316
|
})
|
|
318
317
|
}) : /* @__PURE__ */ s(p, {
|
|
319
318
|
children: /* @__PURE__ */ s("img", {
|
|
@@ -335,7 +334,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
335
334
|
name: "MainContent",
|
|
336
335
|
class: "m1g211mu",
|
|
337
336
|
propsAsIs: !1
|
|
338
|
-
}), Pe = () => u,
|
|
337
|
+
}), Pe = () => u, Ve = /* @__PURE__ */ e(Pe())({
|
|
339
338
|
name: "StyledChevronRight",
|
|
340
339
|
class: "sx1hq4c",
|
|
341
340
|
propsAsIs: !0
|
|
@@ -343,9 +342,9 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
343
342
|
name: "NotificationContainer",
|
|
344
343
|
class: "n1fcriet",
|
|
345
344
|
propsAsIs: !1
|
|
346
|
-
}),
|
|
345
|
+
}), Qe = () => ({
|
|
347
346
|
questionType: n
|
|
348
|
-
}) => n === I.FACTOID ? "7.3rem" : "4.5rem",
|
|
347
|
+
}) => n === I.FACTOID ? "7.3rem" : "4.5rem", ze = () => ({
|
|
349
348
|
webos: n
|
|
350
349
|
}) => n ? "11px 0px 8px 0px" : "11px 0px", Ue = () => ({
|
|
351
350
|
imageMode: n,
|
|
@@ -355,8 +354,8 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
355
354
|
class: "b1byyovs",
|
|
356
355
|
propsAsIs: !1,
|
|
357
356
|
vars: {
|
|
358
|
-
"b1byyovs-0": [
|
|
359
|
-
"b1byyovs-1": [
|
|
357
|
+
"b1byyovs-0": [Qe()],
|
|
358
|
+
"b1byyovs-1": [ze()],
|
|
360
359
|
"b1byyovs-2": [Ue()]
|
|
361
360
|
}
|
|
362
361
|
}), _e = () => ({
|
|
@@ -397,33 +396,33 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
397
396
|
name: "TVButtons",
|
|
398
397
|
class: "th9nn6a",
|
|
399
398
|
propsAsIs: !1
|
|
400
|
-
}),
|
|
399
|
+
}), as = /* @__PURE__ */ e("button")({
|
|
401
400
|
name: "TVButton",
|
|
402
401
|
class: "t1eee77p",
|
|
403
402
|
propsAsIs: !1
|
|
404
|
-
}), en = () =>
|
|
403
|
+
}), en = () => as, nn = /* @__PURE__ */ e(en())({
|
|
405
404
|
name: "DismissButton",
|
|
406
405
|
class: "ds000hw",
|
|
407
406
|
propsAsIs: !0
|
|
408
|
-
}), on = () =>
|
|
407
|
+
}), on = () => as, an = /* @__PURE__ */ e(on())({
|
|
409
408
|
name: "AnswerButton",
|
|
410
409
|
class: "a1nz9hoe",
|
|
411
410
|
propsAsIs: !0
|
|
412
|
-
}),
|
|
411
|
+
}), tn = ({ title: n, questionType: o, questionTypeData: t, description: i, imageMode: r, webos: a }) => /* @__PURE__ */ l(Fe, { imageMode: r, questionType: o, webos: a, children: [
|
|
413
412
|
/* @__PURE__ */ s(
|
|
414
413
|
O,
|
|
415
414
|
{
|
|
416
|
-
questionTypeData:
|
|
415
|
+
questionTypeData: t,
|
|
417
416
|
questionType: o,
|
|
418
417
|
questionStatus: M.UNSET
|
|
419
418
|
}
|
|
420
419
|
),
|
|
421
|
-
n && /* @__PURE__ */ s(Ge, { webos:
|
|
420
|
+
n && /* @__PURE__ */ s(Ge, { webos: a, children: n }),
|
|
422
421
|
i && /* @__PURE__ */ s(Xe, { children: i })
|
|
423
|
-
] }), rn = R(Je), cn = R(nn), ln = R(
|
|
422
|
+
] }), rn = R(Je), cn = R(nn), ln = R(an), pn = ({
|
|
424
423
|
className: n,
|
|
425
424
|
sponsorLogo: o,
|
|
426
|
-
onClick:
|
|
425
|
+
onClick: t,
|
|
427
426
|
webos: i
|
|
428
427
|
}) => /* @__PURE__ */ s(
|
|
429
428
|
rn,
|
|
@@ -431,17 +430,17 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
431
430
|
className: n,
|
|
432
431
|
autoFocus: !0,
|
|
433
432
|
webos: i,
|
|
434
|
-
onClick:
|
|
433
|
+
onClick: t,
|
|
435
434
|
"data-webos": i,
|
|
436
435
|
children: /* @__PURE__ */ s(es, { withoutPadding: !0, children: /* @__PURE__ */ s(os, { src: o }) })
|
|
437
436
|
}
|
|
438
437
|
), dn = ({
|
|
439
438
|
action: n,
|
|
440
439
|
close: o,
|
|
441
|
-
questionType:
|
|
440
|
+
questionType: t,
|
|
442
441
|
inApp: i,
|
|
443
442
|
insight: r,
|
|
444
|
-
color:
|
|
443
|
+
color: a,
|
|
445
444
|
webos: p,
|
|
446
445
|
className: c
|
|
447
446
|
}) => {
|
|
@@ -449,10 +448,10 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
449
448
|
f(() => (i?.sponsorLogo && (A(!0), $.current = setTimeout(() => {
|
|
450
449
|
A(!1);
|
|
451
450
|
}, 5e3)), () => clearTimeout($.current)), [i?.sponsorLogo]);
|
|
452
|
-
const g = D[
|
|
451
|
+
const g = D[t];
|
|
453
452
|
if (!g || !i || !i.notification)
|
|
454
453
|
return null;
|
|
455
|
-
const { title: y, image: us, imageMode: N, useContentMedia: k } = i.notification, Is =
|
|
454
|
+
const { title: y, image: us, imageMode: N, useContentMedia: k } = i.notification, Is = t === I.FACTOID ? r?.heading : y, As = t === I.FACTOID ? r?.body : "", $s = us, q = t === I.FACTOID && r?.video?.url && i?.isVideo && k === L.ENABLED, S = k === L.ENABLED ? q ? r?.video?.url : r?.image : "";
|
|
456
455
|
return i?.sponsorLogo && m ? /* @__PURE__ */ s(
|
|
457
456
|
pn,
|
|
458
457
|
{
|
|
@@ -469,29 +468,29 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
469
468
|
onClick: (T) => {
|
|
470
469
|
p || n?.(T);
|
|
471
470
|
},
|
|
472
|
-
"data-is-insight":
|
|
471
|
+
"data-is-insight": t === I.FACTOID,
|
|
473
472
|
"data-webos": p,
|
|
474
473
|
children: [
|
|
475
474
|
i?.sponsorLogo && /* @__PURE__ */ s(He, { children: /* @__PURE__ */ s(os, { src: i?.sponsorLogo }) }),
|
|
476
475
|
/* @__PURE__ */ l(es, { children: [
|
|
477
476
|
/* @__PURE__ */ l(Be, { children: [
|
|
478
|
-
!S && /* @__PURE__ */ s(_, { src: $s, imageMode: N, withVideo: !!q, color:
|
|
477
|
+
!S && /* @__PURE__ */ s(_, { src: $s, imageMode: N, withVideo: !!q, color: a }),
|
|
479
478
|
S && /* @__PURE__ */ s(
|
|
480
479
|
_,
|
|
481
480
|
{
|
|
482
481
|
src: S,
|
|
483
482
|
imageMode: N,
|
|
484
483
|
withVideo: !!q,
|
|
485
|
-
color:
|
|
484
|
+
color: a,
|
|
486
485
|
useContentMedia: k,
|
|
487
486
|
thumbnailUrl: r?.video?.thumbnailUrl
|
|
488
487
|
}
|
|
489
488
|
),
|
|
490
489
|
/* @__PURE__ */ s(
|
|
491
|
-
|
|
490
|
+
tn,
|
|
492
491
|
{
|
|
493
492
|
questionTypeData: g,
|
|
494
|
-
questionType:
|
|
493
|
+
questionType: t,
|
|
495
494
|
title: Is,
|
|
496
495
|
description: As,
|
|
497
496
|
imageMode: N,
|
|
@@ -499,7 +498,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
499
498
|
}
|
|
500
499
|
)
|
|
501
500
|
] }),
|
|
502
|
-
!p && /* @__PURE__ */ s(
|
|
501
|
+
!p && /* @__PURE__ */ s(Ve, { name: "chevronRight" }),
|
|
503
502
|
p && /* @__PURE__ */ l(sn, { children: [
|
|
504
503
|
/* @__PURE__ */ s(
|
|
505
504
|
cn,
|
|
@@ -557,13 +556,13 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
557
556
|
}), yn = ({
|
|
558
557
|
open: n,
|
|
559
558
|
close: o,
|
|
560
|
-
...
|
|
559
|
+
...t
|
|
561
560
|
}) => /* @__PURE__ */ l(
|
|
562
561
|
mn,
|
|
563
562
|
{
|
|
564
563
|
"data-a": "intr",
|
|
565
564
|
onClick: () => {
|
|
566
|
-
n?.(),
|
|
565
|
+
n?.(), t && t.markIstantOpen();
|
|
567
566
|
},
|
|
568
567
|
children: [
|
|
569
568
|
/* @__PURE__ */ l(un, { children: [
|
|
@@ -579,10 +578,10 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
579
578
|
/* @__PURE__ */ l(fn, { children: [
|
|
580
579
|
/* @__PURE__ */ l(vn, { children: [
|
|
581
580
|
/* @__PURE__ */ s(An, { name: "icon-trophy-solid" }),
|
|
582
|
-
|
|
581
|
+
t?.titleCard?.title
|
|
583
582
|
] }),
|
|
584
583
|
/* @__PURE__ */ l(gn, { children: [
|
|
585
|
-
/* @__PURE__ */ s("span", { children:
|
|
584
|
+
/* @__PURE__ */ s("span", { children: t?.titleCard?.subtitle }),
|
|
586
585
|
/* @__PURE__ */ s(wn, { name: "inapp-button", children: "Play Now" })
|
|
587
586
|
] })
|
|
588
587
|
] }),
|
|
@@ -627,12 +626,12 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
627
626
|
}), xn = ({
|
|
628
627
|
step: n,
|
|
629
628
|
children: o,
|
|
630
|
-
answer:
|
|
629
|
+
answer: t,
|
|
631
630
|
state: i = "pending"
|
|
632
631
|
}) => {
|
|
633
|
-
const [r,
|
|
632
|
+
const [r, a] = h(0), [p] = h(() => new ResizeObserver((m) => {
|
|
634
633
|
window.requestAnimationFrame(() => {
|
|
635
|
-
|
|
634
|
+
a(m?.[0]?.contentRect?.width ?? 0);
|
|
636
635
|
});
|
|
637
636
|
})), c = fs((m) => {
|
|
638
637
|
m ? p.observe(m) : p.disconnect();
|
|
@@ -657,7 +656,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
657
656
|
children: /* @__PURE__ */ l("div", {
|
|
658
657
|
children: [/* @__PURE__ */ s(Cn, {
|
|
659
658
|
name: "icon-check"
|
|
660
|
-
}), "Your Pick: ",
|
|
659
|
+
}), "Your Pick: ", t]
|
|
661
660
|
})
|
|
662
661
|
})]
|
|
663
662
|
});
|
|
@@ -681,7 +680,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
681
680
|
name: "Line3",
|
|
682
681
|
class: "lu9lyxq",
|
|
683
682
|
propsAsIs: !0
|
|
684
|
-
}),
|
|
683
|
+
}), Vn = () => /* @__PURE__ */ l(Dn, {
|
|
685
684
|
children: [/* @__PURE__ */ s(Rn, {
|
|
686
685
|
children: /* @__PURE__ */ s("div", {})
|
|
687
686
|
}), /* @__PURE__ */ s(jn, {
|
|
@@ -689,15 +688,15 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
689
688
|
}), /* @__PURE__ */ s(Pn, {
|
|
690
689
|
children: /* @__PURE__ */ s("div", {})
|
|
691
690
|
})]
|
|
692
|
-
}),
|
|
691
|
+
}), Qn = /* @__PURE__ */ e("div")({
|
|
693
692
|
name: "Container",
|
|
694
693
|
class: "c10jy6zf",
|
|
695
694
|
propsAsIs: !1
|
|
696
|
-
}),
|
|
695
|
+
}), zn = () => u, Un = /* @__PURE__ */ e(zn())({
|
|
697
696
|
name: "CheckIcon",
|
|
698
697
|
class: "c1c7scay",
|
|
699
698
|
propsAsIs: !0
|
|
700
|
-
}), Fn = () => /* @__PURE__ */ l(
|
|
699
|
+
}), Fn = () => /* @__PURE__ */ l(Qn, {
|
|
701
700
|
children: [/* @__PURE__ */ s(Un, {
|
|
702
701
|
name: "icon-check"
|
|
703
702
|
}), " Prediction results are in!"]
|
|
@@ -721,7 +720,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
721
720
|
}), /* @__PURE__ */ s(Wn, {
|
|
722
721
|
children: n
|
|
723
722
|
})]
|
|
724
|
-
}),
|
|
723
|
+
}), ts = /* @__PURE__ */ e("div")({
|
|
725
724
|
name: "Container",
|
|
726
725
|
class: "c181a1as",
|
|
727
726
|
propsAsIs: !1
|
|
@@ -737,7 +736,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
737
736
|
name: "InCorrectIcon",
|
|
738
737
|
class: "i17n9o7e",
|
|
739
738
|
propsAsIs: !0
|
|
740
|
-
}), Zn = () => /* @__PURE__ */ l(
|
|
739
|
+
}), Zn = () => /* @__PURE__ */ l(ts, {
|
|
741
740
|
children: [/* @__PURE__ */ l(is, {
|
|
742
741
|
children: ["Congratulations!", /* @__PURE__ */ s("br", {}), "You answered correctly."]
|
|
743
742
|
}), /* @__PURE__ */ s(rs, {
|
|
@@ -745,7 +744,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
745
744
|
})]
|
|
746
745
|
}), Jn = ({
|
|
747
746
|
title: n
|
|
748
|
-
}) => /* @__PURE__ */ l(
|
|
747
|
+
}) => /* @__PURE__ */ l(ts, {
|
|
749
748
|
children: [/* @__PURE__ */ l(is, {
|
|
750
749
|
children: ["Better luck next time!", /* @__PURE__ */ s("br", {}), "Correct: ", n]
|
|
751
750
|
}), /* @__PURE__ */ s(Hn, {
|
|
@@ -763,7 +762,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
763
762
|
name: "CheckIcon",
|
|
764
763
|
class: "ceyu3qj",
|
|
765
764
|
propsAsIs: !0
|
|
766
|
-
}),
|
|
765
|
+
}), ao = ({
|
|
767
766
|
points: n
|
|
768
767
|
}) => /* @__PURE__ */ l(so, {
|
|
769
768
|
children: [/* @__PURE__ */ l(eo, {
|
|
@@ -789,11 +788,11 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
789
788
|
2: 4e3,
|
|
790
789
|
3: 4e3,
|
|
791
790
|
4: 4e3
|
|
792
|
-
},
|
|
791
|
+
}, to = ({ close: n, action: o, setStep: t, votedAnswer: i, correct: r, correctAnswerTitle: a, questionTitle: p, step: c }) => {
|
|
793
792
|
if (f(() => {
|
|
794
|
-
if (
|
|
793
|
+
if (t) {
|
|
795
794
|
const A = setTimeout(() => {
|
|
796
|
-
G[c + 1] && (r || c < 3) ?
|
|
795
|
+
G[c + 1] && (r || c < 3) ? t(c + 1) : n?.();
|
|
797
796
|
}, G[c]);
|
|
798
797
|
return () => {
|
|
799
798
|
A && clearTimeout(A);
|
|
@@ -801,29 +800,29 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
801
800
|
}
|
|
802
801
|
return () => {
|
|
803
802
|
};
|
|
804
|
-
}, [
|
|
803
|
+
}, [t, c, n, r]), c === 1)
|
|
805
804
|
return /* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(K, { children: /* @__PURE__ */ s(Fn, {}) }) });
|
|
806
805
|
let m = "pending";
|
|
807
806
|
return (c === 3 || c === 4) && (m = r ? "correct" : "incorrect"), /* @__PURE__ */ s(W, { "data-a": "intr", onClick: () => o?.(), children: /* @__PURE__ */ l(K, { children: [
|
|
808
|
-
c !== 1 && /* @__PURE__ */ s(
|
|
807
|
+
c !== 1 && /* @__PURE__ */ s(Vn, {}, c),
|
|
809
808
|
/* @__PURE__ */ l(xn, { state: m, step: c, answer: i?.title || "unknown", children: [
|
|
810
809
|
c === 2 && /* @__PURE__ */ s(Kn, { title: p || "unknown" }),
|
|
811
810
|
c === 3 && r && /* @__PURE__ */ s(Zn, {}),
|
|
812
|
-
c === 3 && !r && /* @__PURE__ */ s(Jn, { title:
|
|
813
|
-
c === 4 && /* @__PURE__ */ s(
|
|
811
|
+
c === 3 && !r && /* @__PURE__ */ s(Jn, { title: a || "unknown" }),
|
|
812
|
+
c === 4 && /* @__PURE__ */ s(ao, { points: i?.points || 0 })
|
|
814
813
|
] })
|
|
815
814
|
] }) });
|
|
816
|
-
}, io = ({ close: n, action: o, votedAnswer:
|
|
815
|
+
}, io = ({ close: n, action: o, votedAnswer: t, correct: i, correctAnswerTitle: r, questionTitle: a }) => {
|
|
817
816
|
const [p, c] = h(1);
|
|
818
817
|
return /* @__PURE__ */ s(
|
|
819
|
-
|
|
818
|
+
to,
|
|
820
819
|
{
|
|
821
820
|
close: n,
|
|
822
821
|
action: o,
|
|
823
|
-
votedAnswer:
|
|
822
|
+
votedAnswer: t,
|
|
824
823
|
correct: i,
|
|
825
824
|
correctAnswerTitle: r,
|
|
826
|
-
questionTitle:
|
|
825
|
+
questionTitle: a,
|
|
827
826
|
setStep: c,
|
|
828
827
|
step: p,
|
|
829
828
|
title: ""
|
|
@@ -848,22 +847,22 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
848
847
|
}), uo = ({
|
|
849
848
|
step: n,
|
|
850
849
|
children: o,
|
|
851
|
-
state:
|
|
850
|
+
state: t = "pending"
|
|
852
851
|
}) => {
|
|
853
852
|
const [i, r] = h(0);
|
|
854
853
|
return f(() => {
|
|
855
|
-
const
|
|
854
|
+
const a = new ResizeObserver((p) => {
|
|
856
855
|
window.requestAnimationFrame(() => {
|
|
857
856
|
const c = p?.[0]?.contentRect?.width ?? 0;
|
|
858
857
|
r(c);
|
|
859
858
|
});
|
|
860
859
|
});
|
|
861
860
|
return () => {
|
|
862
|
-
|
|
861
|
+
a.disconnect();
|
|
863
862
|
};
|
|
864
863
|
}, []), /* @__PURE__ */ s(lo, {
|
|
865
864
|
style: {
|
|
866
|
-
padding: `${n === 3 &&
|
|
865
|
+
padding: `${n === 3 && t === "incorrect" || n === 1 ? "5px 100px" : "5px 40px"}`
|
|
867
866
|
},
|
|
868
867
|
children: /* @__PURE__ */ s(po, {
|
|
869
868
|
style: {
|
|
@@ -988,11 +987,11 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
988
987
|
1: 3e3,
|
|
989
988
|
2: 4e3,
|
|
990
989
|
3: 4e3
|
|
991
|
-
}, Oo = ({ close: n, action: o, setStep:
|
|
990
|
+
}, Oo = ({ close: n, action: o, setStep: t, votedAnswer: i, correct: r, correctAnswerTitle: a, questionTitle: p, step: c }) => {
|
|
992
991
|
if (f(() => {
|
|
993
|
-
if (
|
|
992
|
+
if (t) {
|
|
994
993
|
const A = setTimeout(() => {
|
|
995
|
-
Z[c + 1] && (r || c < 3) ?
|
|
994
|
+
Z[c + 1] && (r || c < 3) ? t(c + 1) : n?.();
|
|
996
995
|
}, Z[c]);
|
|
997
996
|
return () => {
|
|
998
997
|
A && clearTimeout(A);
|
|
@@ -1000,7 +999,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
1000
999
|
}
|
|
1001
1000
|
return () => {
|
|
1002
1001
|
};
|
|
1003
|
-
}, [
|
|
1002
|
+
}, [t, c, n, r]), c === 1)
|
|
1004
1003
|
return /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(H, { children: /* @__PURE__ */ s(Co, {}) }) });
|
|
1005
1004
|
let m = "pending";
|
|
1006
1005
|
return c === 3 && (m = r ? "correct" : "incorrect"), /* @__PURE__ */ s(X, { "data-a": "intr", onClick: () => o?.(), children: /* @__PURE__ */ l(H, { children: [
|
|
@@ -1008,20 +1007,20 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
1008
1007
|
/* @__PURE__ */ l(uo, { state: m, step: c, children: [
|
|
1009
1008
|
c === 2 && /* @__PURE__ */ s(Lo, { title: p || "unknown", answer: i?.title || "unknown" }),
|
|
1010
1009
|
c === 3 && r && /* @__PURE__ */ s(Mo, { answer: i?.title || "unknown" }),
|
|
1011
|
-
c === 3 && !r && /* @__PURE__ */ s(Ro, { title:
|
|
1010
|
+
c === 3 && !r && /* @__PURE__ */ s(Ro, { title: a || "unknown", answer: i?.title || "unknown" })
|
|
1012
1011
|
] })
|
|
1013
1012
|
] }) });
|
|
1014
|
-
}, jo = ({ close: n, action: o, votedAnswer:
|
|
1013
|
+
}, jo = ({ close: n, action: o, votedAnswer: t, correct: i, correctAnswerTitle: r, questionTitle: a }) => {
|
|
1015
1014
|
const [p, c] = h(1);
|
|
1016
1015
|
return /* @__PURE__ */ s(
|
|
1017
1016
|
Oo,
|
|
1018
1017
|
{
|
|
1019
1018
|
close: n,
|
|
1020
1019
|
action: o,
|
|
1021
|
-
votedAnswer:
|
|
1020
|
+
votedAnswer: t,
|
|
1022
1021
|
correct: i,
|
|
1023
1022
|
correctAnswerTitle: r,
|
|
1024
|
-
questionTitle:
|
|
1023
|
+
questionTitle: a,
|
|
1025
1024
|
setStep: c,
|
|
1026
1025
|
step: p,
|
|
1027
1026
|
title: ""
|
|
@@ -1044,23 +1043,23 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
1044
1043
|
name: "LogoImg",
|
|
1045
1044
|
class: "l8jorbq",
|
|
1046
1045
|
propsAsIs: !1
|
|
1047
|
-
}),
|
|
1046
|
+
}), Vo = () => ds, Qo = /* @__PURE__ */ e(Vo())({
|
|
1048
1047
|
name: "NotificationInterstitialContainer",
|
|
1049
1048
|
class: "nf920y3",
|
|
1050
1049
|
propsAsIs: !0
|
|
1051
|
-
}),
|
|
1050
|
+
}), zo = /* @__PURE__ */ e("div")({
|
|
1052
1051
|
name: "LogoImgContainer",
|
|
1053
1052
|
class: "lzsmehn",
|
|
1054
1053
|
propsAsIs: !1
|
|
1055
1054
|
}), Uo = ({
|
|
1056
1055
|
className: n,
|
|
1057
1056
|
sponsorLogo: o,
|
|
1058
|
-
onClick:
|
|
1059
|
-
}) => /* @__PURE__ */ s(
|
|
1060
|
-
const [
|
|
1057
|
+
onClick: t
|
|
1058
|
+
}) => /* @__PURE__ */ s(Qo, { className: n, onClick: t, children: /* @__PURE__ */ s(Po, { withoutPadding: !0, children: /* @__PURE__ */ s(ms, { src: o }) }) }), Fo = ({ className: n, ...o }) => {
|
|
1059
|
+
const [t, i] = h(!1), r = J();
|
|
1061
1060
|
return f(() => (o?.inApp?.sponsorLogo && (i(!0), r.current = setTimeout(() => {
|
|
1062
1061
|
i(!1);
|
|
1063
|
-
}, 5e3)), () => clearTimeout(r.current)), [o?.inApp?.sponsorLogo]), o?.inApp?.sponsorLogo &&
|
|
1062
|
+
}, 5e3)), () => clearTimeout(r.current)), [o?.inApp?.sponsorLogo]), o?.inApp?.sponsorLogo && t ? /* @__PURE__ */ s(
|
|
1064
1063
|
Uo,
|
|
1065
1064
|
{
|
|
1066
1065
|
className: n,
|
|
@@ -1068,60 +1067,60 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
1068
1067
|
onClick: () => i(!1)
|
|
1069
1068
|
}
|
|
1070
1069
|
) : /* @__PURE__ */ s(ds, { className: n, children: /* @__PURE__ */ l("div", { children: [
|
|
1071
|
-
o?.inApp?.sponsorLogo && /* @__PURE__ */ s(
|
|
1070
|
+
o?.inApp?.sponsorLogo && /* @__PURE__ */ s(zo, { children: /* @__PURE__ */ s(ms, { src: o?.inApp?.sponsorLogo }) }),
|
|
1072
1071
|
/* @__PURE__ */ s(jo, { ...o })
|
|
1073
1072
|
] }) });
|
|
1074
1073
|
}, _o = ({ sdk: n, webos: o }) => {
|
|
1075
|
-
const [
|
|
1074
|
+
const [t] = h(n.getNotificationsStore()), i = ws(t), r = n.getFeature(ks.GAMES), a = vs(() => n.getActiveNotification(), [n, i]);
|
|
1076
1075
|
return f(() => {
|
|
1077
|
-
|
|
1076
|
+
a && ys.emit("notification", {
|
|
1078
1077
|
action: "rendered",
|
|
1079
1078
|
payload: {
|
|
1080
|
-
questionId:
|
|
1081
|
-
questionType:
|
|
1079
|
+
questionId: a.data.questionId,
|
|
1080
|
+
questionType: a.data.questionType
|
|
1082
1081
|
}
|
|
1083
1082
|
});
|
|
1084
|
-
}, [
|
|
1083
|
+
}, [a]), a && a.type === P.QUESTION_RESOLVED ? a.data.question && a.data.questionType === I.PREDICTION ? a && a.data.inApp?.adUnit === Q.STANDART ? /* @__PURE__ */ s(
|
|
1085
1084
|
Fo,
|
|
1086
1085
|
{
|
|
1087
|
-
action:
|
|
1088
|
-
close:
|
|
1089
|
-
...
|
|
1090
|
-
inApp:
|
|
1086
|
+
action: a.action,
|
|
1087
|
+
close: a.close,
|
|
1088
|
+
...a.data.question,
|
|
1089
|
+
inApp: a.data.inApp
|
|
1091
1090
|
}
|
|
1092
1091
|
) : /* @__PURE__ */ s(
|
|
1093
1092
|
co,
|
|
1094
1093
|
{
|
|
1095
|
-
action:
|
|
1096
|
-
close:
|
|
1097
|
-
...
|
|
1094
|
+
action: a.action,
|
|
1095
|
+
close: a.close,
|
|
1096
|
+
...a.data.question
|
|
1098
1097
|
}
|
|
1099
|
-
) : null :
|
|
1098
|
+
) : null : a && a.type === P.ONBOARDING ? a.data.onboarding ? /* @__PURE__ */ s(
|
|
1100
1099
|
yn,
|
|
1101
1100
|
{
|
|
1102
1101
|
open: r?.openOnboarding,
|
|
1103
|
-
close:
|
|
1104
|
-
...
|
|
1102
|
+
close: a.close,
|
|
1103
|
+
...a.data.onboarding
|
|
1105
1104
|
}
|
|
1106
|
-
) : null :
|
|
1105
|
+
) : null : a && a.data.inApp?.adUnit === Q.STANDART ? /* @__PURE__ */ s(
|
|
1107
1106
|
dn,
|
|
1108
1107
|
{
|
|
1109
|
-
...
|
|
1110
|
-
action:
|
|
1111
|
-
close:
|
|
1112
|
-
color:
|
|
1108
|
+
...a.data,
|
|
1109
|
+
action: a.action,
|
|
1110
|
+
close: a.close,
|
|
1111
|
+
color: a?.data?.inApp?.notification?.indicatorColor || a?.data?.inApp?.appearance?.primaryColor,
|
|
1113
1112
|
webos: o
|
|
1114
1113
|
}
|
|
1115
|
-
) :
|
|
1116
|
-
},
|
|
1117
|
-
const o = Ls(),
|
|
1118
|
-
return o && (i.appNotification || i.onboardingNotification) ? i.app && !i.onboardingNotification ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(hs, { customTheme: n ??
|
|
1114
|
+
) : a && /* @__PURE__ */ s(ge, { ...a.data, action: a.action });
|
|
1115
|
+
}, ra = ({ theme: n }) => {
|
|
1116
|
+
const o = Ls(), t = xs(), i = Ds();
|
|
1117
|
+
return o && (i.appNotification || i.onboardingNotification) ? i.app && !i.onboardingNotification ? null : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(hs, { customTheme: n ?? t.theme, themeMode: t.themeMode, children: /* @__PURE__ */ s(_o, { sdk: o }) }) }) : null;
|
|
1119
1118
|
};
|
|
1120
1119
|
export {
|
|
1121
|
-
|
|
1122
|
-
|
|
1120
|
+
ta as D,
|
|
1121
|
+
ia as R,
|
|
1123
1122
|
_s as S,
|
|
1124
|
-
|
|
1123
|
+
ra as a,
|
|
1125
1124
|
Ms as r,
|
|
1126
1125
|
_o as x
|
|
1127
1126
|
};
|