@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
package/lib/classic/es/index2.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { m as G, h as ye } from "./index8.js";
|
|
2
2
|
import { jsx as t, jsxs as h, Fragment as S } from "react/jsx-runtime";
|
|
3
|
-
import { u as $, s as i,
|
|
4
|
-
import { l as
|
|
3
|
+
import { u as $, F as X, s as i, b as we, c as D, a as Z, N as e2 } from "./feature.js";
|
|
4
|
+
import { l as ke, S as Le, m as _e, d as Ne, n as Se, C as Te, y as xe, a as Re, f as n2, p as Ee, c as Ve } from "./index13.js";
|
|
5
5
|
import { useState as w, useEffect as y, useRef as E, useCallback as q, Component as He, createElement as ze, PureComponent as Me, useMemo as z, Suspense as Oe, lazy as De, forwardRef as te, useLayoutEffect as Fe, useContext as f2 } from "react";
|
|
6
|
-
import { F as e2, c as Z } from "./feature.js";
|
|
7
6
|
import { atom as Be } from "nanostores";
|
|
8
7
|
import l2 from "lodash.throttle";
|
|
9
8
|
import { A as O } from "./index7.js";
|
|
10
|
-
import { f as ne, u as ie, A as qe, b as
|
|
11
|
-
import {
|
|
9
|
+
import { f as ne, u as ie, A as qe, b as Pe } from "./analytics.js";
|
|
10
|
+
import { $ as Ue, p as p2, _ as je, O as We, e as Ze } from "./Question.js";
|
|
12
11
|
import { i as M } from "./index9.js";
|
|
13
12
|
import { I as h2, s as ae, N as re, e as oe } from "./index12.js";
|
|
14
13
|
import { createPortal as s2 } from "react-dom";
|
|
15
14
|
import { u as Ge } from "./utils.js";
|
|
16
|
-
import { B as
|
|
15
|
+
import { B as L } from "./index6.js";
|
|
17
16
|
import { I as le, l as Qe, S as V, e as F, p as C2, Q as R, a as Ke } from "./useStreamLayerApp2.js";
|
|
18
17
|
import Ye from "react-infinite-scroller";
|
|
19
18
|
import { r as ce, S as Je, R as Xe, D as e0 } from "./notification2.js";
|
|
20
|
-
import {
|
|
19
|
+
import { O as s0, V as t0 } from "./index10.js";
|
|
21
20
|
import "uuid";
|
|
22
21
|
import "@nanostores/query";
|
|
23
22
|
import "./index5.js";
|
|
@@ -32,10 +31,10 @@ const de = (e) => Be(e), o0 = (e) => {
|
|
|
32
31
|
r(null);
|
|
33
32
|
else
|
|
34
33
|
for (const [l, c] of o)
|
|
35
|
-
l === s ? (c.status.get() ===
|
|
34
|
+
l === s ? (c.status.get() === X.Suspended && c.enable(), r(c)) : c.status.get() === X.Ready && c.disable();
|
|
36
35
|
return () => {
|
|
37
36
|
for (const [, l] of o)
|
|
38
|
-
l.status.get() ===
|
|
37
|
+
l.status.get() === X.Ready && l.disable();
|
|
39
38
|
};
|
|
40
39
|
}, [s, e, n]), [s, a];
|
|
41
40
|
}, I2 = Object.keys(O), $2 = () => {
|
|
@@ -131,7 +130,7 @@ const de = (e) => Be(e), o0 = (e) => {
|
|
|
131
130
|
className: a,
|
|
132
131
|
children: "Event is forbidden..."
|
|
133
132
|
});
|
|
134
|
-
if (o !==
|
|
133
|
+
if (o !== X.Ready)
|
|
135
134
|
return /* @__PURE__ */ t(a2, {
|
|
136
135
|
className: a,
|
|
137
136
|
children: "Wait feature..."
|
|
@@ -196,11 +195,11 @@ const de = (e) => Be(e), o0 = (e) => {
|
|
|
196
195
|
name: "UserName",
|
|
197
196
|
class: "u1q6roj0",
|
|
198
197
|
propsAsIs: !1
|
|
199
|
-
}),
|
|
198
|
+
}), k0 = /* @__PURE__ */ i("div")({
|
|
200
199
|
name: "UserRating",
|
|
201
200
|
class: "ui0m425",
|
|
202
201
|
propsAsIs: !1
|
|
203
|
-
}),
|
|
202
|
+
}), L0 = /* @__PURE__ */ i("img")({
|
|
204
203
|
name: "TrophyIcon",
|
|
205
204
|
class: "t1el3mrn",
|
|
206
205
|
propsAsIs: !1
|
|
@@ -265,10 +264,10 @@ const de = (e) => Be(e), o0 = (e) => {
|
|
|
265
264
|
] }),
|
|
266
265
|
/* @__PURE__ */ h(y0, { children: [
|
|
267
266
|
/* @__PURE__ */ t(w0, { children: a }),
|
|
268
|
-
/* @__PURE__ */ h(
|
|
267
|
+
/* @__PURE__ */ h(k0, { children: [
|
|
269
268
|
/* @__PURE__ */ h(_0, { children: [
|
|
270
269
|
/* @__PURE__ */ h(S0, { children: [
|
|
271
|
-
/* @__PURE__ */ t(
|
|
270
|
+
/* @__PURE__ */ t(L0, { alt: "rank-icon", src: H0 }),
|
|
272
271
|
/* @__PURE__ */ h(y2, { children: [
|
|
273
272
|
ae(r),
|
|
274
273
|
/* @__PURE__ */ t(w2, { children: "PTS" })
|
|
@@ -311,7 +310,7 @@ const de = (e) => Be(e), o0 = (e) => {
|
|
|
311
310
|
.sl-pill-button {
|
|
312
311
|
display: none !important;
|
|
313
312
|
}
|
|
314
|
-
`, he = () => window.innerWidth >= O.md && window.innerWidth < O.lg ? 76 : 53,
|
|
313
|
+
`, he = () => window.innerWidth >= O.md && window.innerWidth < O.lg ? 76 : 53, k2 = (e) => {
|
|
315
314
|
const s = he();
|
|
316
315
|
return Math.round((e.current?.getBoundingClientRect().y || 0) - s) <= 0;
|
|
317
316
|
}, me = ({
|
|
@@ -320,14 +319,14 @@ const de = (e) => Be(e), o0 = (e) => {
|
|
|
320
319
|
useContainer: n,
|
|
321
320
|
staticStyles: a
|
|
322
321
|
}) => {
|
|
323
|
-
const [r] = w(() =>
|
|
322
|
+
const [r] = w(() => k2(s)), [o, l] = w(!1);
|
|
324
323
|
return y(() => {
|
|
325
324
|
if (!s.current || !r)
|
|
326
325
|
return l(!0), () => {
|
|
327
326
|
};
|
|
328
327
|
const c = window.scrollY;
|
|
329
328
|
return l(!0), () => {
|
|
330
|
-
|
|
329
|
+
k2(s) && window.scrollTo({
|
|
331
330
|
top: c,
|
|
332
331
|
behavior: "instant"
|
|
333
332
|
});
|
|
@@ -369,14 +368,14 @@ const de = (e) => Be(e), o0 = (e) => {
|
|
|
369
368
|
class: "tspsaas",
|
|
370
369
|
propsAsIs: !1
|
|
371
370
|
});
|
|
372
|
-
var
|
|
373
|
-
const
|
|
374
|
-
/* @__PURE__ */ t(
|
|
371
|
+
var j = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(j || {});
|
|
372
|
+
const L2 = ({ title: e, active: s, onClick: n }) => /* @__PURE__ */ t(F0, { "data-a": "intr", onClick: n, "data-selected": s, children: /* @__PURE__ */ t(B0, { "data-a": "intr", children: e }) }), q0 = ({ activePage: e = "home", toggleActivePage: s }) => /* @__PURE__ */ t(O0, { children: /* @__PURE__ */ h(D0, { "data-position": e === "home" ? "left" : "right", children: [
|
|
373
|
+
/* @__PURE__ */ t(L2, { title: "Home", active: e === "home", onClick: () => s(
|
|
375
374
|
"home"
|
|
376
375
|
/* HOME */
|
|
377
376
|
) }),
|
|
378
377
|
/* @__PURE__ */ t(
|
|
379
|
-
|
|
378
|
+
L2,
|
|
380
379
|
{
|
|
381
380
|
title: "Friends",
|
|
382
381
|
active: e === "leaderboard",
|
|
@@ -386,21 +385,21 @@ const k2 = ({ title: e, active: s, onClick: n }) => /* @__PURE__ */ t(F0, { "dat
|
|
|
386
385
|
)
|
|
387
386
|
}
|
|
388
387
|
)
|
|
389
|
-
] }) }),
|
|
388
|
+
] }) }), P0 = /* @__PURE__ */ i("button")({
|
|
390
389
|
name: "Container",
|
|
391
390
|
class: "cpjnajb",
|
|
392
391
|
propsAsIs: !1
|
|
393
|
-
}),
|
|
392
|
+
}), U0 = /* @__PURE__ */ i("div")({
|
|
394
393
|
name: "Content",
|
|
395
394
|
class: "c4m6kaz",
|
|
396
395
|
propsAsIs: !1
|
|
397
|
-
}),
|
|
396
|
+
}), j0 = /* @__PURE__ */ i("span")({
|
|
398
397
|
name: "Title",
|
|
399
398
|
class: "t1h8t9cc",
|
|
400
399
|
propsAsIs: !1
|
|
401
|
-
}), W0 = () => /* @__PURE__ */ t(
|
|
402
|
-
/* @__PURE__ */ t(
|
|
403
|
-
/* @__PURE__ */ t(
|
|
400
|
+
}), W0 = () => /* @__PURE__ */ t(P0, { children: /* @__PURE__ */ h(U0, { children: [
|
|
401
|
+
/* @__PURE__ */ t(L, { name: "iconCopySuccess" }),
|
|
402
|
+
/* @__PURE__ */ t(j0, { children: "Link Copied to Clipboard" })
|
|
404
403
|
] }) }), ue = (e) => {
|
|
405
404
|
const s = E(), [n, a] = w(null), r = q(
|
|
406
405
|
async (o) => {
|
|
@@ -424,7 +423,7 @@ const k2 = ({ title: e, active: s, onClick: n }) => /* @__PURE__ */ t(F0, { "dat
|
|
|
424
423
|
name: "Container",
|
|
425
424
|
class: "c1ux29ft",
|
|
426
425
|
propsAsIs: !1
|
|
427
|
-
}), G0 = () =>
|
|
426
|
+
}), G0 = () => L, Q0 = /* @__PURE__ */ i(G0())({
|
|
428
427
|
name: "FriendsIcon",
|
|
429
428
|
class: "f10ncfg2",
|
|
430
429
|
propsAsIs: !0
|
|
@@ -440,7 +439,7 @@ const k2 = ({ title: e, active: s, onClick: n }) => /* @__PURE__ */ t(F0, { "dat
|
|
|
440
439
|
name: "Description",
|
|
441
440
|
class: "d1ag78xo",
|
|
442
441
|
propsAsIs: !1
|
|
443
|
-
}), X0 = () =>
|
|
442
|
+
}), X0 = () => L, es = /* @__PURE__ */ i(X0())({
|
|
444
443
|
name: "ArrowInviteIcon",
|
|
445
444
|
class: "awohrz6",
|
|
446
445
|
propsAsIs: !0
|
|
@@ -482,8 +481,8 @@ function ts(e) {
|
|
|
482
481
|
const d = typeof document < "u" && document.attachEvent;
|
|
483
482
|
if (!d) {
|
|
484
483
|
l = function(A) {
|
|
485
|
-
const b = A.__resizeTriggers__, N = b.firstElementChild,
|
|
486
|
-
|
|
484
|
+
const b = A.__resizeTriggers__, N = b.firstElementChild, k = b.lastElementChild, x = N.firstElementChild;
|
|
485
|
+
k.scrollLeft = k.scrollWidth, k.scrollTop = k.scrollHeight, x.style.width = N.offsetWidth + 1 + "px", x.style.height = N.offsetHeight + 1 + "px", N.scrollLeft = N.scrollWidth, N.scrollTop = N.scrollHeight;
|
|
487
486
|
}, o = function(A) {
|
|
488
487
|
return A.offsetWidth !== A.__resizeLast__.width || A.offsetHeight !== A.__resizeLast__.height;
|
|
489
488
|
}, c = function(A) {
|
|
@@ -778,7 +777,7 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
778
777
|
name: "Name",
|
|
779
778
|
class: "njsrqgr",
|
|
780
779
|
propsAsIs: !1
|
|
781
|
-
}), Cs = () =>
|
|
780
|
+
}), Cs = () => L, gs = /* @__PURE__ */ i(Cs())({
|
|
782
781
|
name: "CurrentUserBadge",
|
|
783
782
|
class: "c17uc4zr",
|
|
784
783
|
propsAsIs: !0
|
|
@@ -839,15 +838,15 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
839
838
|
name: "IconContainer",
|
|
840
839
|
class: "i1w4fsni",
|
|
841
840
|
propsAsIs: !1
|
|
842
|
-
}), ys = () =>
|
|
841
|
+
}), ys = () => L, ws = /* @__PURE__ */ i(ys())({
|
|
843
842
|
name: "InviteGameIcon",
|
|
844
843
|
class: "i19m85r1",
|
|
845
844
|
propsAsIs: !0
|
|
846
|
-
}),
|
|
845
|
+
}), ks = /* @__PURE__ */ i("div")({
|
|
847
846
|
name: "Content",
|
|
848
847
|
class: "c1mbu204",
|
|
849
848
|
propsAsIs: !1
|
|
850
|
-
}),
|
|
849
|
+
}), Ls = /* @__PURE__ */ i("div")({
|
|
851
850
|
name: "Heading",
|
|
852
851
|
class: "h1amdqtv",
|
|
853
852
|
propsAsIs: !1
|
|
@@ -871,7 +870,7 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
871
870
|
name: "LinkAddress",
|
|
872
871
|
class: "lvi87q4",
|
|
873
872
|
propsAsIs: !1
|
|
874
|
-
}), Rs = () =>
|
|
873
|
+
}), Rs = () => L, Es = /* @__PURE__ */ i(Rs())({
|
|
875
874
|
name: "LinkIcon",
|
|
876
875
|
class: "l1pqlvw3",
|
|
877
876
|
propsAsIs: !0
|
|
@@ -891,8 +890,8 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
891
890
|
});
|
|
892
891
|
return /* @__PURE__ */ h(bs, { className: r, children: [
|
|
893
892
|
/* @__PURE__ */ t(As, { style: { backgroundColor: a }, children: /* @__PURE__ */ t(ws, { name: "invite-game-icon" }) }),
|
|
894
|
-
/* @__PURE__ */ h(
|
|
895
|
-
/* @__PURE__ */ t(
|
|
893
|
+
/* @__PURE__ */ h(ks, { children: [
|
|
894
|
+
/* @__PURE__ */ t(Ls, { children: s || "" }),
|
|
896
895
|
/* @__PURE__ */ t(_s, { children: n || "" })
|
|
897
896
|
] }),
|
|
898
897
|
e && /* @__PURE__ */ h(Ns, { ref: o, "data-a": "intr", onClick: d(() => l(e)), children: [
|
|
@@ -972,10 +971,10 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
972
971
|
name: "ActionBtn",
|
|
973
972
|
class: "a10g1iik",
|
|
974
973
|
propsAsIs: !0
|
|
975
|
-
}),
|
|
976
|
-
/* @__PURE__ */ t(
|
|
974
|
+
}), Ps = ({ questionId: e, ...s }) => /* @__PURE__ */ h(Fs, { "data-a": "intr", "data-name": e, children: [
|
|
975
|
+
/* @__PURE__ */ t(Ue, { questionId: e, ...s }),
|
|
977
976
|
/* @__PURE__ */ t(qs, { "data-a": "intr", "data-name": e, children: "View Insight" })
|
|
978
|
-
] }),
|
|
977
|
+
] }), Us = () => ce, js = /* @__PURE__ */ i(Us())({
|
|
979
978
|
name: "Container",
|
|
980
979
|
class: "cl56x6b",
|
|
981
980
|
propsAsIs: !0
|
|
@@ -987,7 +986,7 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
987
986
|
name: "Quote",
|
|
988
987
|
class: "q1hbaleq",
|
|
989
988
|
propsAsIs: !1
|
|
990
|
-
}), Gs = ({ ...e }) => /* @__PURE__ */ h(
|
|
989
|
+
}), Gs = ({ ...e }) => /* @__PURE__ */ h(js, { "data-a": "intr", "data-name": e.tweetId, children: [
|
|
991
990
|
e.title && /* @__PURE__ */ t(Zs, { children: e.title }),
|
|
992
991
|
/* @__PURE__ */ t(re, { ...e }),
|
|
993
992
|
/* @__PURE__ */ t(Ws, { "data-a": "intr", "data-name": e.tweetId, children: "View Insight" })
|
|
@@ -1005,16 +1004,18 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
1005
1004
|
}
|
|
1006
1005
|
if (r.type === "insight" && r.attributes?.attributes.case === "insight") {
|
|
1007
1006
|
const o = r.attributes.attributes.value;
|
|
1008
|
-
return /* @__PURE__ */ t(
|
|
1007
|
+
return /* @__PURE__ */ t(Ps, { controlVideo: n, ...o }, o.questionId);
|
|
1009
1008
|
}
|
|
1010
1009
|
if (r.type === "tweet" && r.attributes?.attributes.case === "tweet") {
|
|
1011
1010
|
const o = r.attributes.attributes.value, l = r.attributes.id;
|
|
1012
1011
|
return /* @__PURE__ */ t(Gs, { controlVideo: n, ...o, tweetId: l }, l);
|
|
1013
1012
|
}
|
|
1014
1013
|
return null;
|
|
1015
|
-
}) }) : /* @__PURE__ */ t(x2, { children: Array.from({ length: 5 }).map((r, o) => /* @__PURE__ */ t(e0, {}, o)) }), Ks = ({ store: e, openQuestion: s }) => {
|
|
1016
|
-
const { sdk:
|
|
1017
|
-
return
|
|
1014
|
+
}) }) : /* @__PURE__ */ t(x2, { children: Array.from({ length: 5 }).map((r, o) => /* @__PURE__ */ t(e0, {}, o)) }), Ks = ({ store: e, openQuestion: s, withPickHistory: n }) => {
|
|
1015
|
+
const { sdk: a } = p2(), r = $(e);
|
|
1016
|
+
return y(() => {
|
|
1017
|
+
n.set(!0);
|
|
1018
|
+
}, [n]), /* @__PURE__ */ t(Qs, { openQuestion: s, questions: r.data, controlVideo: a?.controlVideoPlayer });
|
|
1018
1019
|
}, Ys = ({ userSummary: e }) => {
|
|
1019
1020
|
const [s, n] = w(void 0);
|
|
1020
1021
|
return y(() => {
|
|
@@ -1026,7 +1027,7 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
1026
1027
|
};
|
|
1027
1028
|
}, [e]), /* @__PURE__ */ t(pe, { loading: !s?.summary, ...s?.summary, successRate: s?.percentage?.correct });
|
|
1028
1029
|
}, Js = ({ gamification: e, className: s, scrollStore: n, scrollNode: a, appNode: r, style: o, responsiveStore: l }) => {
|
|
1029
|
-
const { tabsShown: c } = $(n, { keys: ["tabsShown"] }), d = $(e.friendsTabEnabled), [m, f] = w(
|
|
1030
|
+
const { tabsShown: c } = $(n, { keys: ["tabsShown"] }), d = $(e.friendsTabEnabled), [m, f] = w(j.HOME), [, u] = we(), { sdkInDesktopView: p, screen: C } = $(l, { keys: ["sdkInDesktopView"] }), g = (v) => {
|
|
1030
1031
|
u(() => {
|
|
1031
1032
|
f(v), p === !1 && (r.current?.getBoundingClientRect().y || 0) < 0 && m2(r, C.size, { behavior: "instant" });
|
|
1032
1033
|
});
|
|
@@ -1038,12 +1039,12 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
1038
1039
|
}
|
|
1039
1040
|
l.get().sdkInDesktopView ? n.setKey("tabsShown", v.scrollDirection === "backward") : n.setKey("tabsShown", v.scrollDirection === "forward");
|
|
1040
1041
|
}), [n, l]), y(() => {
|
|
1041
|
-
d || f(
|
|
1042
|
+
d || f(j.HOME);
|
|
1042
1043
|
}, [d]);
|
|
1043
1044
|
let I = "0px";
|
|
1044
|
-
return p ? I = c ? "0px" : "calc(0px - var(--header-height))" : I = c ? "var(--header-height)" : "0px", /* @__PURE__ */ h(
|
|
1045
|
+
return p ? I = c ? "0px" : "calc(0px - var(--header-height))" : I = c ? "var(--header-height)" : "0px", /* @__PURE__ */ h(ke, { className: D(s, "SL-Tabs", "sl-hide-on-modal"), style: o, children: [
|
|
1045
1046
|
d && /* @__PURE__ */ t(
|
|
1046
|
-
|
|
1047
|
+
Le,
|
|
1047
1048
|
{
|
|
1048
1049
|
style: {
|
|
1049
1050
|
top: I
|
|
@@ -1051,11 +1052,18 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
1051
1052
|
children: /* @__PURE__ */ t(q0, { activePage: m, toggleActivePage: g })
|
|
1052
1053
|
}
|
|
1053
1054
|
),
|
|
1054
|
-
m ===
|
|
1055
|
+
m === j.HOME && /* @__PURE__ */ h(S, { children: [
|
|
1055
1056
|
/* @__PURE__ */ t(_e, { children: /* @__PURE__ */ t(Ne, { children: /* @__PURE__ */ t(Ys, { userSummary: e.userSummary }) }) }),
|
|
1056
|
-
/* @__PURE__ */ t(Se, { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
1057
|
+
/* @__PURE__ */ t(Se, { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
1058
|
+
Ks,
|
|
1059
|
+
{
|
|
1060
|
+
openQuestion: e.openQuestion,
|
|
1061
|
+
store: e.feedList.getStore(),
|
|
1062
|
+
withPickHistory: e.withPickHistory
|
|
1063
|
+
}
|
|
1064
|
+
) })
|
|
1057
1065
|
] }),
|
|
1058
|
-
m ===
|
|
1066
|
+
m === j.LEADERBOARD && /* @__PURE__ */ t(Te, { children: /* @__PURE__ */ t(Os, { scrollStore: n, scrollNode: a, gamification: e }) })
|
|
1059
1067
|
] });
|
|
1060
1068
|
}, Xs = () => n2, R2 = /* @__PURE__ */ i(Xs())({
|
|
1061
1069
|
name: "OpenedContainer",
|
|
@@ -1071,7 +1079,7 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
1071
1079
|
}) => {
|
|
1072
1080
|
const n = e + s;
|
|
1073
1081
|
return n === 0 ? 0 : Math.round(e / n * 100);
|
|
1074
|
-
},
|
|
1082
|
+
}, za = ({
|
|
1075
1083
|
gamification: e,
|
|
1076
1084
|
scrollStore: s,
|
|
1077
1085
|
className: n,
|
|
@@ -1109,7 +1117,7 @@ const cs = /* @__PURE__ */ i("div")({
|
|
|
1109
1117
|
className: D(a, !l && E2),
|
|
1110
1118
|
hiding: u,
|
|
1111
1119
|
onAnimationEnd: p,
|
|
1112
|
-
children: /* @__PURE__ */ t(
|
|
1120
|
+
children: /* @__PURE__ */ t(je, {
|
|
1113
1121
|
muted: s,
|
|
1114
1122
|
sdk: n,
|
|
1115
1123
|
gamification: e
|
|
@@ -1314,7 +1322,7 @@ const ct = {
|
|
|
1314
1322
|
/* @__PURE__ */ t(ft, { children: a })
|
|
1315
1323
|
] })
|
|
1316
1324
|
}
|
|
1317
|
-
), It = () =>
|
|
1325
|
+
), It = () => L, $t = /* @__PURE__ */ i(It())({
|
|
1318
1326
|
name: "ButtonIcon",
|
|
1319
1327
|
class: "b11wpe79",
|
|
1320
1328
|
propsAsIs: !0
|
|
@@ -1330,11 +1338,11 @@ const ct = {
|
|
|
1330
1338
|
name: "CloseIconWrap",
|
|
1331
1339
|
class: "c17srj38",
|
|
1332
1340
|
propsAsIs: !1
|
|
1333
|
-
}), wt = () =>
|
|
1341
|
+
}), wt = () => L, kt = /* @__PURE__ */ i(wt())({
|
|
1334
1342
|
name: "CloseIcon",
|
|
1335
1343
|
class: "clqia8k",
|
|
1336
1344
|
propsAsIs: !0
|
|
1337
|
-
}),
|
|
1345
|
+
}), Lt = () => L, _t = /* @__PURE__ */ i(Lt())({
|
|
1338
1346
|
name: "DashboardIcon",
|
|
1339
1347
|
class: "df5w958",
|
|
1340
1348
|
propsAsIs: !0
|
|
@@ -1355,7 +1363,7 @@ const ct = {
|
|
|
1355
1363
|
}), /* @__PURE__ */ t(yt, {
|
|
1356
1364
|
"data-a": "intr",
|
|
1357
1365
|
onClick: a,
|
|
1358
|
-
children: /* @__PURE__ */ t(
|
|
1366
|
+
children: /* @__PURE__ */ t(kt, {
|
|
1359
1367
|
name: "icon-cross"
|
|
1360
1368
|
})
|
|
1361
1369
|
})]
|
|
@@ -1462,15 +1470,15 @@ const ct = {
|
|
|
1462
1470
|
name: "CloseIconWrap",
|
|
1463
1471
|
class: "crylm65",
|
|
1464
1472
|
propsAsIs: !1
|
|
1465
|
-
}), Bt = () =>
|
|
1473
|
+
}), Bt = () => L, qt = /* @__PURE__ */ i(Bt())({
|
|
1466
1474
|
name: "CloseIcon",
|
|
1467
1475
|
class: "c9mrcz7",
|
|
1468
1476
|
propsAsIs: !0
|
|
1469
|
-
}),
|
|
1477
|
+
}), Pt = /* @__PURE__ */ i("div")({
|
|
1470
1478
|
name: "Header",
|
|
1471
1479
|
class: "hw3lzv4",
|
|
1472
1480
|
propsAsIs: !1
|
|
1473
|
-
}),
|
|
1481
|
+
}), Ut = () => L, jt = /* @__PURE__ */ i(Ut())({
|
|
1474
1482
|
name: "TypeIcon",
|
|
1475
1483
|
class: "t1rrb3kf",
|
|
1476
1484
|
propsAsIs: !0
|
|
@@ -1524,9 +1532,9 @@ const ct = {
|
|
|
1524
1532
|
children: /* @__PURE__ */ t(qt, { name: "icon-cross" })
|
|
1525
1533
|
}
|
|
1526
1534
|
),
|
|
1527
|
-
a !== R.TWEET && /* @__PURE__ */ h(
|
|
1535
|
+
a !== R.TWEET && /* @__PURE__ */ h(Pt, { children: [
|
|
1528
1536
|
/* @__PURE__ */ t(
|
|
1529
|
-
|
|
1537
|
+
jt,
|
|
1530
1538
|
{
|
|
1531
1539
|
"data-type-trivia": a === R.TRIVIA,
|
|
1532
1540
|
"data-type-poll": a === R.POLL,
|
|
@@ -1542,7 +1550,7 @@ const ct = {
|
|
|
1542
1550
|
/* @__PURE__ */ t(Gt, { children: "Answer" })
|
|
1543
1551
|
] })
|
|
1544
1552
|
] }) : null;
|
|
1545
|
-
},
|
|
1553
|
+
}, P = /* @__PURE__ */ i("div")({
|
|
1546
1554
|
name: "BGWrap",
|
|
1547
1555
|
class: "b1dqe0sz",
|
|
1548
1556
|
propsAsIs: !1
|
|
@@ -1562,15 +1570,15 @@ const ct = {
|
|
|
1562
1570
|
name: "BGOneLineThree",
|
|
1563
1571
|
class: "b63lwcb",
|
|
1564
1572
|
propsAsIs: !0
|
|
1565
|
-
}), on = () => _,
|
|
1573
|
+
}), on = () => _, P2 = /* @__PURE__ */ i(on())({
|
|
1566
1574
|
name: "BGTwoLineOne",
|
|
1567
1575
|
class: "b2iah4",
|
|
1568
1576
|
propsAsIs: !0
|
|
1569
|
-
}), ln = () => _,
|
|
1577
|
+
}), ln = () => _, U2 = /* @__PURE__ */ i(ln())({
|
|
1570
1578
|
name: "BGTwoLineTwo",
|
|
1571
1579
|
class: "b1xezvf6",
|
|
1572
1580
|
propsAsIs: !0
|
|
1573
|
-
}), cn = () => _,
|
|
1581
|
+
}), cn = () => _, j2 = /* @__PURE__ */ i(cn())({
|
|
1574
1582
|
name: "BGTwoLineThree",
|
|
1575
1583
|
class: "b1jz1hg0",
|
|
1576
1584
|
propsAsIs: !0
|
|
@@ -1607,45 +1615,45 @@ const ct = {
|
|
|
1607
1615
|
class: "bx3ddqw",
|
|
1608
1616
|
propsAsIs: !0
|
|
1609
1617
|
}), An = ({ step: e, correct: s }) => /* @__PURE__ */ h(S, { children: [
|
|
1610
|
-
/* @__PURE__ */ h(
|
|
1618
|
+
/* @__PURE__ */ h(P, { "data-active": e === 1, "data-first-screen": "true", children: [
|
|
1611
1619
|
/* @__PURE__ */ t(sn, {}),
|
|
1612
1620
|
/* @__PURE__ */ t(nn, {}),
|
|
1613
1621
|
/* @__PURE__ */ t(rn, {})
|
|
1614
1622
|
] }),
|
|
1615
|
-
/* @__PURE__ */ h(
|
|
1623
|
+
/* @__PURE__ */ h(P, { "data-active": e === 2, children: [
|
|
1624
|
+
/* @__PURE__ */ t(P2, {}),
|
|
1616
1625
|
/* @__PURE__ */ t(U2, {}),
|
|
1617
|
-
/* @__PURE__ */ t(j2, {})
|
|
1618
|
-
/* @__PURE__ */ t(P2, {})
|
|
1626
|
+
/* @__PURE__ */ t(j2, {})
|
|
1619
1627
|
] }),
|
|
1620
|
-
/* @__PURE__ */ h(
|
|
1628
|
+
/* @__PURE__ */ h(P, { "data-active": e === 3, children: [
|
|
1629
|
+
/* @__PURE__ */ t(P2, {}),
|
|
1621
1630
|
/* @__PURE__ */ t(U2, {}),
|
|
1622
|
-
/* @__PURE__ */ t(j2, {})
|
|
1623
|
-
/* @__PURE__ */ t(P2, {})
|
|
1631
|
+
/* @__PURE__ */ t(j2, {})
|
|
1624
1632
|
] }),
|
|
1625
1633
|
s ? /* @__PURE__ */ h(S, { children: [
|
|
1626
|
-
/* @__PURE__ */ h(
|
|
1634
|
+
/* @__PURE__ */ h(P, { "data-active": e === 4, "data-correct": "true", children: [
|
|
1627
1635
|
/* @__PURE__ */ t(W2, {}),
|
|
1628
1636
|
/* @__PURE__ */ t(Z2, {}),
|
|
1629
1637
|
/* @__PURE__ */ t(G2, {}),
|
|
1630
1638
|
/* @__PURE__ */ t(Q2, {})
|
|
1631
1639
|
] }),
|
|
1632
|
-
/* @__PURE__ */ h(
|
|
1640
|
+
/* @__PURE__ */ h(P, { "data-active": e === 5, "data-correct": "true", children: [
|
|
1633
1641
|
/* @__PURE__ */ t(W2, {}),
|
|
1634
1642
|
/* @__PURE__ */ t(Z2, {}),
|
|
1635
1643
|
/* @__PURE__ */ t(G2, {}),
|
|
1636
1644
|
/* @__PURE__ */ t(Q2, {})
|
|
1637
1645
|
] })
|
|
1638
|
-
] }) : /* @__PURE__ */ h(
|
|
1646
|
+
] }) : /* @__PURE__ */ h(P, { "data-active": e === 4, "data-correct": "false", children: [
|
|
1639
1647
|
/* @__PURE__ */ t(fn, {}),
|
|
1640
1648
|
/* @__PURE__ */ t(gn, {}),
|
|
1641
1649
|
/* @__PURE__ */ t(In, {}),
|
|
1642
1650
|
/* @__PURE__ */ t(bn, {})
|
|
1643
1651
|
] })
|
|
1644
|
-
] }), yn = 118, wn = () => n2,
|
|
1652
|
+
] }), yn = 118, wn = () => n2, kn = /* @__PURE__ */ i(wn())({
|
|
1645
1653
|
name: "Container",
|
|
1646
1654
|
class: "c10131zw",
|
|
1647
1655
|
propsAsIs: !0
|
|
1648
|
-
}),
|
|
1656
|
+
}), Ln = /* @__PURE__ */ i("div")({
|
|
1649
1657
|
name: "InnerContainer",
|
|
1650
1658
|
class: "ir6k2eo",
|
|
1651
1659
|
propsAsIs: !1
|
|
@@ -1673,7 +1681,7 @@ const ct = {
|
|
|
1673
1681
|
name: "AnswerText",
|
|
1674
1682
|
class: "a1lbk2ye",
|
|
1675
1683
|
propsAsIs: !1
|
|
1676
|
-
}), Sn = () =>
|
|
1684
|
+
}), Sn = () => L, ge = /* @__PURE__ */ i(Sn())({
|
|
1677
1685
|
name: "FeedbackIcon",
|
|
1678
1686
|
class: "frcvk3t",
|
|
1679
1687
|
propsAsIs: !0
|
|
@@ -1689,7 +1697,7 @@ const ct = {
|
|
|
1689
1697
|
name: "CloseIconWrap",
|
|
1690
1698
|
class: "c1fw6699",
|
|
1691
1699
|
propsAsIs: !1
|
|
1692
|
-
}), En = () =>
|
|
1700
|
+
}), En = () => L, X2 = /* @__PURE__ */ i(En())({
|
|
1693
1701
|
name: "CloseIcon",
|
|
1694
1702
|
class: "c115o126",
|
|
1695
1703
|
propsAsIs: !0
|
|
@@ -1706,8 +1714,8 @@ const ct = {
|
|
|
1706
1714
|
const p = (I) => (v) => {
|
|
1707
1715
|
u.current && (u.current[I] = v);
|
|
1708
1716
|
}, C = (I) => ({ transform: zn(I, m, c.height) }), g = { ...c };
|
|
1709
|
-
return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ t(
|
|
1710
|
-
|
|
1717
|
+
return n && g.height && typeof g.height == "number" && (g.height += 32), /* @__PURE__ */ t(kn, { style: c.height ? g : { ...c, paddingTop: 0, paddingBottom: 0 }, hiding: d, children: /* @__PURE__ */ h(
|
|
1718
|
+
Ln,
|
|
1711
1719
|
{
|
|
1712
1720
|
style: {
|
|
1713
1721
|
height: c.height,
|
|
@@ -1830,21 +1838,21 @@ const ct = {
|
|
|
1830
1838
|
name: "Content",
|
|
1831
1839
|
class: "c12clm3w",
|
|
1832
1840
|
propsAsIs: !1
|
|
1833
|
-
}),
|
|
1841
|
+
}), Pn = /* @__PURE__ */ i("span")({
|
|
1834
1842
|
name: "Name",
|
|
1835
1843
|
class: "n14lctn7",
|
|
1836
1844
|
propsAsIs: !1
|
|
1837
|
-
}),
|
|
1845
|
+
}), Un = ({ avatar: e, name: s }) => /* @__PURE__ */ h(Dn, { children: [
|
|
1838
1846
|
e && /* @__PURE__ */ t(Fn, { src: e }),
|
|
1839
1847
|
!e && /* @__PURE__ */ t(Bn, { children: h2(s || "") }),
|
|
1840
1848
|
/* @__PURE__ */ h(qn, { children: [
|
|
1841
|
-
/* @__PURE__ */ h(
|
|
1849
|
+
/* @__PURE__ */ h(Pn, { children: [
|
|
1842
1850
|
s,
|
|
1843
1851
|
" "
|
|
1844
1852
|
] }),
|
|
1845
1853
|
"is waiting for you!"
|
|
1846
1854
|
] })
|
|
1847
|
-
] }),
|
|
1855
|
+
] }), jn = /* @__PURE__ */ i("div")({
|
|
1848
1856
|
name: "Container",
|
|
1849
1857
|
class: "c1htq1lb",
|
|
1850
1858
|
propsAsIs: !1
|
|
@@ -1891,13 +1899,13 @@ const ct = {
|
|
|
1891
1899
|
inviterName: a
|
|
1892
1900
|
}) => {
|
|
1893
1901
|
const { headline: r, tagline: o } = s[n];
|
|
1894
|
-
return /* @__PURE__ */ h(
|
|
1902
|
+
return /* @__PURE__ */ h(jn, { children: [
|
|
1895
1903
|
o && /* @__PURE__ */ t(Qn, { children: /* @__PURE__ */ t(M, { loading: e, children: /* @__PURE__ */ t(Kn, { children: o }) }) }),
|
|
1896
1904
|
/* @__PURE__ */ h(Yn, { "data-welcome-screen": n === 0, children: [
|
|
1897
1905
|
/* @__PURE__ */ t(Wn, { children: /* @__PURE__ */ t(M, { loading: e, children: s.map(({ graphicSrc: l }, c) => /* @__PURE__ */ t(Zn, { src: l, "data-active": n === c })) }) }),
|
|
1898
1906
|
r && /* @__PURE__ */ t(M, { loading: e, children: /* @__PURE__ */ t(Gn, { children: r }) })
|
|
1899
1907
|
] }),
|
|
1900
|
-
a && n === 0 && /* @__PURE__ */ t(ei, { children: /* @__PURE__ */ t(
|
|
1908
|
+
a && n === 0 && /* @__PURE__ */ t(ei, { children: /* @__PURE__ */ t(Un, { name: a }) }),
|
|
1901
1909
|
/* @__PURE__ */ t(Jn, { style: e ? { visibility: "hidden" } : {}, children: Array.from({ length: s.length }).map((l, c) => /* @__PURE__ */ t(Xn, { "data-active": n === c }, c)) })
|
|
1902
1910
|
] });
|
|
1903
1911
|
}, ti = /* @__PURE__ */ i("div")({
|
|
@@ -1942,7 +1950,7 @@ const ct = {
|
|
|
1942
1950
|
/* @__PURE__ */ h(ni, { children: [
|
|
1943
1951
|
/* @__PURE__ */ t(ii, { children: s }),
|
|
1944
1952
|
/* @__PURE__ */ t(ai, { children: e?.map(({ label: o, icon: l }, c) => /* @__PURE__ */ h(ri, { children: [
|
|
1945
|
-
l && /* @__PURE__ */ t(oi, { style: { backgroundColor: a }, children: /* @__PURE__ */ t(
|
|
1953
|
+
l && /* @__PURE__ */ t(oi, { style: { backgroundColor: a }, children: /* @__PURE__ */ t(L, { name: l, "data-icon": l }) }),
|
|
1946
1954
|
/* @__PURE__ */ t(li, { children: o })
|
|
1947
1955
|
] }, c)) })
|
|
1948
1956
|
] }),
|
|
@@ -1990,19 +1998,19 @@ const ct = {
|
|
|
1990
1998
|
name: "CloseBtn",
|
|
1991
1999
|
class: "c15cjkwi",
|
|
1992
2000
|
propsAsIs: !1
|
|
1993
|
-
}), yi = () =>
|
|
2001
|
+
}), yi = () => L, wi = /* @__PURE__ */ i(yi())({
|
|
1994
2002
|
name: "IconClose",
|
|
1995
2003
|
class: "i1mavjt2",
|
|
1996
2004
|
propsAsIs: !0
|
|
1997
|
-
}),
|
|
2005
|
+
}), ki = /* @__PURE__ */ i("div")({
|
|
1998
2006
|
name: "OnboardingFooter",
|
|
1999
2007
|
class: "o1x0dyzv",
|
|
2000
2008
|
propsAsIs: !1
|
|
2001
|
-
}),
|
|
2009
|
+
}), Li = () => vi, _i = /* @__PURE__ */ i(Li())({
|
|
2002
2010
|
name: "OnboardingActionBtn",
|
|
2003
2011
|
class: "o1jfi9c3",
|
|
2004
2012
|
propsAsIs: !0
|
|
2005
|
-
}),
|
|
2013
|
+
}), U = {
|
|
2006
2014
|
steps: !1,
|
|
2007
2015
|
rules: !1,
|
|
2008
2016
|
inviteCard: !1
|
|
@@ -2024,21 +2032,21 @@ const ct = {
|
|
|
2024
2032
|
sdk: g,
|
|
2025
2033
|
onClose: I
|
|
2026
2034
|
}) => {
|
|
2027
|
-
const [v, A] = w(0), [b, N] = w(!1), [
|
|
2035
|
+
const [v, A] = w(0), [b, N] = w(!1), [k, x] = w(U);
|
|
2028
2036
|
y(() => {
|
|
2029
|
-
s?.length ? x({ ...
|
|
2037
|
+
s?.length ? x({ ...U, steps: !0 }) : n?.length ? x({ ...U, rules: !0 }) : x({ ...U, inviteCard: !0 });
|
|
2030
2038
|
}, []);
|
|
2031
|
-
const $e = z(() =>
|
|
2032
|
-
s?.length && v < s.length - 1 ? A((i2) => ++i2) : n?.length &&
|
|
2033
|
-
}, [v, s?.length, n?.length,
|
|
2034
|
-
|
|
2039
|
+
const $e = z(() => k.steps && v === 0 ? "Continue" : k.rules ? b || !a ? "Got it" : a : k.inviteCard ? u || "Play Now" : "Next", [k, v, b, a, u]), be = q(() => {
|
|
2040
|
+
s?.length && v < s.length - 1 ? A((i2) => ++i2) : n?.length && k.steps ? x({ ...U, rules: !0 }) : k.rules && x({ ...U, inviteCard: !0 });
|
|
2041
|
+
}, [v, s?.length, n?.length, k, A, x]), Ae = async () => {
|
|
2042
|
+
k.inviteCard ? await e.onboardingStatus.submitInplay() : k.rules && b ? N(!1) : be();
|
|
2035
2043
|
};
|
|
2036
2044
|
return y(() => {
|
|
2037
2045
|
!p && C && g.inviteDisplayed();
|
|
2038
2046
|
}, [p, C, g]), /* @__PURE__ */ t(ns, { children: ({ width: i2, height: u2 }) => /* @__PURE__ */ h(Ii, { style: { width: i2, height: u2, maxHeight: u2 }, children: [
|
|
2039
2047
|
/* @__PURE__ */ t(bi, { children: /* @__PURE__ */ t(Ai, { "data-a": "intr", onClick: I, children: /* @__PURE__ */ t(wi, { name: "icon-close-btn-gray" }) }) }),
|
|
2040
2048
|
/* @__PURE__ */ h($i, { children: [
|
|
2041
|
-
|
|
2049
|
+
k.steps && s?.length && /* @__PURE__ */ t(
|
|
2042
2050
|
si,
|
|
2043
2051
|
{
|
|
2044
2052
|
loading: p,
|
|
@@ -2047,7 +2055,7 @@ const ct = {
|
|
|
2047
2055
|
inviterName: C
|
|
2048
2056
|
}
|
|
2049
2057
|
),
|
|
2050
|
-
|
|
2058
|
+
k.rules && !b && /* @__PURE__ */ t(
|
|
2051
2059
|
di,
|
|
2052
2060
|
{
|
|
2053
2061
|
rules: n,
|
|
@@ -2057,8 +2065,8 @@ const ct = {
|
|
|
2057
2065
|
openTerms: () => N(!0)
|
|
2058
2066
|
}
|
|
2059
2067
|
),
|
|
2060
|
-
|
|
2061
|
-
|
|
2068
|
+
k.rules && b && /* @__PURE__ */ t(fi, { termsTitle: o, termsText: l }),
|
|
2069
|
+
k.inviteCard && /* @__PURE__ */ t(
|
|
2062
2070
|
fe,
|
|
2063
2071
|
{
|
|
2064
2072
|
inviteLink: d,
|
|
@@ -2068,7 +2076,7 @@ const ct = {
|
|
|
2068
2076
|
}
|
|
2069
2077
|
)
|
|
2070
2078
|
] }),
|
|
2071
|
-
/* @__PURE__ */ t(
|
|
2079
|
+
/* @__PURE__ */ t(ki, { children: /* @__PURE__ */ t(M, { loading: p, style: { width: "100%" }, children: /* @__PURE__ */ t(_i, { "data-a": "intr", onClick: Ae, children: $e }) }) })
|
|
2072
2080
|
] }) });
|
|
2073
2081
|
}, Si = /* @__PURE__ */ i("div")({
|
|
2074
2082
|
name: "Container",
|
|
@@ -2078,7 +2086,7 @@ const ct = {
|
|
|
2078
2086
|
name: "CloseIconWrap",
|
|
2079
2087
|
class: "c1lg6b8a",
|
|
2080
2088
|
propsAsIs: !1
|
|
2081
|
-
}), xi = () =>
|
|
2089
|
+
}), xi = () => L, Ri = /* @__PURE__ */ i(xi())({
|
|
2082
2090
|
name: "CloseIcon",
|
|
2083
2091
|
class: "c159el66",
|
|
2084
2092
|
propsAsIs: !0
|
|
@@ -2143,7 +2151,7 @@ const ct = {
|
|
|
2143
2151
|
name: "OnboardingOverlap",
|
|
2144
2152
|
class: "ovnr8ov",
|
|
2145
2153
|
propsAsIs: !1
|
|
2146
|
-
}),
|
|
2154
|
+
}), Pi = ({
|
|
2147
2155
|
deepLink: e,
|
|
2148
2156
|
onboardingOpts: s,
|
|
2149
2157
|
notification: n,
|
|
@@ -2198,7 +2206,7 @@ const ct = {
|
|
|
2198
2206
|
inviterName: f
|
|
2199
2207
|
}), l && /* @__PURE__ */ t(qi, {})]
|
|
2200
2208
|
});
|
|
2201
|
-
},
|
|
2209
|
+
}, Ui = ({
|
|
2202
2210
|
sdk: e,
|
|
2203
2211
|
notification: s,
|
|
2204
2212
|
saveHeight: n,
|
|
@@ -2224,7 +2232,7 @@ const ct = {
|
|
|
2224
2232
|
return m && u && d && r.current ? /* @__PURE__ */ t(me, {
|
|
2225
2233
|
container: r,
|
|
2226
2234
|
useContainer: !o,
|
|
2227
|
-
children: /* @__PURE__ */ t(
|
|
2235
|
+
children: /* @__PURE__ */ t(Pi, {
|
|
2228
2236
|
throttled: I,
|
|
2229
2237
|
notification: s,
|
|
2230
2238
|
setOpened: f,
|
|
@@ -2265,7 +2273,7 @@ const ct = {
|
|
|
2265
2273
|
})
|
|
2266
2274
|
})]
|
|
2267
2275
|
});
|
|
2268
|
-
},
|
|
2276
|
+
}, ji = /* @__PURE__ */ i("button")({
|
|
2269
2277
|
name: "Container",
|
|
2270
2278
|
class: "crkmfw1",
|
|
2271
2279
|
propsAsIs: !1
|
|
@@ -2277,8 +2285,8 @@ const ct = {
|
|
|
2277
2285
|
name: "Title",
|
|
2278
2286
|
class: "t154z7mh",
|
|
2279
2287
|
propsAsIs: !1
|
|
2280
|
-
}), Gi = ({ title: e, onClick: s, className: n, style: a }) => /* @__PURE__ */ t(
|
|
2281
|
-
/* @__PURE__ */ t(
|
|
2288
|
+
}), Gi = ({ title: e, onClick: s, className: n, style: a }) => /* @__PURE__ */ t(ji, { "data-a": "intr", onClick: s, className: n, style: a, children: /* @__PURE__ */ h(Wi, { "data-a": "intr", children: [
|
|
2289
|
+
/* @__PURE__ */ t(L, { "data-a": "intr", name: "iconUp" }),
|
|
2282
2290
|
e && /* @__PURE__ */ t(Zi, { "data-a": "intr", children: e })
|
|
2283
2291
|
] }) }), Qi = () => n2, Ki = /* @__PURE__ */ i(Qi())({
|
|
2284
2292
|
name: "Container",
|
|
@@ -2340,7 +2348,7 @@ const ct = {
|
|
|
2340
2348
|
sdk: l
|
|
2341
2349
|
} = p2(), [c, d, m] = ta(s.id);
|
|
2342
2350
|
let f = d;
|
|
2343
|
-
return r || (f = "auto"), s.type ===
|
|
2351
|
+
return r || (f = "auto"), s.type === e2.QUESTION ? /* @__PURE__ */ h(S, {
|
|
2344
2352
|
children: [/* @__PURE__ */ t(Ji, {
|
|
2345
2353
|
ref: c,
|
|
2346
2354
|
children: /* @__PURE__ */ t(q2, {
|
|
@@ -2361,7 +2369,7 @@ const ct = {
|
|
|
2361
2369
|
})
|
|
2362
2370
|
}), /* @__PURE__ */ t(Xi, {}, s.id)]
|
|
2363
2371
|
})]
|
|
2364
|
-
}) : s.type ===
|
|
2372
|
+
}) : s.type === e2.QUESTION_RESOLVED && s.data?.question?.predictionResult ? /* @__PURE__ */ t(Mn, {
|
|
2365
2373
|
style: {
|
|
2366
2374
|
height: s.hiding ? 0 : d
|
|
2367
2375
|
},
|
|
@@ -2369,7 +2377,7 @@ const ct = {
|
|
|
2369
2377
|
close: s.close,
|
|
2370
2378
|
hiding: s.hiding,
|
|
2371
2379
|
...s.data.question
|
|
2372
|
-
}) : s.type ===
|
|
2380
|
+
}) : s.type === e2.ONBOARDING ? /* @__PURE__ */ t(Ui, {
|
|
2373
2381
|
style: {
|
|
2374
2382
|
height: s.hiding ? 0 : f
|
|
2375
2383
|
},
|
|
@@ -2404,7 +2412,7 @@ const ct = {
|
|
|
2404
2412
|
}, [m, o, s]);
|
|
2405
2413
|
const f = o.get().sdkInDesktopView ? n : a;
|
|
2406
2414
|
return !e || !f.current ? null : s2(/* @__PURE__ */ t(sa, {
|
|
2407
|
-
title: e.type ===
|
|
2415
|
+
title: e.type === e2.QUESTION_RESOLVED ? "Prediction result" : `New ${oe[e.data?.questionType]?.label || "notification"}`,
|
|
2408
2416
|
"data-a": "intr",
|
|
2409
2417
|
onClick: () => {
|
|
2410
2418
|
o.get().sdkInDesktopView ? r.current?.scrollTo({
|
|
@@ -2524,7 +2532,7 @@ const ct = {
|
|
|
2524
2532
|
qe(o, {
|
|
2525
2533
|
enabled: g,
|
|
2526
2534
|
event: "click",
|
|
2527
|
-
listener:
|
|
2535
|
+
listener: Pe
|
|
2528
2536
|
});
|
|
2529
2537
|
const I = z(() => ({
|
|
2530
2538
|
sdk: e,
|
|
@@ -2585,13 +2593,13 @@ const ct = {
|
|
|
2585
2593
|
})]
|
|
2586
2594
|
})
|
|
2587
2595
|
});
|
|
2588
|
-
},
|
|
2596
|
+
}, Ma = ({ event: e, topNavigation: s, theme: n, muted: a, withSidebarNotification: r = !0 }) => {
|
|
2589
2597
|
const { sdk: o, status: l } = f2(g2), c = a0(), d = r0(), { event: m } = f2(g2);
|
|
2590
2598
|
if (l === v2.UNSET)
|
|
2591
2599
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
2592
2600
|
return l === v2.CONNECTED ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: "wait" }) : o === null ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !c.app && !c.appNotification && !c.appSidebar || !c.app && !c.appSidebar && c.appNotification && !r ? null : /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(ye, { customTheme: n ?? d.theme, themeMode: d.themeMode, children: /* @__PURE__ */ t(da, { sdk: o, muted: a, event: m?.current || e, topNavigation: s }) }) });
|
|
2593
2601
|
};
|
|
2594
2602
|
export {
|
|
2595
|
-
|
|
2596
|
-
|
|
2603
|
+
za as B,
|
|
2604
|
+
Ma as D
|
|
2597
2605
|
};
|