@streamlayer/react 0.32.6 → 0.32.8
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/gamification-feature.js +1 -1
- package/lib/cjs/index4.js +1 -1
- package/lib/cjs/masters2.js +2 -2
- package/lib/cjs/points.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/masters.js +11 -11
- package/lib/dist/es/gamification-feature.js +818 -693
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +1382 -1382
- package/lib/dist/index.d.ts +4 -7
- package/lib/dist/style.css +1 -1
- package/lib/es/gamification-feature.js +769 -644
- package/lib/es/index4.js +38 -37
- package/lib/es/masters2.js +348 -343
- package/lib/es/points.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +8 -8
package/lib/es/masters2.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as c, jsxs as I, Fragment as ie } from "react/jsx-runtime";
|
|
2
2
|
import { d as Ze, S as Wt, a as jt, b as Ht, s as Yt } from "./index2.js";
|
|
3
|
-
import { lazy as Vt, useMemo as Ue, Suspense as
|
|
3
|
+
import { lazy as Vt, useMemo as Ue, Suspense as Kt, useRef as ye, useState as W, useEffect as X, Component as Qt, createElement as Xt, useCallback as ve, useLayoutEffect as Jt, useContext as Zt } from "react";
|
|
4
4
|
import { FeatureType as ze, QuestionType as D } from "@streamlayer/sdk-web-types";
|
|
5
5
|
import { useStore as re } from "@nanostores/react";
|
|
6
6
|
import { FeatureStatus as me } from "@streamlayer/sdk-web-interfaces";
|
|
7
|
-
import { s as h,
|
|
7
|
+
import { s as h, o as z, c as wt } from "./index4.js";
|
|
8
8
|
import { NotificationType as Ae } from "@streamlayer/sdk-web-notifications";
|
|
9
9
|
const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
10
|
-
const
|
|
11
|
-
return
|
|
10
|
+
const g = re(s.status), m = re(n.sdkStore.slStreamId);
|
|
11
|
+
return m != null && m.loading ? /* @__PURE__ */ c("div", { className: f, children: "event is loading..." }) : m != null && m.data ? g !== me.Ready ? /* @__PURE__ */ c("div", { className: f, children: "wait feature..." }) : l : /* @__PURE__ */ c("div", { className: f, children: "event is forbidden..." });
|
|
12
12
|
}, ti = Vt(() => import("./gamification-feature.js")), ii = ({
|
|
13
13
|
sdk: s,
|
|
14
14
|
feature: n,
|
|
@@ -16,7 +16,7 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
16
16
|
}) => {
|
|
17
17
|
const f = Ue(() => n && n.featureConfig.get().type === ze.GAMES ? /* @__PURE__ */ c(ei, { className: l, sdk: s, feature: n, children: /* @__PURE__ */ c(ti, { className: l, gamification: n, sdk: s }) }) : null, [s, n, l]);
|
|
18
18
|
return /* @__PURE__ */ c(
|
|
19
|
-
|
|
19
|
+
Kt,
|
|
20
20
|
{
|
|
21
21
|
fallback: /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "page loading..." }),
|
|
22
22
|
children: f
|
|
@@ -34,8 +34,8 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
34
34
|
name: "ButtonLabel",
|
|
35
35
|
class: "b40tuix",
|
|
36
36
|
propsAsIs: !1
|
|
37
|
-
}), Oe = ({ disabled: s, active: n, onClick: l, label: f, icon:
|
|
38
|
-
|
|
37
|
+
}), Oe = ({ disabled: s, active: n, onClick: l, label: f, icon: g }) => /* @__PURE__ */ c(ri, { onClick: l, disabled: s, "data-selected": n, children: /* @__PURE__ */ I(ie, { children: [
|
|
38
|
+
g && /* @__PURE__ */ c(ni, { children: g }),
|
|
39
39
|
/* @__PURE__ */ c(si, { children: f })
|
|
40
40
|
] }) }), oi = () => z, ai = /* @__PURE__ */ h(oi())({
|
|
41
41
|
name: "ButtonIcon",
|
|
@@ -140,10 +140,10 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
140
140
|
class: "cdpal9o",
|
|
141
141
|
propsAsIs: !1
|
|
142
142
|
}), Bi = ({ poster: s, source: n }) => {
|
|
143
|
-
const l = ye(null), [f,
|
|
143
|
+
const l = ye(null), [f, g] = W(!1), [m, d] = W(!0);
|
|
144
144
|
return /* @__PURE__ */ I(xi, { onClick: () => {
|
|
145
145
|
const o = l == null ? void 0 : l.current;
|
|
146
|
-
o &&
|
|
146
|
+
o && g((w) => w ? (o.pause(), !1) : (o.play(), d(!1), !0));
|
|
147
147
|
}, children: [
|
|
148
148
|
/* @__PURE__ */ c(
|
|
149
149
|
vi,
|
|
@@ -152,12 +152,12 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
152
152
|
src: n,
|
|
153
153
|
onEnded: () => {
|
|
154
154
|
var o;
|
|
155
|
-
(o = l == null ? void 0 : l.current) == null || o.load(),
|
|
155
|
+
(o = l == null ? void 0 : l.current) == null || o.load(), g(!1), d(!0);
|
|
156
156
|
},
|
|
157
|
-
style: { visibility:
|
|
157
|
+
style: { visibility: m ? "hidden" : "visible" }
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
/* @__PURE__ */ c(bi, { src: s, style: { visibility:
|
|
160
|
+
/* @__PURE__ */ c(bi, { src: s, style: { visibility: m ? "visible" : "hidden" } }),
|
|
161
161
|
/* @__PURE__ */ c(Ei, { children: !f && /* @__PURE__ */ c(z, { name: "icon-play" }) })
|
|
162
162
|
] });
|
|
163
163
|
}, _i = /* @__PURE__ */ h("div")({
|
|
@@ -189,14 +189,14 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
189
189
|
image: n,
|
|
190
190
|
heading: l,
|
|
191
191
|
body: f,
|
|
192
|
-
action:
|
|
192
|
+
action: g
|
|
193
193
|
}) => /* @__PURE__ */ I(_i, { children: [
|
|
194
194
|
(s == null ? void 0 : s.url) && /* @__PURE__ */ c(Bi, { source: s.url, poster: s.thumbnailUrl }),
|
|
195
195
|
n && !(s != null && s.url) && /* @__PURE__ */ c(Ci, { src: n }),
|
|
196
196
|
/* @__PURE__ */ I(Ti, { children: [
|
|
197
197
|
/* @__PURE__ */ c(Fi, { children: l }),
|
|
198
198
|
/* @__PURE__ */ c($i, { children: f }),
|
|
199
|
-
|
|
199
|
+
g && /* @__PURE__ */ c(ki, { onClick: g, children: "View Insight" })
|
|
200
200
|
] })
|
|
201
201
|
] }), Li = /* @__PURE__ */ h("div")({
|
|
202
202
|
name: "Container",
|
|
@@ -242,74 +242,77 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
242
242
|
name: "Image",
|
|
243
243
|
class: "i2g9g4l",
|
|
244
244
|
propsAsIs: !1
|
|
245
|
-
}), Hi = /* @__PURE__ */ h(
|
|
245
|
+
}), Hi = () => z, Yi = /* @__PURE__ */ h(Hi())({
|
|
246
|
+
name: "TwitterIcon",
|
|
247
|
+
class: "t1c454nm",
|
|
248
|
+
propsAsIs: !0
|
|
249
|
+
}), Vi = /* @__PURE__ */ h("div")({
|
|
246
250
|
name: "Details",
|
|
247
|
-
class: "
|
|
251
|
+
class: "d11nigc3",
|
|
248
252
|
propsAsIs: !1
|
|
249
|
-
}),
|
|
253
|
+
}), Ki = /* @__PURE__ */ h("div")({
|
|
250
254
|
name: "Name",
|
|
251
|
-
class: "
|
|
255
|
+
class: "nrxa4k8",
|
|
252
256
|
propsAsIs: !1
|
|
253
|
-
}),
|
|
257
|
+
}), Qi = /* @__PURE__ */ h("div")({
|
|
254
258
|
name: "UserName",
|
|
255
|
-
class: "
|
|
259
|
+
class: "u1p051g3",
|
|
256
260
|
propsAsIs: !1
|
|
257
|
-
}),
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
+
}), Xi = ({ image: s, name: n, userName: l, verified: f }) => /* @__PURE__ */ I(Gi, { children: [
|
|
262
|
+
s && /* @__PURE__ */ I(Wi, { children: [
|
|
263
|
+
/* @__PURE__ */ c(ji, { src: s }),
|
|
264
|
+
/* @__PURE__ */ c(Yi, { name: "twitter" })
|
|
265
|
+
] }),
|
|
266
|
+
/* @__PURE__ */ I(Vi, { children: [
|
|
267
|
+
/* @__PURE__ */ I(Ki, { children: [
|
|
261
268
|
n,
|
|
262
269
|
" ",
|
|
263
270
|
f && /* @__PURE__ */ c(z, { name: "icon-twitter-verified" })
|
|
264
271
|
] }),
|
|
265
|
-
/* @__PURE__ */
|
|
272
|
+
l && /* @__PURE__ */ I(Qi, { children: [
|
|
273
|
+
"@",
|
|
274
|
+
l
|
|
275
|
+
] })
|
|
266
276
|
] })
|
|
267
|
-
] }),
|
|
277
|
+
] }), Ji = /* @__PURE__ */ h("div")({
|
|
268
278
|
name: "Container",
|
|
269
|
-
class: "
|
|
279
|
+
class: "c1kzqw87",
|
|
270
280
|
propsAsIs: !1
|
|
271
|
-
}),
|
|
272
|
-
name: "
|
|
273
|
-
class: "
|
|
281
|
+
}), Zi = /* @__PURE__ */ h("div")({
|
|
282
|
+
name: "Details",
|
|
283
|
+
class: "d9r1hf9",
|
|
274
284
|
propsAsIs: !1
|
|
275
|
-
}),
|
|
285
|
+
}), er = /* @__PURE__ */ h("div")({
|
|
276
286
|
name: "Body",
|
|
277
|
-
class: "
|
|
287
|
+
class: "bezygt5",
|
|
278
288
|
propsAsIs: !1
|
|
279
|
-
}),
|
|
280
|
-
name:
|
|
281
|
-
|
|
289
|
+
}), tr = ({ image: s, body: n, account: l, accountVerified: f }) => /* @__PURE__ */ c(Ji, { children: /* @__PURE__ */ I(Zi, { children: [
|
|
290
|
+
/* @__PURE__ */ c(Xi, { image: s, name: l, userName: l, verified: f }),
|
|
291
|
+
/* @__PURE__ */ c(er, { children: n })
|
|
292
|
+
] }) }), ir = /* @__PURE__ */ h("div")({
|
|
293
|
+
name: "Container",
|
|
294
|
+
class: "c1t4f0x4",
|
|
282
295
|
propsAsIs: !1
|
|
283
|
-
}),
|
|
284
|
-
name: "
|
|
285
|
-
class: "
|
|
296
|
+
}), rr = /* @__PURE__ */ h("button")({
|
|
297
|
+
name: "ActionBtn",
|
|
298
|
+
class: "a16w1nl6",
|
|
286
299
|
propsAsIs: !1
|
|
287
|
-
}),
|
|
300
|
+
}), nr = /* @__PURE__ */ h("div")({
|
|
288
301
|
name: "QuoteWrap",
|
|
289
|
-
class: "
|
|
302
|
+
class: "q14u54rf",
|
|
290
303
|
propsAsIs: !1
|
|
291
|
-
}),
|
|
304
|
+
}), sr = /* @__PURE__ */ h("blockquote")({
|
|
292
305
|
name: "Quote",
|
|
293
|
-
class: "
|
|
294
|
-
propsAsIs: !1
|
|
295
|
-
}),
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
title: f,
|
|
300
|
-
action: m
|
|
301
|
-
}) => /* @__PURE__ */ I(Ki, { children: [
|
|
302
|
-
/* @__PURE__ */ c(tr, { children: /* @__PURE__ */ c(ir, { children: f }) }),
|
|
303
|
-
/* @__PURE__ */ I(er, { children: [
|
|
304
|
-
/* @__PURE__ */ c(Qi, { ...s }),
|
|
305
|
-
/* @__PURE__ */ c(Ji, { children: n }),
|
|
306
|
-
l && /* @__PURE__ */ c(Zi, { src: l })
|
|
307
|
-
] }),
|
|
308
|
-
m && /* @__PURE__ */ c(Xi, { onClick: m, children: "View Tweet" })
|
|
306
|
+
class: "q1hxm6zo",
|
|
307
|
+
propsAsIs: !1
|
|
308
|
+
}), or = ({ action: s, ...n }) => /* @__PURE__ */ I(ir, { children: [
|
|
309
|
+
n.title && /* @__PURE__ */ c(nr, { children: /* @__PURE__ */ c(sr, { children: n.title }) }),
|
|
310
|
+
/* @__PURE__ */ c(tr, { ...n }),
|
|
311
|
+
s && /* @__PURE__ */ c(rr, { onClick: s, children: "View Insight" })
|
|
309
312
|
] }), et = ({
|
|
310
313
|
close: s,
|
|
311
314
|
action: n,
|
|
312
|
-
data: { questionType: l, question: f, insight:
|
|
315
|
+
data: { questionType: l, question: f, insight: g, tweet: m }
|
|
313
316
|
}) => {
|
|
314
317
|
const d = Ai[l];
|
|
315
318
|
return d ? /* @__PURE__ */ I(Li, { children: [
|
|
@@ -325,11 +328,11 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
325
328
|
),
|
|
326
329
|
/* @__PURE__ */ c(Pi, { children: d.label })
|
|
327
330
|
] }),
|
|
328
|
-
l === D.FACTOID && /* @__PURE__ */ c(Si, { ...
|
|
331
|
+
l === D.FACTOID && /* @__PURE__ */ c(Si, { ...g, action: n }),
|
|
329
332
|
l === D.TWEET && // ToDo: connect with real Api data
|
|
330
333
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
331
334
|
// @ts-ignore
|
|
332
|
-
/* @__PURE__ */ c(
|
|
335
|
+
/* @__PURE__ */ c(or, { ...m, action: n }),
|
|
333
336
|
l !== D.FACTOID && l !== D.TWEET && /* @__PURE__ */ I(ie, { children: [
|
|
334
337
|
/* @__PURE__ */ c(Mi, { children: f == null ? void 0 : f.title }),
|
|
335
338
|
/* @__PURE__ */ c(qi, { onClick: n, children: "Answer" })
|
|
@@ -343,67 +346,67 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
343
346
|
name: "BGLineBase",
|
|
344
347
|
class: "b1v6w7ni",
|
|
345
348
|
propsAsIs: !1
|
|
346
|
-
}),
|
|
349
|
+
}), ar = () => P, lr = /* @__PURE__ */ h(ar())({
|
|
347
350
|
name: "BGOneLineOne",
|
|
348
351
|
class: "b2nqb1p",
|
|
349
352
|
propsAsIs: !0
|
|
350
|
-
}),
|
|
353
|
+
}), cr = () => P, ur = /* @__PURE__ */ h(cr())({
|
|
351
354
|
name: "BGOneLineTwo",
|
|
352
355
|
class: "b1xxgmbk",
|
|
353
356
|
propsAsIs: !0
|
|
354
|
-
}),
|
|
357
|
+
}), hr = () => P, dr = /* @__PURE__ */ h(hr())({
|
|
355
358
|
name: "BGOneLineThree",
|
|
356
359
|
class: "b63lwcb",
|
|
357
360
|
propsAsIs: !0
|
|
358
|
-
}),
|
|
361
|
+
}), pr = () => P, tt = /* @__PURE__ */ h(pr())({
|
|
359
362
|
name: "BGTwoLineOne",
|
|
360
363
|
class: "b2iah4",
|
|
361
364
|
propsAsIs: !0
|
|
362
|
-
}),
|
|
365
|
+
}), fr = () => P, it = /* @__PURE__ */ h(fr())({
|
|
363
366
|
name: "BGTwoLineTwo",
|
|
364
367
|
class: "b1xezvf6",
|
|
365
368
|
propsAsIs: !0
|
|
366
|
-
}),
|
|
369
|
+
}), mr = () => P, rt = /* @__PURE__ */ h(mr())({
|
|
367
370
|
name: "BGTwoLineThree",
|
|
368
371
|
class: "b1jz1hg0",
|
|
369
372
|
propsAsIs: !0
|
|
370
|
-
}),
|
|
373
|
+
}), gr = () => P, nt = /* @__PURE__ */ h(gr())({
|
|
371
374
|
name: "BGThreeLineOne",
|
|
372
375
|
class: "b18ho1tk",
|
|
373
376
|
propsAsIs: !0
|
|
374
|
-
}),
|
|
377
|
+
}), yr = () => P, st = /* @__PURE__ */ h(yr())({
|
|
375
378
|
name: "BGThreeLineTwo",
|
|
376
379
|
class: "b14uvjfm",
|
|
377
380
|
propsAsIs: !0
|
|
378
|
-
}),
|
|
381
|
+
}), wr = () => P, ot = /* @__PURE__ */ h(wr())({
|
|
379
382
|
name: "BGThreeLineThree",
|
|
380
383
|
class: "b11c3ns7",
|
|
381
384
|
propsAsIs: !0
|
|
382
|
-
}),
|
|
385
|
+
}), Ir = () => P, at = /* @__PURE__ */ h(Ir())({
|
|
383
386
|
name: "BGThreeLineFour",
|
|
384
387
|
class: "b1bqhhet",
|
|
385
388
|
propsAsIs: !0
|
|
386
|
-
}),
|
|
389
|
+
}), Ar = () => P, xr = /* @__PURE__ */ h(Ar())({
|
|
387
390
|
name: "BGFourLineOne",
|
|
388
391
|
class: "b1xyzi7o",
|
|
389
392
|
propsAsIs: !0
|
|
390
|
-
}),
|
|
393
|
+
}), vr = () => P, br = /* @__PURE__ */ h(vr())({
|
|
391
394
|
name: "BGFourLineTwo",
|
|
392
395
|
class: "byo0rup",
|
|
393
396
|
propsAsIs: !0
|
|
394
|
-
}),
|
|
397
|
+
}), Er = () => P, Br = /* @__PURE__ */ h(Er())({
|
|
395
398
|
name: "BGFourLineThree",
|
|
396
399
|
class: "b1oyiqgv",
|
|
397
400
|
propsAsIs: !0
|
|
398
|
-
}),
|
|
401
|
+
}), _r = () => P, Cr = /* @__PURE__ */ h(_r())({
|
|
399
402
|
name: "BGFourLineFour",
|
|
400
403
|
class: "bx3ddqw",
|
|
401
404
|
propsAsIs: !0
|
|
402
|
-
}),
|
|
405
|
+
}), Tr = ({ step: s, correct: n }) => /* @__PURE__ */ I(ie, { children: [
|
|
403
406
|
/* @__PURE__ */ I(oe, { "data-active": s === 1, "data-first-screen": "true", children: [
|
|
404
|
-
/* @__PURE__ */ c(
|
|
405
|
-
/* @__PURE__ */ c(
|
|
406
|
-
/* @__PURE__ */ c(
|
|
407
|
+
/* @__PURE__ */ c(lr, {}),
|
|
408
|
+
/* @__PURE__ */ c(ur, {}),
|
|
409
|
+
/* @__PURE__ */ c(dr, {})
|
|
407
410
|
] }),
|
|
408
411
|
/* @__PURE__ */ I(oe, { "data-active": s === 2, children: [
|
|
409
412
|
/* @__PURE__ */ c(tt, {}),
|
|
@@ -429,29 +432,29 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
429
432
|
/* @__PURE__ */ c(at, {})
|
|
430
433
|
] })
|
|
431
434
|
] }) : /* @__PURE__ */ I(oe, { "data-active": s === 4, "data-correct": "false", "data-last-screen": "true", children: [
|
|
432
|
-
/* @__PURE__ */ c(
|
|
433
|
-
/* @__PURE__ */ c(
|
|
434
|
-
/* @__PURE__ */ c(
|
|
435
|
-
/* @__PURE__ */ c(
|
|
435
|
+
/* @__PURE__ */ c(xr, {}),
|
|
436
|
+
/* @__PURE__ */ c(br, {}),
|
|
437
|
+
/* @__PURE__ */ c(Br, {}),
|
|
438
|
+
/* @__PURE__ */ c(Cr, {})
|
|
436
439
|
] })
|
|
437
|
-
] }),
|
|
440
|
+
] }), Fr = /* @__PURE__ */ h("div")({
|
|
438
441
|
name: "Container",
|
|
439
442
|
class: "c1pgyo67",
|
|
440
443
|
propsAsIs: !1
|
|
441
|
-
}),
|
|
444
|
+
}), $r = "hx17qu6", De = ({
|
|
442
445
|
children: s,
|
|
443
446
|
style: n,
|
|
444
447
|
className: l,
|
|
445
448
|
hiding: f
|
|
446
|
-
}) => /* @__PURE__ */ c(
|
|
449
|
+
}) => /* @__PURE__ */ c(Fr, {
|
|
447
450
|
style: n,
|
|
448
|
-
className: wt(l, f &&
|
|
451
|
+
className: wt(l, f && $r),
|
|
449
452
|
children: s
|
|
450
|
-
}),
|
|
453
|
+
}), kr = 118, Sr = () => De, Lr = /* @__PURE__ */ h(Sr())({
|
|
451
454
|
name: "Container",
|
|
452
455
|
class: "c10131zw",
|
|
453
456
|
propsAsIs: !0
|
|
454
|
-
}),
|
|
457
|
+
}), Rr = /* @__PURE__ */ h("div")({
|
|
455
458
|
name: "InnerContainer",
|
|
456
459
|
class: "ir6k2eo",
|
|
457
460
|
propsAsIs: !1
|
|
@@ -467,7 +470,7 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
467
470
|
name: "Subtitle",
|
|
468
471
|
class: "s1pjil1h",
|
|
469
472
|
propsAsIs: !1
|
|
470
|
-
}),
|
|
473
|
+
}), Nr = () => ge, lt = /* @__PURE__ */ h(Nr())({
|
|
471
474
|
name: "SubtitleFG",
|
|
472
475
|
class: "s1iorwr9",
|
|
473
476
|
propsAsIs: !0
|
|
@@ -475,7 +478,7 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
475
478
|
name: "AnswerText",
|
|
476
479
|
class: "a51sv9d",
|
|
477
480
|
propsAsIs: !1
|
|
478
|
-
}),
|
|
481
|
+
}), Ur = () => z, Te = /* @__PURE__ */ h(Ur())({
|
|
479
482
|
name: "FeedbackIcon",
|
|
480
483
|
class: "f1lbk2ye",
|
|
481
484
|
propsAsIs: !0
|
|
@@ -483,11 +486,11 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
483
486
|
name: "CloseButton",
|
|
484
487
|
class: "crcvk3t",
|
|
485
488
|
propsAsIs: !1
|
|
486
|
-
}),
|
|
489
|
+
}), zr = () => z, ut = /* @__PURE__ */ h(zr())({
|
|
487
490
|
name: "CloseIcon",
|
|
488
491
|
class: "c33p82r",
|
|
489
492
|
propsAsIs: !0
|
|
490
|
-
}), ce = (s, n) => s === n ? "translateY(0px)" : s > n ? "translateY(100%)" : "translateY(-100%)",
|
|
493
|
+
}), ce = (s, n) => s === n ? "translateY(0px)" : s > n ? "translateY(100%)" : "translateY(-100%)", Or = ({ close: s, votedAnswer: n, correct: l, correctAnswerTitle: f, questionTitle: g, saveHeight: m, style: d, hiding: o }) => {
|
|
491
494
|
const [w, v] = W(1), x = ye({});
|
|
492
495
|
X(() => {
|
|
493
496
|
const y = setInterval(() => {
|
|
@@ -496,13 +499,13 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
496
499
|
return () => clearInterval(y);
|
|
497
500
|
}, [l]), X(() => {
|
|
498
501
|
var y, A;
|
|
499
|
-
x.current[w] &&
|
|
500
|
-
}, [w,
|
|
502
|
+
x.current[w] && m(((A = (y = x.current[w]) == null ? void 0 : y.getBoundingClientRect()) == null ? void 0 : A.height) || kr);
|
|
503
|
+
}, [w, m]);
|
|
501
504
|
const B = (y) => (A) => {
|
|
502
505
|
x.current && (x.current[y] = A);
|
|
503
506
|
};
|
|
504
|
-
return /* @__PURE__ */ c(
|
|
505
|
-
|
|
507
|
+
return /* @__PURE__ */ c(Lr, { style: d.height ? d : { ...d, paddingTop: 0, paddingBottom: 0 }, hiding: o, children: /* @__PURE__ */ I(
|
|
508
|
+
Rr,
|
|
506
509
|
{
|
|
507
510
|
style: {
|
|
508
511
|
height: d.height,
|
|
@@ -510,7 +513,7 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
510
513
|
backgroundColor: w > 3 ? "var(--color-white)" : "var(--color-primary-green2)"
|
|
511
514
|
},
|
|
512
515
|
children: [
|
|
513
|
-
/* @__PURE__ */ c(
|
|
516
|
+
/* @__PURE__ */ c(Tr, { step: w, correct: l }),
|
|
514
517
|
/* @__PURE__ */ I(ae, { ref: B(1), style: { transform: ce(1, w) }, children: [
|
|
515
518
|
/* @__PURE__ */ c(le, { children: "Master" }),
|
|
516
519
|
/* @__PURE__ */ c(lt, { children: "FEATURED GROUPS +" })
|
|
@@ -520,7 +523,7 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
520
523
|
/* @__PURE__ */ c(lt, { children: "FEATURED GROUPS +" })
|
|
521
524
|
] }),
|
|
522
525
|
/* @__PURE__ */ I(ae, { ref: B(3), style: { transform: ce(3, w) }, children: [
|
|
523
|
-
/* @__PURE__ */ c(le, { children:
|
|
526
|
+
/* @__PURE__ */ c(le, { children: g }),
|
|
524
527
|
/* @__PURE__ */ c(ge, { children: /* @__PURE__ */ I(Ie, { children: [
|
|
525
528
|
"Your Pick: ",
|
|
526
529
|
n == null ? void 0 : n.title
|
|
@@ -586,11 +589,11 @@ const ei = ({ feature: s, sdk: n, children: l, className: f }) => {
|
|
|
586
589
|
) });
|
|
587
590
|
};
|
|
588
591
|
var It = {}, At = {}, Ee = {};
|
|
589
|
-
Ee.byteLength =
|
|
590
|
-
Ee.toByteArray =
|
|
591
|
-
Ee.fromByteArray =
|
|
592
|
-
var V = [], q = [],
|
|
593
|
-
for (var ue = 0,
|
|
592
|
+
Ee.byteLength = Mr;
|
|
593
|
+
Ee.toByteArray = Gr;
|
|
594
|
+
Ee.fromByteArray = Hr;
|
|
595
|
+
var V = [], q = [], Dr = typeof Uint8Array < "u" ? Uint8Array : Array, Fe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
596
|
+
for (var ue = 0, Pr = Fe.length; ue < Pr; ++ue)
|
|
594
597
|
V[ue] = Fe[ue], q[Fe.charCodeAt(ue)] = ue;
|
|
595
598
|
q["-".charCodeAt(0)] = 62;
|
|
596
599
|
q["_".charCodeAt(0)] = 63;
|
|
@@ -603,58 +606,58 @@ function xt(s) {
|
|
|
603
606
|
var f = l === n ? 0 : 4 - l % 4;
|
|
604
607
|
return [l, f];
|
|
605
608
|
}
|
|
606
|
-
function
|
|
609
|
+
function Mr(s) {
|
|
607
610
|
var n = xt(s), l = n[0], f = n[1];
|
|
608
611
|
return (l + f) * 3 / 4 - f;
|
|
609
612
|
}
|
|
610
|
-
function
|
|
613
|
+
function qr(s, n, l) {
|
|
611
614
|
return (n + l) * 3 / 4 - l;
|
|
612
615
|
}
|
|
613
|
-
function
|
|
614
|
-
var n, l = xt(s), f = l[0],
|
|
616
|
+
function Gr(s) {
|
|
617
|
+
var n, l = xt(s), f = l[0], g = l[1], m = new Dr(qr(s, f, g)), d = 0, o = g > 0 ? f - 4 : f, w;
|
|
615
618
|
for (w = 0; w < o; w += 4)
|
|
616
|
-
n = q[s.charCodeAt(w)] << 18 | q[s.charCodeAt(w + 1)] << 12 | q[s.charCodeAt(w + 2)] << 6 | q[s.charCodeAt(w + 3)],
|
|
617
|
-
return
|
|
619
|
+
n = q[s.charCodeAt(w)] << 18 | q[s.charCodeAt(w + 1)] << 12 | q[s.charCodeAt(w + 2)] << 6 | q[s.charCodeAt(w + 3)], m[d++] = n >> 16 & 255, m[d++] = n >> 8 & 255, m[d++] = n & 255;
|
|
620
|
+
return g === 2 && (n = q[s.charCodeAt(w)] << 2 | q[s.charCodeAt(w + 1)] >> 4, m[d++] = n & 255), g === 1 && (n = q[s.charCodeAt(w)] << 10 | q[s.charCodeAt(w + 1)] << 4 | q[s.charCodeAt(w + 2)] >> 2, m[d++] = n >> 8 & 255, m[d++] = n & 255), m;
|
|
618
621
|
}
|
|
619
|
-
function
|
|
622
|
+
function Wr(s) {
|
|
620
623
|
return V[s >> 18 & 63] + V[s >> 12 & 63] + V[s >> 6 & 63] + V[s & 63];
|
|
621
624
|
}
|
|
622
|
-
function
|
|
623
|
-
for (var f,
|
|
624
|
-
f = (s[
|
|
625
|
-
return
|
|
625
|
+
function jr(s, n, l) {
|
|
626
|
+
for (var f, g = [], m = n; m < l; m += 3)
|
|
627
|
+
f = (s[m] << 16 & 16711680) + (s[m + 1] << 8 & 65280) + (s[m + 2] & 255), g.push(Wr(f));
|
|
628
|
+
return g.join("");
|
|
626
629
|
}
|
|
627
|
-
function
|
|
628
|
-
for (var n, l = s.length, f = l % 3,
|
|
629
|
-
|
|
630
|
-
return f === 1 ? (n = s[l - 1],
|
|
630
|
+
function Hr(s) {
|
|
631
|
+
for (var n, l = s.length, f = l % 3, g = [], m = 16383, d = 0, o = l - f; d < o; d += m)
|
|
632
|
+
g.push(jr(s, d, d + m > o ? o : d + m));
|
|
633
|
+
return f === 1 ? (n = s[l - 1], g.push(
|
|
631
634
|
V[n >> 2] + V[n << 4 & 63] + "=="
|
|
632
|
-
)) : f === 2 && (n = (s[l - 2] << 8) + s[l - 1],
|
|
635
|
+
)) : f === 2 && (n = (s[l - 2] << 8) + s[l - 1], g.push(
|
|
633
636
|
V[n >> 10] + V[n >> 4 & 63] + V[n << 2 & 63] + "="
|
|
634
|
-
)),
|
|
637
|
+
)), g.join("");
|
|
635
638
|
}
|
|
636
639
|
var Pe = {};
|
|
637
640
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
638
|
-
Pe.read = function(s, n, l, f,
|
|
639
|
-
var
|
|
640
|
-
for (B += y,
|
|
641
|
+
Pe.read = function(s, n, l, f, g) {
|
|
642
|
+
var m, d, o = g * 8 - f - 1, w = (1 << o) - 1, v = w >> 1, x = -7, B = l ? g - 1 : 0, y = l ? -1 : 1, A = s[n + B];
|
|
643
|
+
for (B += y, m = A & (1 << -x) - 1, A >>= -x, x += o; x > 0; m = m * 256 + s[n + B], B += y, x -= 8)
|
|
641
644
|
;
|
|
642
|
-
for (d =
|
|
645
|
+
for (d = m & (1 << -x) - 1, m >>= -x, x += f; x > 0; d = d * 256 + s[n + B], B += y, x -= 8)
|
|
643
646
|
;
|
|
644
|
-
if (
|
|
645
|
-
|
|
647
|
+
if (m === 0)
|
|
648
|
+
m = 1 - v;
|
|
646
649
|
else {
|
|
647
|
-
if (
|
|
650
|
+
if (m === w)
|
|
648
651
|
return d ? NaN : (A ? -1 : 1) * (1 / 0);
|
|
649
|
-
d = d + Math.pow(2, f),
|
|
652
|
+
d = d + Math.pow(2, f), m = m - v;
|
|
650
653
|
}
|
|
651
|
-
return (A ? -1 : 1) * d * Math.pow(2,
|
|
654
|
+
return (A ? -1 : 1) * d * Math.pow(2, m - f);
|
|
652
655
|
};
|
|
653
|
-
Pe.write = function(s, n, l, f,
|
|
654
|
-
var d, o, w, v =
|
|
655
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, d = x) : (d = Math.floor(Math.log(n) / Math.LN2), n * (w = Math.pow(2, -d)) < 1 && (d--, w *= 2), d + B >= 1 ? n += y / w : n += y * Math.pow(2, 1 - B), n * w >= 2 && (d++, w /= 2), d + B >= x ? (o = 0, d = x) : d + B >= 1 ? (o = (n * w - 1) * Math.pow(2,
|
|
656
|
+
Pe.write = function(s, n, l, f, g, m) {
|
|
657
|
+
var d, o, w, v = m * 8 - g - 1, x = (1 << v) - 1, B = x >> 1, y = g === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, A = f ? 0 : m - 1, b = f ? 1 : -1, _ = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
658
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, d = x) : (d = Math.floor(Math.log(n) / Math.LN2), n * (w = Math.pow(2, -d)) < 1 && (d--, w *= 2), d + B >= 1 ? n += y / w : n += y * Math.pow(2, 1 - B), n * w >= 2 && (d++, w /= 2), d + B >= x ? (o = 0, d = x) : d + B >= 1 ? (o = (n * w - 1) * Math.pow(2, g), d = d + B) : (o = n * Math.pow(2, B - 1) * Math.pow(2, g), d = 0)); g >= 8; s[l + A] = o & 255, A += b, o /= 256, g -= 8)
|
|
656
659
|
;
|
|
657
|
-
for (d = d <<
|
|
660
|
+
for (d = d << g | o, v += g; v > 0; s[l + A] = d & 255, A += b, d /= 256, v -= 8)
|
|
658
661
|
;
|
|
659
662
|
s[l + A - b] |= _ * 128;
|
|
660
663
|
};
|
|
@@ -667,11 +670,11 @@ Pe.write = function(s, n, l, f, m, g) {
|
|
|
667
670
|
(function(s) {
|
|
668
671
|
const n = Ee, l = Pe, f = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
669
672
|
s.Buffer = o, s.SlowBuffer = F, s.INSPECT_MAX_BYTES = 50;
|
|
670
|
-
const
|
|
671
|
-
s.kMaxLength =
|
|
673
|
+
const g = 2147483647;
|
|
674
|
+
s.kMaxLength = g, o.TYPED_ARRAY_SUPPORT = m(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
672
675
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
673
676
|
);
|
|
674
|
-
function
|
|
677
|
+
function m() {
|
|
675
678
|
try {
|
|
676
679
|
const i = new Uint8Array(1), e = { foo: function() {
|
|
677
680
|
return 42;
|
|
@@ -695,7 +698,7 @@ Pe.write = function(s, n, l, f, m, g) {
|
|
|
695
698
|
}
|
|
696
699
|
});
|
|
697
700
|
function d(i) {
|
|
698
|
-
if (i >
|
|
701
|
+
if (i > g)
|
|
699
702
|
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
700
703
|
const e = new Uint8Array(i);
|
|
701
704
|
return Object.setPrototypeOf(e, o.prototype), e;
|
|
@@ -801,8 +804,8 @@ Pe.write = function(s, n, l, f, m, g) {
|
|
|
801
804
|
return A(i.data);
|
|
802
805
|
}
|
|
803
806
|
function C(i) {
|
|
804
|
-
if (i >=
|
|
805
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" +
|
|
807
|
+
if (i >= g)
|
|
808
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + g.toString(16) + " bytes");
|
|
806
809
|
return i | 0;
|
|
807
810
|
}
|
|
808
811
|
function F(i) {
|
|
@@ -906,7 +909,7 @@ Pe.write = function(s, n, l, f, m, g) {
|
|
|
906
909
|
}
|
|
907
910
|
}
|
|
908
911
|
o.byteLength = U;
|
|
909
|
-
function
|
|
912
|
+
function K(i, e, t) {
|
|
910
913
|
let r = !1;
|
|
911
914
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
|
|
912
915
|
return "";
|
|
@@ -963,7 +966,7 @@ Pe.write = function(s, n, l, f, m, g) {
|
|
|
963
966
|
return this;
|
|
964
967
|
}, o.prototype.toString = function() {
|
|
965
968
|
const e = this.length;
|
|
966
|
-
return e === 0 ? "" : arguments.length === 0 ? Ge(this, 0, e) :
|
|
969
|
+
return e === 0 ? "" : arguments.length === 0 ? Ge(this, 0, e) : K.apply(this, arguments);
|
|
967
970
|
}, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(e) {
|
|
968
971
|
if (!o.isBuffer(e))
|
|
969
972
|
throw new TypeError("Argument must be a Buffer");
|
|
@@ -1393,13 +1396,13 @@ Pe.write = function(s, n, l, f, m, g) {
|
|
|
1393
1396
|
}, o.prototype.writeFloatBE = function(e, t, r) {
|
|
1394
1397
|
return Ve(this, e, t, !1, r);
|
|
1395
1398
|
};
|
|
1396
|
-
function
|
|
1399
|
+
function Ke(i, e, t, r, a) {
|
|
1397
1400
|
return e = +e, t = t >>> 0, a || Ye(i, e, t, 8), l.write(i, e, t, r, 52, 8), t + 8;
|
|
1398
1401
|
}
|
|
1399
1402
|
o.prototype.writeDoubleLE = function(e, t, r) {
|
|
1400
|
-
return
|
|
1403
|
+
return Ke(this, e, t, !0, r);
|
|
1401
1404
|
}, o.prototype.writeDoubleBE = function(e, t, r) {
|
|
1402
|
-
return
|
|
1405
|
+
return Ke(this, e, t, !1, r);
|
|
1403
1406
|
}, o.prototype.copy = function(e, t, r, a) {
|
|
1404
1407
|
if (!o.isBuffer(e))
|
|
1405
1408
|
throw new TypeError("argument should be a Buffer");
|
|
@@ -1490,11 +1493,11 @@ Pe.write = function(s, n, l, f, m, g) {
|
|
|
1490
1493
|
"ERR_OUT_OF_RANGE",
|
|
1491
1494
|
function(i, e, t) {
|
|
1492
1495
|
let r = `The value of "${i}" is out of range.`, a = t;
|
|
1493
|
-
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? a =
|
|
1496
|
+
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? a = Qe(String(t)) : typeof t == "bigint" && (a = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (a = Qe(a)), a += "n"), r += ` It must be ${e}. Received ${a}`, r;
|
|
1494
1497
|
},
|
|
1495
1498
|
RangeError
|
|
1496
1499
|
);
|
|
1497
|
-
function
|
|
1500
|
+
function Qe(i) {
|
|
1498
1501
|
let e = "", t = i.length;
|
|
1499
1502
|
const r = i[0] === "-" ? 1 : 0;
|
|
1500
1503
|
for (; t >= r + 4; t -= 3)
|
|
@@ -1668,7 +1671,7 @@ function bt(s) {
|
|
|
1668
1671
|
}
|
|
1669
1672
|
}
|
|
1670
1673
|
}
|
|
1671
|
-
function
|
|
1674
|
+
function Yr(s) {
|
|
1672
1675
|
if (Y === clearTimeout)
|
|
1673
1676
|
return clearTimeout(s);
|
|
1674
1677
|
if ((Y === Le || !Y) && clearTimeout)
|
|
@@ -1683,20 +1686,20 @@ function Wr(s) {
|
|
|
1683
1686
|
}
|
|
1684
1687
|
}
|
|
1685
1688
|
}
|
|
1686
|
-
var
|
|
1687
|
-
function
|
|
1688
|
-
!pe || !te || (pe = !1, te.length ?
|
|
1689
|
+
var Q = [], pe = !1, te, xe = -1;
|
|
1690
|
+
function Vr() {
|
|
1691
|
+
!pe || !te || (pe = !1, te.length ? Q = te.concat(Q) : xe = -1, Q.length && Et());
|
|
1689
1692
|
}
|
|
1690
1693
|
function Et() {
|
|
1691
1694
|
if (!pe) {
|
|
1692
|
-
var s = bt(
|
|
1695
|
+
var s = bt(Vr);
|
|
1693
1696
|
pe = !0;
|
|
1694
|
-
for (var n =
|
|
1695
|
-
for (te =
|
|
1697
|
+
for (var n = Q.length; n; ) {
|
|
1698
|
+
for (te = Q, Q = []; ++xe < n; )
|
|
1696
1699
|
te && te[xe].run();
|
|
1697
|
-
xe = -1, n =
|
|
1700
|
+
xe = -1, n = Q.length;
|
|
1698
1701
|
}
|
|
1699
|
-
te = null, pe = !1,
|
|
1702
|
+
te = null, pe = !1, Yr(s);
|
|
1700
1703
|
}
|
|
1701
1704
|
}
|
|
1702
1705
|
L.nextTick = function(s) {
|
|
@@ -1704,7 +1707,7 @@ L.nextTick = function(s) {
|
|
|
1704
1707
|
if (arguments.length > 1)
|
|
1705
1708
|
for (var l = 1; l < arguments.length; l++)
|
|
1706
1709
|
n[l - 1] = arguments[l];
|
|
1707
|
-
|
|
1710
|
+
Q.push(new Bt(s, n)), Q.length === 1 && !pe && bt(Et);
|
|
1708
1711
|
};
|
|
1709
1712
|
function Bt(s, n) {
|
|
1710
1713
|
this.fun = s, this.array = n;
|
|
@@ -1744,11 +1747,11 @@ L.chdir = function(s) {
|
|
|
1744
1747
|
L.umask = function() {
|
|
1745
1748
|
return 0;
|
|
1746
1749
|
};
|
|
1747
|
-
var
|
|
1750
|
+
var Kr = vt.exports;
|
|
1748
1751
|
(function(s) {
|
|
1749
1752
|
Object.defineProperty(s, Symbol.toStringTag, { value: "Module" });
|
|
1750
|
-
const n = At, l =
|
|
1751
|
-
Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () =>
|
|
1753
|
+
const n = At, l = Kr, f = (d) => d && d.__esModule ? d : { default: d }, g = f(l), m = globalThis || void 0 || self;
|
|
1754
|
+
Object.defineProperty(s, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(s, "process", { enumerable: !0, get: () => g.default }), s.global = m;
|
|
1752
1755
|
})(It);
|
|
1753
1756
|
let G;
|
|
1754
1757
|
typeof window < "u" ? G = window : typeof self < "u" ? G = self : G = It.global;
|
|
@@ -1766,21 +1769,21 @@ ke == null || pt == null ? (Re = $e, Ne = function(n) {
|
|
|
1766
1769
|
}, ht);
|
|
1767
1770
|
return [l, f];
|
|
1768
1771
|
});
|
|
1769
|
-
function
|
|
1770
|
-
let n, l, f,
|
|
1772
|
+
function Qr(s) {
|
|
1773
|
+
let n, l, f, g, m, d, o;
|
|
1771
1774
|
const w = typeof document < "u" && document.attachEvent;
|
|
1772
1775
|
if (!w) {
|
|
1773
1776
|
d = function(C) {
|
|
1774
|
-
const F = C.__resizeTriggers__, U = F.firstElementChild,
|
|
1775
|
-
|
|
1776
|
-
},
|
|
1777
|
+
const F = C.__resizeTriggers__, U = F.firstElementChild, K = F.lastElementChild, M = U.firstElementChild;
|
|
1778
|
+
K.scrollLeft = K.scrollWidth, K.scrollTop = K.scrollHeight, M.style.width = U.offsetWidth + 1 + "px", M.style.height = U.offsetHeight + 1 + "px", U.scrollLeft = U.scrollWidth, U.scrollTop = U.scrollHeight;
|
|
1779
|
+
}, m = function(C) {
|
|
1777
1780
|
return C.offsetWidth !== C.__resizeLast__.width || C.offsetHeight !== C.__resizeLast__.height;
|
|
1778
1781
|
}, o = function(C) {
|
|
1779
1782
|
if (C.target.className && typeof C.target.className.indexOf == "function" && C.target.className.indexOf("contract-trigger") < 0 && C.target.className.indexOf("expand-trigger") < 0)
|
|
1780
1783
|
return;
|
|
1781
1784
|
const F = this;
|
|
1782
1785
|
d(this), this.__resizeRAF__ && Re(this.__resizeRAF__), this.__resizeRAF__ = Ne(function() {
|
|
1783
|
-
|
|
1786
|
+
m(F) && (F.__resizeLast__.width = F.offsetWidth, F.__resizeLast__.height = F.offsetHeight, F.__resizeListeners__.forEach(function(M) {
|
|
1784
1787
|
M.call(F, C);
|
|
1785
1788
|
}));
|
|
1786
1789
|
});
|
|
@@ -1799,11 +1802,11 @@ function Yr(s) {
|
|
|
1799
1802
|
}
|
|
1800
1803
|
}
|
|
1801
1804
|
}
|
|
1802
|
-
l = "resizeanim", n = "@" + A + "keyframes " + l + " { from { opacity: 0; } to { opacity: 0; } } ",
|
|
1805
|
+
l = "resizeanim", n = "@" + A + "keyframes " + l + " { from { opacity: 0; } to { opacity: 0; } } ", g = A + "animation: 1ms " + l + "; ";
|
|
1803
1806
|
}
|
|
1804
1807
|
const v = function(y) {
|
|
1805
1808
|
if (!y.getElementById("detectElementResize")) {
|
|
1806
|
-
const A = (n || "") + ".resize-triggers { " + (
|
|
1809
|
+
const A = (n || "") + ".resize-triggers { " + (g || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', b = y.head || y.getElementsByTagName("head")[0], _ = y.createElement("style");
|
|
1807
1810
|
_.id = "detectElementResize", _.type = "text/css", s != null && _.setAttribute("nonce", s), _.styleSheet ? _.styleSheet.cssText = A : _.appendChild(y.createTextNode(A)), b.appendChild(_);
|
|
1808
1811
|
}
|
|
1809
1812
|
};
|
|
@@ -1838,7 +1841,7 @@ function Yr(s) {
|
|
|
1838
1841
|
}
|
|
1839
1842
|
};
|
|
1840
1843
|
}
|
|
1841
|
-
class
|
|
1844
|
+
class Xr extends Qt {
|
|
1842
1845
|
constructor(...n) {
|
|
1843
1846
|
super(...n), this.state = {
|
|
1844
1847
|
height: this.props.defaultHeight || 0,
|
|
@@ -1850,17 +1853,17 @@ class Vr extends Kt {
|
|
|
1850
1853
|
const {
|
|
1851
1854
|
disableHeight: l,
|
|
1852
1855
|
disableWidth: f,
|
|
1853
|
-
onResize:
|
|
1856
|
+
onResize: g
|
|
1854
1857
|
} = this.props;
|
|
1855
1858
|
if (this._parentNode) {
|
|
1856
|
-
var
|
|
1857
|
-
const v = window.getComputedStyle(this._parentNode) || {}, x = parseFloat((
|
|
1859
|
+
var m, d, o, w;
|
|
1860
|
+
const v = window.getComputedStyle(this._parentNode) || {}, x = parseFloat((m = v.paddingLeft) !== null && m !== void 0 ? m : "0"), B = parseFloat((d = v.paddingRight) !== null && d !== void 0 ? d : "0"), y = parseFloat((o = v.paddingTop) !== null && o !== void 0 ? o : "0"), A = parseFloat((w = v.paddingBottom) !== null && w !== void 0 ? w : "0"), b = this._parentNode.getBoundingClientRect(), _ = b.height - y - A, R = b.width - x - B, C = this._parentNode.offsetHeight - y - A, F = this._parentNode.offsetWidth - x - B;
|
|
1858
1861
|
(!l && (this.state.height !== C || this.state.scaledHeight !== _) || !f && (this.state.width !== F || this.state.scaledWidth !== R)) && (this.setState({
|
|
1859
1862
|
height: C,
|
|
1860
1863
|
width: F,
|
|
1861
1864
|
scaledHeight: _,
|
|
1862
1865
|
scaledWidth: R
|
|
1863
|
-
}), typeof
|
|
1866
|
+
}), typeof g == "function" && g({
|
|
1864
1867
|
height: C,
|
|
1865
1868
|
scaledHeight: _,
|
|
1866
1869
|
scaledWidth: R,
|
|
@@ -1877,7 +1880,7 @@ class Vr extends Kt {
|
|
|
1877
1880
|
} = this.props;
|
|
1878
1881
|
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._parentNode != null && (typeof ResizeObserver < "u" ? (this._resizeObserver = new ResizeObserver(() => {
|
|
1879
1882
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1880
|
-
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize =
|
|
1883
|
+
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Qr(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
|
|
1881
1884
|
}
|
|
1882
1885
|
componentWillUnmount() {
|
|
1883
1886
|
this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && (this._resizeObserver.observe(this._parentNode), this._resizeObserver.disconnect()));
|
|
@@ -1887,8 +1890,8 @@ class Vr extends Kt {
|
|
|
1887
1890
|
children: n,
|
|
1888
1891
|
defaultHeight: l,
|
|
1889
1892
|
defaultWidth: f,
|
|
1890
|
-
disableHeight:
|
|
1891
|
-
disableWidth:
|
|
1893
|
+
disableHeight: g = !1,
|
|
1894
|
+
disableWidth: m = !1,
|
|
1892
1895
|
nonce: d,
|
|
1893
1896
|
onResize: o,
|
|
1894
1897
|
style: w = {},
|
|
@@ -1903,7 +1906,7 @@ class Vr extends Kt {
|
|
|
1903
1906
|
overflow: "visible"
|
|
1904
1907
|
}, R = {};
|
|
1905
1908
|
let C = !1;
|
|
1906
|
-
return
|
|
1909
|
+
return g || (B === 0 && (C = !0), _.height = 0, R.height = B, R.scaledHeight = y), m || (b === 0 && (C = !0), _.width = 0, R.width = b, R.scaledWidth = A), Xt(v, {
|
|
1907
1910
|
ref: this._setRef,
|
|
1908
1911
|
style: {
|
|
1909
1912
|
..._,
|
|
@@ -1913,112 +1916,112 @@ class Vr extends Kt {
|
|
|
1913
1916
|
}, !C && n(R));
|
|
1914
1917
|
}
|
|
1915
1918
|
}
|
|
1916
|
-
const
|
|
1919
|
+
const Jr = /* @__PURE__ */ h("div")({
|
|
1917
1920
|
name: "Container",
|
|
1918
1921
|
class: "c1htq1lb",
|
|
1919
1922
|
propsAsIs: !1
|
|
1920
|
-
}),
|
|
1923
|
+
}), Zr = /* @__PURE__ */ h("div")({
|
|
1921
1924
|
name: "Content",
|
|
1922
1925
|
class: "cjyzpp7",
|
|
1923
1926
|
propsAsIs: !1
|
|
1924
|
-
}),
|
|
1927
|
+
}), en = /* @__PURE__ */ h("div")({
|
|
1925
1928
|
name: "Graphic",
|
|
1926
1929
|
class: "g16mldgz",
|
|
1927
1930
|
propsAsIs: !1
|
|
1928
|
-
}),
|
|
1931
|
+
}), tn = /* @__PURE__ */ h("div")({
|
|
1929
1932
|
name: "Headline",
|
|
1930
1933
|
class: "h69js65",
|
|
1931
1934
|
propsAsIs: !1
|
|
1932
|
-
}),
|
|
1935
|
+
}), rn = /* @__PURE__ */ h("div")({
|
|
1933
1936
|
name: "StepsContainer",
|
|
1934
1937
|
class: "smm7qmo",
|
|
1935
1938
|
propsAsIs: !1
|
|
1936
|
-
}),
|
|
1939
|
+
}), nn = /* @__PURE__ */ h("span")({
|
|
1937
1940
|
name: "StepIndicator",
|
|
1938
1941
|
class: "s17knuw2",
|
|
1939
1942
|
propsAsIs: !1
|
|
1940
|
-
}),
|
|
1943
|
+
}), sn = ({
|
|
1941
1944
|
width: s,
|
|
1942
1945
|
graphicSrc: n,
|
|
1943
1946
|
headline: l,
|
|
1944
1947
|
stepsCount: f,
|
|
1945
|
-
currentStep:
|
|
1946
|
-
}) => /* @__PURE__ */ I(
|
|
1947
|
-
/* @__PURE__ */ I(
|
|
1948
|
-
/* @__PURE__ */ c(
|
|
1949
|
-
l && /* @__PURE__ */ c(
|
|
1948
|
+
currentStep: g
|
|
1949
|
+
}) => /* @__PURE__ */ I(Jr, { children: [
|
|
1950
|
+
/* @__PURE__ */ I(Zr, { children: [
|
|
1951
|
+
/* @__PURE__ */ c(en, { "data-centered": g === 0, children: /* @__PURE__ */ c("img", { src: n, alt: l, width: s || 300 }) }),
|
|
1952
|
+
l && /* @__PURE__ */ c(tn, { children: l })
|
|
1950
1953
|
] }),
|
|
1951
|
-
/* @__PURE__ */ c(
|
|
1952
|
-
] }),
|
|
1954
|
+
/* @__PURE__ */ c(rn, { children: Array.from({ length: f }).map((m, d) => /* @__PURE__ */ c(nn, { "data-active": g === d }, d)) })
|
|
1955
|
+
] }), on = /* @__PURE__ */ h("div")({
|
|
1953
1956
|
name: "Container",
|
|
1954
1957
|
class: "c1itm4k7",
|
|
1955
1958
|
propsAsIs: !1
|
|
1956
|
-
}),
|
|
1959
|
+
}), an = /* @__PURE__ */ h("div")({
|
|
1957
1960
|
name: "IconContainer",
|
|
1958
1961
|
class: "i1w4fsni",
|
|
1959
1962
|
propsAsIs: !1
|
|
1960
|
-
}),
|
|
1963
|
+
}), ln = () => z, cn = /* @__PURE__ */ h(ln())({
|
|
1961
1964
|
name: "InviteGameIcon",
|
|
1962
1965
|
class: "i19m85r1",
|
|
1963
1966
|
propsAsIs: !0
|
|
1964
|
-
}),
|
|
1967
|
+
}), un = /* @__PURE__ */ h("div")({
|
|
1965
1968
|
name: "Content",
|
|
1966
1969
|
class: "c1mbu204",
|
|
1967
1970
|
propsAsIs: !1
|
|
1968
|
-
}),
|
|
1971
|
+
}), hn = /* @__PURE__ */ h("div")({
|
|
1969
1972
|
name: "Heading",
|
|
1970
1973
|
class: "h1amdqtv",
|
|
1971
1974
|
propsAsIs: !1
|
|
1972
|
-
}),
|
|
1975
|
+
}), dn = /* @__PURE__ */ h("div")({
|
|
1973
1976
|
name: "Subtext",
|
|
1974
1977
|
class: "s1lhlj9j",
|
|
1975
1978
|
propsAsIs: !1
|
|
1976
|
-
}),
|
|
1979
|
+
}), pn = /* @__PURE__ */ h("div")({
|
|
1977
1980
|
name: "LinkContainer",
|
|
1978
1981
|
class: "l1wot35e",
|
|
1979
1982
|
propsAsIs: !1
|
|
1980
|
-
}),
|
|
1983
|
+
}), fn = /* @__PURE__ */ h("div")({
|
|
1981
1984
|
name: "LinkInfo",
|
|
1982
1985
|
class: "l1jdw39q",
|
|
1983
1986
|
propsAsIs: !1
|
|
1984
|
-
}),
|
|
1987
|
+
}), mn = /* @__PURE__ */ h("span")({
|
|
1985
1988
|
name: "LinkTitle",
|
|
1986
1989
|
class: "l1cr5mk",
|
|
1987
1990
|
propsAsIs: !1
|
|
1988
|
-
}),
|
|
1991
|
+
}), gn = /* @__PURE__ */ h("span")({
|
|
1989
1992
|
name: "LinkAddress",
|
|
1990
1993
|
class: "lvi87q4",
|
|
1991
1994
|
propsAsIs: !1
|
|
1992
|
-
}),
|
|
1995
|
+
}), yn = () => z, wn = /* @__PURE__ */ h(yn())({
|
|
1993
1996
|
name: "LinkIcon",
|
|
1994
1997
|
class: "l1pqlvw3",
|
|
1995
1998
|
propsAsIs: !0
|
|
1996
|
-
}),
|
|
1999
|
+
}), In = /* @__PURE__ */ h("div")({
|
|
1997
2000
|
name: "SocialLinksContainer",
|
|
1998
2001
|
class: "s1n7kzeh",
|
|
1999
2002
|
propsAsIs: !1
|
|
2000
|
-
}),
|
|
2003
|
+
}), An = /* @__PURE__ */ h("a")({
|
|
2001
2004
|
name: "SocialLink",
|
|
2002
2005
|
class: "s2m9o9y",
|
|
2003
2006
|
propsAsIs: !1
|
|
2004
|
-
}),
|
|
2007
|
+
}), xn = /* @__PURE__ */ h("span")({
|
|
2005
2008
|
name: "SocialLinkLabel",
|
|
2006
2009
|
class: "sewjbbn",
|
|
2007
2010
|
propsAsIs: !1
|
|
2008
|
-
}),
|
|
2011
|
+
}), vn = ({
|
|
2009
2012
|
inviteLink: s,
|
|
2010
2013
|
socialLinks: n,
|
|
2011
2014
|
inviteCardTitle: l,
|
|
2012
2015
|
inviteCardSubtext: f,
|
|
2013
|
-
primaryColor:
|
|
2014
|
-
className:
|
|
2015
|
-
}) => /* @__PURE__ */ I(
|
|
2016
|
-
/* @__PURE__ */ c(
|
|
2017
|
-
/* @__PURE__ */ I(
|
|
2018
|
-
/* @__PURE__ */ c(
|
|
2019
|
-
/* @__PURE__ */ c(
|
|
2016
|
+
primaryColor: g,
|
|
2017
|
+
className: m
|
|
2018
|
+
}) => /* @__PURE__ */ I(on, { className: m, children: [
|
|
2019
|
+
/* @__PURE__ */ c(an, { style: { backgroundColor: g }, children: /* @__PURE__ */ c(cn, { name: "invite-game-icon" }) }),
|
|
2020
|
+
/* @__PURE__ */ I(un, { children: [
|
|
2021
|
+
/* @__PURE__ */ c(hn, { children: l || "" }),
|
|
2022
|
+
/* @__PURE__ */ c(dn, { children: f || "" })
|
|
2020
2023
|
] }),
|
|
2021
|
-
s && /* @__PURE__ */ I(
|
|
2024
|
+
s && /* @__PURE__ */ I(pn, { onClick: async () => {
|
|
2022
2025
|
if (s)
|
|
2023
2026
|
try {
|
|
2024
2027
|
await navigator.clipboard.writeText(s);
|
|
@@ -2026,90 +2029,90 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2026
2029
|
console.error("Unable to copy to clipboard", d);
|
|
2027
2030
|
}
|
|
2028
2031
|
}, children: [
|
|
2029
|
-
/* @__PURE__ */ I(
|
|
2030
|
-
/* @__PURE__ */ c(
|
|
2031
|
-
/* @__PURE__ */ c(
|
|
2032
|
+
/* @__PURE__ */ I(fn, { children: [
|
|
2033
|
+
/* @__PURE__ */ c(mn, { children: "Invite link" }),
|
|
2034
|
+
/* @__PURE__ */ c(gn, { children: s })
|
|
2032
2035
|
] }),
|
|
2033
|
-
/* @__PURE__ */ c(
|
|
2036
|
+
/* @__PURE__ */ c(wn, { name: "icon-copy" })
|
|
2034
2037
|
] }),
|
|
2035
|
-
n && n.length > 0 && /* @__PURE__ */ c(
|
|
2038
|
+
n && n.length > 0 && /* @__PURE__ */ c(In, { children: n.map(({ icon: d, link: o, label: w }) => /* @__PURE__ */ I(An, { href: o, target: "_blank", children: [
|
|
2036
2039
|
/* @__PURE__ */ c(z, { name: d }),
|
|
2037
|
-
/* @__PURE__ */ c(
|
|
2040
|
+
/* @__PURE__ */ c(xn, { children: w })
|
|
2038
2041
|
] }, o)) })
|
|
2039
|
-
] }),
|
|
2042
|
+
] }), bn = /* @__PURE__ */ h("div")({
|
|
2040
2043
|
name: "Container",
|
|
2041
2044
|
class: "cm0bev",
|
|
2042
2045
|
propsAsIs: !1
|
|
2043
|
-
}),
|
|
2046
|
+
}), En = /* @__PURE__ */ h("div")({
|
|
2044
2047
|
name: "Content",
|
|
2045
2048
|
class: "ce7x737",
|
|
2046
2049
|
propsAsIs: !1
|
|
2047
|
-
}),
|
|
2050
|
+
}), Bn = /* @__PURE__ */ h("div")({
|
|
2048
2051
|
name: "Title",
|
|
2049
2052
|
class: "tc2tor6",
|
|
2050
2053
|
propsAsIs: !1
|
|
2051
|
-
}),
|
|
2054
|
+
}), _n = /* @__PURE__ */ h("div")({
|
|
2052
2055
|
name: "RulesList",
|
|
2053
2056
|
class: "r1k5klql",
|
|
2054
2057
|
propsAsIs: !1
|
|
2055
|
-
}),
|
|
2058
|
+
}), Cn = /* @__PURE__ */ h("div")({
|
|
2056
2059
|
name: "RulesItem",
|
|
2057
2060
|
class: "r1tf3ft2",
|
|
2058
2061
|
propsAsIs: !1
|
|
2059
|
-
}),
|
|
2062
|
+
}), Tn = /* @__PURE__ */ h("div")({
|
|
2060
2063
|
name: "RuleIcon",
|
|
2061
2064
|
class: "rwpvg1k",
|
|
2062
2065
|
propsAsIs: !1
|
|
2063
|
-
}),
|
|
2066
|
+
}), Fn = /* @__PURE__ */ h("div")({
|
|
2064
2067
|
name: "RuleText",
|
|
2065
2068
|
class: "rbxiag0",
|
|
2066
2069
|
propsAsIs: !1
|
|
2067
|
-
}),
|
|
2070
|
+
}), $n = /* @__PURE__ */ h("button")({
|
|
2068
2071
|
name: "TermsButton",
|
|
2069
2072
|
class: "t6cyrry",
|
|
2070
2073
|
propsAsIs: !1
|
|
2071
|
-
}),
|
|
2072
|
-
/* @__PURE__ */ I(
|
|
2073
|
-
/* @__PURE__ */ c(
|
|
2074
|
-
/* @__PURE__ */ c(
|
|
2075
|
-
|
|
2076
|
-
/* @__PURE__ */ c(
|
|
2077
|
-
] },
|
|
2074
|
+
}), kn = ({ rules: s, rulesTitle: n, primaryColor: l }) => /* @__PURE__ */ I(bn, { children: [
|
|
2075
|
+
/* @__PURE__ */ I(En, { children: [
|
|
2076
|
+
/* @__PURE__ */ c(Bn, { children: n }),
|
|
2077
|
+
/* @__PURE__ */ c(_n, { children: s == null ? void 0 : s.map(({ label: f, icon: g }, m) => /* @__PURE__ */ I(Cn, { children: [
|
|
2078
|
+
g && /* @__PURE__ */ c(Tn, { style: { backgroundColor: l }, children: /* @__PURE__ */ c(z, { name: g, "data-icon": g }) }),
|
|
2079
|
+
/* @__PURE__ */ c(Fn, { children: f })
|
|
2080
|
+
] }, m)) })
|
|
2078
2081
|
] }),
|
|
2079
|
-
/* @__PURE__ */ c(
|
|
2080
|
-
] }),
|
|
2082
|
+
/* @__PURE__ */ c($n, { children: "See Terms and Conditions" })
|
|
2083
|
+
] }), Sn = /* @__PURE__ */ h("button")({
|
|
2081
2084
|
name: "SButton",
|
|
2082
2085
|
class: "s1nve60q",
|
|
2083
2086
|
propsAsIs: !1
|
|
2084
|
-
}),
|
|
2087
|
+
}), Ln = /* @__PURE__ */ h("span")({
|
|
2085
2088
|
name: "ButtonLabel",
|
|
2086
2089
|
class: "b1xoswwx",
|
|
2087
2090
|
propsAsIs: !1
|
|
2088
|
-
}),
|
|
2091
|
+
}), Rn = ({ disabled: s, variant: n = "primary", onClick: l, children: f, ...g }) => /* @__PURE__ */ c(Sn, { onClick: l, disabled: s, "data-variant": n, ...g, children: /* @__PURE__ */ c(Ln, { children: f }) }), Nn = /* @__PURE__ */ h("div")({
|
|
2089
2092
|
name: "Container",
|
|
2090
2093
|
class: "c18uddbs",
|
|
2091
2094
|
propsAsIs: !1
|
|
2092
|
-
}),
|
|
2095
|
+
}), Un = /* @__PURE__ */ h("div")({
|
|
2093
2096
|
name: "Content",
|
|
2094
2097
|
class: "cvcfjf6",
|
|
2095
2098
|
propsAsIs: !1
|
|
2096
|
-
}),
|
|
2099
|
+
}), zn = /* @__PURE__ */ h("div")({
|
|
2097
2100
|
name: "OnboardingHeader",
|
|
2098
2101
|
class: "o1ie27lw",
|
|
2099
2102
|
propsAsIs: !1
|
|
2100
|
-
}),
|
|
2103
|
+
}), On = /* @__PURE__ */ h("button")({
|
|
2101
2104
|
name: "CloseBtn",
|
|
2102
2105
|
class: "c15cjkwi",
|
|
2103
2106
|
propsAsIs: !1
|
|
2104
|
-
}),
|
|
2107
|
+
}), Dn = () => z, Pn = /* @__PURE__ */ h(Dn())({
|
|
2105
2108
|
name: "IconClose",
|
|
2106
2109
|
class: "i1mavjt2",
|
|
2107
2110
|
propsAsIs: !0
|
|
2108
|
-
}),
|
|
2111
|
+
}), Mn = /* @__PURE__ */ h("div")({
|
|
2109
2112
|
name: "OnboardingFooter",
|
|
2110
2113
|
class: "o1x0dyzv",
|
|
2111
2114
|
propsAsIs: !1
|
|
2112
|
-
}),
|
|
2115
|
+
}), qn = () => Rn, Gn = /* @__PURE__ */ h(qn())({
|
|
2113
2116
|
name: "OnboardingActionBtn",
|
|
2114
2117
|
class: "o1jfi9c3",
|
|
2115
2118
|
propsAsIs: !0
|
|
@@ -2117,13 +2120,13 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2117
2120
|
steps: !1,
|
|
2118
2121
|
rules: !1,
|
|
2119
2122
|
inviteCard: !1
|
|
2120
|
-
},
|
|
2123
|
+
}, Wn = ({
|
|
2121
2124
|
gamification: s,
|
|
2122
2125
|
steps: n,
|
|
2123
2126
|
rules: l,
|
|
2124
2127
|
rulesBtnLabel: f,
|
|
2125
|
-
rulesTitle:
|
|
2126
|
-
primaryColor:
|
|
2128
|
+
rulesTitle: g,
|
|
2129
|
+
primaryColor: m,
|
|
2127
2130
|
inviteLink: d,
|
|
2128
2131
|
socialLinks: o,
|
|
2129
2132
|
inviteCardTitle: w,
|
|
@@ -2140,77 +2143,77 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2140
2143
|
}, [y, n == null ? void 0 : n.length, l == null ? void 0 : l.length, b, A, _]), F = async () => {
|
|
2141
2144
|
await s.onboardingStatus.submitInplay();
|
|
2142
2145
|
};
|
|
2143
|
-
return /* @__PURE__ */ c(
|
|
2144
|
-
/* @__PURE__ */ c(
|
|
2145
|
-
/* @__PURE__ */ I(
|
|
2146
|
-
b.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ c(
|
|
2147
|
-
b.rules && /* @__PURE__ */ c(
|
|
2146
|
+
return /* @__PURE__ */ c(Xr, { children: ({ width: U, height: K }) => /* @__PURE__ */ I(Nn, { style: { width: U, height: K }, children: [
|
|
2147
|
+
/* @__PURE__ */ c(zn, { children: /* @__PURE__ */ c(On, { onClick: B, children: /* @__PURE__ */ c(Pn, { name: "icon-close-btn-gray" }) }) }),
|
|
2148
|
+
/* @__PURE__ */ I(Un, { children: [
|
|
2149
|
+
b.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ c(sn, { stepsCount: n.length, currentStep: y, ...n[y] }),
|
|
2150
|
+
b.rules && /* @__PURE__ */ c(kn, { rules: l, rulesTitle: g, primaryColor: m }),
|
|
2148
2151
|
b.inviteCard && /* @__PURE__ */ c(
|
|
2149
|
-
|
|
2152
|
+
vn,
|
|
2150
2153
|
{
|
|
2151
2154
|
inviteLink: d,
|
|
2152
2155
|
inviteCardTitle: w,
|
|
2153
2156
|
inviteCardSubtext: v,
|
|
2154
|
-
primaryColor:
|
|
2157
|
+
primaryColor: m,
|
|
2155
2158
|
socialLinks: o
|
|
2156
2159
|
}
|
|
2157
2160
|
)
|
|
2158
2161
|
] }),
|
|
2159
|
-
/* @__PURE__ */ c(
|
|
2162
|
+
/* @__PURE__ */ c(Mn, { children: /* @__PURE__ */ c(Gn, { onClick: b.inviteCard ? F : C, children: R }) })
|
|
2160
2163
|
] }) });
|
|
2161
|
-
},
|
|
2164
|
+
}, jn = /* @__PURE__ */ h("div")({
|
|
2162
2165
|
name: "Container",
|
|
2163
2166
|
class: "cocfo2g",
|
|
2164
2167
|
propsAsIs: !1
|
|
2165
|
-
}),
|
|
2168
|
+
}), Hn = /* @__PURE__ */ h("div")({
|
|
2166
2169
|
name: "CloseIconWrap",
|
|
2167
2170
|
class: "c1pdhxdk",
|
|
2168
2171
|
propsAsIs: !1
|
|
2169
|
-
}),
|
|
2172
|
+
}), Yn = () => z, Vn = /* @__PURE__ */ h(Yn())({
|
|
2170
2173
|
name: "CloseIcon",
|
|
2171
2174
|
class: "c1funj3r",
|
|
2172
2175
|
propsAsIs: !0
|
|
2173
|
-
}),
|
|
2176
|
+
}), Kn = /* @__PURE__ */ h("div")({
|
|
2174
2177
|
name: "Title",
|
|
2175
2178
|
class: "t1okg06y",
|
|
2176
2179
|
propsAsIs: !1
|
|
2177
|
-
}),
|
|
2180
|
+
}), Qn = /* @__PURE__ */ h("img")({
|
|
2178
2181
|
name: "SponsorLogo",
|
|
2179
2182
|
class: "sb1n923",
|
|
2180
2183
|
propsAsIs: !1
|
|
2181
|
-
}),
|
|
2184
|
+
}), Xn = /* @__PURE__ */ h("div")({
|
|
2182
2185
|
name: "PresentsTitle",
|
|
2183
2186
|
class: "p1stllxd",
|
|
2184
2187
|
propsAsIs: !1
|
|
2185
|
-
}),
|
|
2188
|
+
}), Jn = /* @__PURE__ */ h("div")({
|
|
2186
2189
|
name: "Subtitle",
|
|
2187
2190
|
class: "s13kvdzw",
|
|
2188
2191
|
propsAsIs: !1
|
|
2189
|
-
}),
|
|
2192
|
+
}), Zn = /* @__PURE__ */ h("div")({
|
|
2190
2193
|
name: "Description",
|
|
2191
2194
|
class: "dfvmv3t",
|
|
2192
2195
|
propsAsIs: !1
|
|
2193
|
-
}),
|
|
2196
|
+
}), es = /* @__PURE__ */ h("button")({
|
|
2194
2197
|
name: "ActionButton",
|
|
2195
2198
|
class: "ay8e3j9",
|
|
2196
2199
|
propsAsIs: !1
|
|
2197
2200
|
}), ft = ({ close: s, action: n, onboarding: l }) => {
|
|
2198
|
-
var f,
|
|
2199
|
-
return /* @__PURE__ */ I(
|
|
2200
|
-
/* @__PURE__ */ c(
|
|
2201
|
-
((
|
|
2202
|
-
/* @__PURE__ */ c(
|
|
2203
|
-
/* @__PURE__ */ c(
|
|
2201
|
+
var f, g, m, d, o, w, v, x;
|
|
2202
|
+
return /* @__PURE__ */ I(jn, { children: [
|
|
2203
|
+
/* @__PURE__ */ c(Hn, { onClick: s, children: /* @__PURE__ */ c(Vn, { name: "icon-cross" }) }),
|
|
2204
|
+
((g = (f = l == null ? void 0 : l.titleCard) == null ? void 0 : f.media) == null ? void 0 : g.sponsorLogo) && /* @__PURE__ */ I(Kn, { children: [
|
|
2205
|
+
/* @__PURE__ */ c(Qn, { alt: "sponsor-logo", src: (d = (m = l == null ? void 0 : l.titleCard) == null ? void 0 : m.media) == null ? void 0 : d.sponsorLogo }),
|
|
2206
|
+
/* @__PURE__ */ c(Xn, { children: "PRESENTS" })
|
|
2204
2207
|
] }),
|
|
2205
|
-
((o = l == null ? void 0 : l.titleCard) == null ? void 0 : o.title) && /* @__PURE__ */ c(
|
|
2206
|
-
((v = l == null ? void 0 : l.titleCard) == null ? void 0 : v.subtitle) && /* @__PURE__ */ c(
|
|
2207
|
-
/* @__PURE__ */ c(
|
|
2208
|
+
((o = l == null ? void 0 : l.titleCard) == null ? void 0 : o.title) && /* @__PURE__ */ c(Jn, { children: (w = l == null ? void 0 : l.titleCard) == null ? void 0 : w.title }),
|
|
2209
|
+
((v = l == null ? void 0 : l.titleCard) == null ? void 0 : v.subtitle) && /* @__PURE__ */ c(Zn, { children: (x = l == null ? void 0 : l.titleCard) == null ? void 0 : x.subtitle }),
|
|
2210
|
+
/* @__PURE__ */ c(es, { onClick: n, children: "Play Now" })
|
|
2208
2211
|
] });
|
|
2209
|
-
},
|
|
2212
|
+
}, ts = /* @__PURE__ */ h("div")({
|
|
2210
2213
|
name: "OnboardingContainer",
|
|
2211
2214
|
class: "o9squag",
|
|
2212
2215
|
propsAsIs: !1
|
|
2213
|
-
}),
|
|
2216
|
+
}), is = () => De, rs = /* @__PURE__ */ h(is())({
|
|
2214
2217
|
name: "OnboardingNotificationContainer",
|
|
2215
2218
|
class: "o1c8wcli",
|
|
2216
2219
|
propsAsIs: !0
|
|
@@ -2218,13 +2221,13 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2218
2221
|
name: "InnerContainer",
|
|
2219
2222
|
class: "i18oyadd",
|
|
2220
2223
|
propsAsIs: !1
|
|
2221
|
-
}),
|
|
2224
|
+
}), ns = "cebdc0u", ss = ({
|
|
2222
2225
|
deepLink: s,
|
|
2223
2226
|
onboardingOpts: n,
|
|
2224
2227
|
notification: l,
|
|
2225
2228
|
gamification: f
|
|
2226
2229
|
}) => {
|
|
2227
|
-
var
|
|
2230
|
+
var g, m, d, o, w, v;
|
|
2228
2231
|
const [x, B] = W(void 0);
|
|
2229
2232
|
return X(() => {
|
|
2230
2233
|
const y = s.$store.subscribe((A) => {
|
|
@@ -2233,9 +2236,9 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2233
2236
|
return () => {
|
|
2234
2237
|
y();
|
|
2235
2238
|
};
|
|
2236
|
-
}, [s.$store]), /* @__PURE__ */ c(
|
|
2237
|
-
className: wt(l.hiding &&
|
|
2238
|
-
children: /* @__PURE__ */ c(
|
|
2239
|
+
}, [s.$store]), /* @__PURE__ */ c(ts, {
|
|
2240
|
+
className: wt(l.hiding && ns),
|
|
2241
|
+
children: /* @__PURE__ */ c(Wn, {
|
|
2239
2242
|
rules: [{
|
|
2240
2243
|
label: "Answer as many questions as you like.",
|
|
2241
2244
|
icon: "icon-btn-feature-groups"
|
|
@@ -2246,8 +2249,8 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2246
2249
|
label: "Top the leader board and best your friends.",
|
|
2247
2250
|
icon: "icon-trophy"
|
|
2248
2251
|
}],
|
|
2249
|
-
rulesBtnLabel: (
|
|
2250
|
-
rulesTitle: (
|
|
2252
|
+
rulesBtnLabel: (g = n.rules) == null ? void 0 : g.buttonLabel,
|
|
2253
|
+
rulesTitle: (m = n.rules) == null ? void 0 : m.heading,
|
|
2251
2254
|
steps: [{
|
|
2252
2255
|
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
|
|
2253
2256
|
headline: "Welcome to the Featured Groups +",
|
|
@@ -2287,17 +2290,17 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2287
2290
|
gamification: f
|
|
2288
2291
|
})
|
|
2289
2292
|
});
|
|
2290
|
-
},
|
|
2293
|
+
}, os = ({
|
|
2291
2294
|
sdk: s,
|
|
2292
2295
|
notification: n,
|
|
2293
2296
|
saveHeight: l,
|
|
2294
2297
|
style: f
|
|
2295
2298
|
}) => {
|
|
2296
|
-
const
|
|
2299
|
+
const g = ye(null), [m, d] = W(!1), o = s.getFeature(ze.GAMES), w = n.data.onboarding;
|
|
2297
2300
|
return Jt(() => {
|
|
2298
2301
|
var v;
|
|
2299
|
-
l(((v =
|
|
2300
|
-
}, [l]),
|
|
2302
|
+
l(((v = g.current) == null ? void 0 : v.getBoundingClientRect().height) || 0);
|
|
2303
|
+
}, [l]), m && o && w ? /* @__PURE__ */ c(ss, {
|
|
2301
2304
|
notification: n,
|
|
2302
2305
|
setOpened: d,
|
|
2303
2306
|
gamification: o,
|
|
@@ -2306,7 +2309,7 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2306
2309
|
}) : /* @__PURE__ */ I(ie, {
|
|
2307
2310
|
children: [/* @__PURE__ */ c(mt, {
|
|
2308
2311
|
ref: (v) => {
|
|
2309
|
-
|
|
2312
|
+
g.current = v;
|
|
2310
2313
|
},
|
|
2311
2314
|
style: {
|
|
2312
2315
|
position: "absolute",
|
|
@@ -2319,7 +2322,7 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2319
2322
|
},
|
|
2320
2323
|
onboarding: w
|
|
2321
2324
|
})
|
|
2322
|
-
}), /* @__PURE__ */ c(
|
|
2325
|
+
}), /* @__PURE__ */ c(rs, {
|
|
2323
2326
|
style: f,
|
|
2324
2327
|
hiding: n.hiding,
|
|
2325
2328
|
children: /* @__PURE__ */ c(mt, {
|
|
@@ -2331,7 +2334,7 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2331
2334
|
})
|
|
2332
2335
|
})]
|
|
2333
2336
|
});
|
|
2334
|
-
},
|
|
2337
|
+
}, as = () => De, ls = /* @__PURE__ */ h(as())({
|
|
2335
2338
|
name: "Container",
|
|
2336
2339
|
class: "ctckejh",
|
|
2337
2340
|
propsAsIs: !0
|
|
@@ -2339,8 +2342,8 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2339
2342
|
name: "InnerContainer",
|
|
2340
2343
|
class: "i1ri7tzr",
|
|
2341
2344
|
propsAsIs: !1
|
|
2342
|
-
}),
|
|
2343
|
-
const [n, l] = W(0), f = ye(null),
|
|
2345
|
+
}), cs = (s) => {
|
|
2346
|
+
const [n, l] = W(0), f = ye(null), g = ve((d) => {
|
|
2344
2347
|
f.current = d;
|
|
2345
2348
|
}, []);
|
|
2346
2349
|
X(() => {
|
|
@@ -2348,45 +2351,45 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2348
2351
|
const o = (d = f.current) == null ? void 0 : d.getBoundingClientRect();
|
|
2349
2352
|
o && l(o.height);
|
|
2350
2353
|
}, [s]);
|
|
2351
|
-
const
|
|
2354
|
+
const m = ve((d) => {
|
|
2352
2355
|
l(d);
|
|
2353
2356
|
}, []);
|
|
2354
|
-
return [
|
|
2355
|
-
},
|
|
2357
|
+
return [g, n, m];
|
|
2358
|
+
}, us = ({ sdk: s, notification: n }) => {
|
|
2356
2359
|
var l, f;
|
|
2357
|
-
const [
|
|
2360
|
+
const [g, m, d] = cs(n.id);
|
|
2358
2361
|
return n.type === Ae.QUESTION ? /* @__PURE__ */ I(ie, { children: [
|
|
2359
|
-
/* @__PURE__ */ c(gt, { ref:
|
|
2360
|
-
/* @__PURE__ */ c(
|
|
2362
|
+
/* @__PURE__ */ c(gt, { ref: g, style: { position: "absolute", visibility: "hidden" }, children: /* @__PURE__ */ c(et, { ...n }) }),
|
|
2363
|
+
/* @__PURE__ */ c(ls, { style: { height: n.hiding ? 0 : m }, hiding: n.hiding, children: /* @__PURE__ */ c(gt, { style: { height: "100%" }, children: /* @__PURE__ */ c(et, { ...n }) }) })
|
|
2361
2364
|
] }) : n.type === Ae.QUESTION_RESOLVED && (f = (l = n.data) == null ? void 0 : l.question) != null && f.predictionResult ? /* @__PURE__ */ c(
|
|
2362
|
-
|
|
2365
|
+
Or,
|
|
2363
2366
|
{
|
|
2364
|
-
style: { height: n.hiding ? 0 :
|
|
2367
|
+
style: { height: n.hiding ? 0 : m },
|
|
2365
2368
|
saveHeight: d,
|
|
2366
2369
|
close: n.close,
|
|
2367
2370
|
hiding: n.hiding,
|
|
2368
2371
|
...n.data.question
|
|
2369
2372
|
}
|
|
2370
2373
|
) : n.type === Ae.ONBOARDING ? /* @__PURE__ */ c(
|
|
2371
|
-
|
|
2374
|
+
os,
|
|
2372
2375
|
{
|
|
2373
|
-
style: { height: n.hiding ? 0 :
|
|
2376
|
+
style: { height: n.hiding ? 0 : m },
|
|
2374
2377
|
saveHeight: d,
|
|
2375
2378
|
sdk: s,
|
|
2376
2379
|
notification: n
|
|
2377
2380
|
}
|
|
2378
2381
|
) : null;
|
|
2379
|
-
},
|
|
2382
|
+
}, hs = ({ sdk: s }) => {
|
|
2380
2383
|
const [n] = W(s.getNotificationsStore()), l = re(n), f = Ue(() => {
|
|
2381
2384
|
if (!(l != null && l.size))
|
|
2382
2385
|
return null;
|
|
2383
|
-
for (const
|
|
2384
|
-
if (
|
|
2385
|
-
return
|
|
2386
|
+
for (const g of l.values())
|
|
2387
|
+
if (g.type === Ae.ONBOARDING)
|
|
2388
|
+
return g;
|
|
2386
2389
|
return l.values().next().value;
|
|
2387
2390
|
}, [l]);
|
|
2388
|
-
return f ? /* @__PURE__ */ c(
|
|
2389
|
-
},
|
|
2391
|
+
return f ? /* @__PURE__ */ c(us, { sdk: s, notification: f }) : null;
|
|
2392
|
+
}, ds = /* @__PURE__ */ h("div")({
|
|
2390
2393
|
name: "SDKContainer",
|
|
2391
2394
|
class: "stu11h7",
|
|
2392
2395
|
propsAsIs: !1
|
|
@@ -2394,16 +2397,16 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2394
2397
|
name: "SDKScrollContainer",
|
|
2395
2398
|
class: "s1ucohr1",
|
|
2396
2399
|
propsAsIs: !1
|
|
2397
|
-
}),
|
|
2400
|
+
}), ps = /* @__PURE__ */ h("div")({
|
|
2398
2401
|
name: "SDKContentContainer",
|
|
2399
2402
|
class: "s1el4wvm",
|
|
2400
2403
|
propsAsIs: !1
|
|
2401
|
-
}),
|
|
2404
|
+
}), fs = () => ps, Ts = /* @__PURE__ */ h(fs())({
|
|
2402
2405
|
name: "SDKWhiteContainer",
|
|
2403
2406
|
class: "s1oe3036",
|
|
2404
2407
|
propsAsIs: !0
|
|
2405
|
-
}),
|
|
2406
|
-
const n = ye(""), [l, f] = W(!1),
|
|
2408
|
+
}), ms = (s) => {
|
|
2409
|
+
const n = ye(""), [l, f] = W(!1), g = re(s.status), m = re(s.userId()), d = g === "ready", [o, w] = W(ee), v = ve(
|
|
2407
2410
|
(y, A) => {
|
|
2408
2411
|
w(A), A === ee ? (y && s.createEventSession(y), window.requestAnimationFrame(() => {
|
|
2409
2412
|
s.openFeature(ze.GAMES);
|
|
@@ -2435,62 +2438,62 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2435
2438
|
f(!1), s.disableApp();
|
|
2436
2439
|
};
|
|
2437
2440
|
return X(() => {
|
|
2438
|
-
if (!
|
|
2441
|
+
if (!m) {
|
|
2439
2442
|
d && (w(de), s.disableApp());
|
|
2440
2443
|
return;
|
|
2441
2444
|
}
|
|
2442
|
-
|
|
2445
|
+
m && n.current && l && s.initializeApp().then(() => {
|
|
2443
2446
|
s.createEventSession(n.current);
|
|
2444
2447
|
});
|
|
2445
|
-
}, [
|
|
2448
|
+
}, [m]), {
|
|
2446
2449
|
sdkEnabled: l,
|
|
2447
2450
|
sdkReady: d,
|
|
2448
2451
|
activeOverlay: o,
|
|
2449
2452
|
activateAndLoadOverlay: v,
|
|
2450
2453
|
activateEventWithId: x,
|
|
2451
2454
|
deactivate: B,
|
|
2452
|
-
isLogged: !!
|
|
2455
|
+
isLogged: !!m
|
|
2453
2456
|
};
|
|
2454
|
-
},
|
|
2455
|
-
const n = re(s.getActiveFeature()), l = re(s.streamStore()), [f,
|
|
2457
|
+
}, gs = (s) => {
|
|
2458
|
+
const n = re(s.getActiveFeature()), l = re(s.streamStore()), [f, g] = W(null);
|
|
2456
2459
|
return X(() => {
|
|
2457
|
-
const
|
|
2460
|
+
const m = s.getFeatures();
|
|
2458
2461
|
if (n)
|
|
2459
|
-
for (const [d, o] of
|
|
2460
|
-
d === n ? o.status.get() === me.Suspended && (o.enable(),
|
|
2462
|
+
for (const [d, o] of m)
|
|
2463
|
+
d === n ? o.status.get() === me.Suspended && (o.enable(), g(o)) : o.status.get() === me.Ready && o.disable();
|
|
2461
2464
|
else {
|
|
2462
|
-
for (const [, d] of
|
|
2465
|
+
for (const [, d] of m)
|
|
2463
2466
|
d.status.get() === me.Ready && d.disable();
|
|
2464
|
-
|
|
2467
|
+
g(null);
|
|
2465
2468
|
}
|
|
2466
2469
|
return () => {
|
|
2467
|
-
for (const [, d] of
|
|
2470
|
+
for (const [, d] of m)
|
|
2468
2471
|
d.status.get() === me.Ready && d.disable();
|
|
2469
2472
|
};
|
|
2470
2473
|
}, [n, s, l]), [n, f];
|
|
2471
|
-
},
|
|
2472
|
-
const [, l] =
|
|
2474
|
+
}, ys = ({ sdk: s, className: n }) => {
|
|
2475
|
+
const [, l] = gs(s);
|
|
2473
2476
|
return /* @__PURE__ */ c(ii, { className: n, feature: l, sdk: s });
|
|
2474
|
-
},
|
|
2475
|
-
const { sdkEnabled: f, sdkReady:
|
|
2477
|
+
}, ws = ({ sdk: s, overlays: n, children: l }) => {
|
|
2478
|
+
const { sdkEnabled: f, sdkReady: g, activeOverlay: m, activateAndLoadOverlay: d, activateEventWithId: o, deactivate: w, isLogged: v } = ms(s);
|
|
2476
2479
|
return X(() => {
|
|
2477
2480
|
import("./gamification-feature.js");
|
|
2478
|
-
}, []), /* @__PURE__ */ I(
|
|
2481
|
+
}, []), /* @__PURE__ */ I(ds, { children: [
|
|
2479
2482
|
f && /* @__PURE__ */ c(
|
|
2480
2483
|
Ii,
|
|
2481
2484
|
{
|
|
2482
|
-
sdkReady:
|
|
2483
|
-
activeOverlay:
|
|
2485
|
+
sdkReady: g,
|
|
2486
|
+
activeOverlay: m,
|
|
2484
2487
|
className: Ze,
|
|
2485
2488
|
setActiveOverlay: (x) => d("", x)
|
|
2486
2489
|
}
|
|
2487
2490
|
),
|
|
2488
|
-
|
|
2491
|
+
g && /* @__PURE__ */ c(hs, { sdk: s }),
|
|
2489
2492
|
/* @__PURE__ */ c(
|
|
2490
2493
|
yt,
|
|
2491
2494
|
{
|
|
2492
2495
|
"data-nav": f.toString(),
|
|
2493
|
-
style: { display: !f ||
|
|
2496
|
+
style: { display: !f || m === de ? "block" : "none" },
|
|
2494
2497
|
children: l && l({ activateEventWithId: o, deactivate: w })
|
|
2495
2498
|
}
|
|
2496
2499
|
),
|
|
@@ -2498,34 +2501,36 @@ const Qr = /* @__PURE__ */ h("div")({
|
|
|
2498
2501
|
yt,
|
|
2499
2502
|
{
|
|
2500
2503
|
"data-nav": f.toString(),
|
|
2501
|
-
style: { display:
|
|
2502
|
-
children: n &&
|
|
2504
|
+
style: { display: m === be ? "block" : "none" },
|
|
2505
|
+
children: n && m === be && n[m]
|
|
2503
2506
|
}
|
|
2504
2507
|
),
|
|
2505
|
-
|
|
2508
|
+
g && m === ee && /* @__PURE__ */ c(ys, { className: Ze, sdk: s }),
|
|
2506
2509
|
!v && /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
|
|
2507
2510
|
] });
|
|
2508
2511
|
};
|
|
2509
|
-
const
|
|
2512
|
+
const Fs = ({
|
|
2510
2513
|
sdkKey: s,
|
|
2511
2514
|
plugins: n,
|
|
2512
2515
|
children: l,
|
|
2513
2516
|
production: f = !0
|
|
2514
|
-
}) => /* @__PURE__ */ c(Wt, { sdkKey: s, plugins: n, production: f, autoEnable: !1, children: l }),
|
|
2517
|
+
}) => /* @__PURE__ */ c(Wt, { sdkKey: s, plugins: n, production: f, autoEnable: !1, children: l }), $s = ({ children: s, overlays: n }) => {
|
|
2515
2518
|
const { sdk: l, status: f } = Zt(jt);
|
|
2516
2519
|
if (f === Ht.UNSET)
|
|
2517
2520
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
2518
|
-
return l ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ c(Yt, { style: { height: "100%" }, children: /* @__PURE__ */ c(
|
|
2521
|
+
return l ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ c(Yt, { style: { height: "100%" }, children: /* @__PURE__ */ c(ws, { sdk: l, overlays: n, children: s }) }) }) : s({});
|
|
2519
2522
|
};
|
|
2520
2523
|
export {
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2524
|
+
Xr as A,
|
|
2525
|
+
Fs as M,
|
|
2526
|
+
vn as O,
|
|
2527
|
+
Ts as a,
|
|
2528
|
+
$s as b,
|
|
2529
|
+
Rn as c,
|
|
2526
2530
|
De as f,
|
|
2527
|
-
|
|
2531
|
+
ps as n,
|
|
2528
2532
|
Ai as o,
|
|
2529
2533
|
yt as r,
|
|
2534
|
+
tr as u,
|
|
2530
2535
|
Bi as w
|
|
2531
2536
|
};
|