@streamlayer/react 1.24.7 → 1.24.8-pre.84ab1b9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/advertisement.d.ts +4 -0
- package/lib/app/pause-ad.d.ts +17 -0
- package/lib/cjs/advertisement.js +1491 -1441
- package/lib/cjs/auth.js +80 -80
- package/lib/cjs/bet-pack.js +279 -242
- package/lib/cjs/index.js +1828 -1770
- package/lib/cjs/insight.js +682 -620
- package/lib/cjs/masters.js +1401 -1362
- package/lib/cjs/notification.js +292 -261
- package/lib/cjs/pause-ad.js +592 -362
- package/lib/cjs/points.js +179 -148
- package/lib/cjs/polymarket.js +153 -152
- package/lib/cjs/style.css +1 -1
- package/lib/cjs/useStreamLayerApp.js +142 -148
- package/lib/dist/cjs/index.js +1401 -1362
- package/lib/dist/es/index.js +1401 -1362
- package/lib/es/Question.js +75 -72
- package/lib/es/advertisement.js +9236 -8213
- package/lib/es/analytics.js +35 -31
- package/lib/es/auth.js +1 -1
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/{hooks-n9ax4LRT.js → hooks-DHRXtbBc.js} +35 -33
- package/lib/es/{index-D8wyDNJD.js → index-BW1YFKTb.js} +35 -35
- package/lib/es/index.js +2 -2
- package/lib/es/index10.js +6 -6
- package/lib/es/index12.js +116 -128
- package/lib/es/index13.js +100 -96
- package/lib/es/index14.js +15 -15
- package/lib/es/index16.js +382 -383
- package/lib/es/index2.js +55 -56
- package/lib/es/index4.js +3 -3
- package/lib/es/index5.js +275 -3
- package/lib/es/index6.js +4 -7
- package/lib/es/index7.js +5 -284
- package/lib/es/index8.js +8 -237
- package/lib/es/index9.js +237 -8
- package/lib/es/insight.js +3 -3
- package/lib/es/masters.js +1 -1
- package/lib/es/masters2.js +29 -29
- package/lib/es/notification.js +28 -28
- package/lib/es/pause-ad.js +362 -153
- package/lib/es/points.js +9 -9
- package/lib/es/polymarket.js +40 -40
- package/lib/es/storage.js +18 -18
- package/lib/es/style.css +1 -1
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/es/useStreamLayerApp2.js +5169 -4933
- package/lib/es/utils.js +86 -41
- package/lib/source.css +1 -1
- package/package.json +14 -14
package/lib/es/masters2.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f, Fragment as I } from "react/jsx-runtime";
|
|
2
|
-
import { s as c, u as p, F as J, c as
|
|
2
|
+
import { s as c, u as p, F as J, c as g, N as T } from "./feature.js";
|
|
3
3
|
import D from "lodash.throttle";
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { A as h, R as o2 } from "./
|
|
6
|
-
import { f as G, A as M, a as Q } from "./analytics.js";
|
|
7
|
-
import { Q as
|
|
4
|
+
import { useRef as S, useState as L, useEffect as E, createContext as e2, useContext as U, useMemo as _, Suspense as s2, lazy as t2, forwardRef as n2, useLayoutEffect as r2, useCallback as b, Component as i2 } from "react";
|
|
5
|
+
import { A as h, R as o2 } from "./index9.js";
|
|
6
|
+
import { f as G, c as a2, A as M, a as Q } from "./analytics.js";
|
|
7
|
+
import { Q as l2, z as d2, T as K, I as c2, n as C2, f as p2, w as B, a as u2, p as m2 } from "./index16.js";
|
|
8
8
|
import { m as A } from "./theme.js";
|
|
9
9
|
import { a as f2 } from "./index4.js";
|
|
10
10
|
import { Q as E2, Z as L2, y as h2, f as F } from "./index13.js";
|
|
11
|
-
import { O as
|
|
11
|
+
import { O as S2, d as g2, f as _2, a as N2 } from "./index12.js";
|
|
12
12
|
import { Q as T2, S as N } from "./useStreamLayerApp2.js";
|
|
13
|
-
import {
|
|
13
|
+
import { M as x } from "./index5.js";
|
|
14
14
|
import { createPortal as I2 } from "react-dom";
|
|
15
15
|
import { e as v2 } from "./index3.js";
|
|
16
16
|
import "./storage.js";
|
|
17
17
|
import { e as R2 } from "./index10.js";
|
|
18
|
-
import {
|
|
18
|
+
import { _ as A2, j as y2, i as k2, k as D2 } from "./hooks-DHRXtbBc.js";
|
|
19
19
|
const b2 = /* @__PURE__ */ c("div")({
|
|
20
20
|
name: "SDKContainer",
|
|
21
21
|
class: "s8zgqze",
|
|
@@ -46,7 +46,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
46
46
|
...t
|
|
47
47
|
});
|
|
48
48
|
}, H2 = 15, $2 = (s, e, t) => {
|
|
49
|
-
const r =
|
|
49
|
+
const r = S(null), i = S(0), [a] = L(
|
|
50
50
|
G({
|
|
51
51
|
scrollPosition: 0,
|
|
52
52
|
tabsShown: !1,
|
|
@@ -62,7 +62,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
62
62
|
const C = m.target;
|
|
63
63
|
if (!C)
|
|
64
64
|
return;
|
|
65
|
-
let d
|
|
65
|
+
let d;
|
|
66
66
|
o.screen.size < h.lg && !t ? d = s.current?.getBoundingClientRect().y || 0 : d = C.scrollTop;
|
|
67
67
|
const v = i.current - d;
|
|
68
68
|
if (H2 > Math.abs(v))
|
|
@@ -154,7 +154,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
154
154
|
return null;
|
|
155
155
|
const r = e.type;
|
|
156
156
|
return /* @__PURE__ */ f(G2, {
|
|
157
|
-
children: [/* @__PURE__ */ n(
|
|
157
|
+
children: [/* @__PURE__ */ n(S2, {
|
|
158
158
|
close: s.closeQuestion,
|
|
159
159
|
type: e.attributes?.type || T2.UNSET,
|
|
160
160
|
mastersApp: !0
|
|
@@ -164,7 +164,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
164
164
|
extendedQuestion: t
|
|
165
165
|
}), r !== "question" && /* @__PURE__ */ n(M2, {
|
|
166
166
|
openedQuestion: e
|
|
167
|
-
}), /* @__PURE__ */ n(
|
|
167
|
+
}), /* @__PURE__ */ n(g2, {
|
|
168
168
|
mastersApp: !0
|
|
169
169
|
})]
|
|
170
170
|
});
|
|
@@ -172,11 +172,11 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
172
172
|
const { sdk: r } = O(), i = p(s);
|
|
173
173
|
return E(() => {
|
|
174
174
|
t.set(!0);
|
|
175
|
-
}, [t]), /* @__PURE__ */ n(
|
|
175
|
+
}, [t]), /* @__PURE__ */ n(l2, { openQuestion: e, questions: i.data, controlVideo: r?.controlVideoPlayer });
|
|
176
176
|
}, Z2 = ({ userSummary: s }) => {
|
|
177
177
|
const e = p(s.$store);
|
|
178
178
|
return /* @__PURE__ */ n(
|
|
179
|
-
|
|
179
|
+
d2,
|
|
180
180
|
{
|
|
181
181
|
hideFriendsRank: !0,
|
|
182
182
|
loading: !e?.summary,
|
|
@@ -269,7 +269,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
269
269
|
}), r0 = "hlc2pcy", i0 = n2(({
|
|
270
270
|
className: s
|
|
271
271
|
}, e) => /* @__PURE__ */ f(s0, {
|
|
272
|
-
className:
|
|
272
|
+
className: g(s, r0),
|
|
273
273
|
children: [/* @__PURE__ */ n(t0, {
|
|
274
274
|
children: /* @__PURE__ */ f(n0, {
|
|
275
275
|
children: [/* @__PURE__ */ n(x, {
|
|
@@ -346,7 +346,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
346
346
|
name: "OnboardingContainer",
|
|
347
347
|
class: "on59ra",
|
|
348
348
|
propsAsIs: !1
|
|
349
|
-
}), h0 = () => F,
|
|
349
|
+
}), h0 = () => F, S0 = /* @__PURE__ */ c(h0())({
|
|
350
350
|
name: "OnboardingNotificationContainer",
|
|
351
351
|
class: "op1wk5d",
|
|
352
352
|
propsAsIs: !0
|
|
@@ -354,7 +354,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
354
354
|
name: "InnerContainer",
|
|
355
355
|
class: "i1i1g2vj",
|
|
356
356
|
propsAsIs: !1
|
|
357
|
-
}),
|
|
357
|
+
}), g0 = ({
|
|
358
358
|
deepLink: s,
|
|
359
359
|
onboardingOpts: e,
|
|
360
360
|
notification: t,
|
|
@@ -362,7 +362,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
362
362
|
loading: i,
|
|
363
363
|
sdk: a
|
|
364
364
|
}) => {
|
|
365
|
-
const o = p(r.friends ? r.friends.getStore() :
|
|
365
|
+
const o = p(r.friends ? r.friends.getStore() : a2({
|
|
366
366
|
data: []
|
|
367
367
|
})), [l, u] = L(void 0), m = _(() => {
|
|
368
368
|
const C = a.getInviter();
|
|
@@ -416,7 +416,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
416
416
|
appNode: i,
|
|
417
417
|
responsiveStore: a
|
|
418
418
|
}) => {
|
|
419
|
-
const o =
|
|
419
|
+
const o = S(null), l = e.data.onboarding, [u, m] = L(l?.instantOpen), C = s.getFeature(N.GAMES), d = _(() => Y?.map(({
|
|
420
420
|
graphicSrc: X
|
|
421
421
|
}) => X), []), {
|
|
422
422
|
screen: v
|
|
@@ -429,11 +429,11 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
429
429
|
const {
|
|
430
430
|
loading: R,
|
|
431
431
|
throttled: W
|
|
432
|
-
} =
|
|
432
|
+
} = c2(d);
|
|
433
433
|
return u && C && l && i.current && !W ? /* @__PURE__ */ n(K, {
|
|
434
434
|
container: i,
|
|
435
435
|
useContainer: !1,
|
|
436
|
-
children: /* @__PURE__ */ n(
|
|
436
|
+
children: /* @__PURE__ */ n(g0, {
|
|
437
437
|
notification: e,
|
|
438
438
|
setOpened: m,
|
|
439
439
|
gamification: C,
|
|
@@ -456,7 +456,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
456
456
|
},
|
|
457
457
|
onboarding: l
|
|
458
458
|
})
|
|
459
|
-
}), /* @__PURE__ */ n(
|
|
459
|
+
}), /* @__PURE__ */ n(S0, {
|
|
460
460
|
style: r,
|
|
461
461
|
hiding: e.hiding,
|
|
462
462
|
children: /* @__PURE__ */ n(w, {
|
|
@@ -493,7 +493,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
493
493
|
class: "pht79xf",
|
|
494
494
|
propsAsIs: !0
|
|
495
495
|
}), k0 = (s) => {
|
|
496
|
-
const [e, t] = L(0), r =
|
|
496
|
+
const [e, t] = L(0), r = S(null), i = b((o) => {
|
|
497
497
|
r.current = o;
|
|
498
498
|
}, []);
|
|
499
499
|
E(() => {
|
|
@@ -587,7 +587,7 @@ const b2 = /* @__PURE__ */ c("div")({
|
|
|
587
587
|
behavior: "smooth"
|
|
588
588
|
}), e(null);
|
|
589
589
|
},
|
|
590
|
-
className:
|
|
590
|
+
className: g(m && b0, "sl-pill-button")
|
|
591
591
|
}), d.current);
|
|
592
592
|
}, O0 = ({
|
|
593
593
|
sdk: s,
|
|
@@ -741,7 +741,7 @@ Object.entries(V0).reduce((s, [e, t]) => `
|
|
|
741
741
|
${s}
|
|
742
742
|
--color-${e.toLowerCase().replaceAll("_", "-")}: ${t};
|
|
743
743
|
`, "");
|
|
744
|
-
const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ n("div", { className:
|
|
744
|
+
const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ n("div", { className: g("masters-theme", w0), style: e, children: s }) }), d1 = ({ sdkKey: s, plugins: e, children: t, event: r, onDeepLinkHandled: i, videoPlayerController: a, production: o = !0 }) => /* @__PURE__ */ f(
|
|
745
745
|
A2,
|
|
746
746
|
{
|
|
747
747
|
sdkKey: s,
|
|
@@ -779,10 +779,10 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
|
|
|
779
779
|
) : null;
|
|
780
780
|
}) : null;
|
|
781
781
|
}, U0 = (s) => {
|
|
782
|
-
const e =
|
|
782
|
+
const e = S(null);
|
|
783
783
|
return M(e, { enabled: !0, event: "click", listener: Q }), /* @__PURE__ */ n(f2, { ref: e, ...s });
|
|
784
784
|
}, G0 = ({ sdk: s, useContainer: e }) => {
|
|
785
|
-
const t =
|
|
785
|
+
const t = S(null), r = p(s.status), i = p(s.sdkStore.slStreamId), a = S(null), [o] = B0(t), [l, u] = $2(t, o, e), m = r === "ready" && !!i.data;
|
|
786
786
|
return E(() => {
|
|
787
787
|
window.requestAnimationFrame(() => {
|
|
788
788
|
s.initializeApp().then(() => {
|
|
@@ -791,8 +791,8 @@ const w0 = "m1ojpy2l", P0 = ({ children: s, style: e }) => /* @__PURE__ */ n("di
|
|
|
791
791
|
});
|
|
792
792
|
}, [s]), M(t, { enabled: !0, event: "click", listener: Q }), E(() => {
|
|
793
793
|
import("./gamification-feature2.js");
|
|
794
|
-
}, []), /* @__PURE__ */ f(b2, { className:
|
|
795
|
-
/* @__PURE__ */ n(i0, { className:
|
|
794
|
+
}, []), /* @__PURE__ */ f(b2, { className: g("SDKContainer", !e && F2), ref: t, children: [
|
|
795
|
+
/* @__PURE__ */ n(i0, { className: g(A), ref: a }),
|
|
796
796
|
/* @__PURE__ */ f(O2, { className: "sl-hide-on-modal", ref: l, children: [
|
|
797
797
|
m && /* @__PURE__ */ n(
|
|
798
798
|
O0,
|
package/lib/es/notification.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { h as us } from "./
|
|
3
|
-
import { useState as I, useRef as
|
|
2
|
+
import { h as us } from "./index7.js";
|
|
3
|
+
import { useState as I, useRef as W, useEffect as $, useCallback as As, useMemo as fs } from "react";
|
|
4
4
|
import { s as e, c as hs, u as Is, N as M } from "./feature.js";
|
|
5
5
|
import { e as $s } from "./index3.js";
|
|
6
|
-
import { x as
|
|
6
|
+
import { x as _ } from "./storage.js";
|
|
7
7
|
import { D as vs, j as gs, e as K, o as ws } from "./index10.js";
|
|
8
|
-
import {
|
|
9
|
-
import { d, Q as f,
|
|
10
|
-
import { b as S } from "./
|
|
8
|
+
import { M as A } from "./index5.js";
|
|
9
|
+
import { f as d, Q as f, b as G, N as x, S as bs, A as R } from "./useStreamLayerApp2.js";
|
|
10
|
+
import { b as S } from "./index9.js";
|
|
11
11
|
import { V as Ts, y as ys } from "./index14.js";
|
|
12
12
|
import { p as Cs } from "./index11.js";
|
|
13
|
-
import {
|
|
13
|
+
import { w as Ns, q as ks, z as qs } from "./hooks-DHRXtbBc.js";
|
|
14
14
|
const w = /* @__PURE__ */ e("div")({
|
|
15
15
|
name: "Media",
|
|
16
16
|
class: "m1bcvojl",
|
|
@@ -85,15 +85,15 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
85
85
|
name: "Button",
|
|
86
86
|
class: "b14ivj5k",
|
|
87
87
|
propsAsIs: !1
|
|
88
|
-
}), Ys = () => A,
|
|
88
|
+
}), Ys = () => A, Qs = /* @__PURE__ */ e(Ys())({
|
|
89
89
|
name: "StyledChevronRight",
|
|
90
90
|
class: "s1atci8n",
|
|
91
91
|
propsAsIs: !0
|
|
92
|
-
}),
|
|
92
|
+
}), Ws = /* @__PURE__ */ e("div")({
|
|
93
93
|
name: "QuoteWrap",
|
|
94
94
|
class: "q4w8jgs",
|
|
95
95
|
propsAsIs: !1
|
|
96
|
-
}),
|
|
96
|
+
}), _s = /* @__PURE__ */ e("blockquote")({
|
|
97
97
|
name: "Quote",
|
|
98
98
|
class: "qaa0kez",
|
|
99
99
|
propsAsIs: !1
|
|
@@ -106,7 +106,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
106
106
|
class: "ccvukea",
|
|
107
107
|
propsAsIs: !1
|
|
108
108
|
}), Xs = ({ image: n, tweet: o, account: i, accountVerified: a, body: r, title: t }) => /* @__PURE__ */ l(Gs, { children: [
|
|
109
|
-
t && /* @__PURE__ */ s(
|
|
109
|
+
t && /* @__PURE__ */ s(Ws, { children: /* @__PURE__ */ s(_s, { children: t }) }),
|
|
110
110
|
/* @__PURE__ */ s(
|
|
111
111
|
vs,
|
|
112
112
|
{
|
|
@@ -120,7 +120,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
120
120
|
/* @__PURE__ */ s(Ks, { children: gs(r) })
|
|
121
121
|
] }), Zs = ({ title: n, questionType: o, questionTypeData: i }) => /* @__PURE__ */ l(X, { children: [
|
|
122
122
|
/* @__PURE__ */ s(
|
|
123
|
-
|
|
123
|
+
_,
|
|
124
124
|
{
|
|
125
125
|
questionTypeData: i,
|
|
126
126
|
questionType: o,
|
|
@@ -142,7 +142,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
142
142
|
g && /* @__PURE__ */ s(j, { src: g, fromInsight: !0, withVideo: !!b }),
|
|
143
143
|
o === f.TWEET ? /* @__PURE__ */ s(Hs, { tweet: r }) : /* @__PURE__ */ s(Zs, { questionTypeData: t, questionType: o, title: c }),
|
|
144
144
|
/* @__PURE__ */ s(Fs, { name: "inapp-button", children: p || "Open" }),
|
|
145
|
-
/* @__PURE__ */ s(
|
|
145
|
+
/* @__PURE__ */ s(Qs, { name: "chevronRight" })
|
|
146
146
|
] }) });
|
|
147
147
|
}, se = () => ({
|
|
148
148
|
color: n
|
|
@@ -310,7 +310,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
310
310
|
propsAsIs: !0
|
|
311
311
|
}), Be = ({ title: n, questionType: o, questionTypeData: i, description: a, imageMode: r, webos: t }) => /* @__PURE__ */ l(Te, { imageMode: r, questionType: o, webos: t, children: [
|
|
312
312
|
/* @__PURE__ */ s(
|
|
313
|
-
|
|
313
|
+
_,
|
|
314
314
|
{
|
|
315
315
|
questionTypeData: i,
|
|
316
316
|
questionType: o,
|
|
@@ -344,7 +344,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
344
344
|
webos: p,
|
|
345
345
|
className: c
|
|
346
346
|
}) => {
|
|
347
|
-
const [m, u] = I(!1), h =
|
|
347
|
+
const [m, u] = I(!1), h = W();
|
|
348
348
|
$(() => (a?.sponsorLogo && (u(!0), h.current = setTimeout(() => {
|
|
349
349
|
u(!1);
|
|
350
350
|
}, 5e3)), () => clearTimeout(h.current)), [a?.sponsorLogo]);
|
|
@@ -425,11 +425,11 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
425
425
|
name: "Icon",
|
|
426
426
|
class: "i1vmpt6u",
|
|
427
427
|
propsAsIs: !1
|
|
428
|
-
}),
|
|
428
|
+
}), Qe = /* @__PURE__ */ e("div")({
|
|
429
429
|
name: "IconContainer",
|
|
430
430
|
class: "i180665s",
|
|
431
431
|
propsAsIs: !1
|
|
432
|
-
}),
|
|
432
|
+
}), We = () => A, _e = /* @__PURE__ */ e(We())({
|
|
433
433
|
name: "TitleIcon",
|
|
434
434
|
class: "t16zzzei",
|
|
435
435
|
propsAsIs: !0
|
|
@@ -465,7 +465,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
465
465
|
n?.(), i && i.markIstantOpen();
|
|
466
466
|
},
|
|
467
467
|
children: [
|
|
468
|
-
/* @__PURE__ */ l(
|
|
468
|
+
/* @__PURE__ */ l(Qe, { children: [
|
|
469
469
|
/* @__PURE__ */ s(P, { className: "on-light", src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/notification.png" }),
|
|
470
470
|
/* @__PURE__ */ s(
|
|
471
471
|
P,
|
|
@@ -477,7 +477,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
477
477
|
] }),
|
|
478
478
|
/* @__PURE__ */ l(Xe, { children: [
|
|
479
479
|
/* @__PURE__ */ l(Ze, { children: [
|
|
480
|
-
/* @__PURE__ */ s(
|
|
480
|
+
/* @__PURE__ */ s(_e, { name: "icon-trophy-solid" }),
|
|
481
481
|
i?.titleCard?.title
|
|
482
482
|
] }),
|
|
483
483
|
/* @__PURE__ */ l(He, { children: [
|
|
@@ -744,7 +744,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
744
744
|
name: "Body",
|
|
745
745
|
class: "b1a21en",
|
|
746
746
|
propsAsIs: !1
|
|
747
|
-
}),
|
|
747
|
+
}), Qn = ({
|
|
748
748
|
step: n,
|
|
749
749
|
children: o,
|
|
750
750
|
state: i = "pending"
|
|
@@ -773,7 +773,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
773
773
|
}, n)
|
|
774
774
|
})
|
|
775
775
|
});
|
|
776
|
-
},
|
|
776
|
+
}, Wn = /* @__PURE__ */ e("div")({
|
|
777
777
|
name: "Container",
|
|
778
778
|
class: "c1nd5cu8",
|
|
779
779
|
propsAsIs: !1
|
|
@@ -781,7 +781,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
781
781
|
name: "Line",
|
|
782
782
|
class: "lgbipw0",
|
|
783
783
|
propsAsIs: !1
|
|
784
|
-
}),
|
|
784
|
+
}), _n = () => L, Kn = /* @__PURE__ */ e(_n())({
|
|
785
785
|
name: "Line1",
|
|
786
786
|
class: "l1anth16",
|
|
787
787
|
propsAsIs: !0
|
|
@@ -793,7 +793,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
793
793
|
name: "Line3",
|
|
794
794
|
class: "lhbflsp",
|
|
795
795
|
propsAsIs: !0
|
|
796
|
-
}), Jn = () => /* @__PURE__ */ l(
|
|
796
|
+
}), Jn = () => /* @__PURE__ */ l(Wn, {
|
|
797
797
|
children: [/* @__PURE__ */ s(Kn, {
|
|
798
798
|
children: /* @__PURE__ */ s("div", {})
|
|
799
799
|
}), /* @__PURE__ */ s(Xn, {
|
|
@@ -883,7 +883,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
883
883
|
name: "Body",
|
|
884
884
|
class: "bqq1ix4",
|
|
885
885
|
propsAsIs: !1
|
|
886
|
-
}),
|
|
886
|
+
}), Q = {
|
|
887
887
|
1: 3e3,
|
|
888
888
|
2: 4e3,
|
|
889
889
|
3: 4e3
|
|
@@ -891,8 +891,8 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
891
891
|
if ($(() => {
|
|
892
892
|
if (i) {
|
|
893
893
|
const u = setTimeout(() => {
|
|
894
|
-
|
|
895
|
-
},
|
|
894
|
+
Q[c + 1] && (r || c < 3) ? i(c + 1) : n?.();
|
|
895
|
+
}, Q[c]);
|
|
896
896
|
return () => {
|
|
897
897
|
u && clearTimeout(u);
|
|
898
898
|
};
|
|
@@ -904,7 +904,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
904
904
|
let m = "pending";
|
|
905
905
|
return c === 3 && (m = r ? "correct" : "incorrect"), /* @__PURE__ */ s(F, { "data-a": "intr", onClick: () => o?.(), children: /* @__PURE__ */ l(Y, { children: [
|
|
906
906
|
c !== 1 && /* @__PURE__ */ s(Jn, {}, c),
|
|
907
|
-
/* @__PURE__ */ l(
|
|
907
|
+
/* @__PURE__ */ l(Qn, { state: m, step: c, children: [
|
|
908
908
|
c === 2 && /* @__PURE__ */ s(lo, { title: p || "unknown", answer: a?.title || "unknown" }),
|
|
909
909
|
c === 3 && r && /* @__PURE__ */ s(uo, { answer: a?.title || "unknown" }),
|
|
910
910
|
c === 3 && !r && /* @__PURE__ */ s(Ao, { title: t || "unknown", answer: a?.title || "unknown" })
|
|
@@ -956,7 +956,7 @@ const w = /* @__PURE__ */ e("div")({
|
|
|
956
956
|
sponsorLogo: o,
|
|
957
957
|
onClick: i
|
|
958
958
|
}) => /* @__PURE__ */ s(go, { className: n, onClick: i, children: /* @__PURE__ */ s($o, { withoutPadding: !0, children: /* @__PURE__ */ s(cs, { src: o }) }) }), To = ({ className: n, ...o }) => {
|
|
959
|
-
const [i, a] = I(!1), r =
|
|
959
|
+
const [i, a] = I(!1), r = W();
|
|
960
960
|
return $(() => (o?.inApp?.sponsorLogo && (a(!0), r.current = setTimeout(() => {
|
|
961
961
|
a(!1);
|
|
962
962
|
}, 5e3)), () => clearTimeout(r.current)), [o?.inApp?.sponsorLogo]), o?.inApp?.sponsorLogo && i ? /* @__PURE__ */ s(
|