@streamlayer/react 0.31.2 → 0.31.4

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.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as I, jsx as r, Fragment as $ } from "react/jsx-runtime";
2
- import { s as a, i as j, o as Se, Q as x, a as _, b as Q, m as Ye, E, r as ie, w as We, u as w, A as Fe, O as Ve, P as W, c as ee, n as Be, d as He } from "./masters.js";
3
- import U, { useRef as C, useState as L, useCallback as P, useEffect as Ge, useLayoutEffect as Ze, useMemo as B, createElement as Z, PureComponent as ze } from "react";
2
+ import { s as a, n as j, Q as x, o as Se, a as P, b as Q, m as Ye, E, r as ie, w as We, u as w, A as Ve, O as Fe, P as W, c as ee, d as Be, e as He } from "./masters.js";
3
+ import U, { useRef as C, useState as L, useCallback as _, useEffect as Ge, useLayoutEffect as Ze, useMemo as B, createElement as Z, PureComponent as ze } from "react";
4
4
  const Je = /* @__PURE__ */ a("div")({
5
5
  name: "Container",
6
6
  class: "c1vwopgc",
@@ -29,7 +29,14 @@ const Je = /* @__PURE__ */ a("div")({
29
29
  const i = e ? Se[e] : { label: n, iconName: void 0 };
30
30
  return /* @__PURE__ */ I(Je, { children: [
31
31
  /* @__PURE__ */ I(Ke, { children: [
32
- (i == null ? void 0 : i.iconName) && /* @__PURE__ */ r(et, { name: i.iconName }),
32
+ (i == null ? void 0 : i.iconName) && /* @__PURE__ */ r(
33
+ et,
34
+ {
35
+ "data-type-trivia": e === x.TRIVIA,
36
+ "data-type-poll": e === x.POLL,
37
+ name: i.iconName
38
+ }
39
+ ),
33
40
  (i == null ? void 0 : i.label) && /* @__PURE__ */ r(tt, { children: i.label })
34
41
  ] }),
35
42
  /* @__PURE__ */ r(nt, { onClick: t, children: /* @__PURE__ */ r(st, { name: "icon-cross" }) })
@@ -68,7 +75,7 @@ const Je = /* @__PURE__ */ a("div")({
68
75
  name: "Title",
69
76
  class: "t8s05oq",
70
77
  propsAsIs: !1
71
- }), F = ({ indicator: e, title: t }) => /* @__PURE__ */ I(ut, { children: [
78
+ }), V = ({ indicator: e, title: t }) => /* @__PURE__ */ I(ut, { children: [
72
79
  /* @__PURE__ */ r(pt, { children: e }),
73
80
  /* @__PURE__ */ r(mt, { children: t })
74
81
  ] }), ht = /* @__PURE__ */ a("div")({
@@ -181,10 +188,10 @@ const Je = /* @__PURE__ */ a("div")({
181
188
  /* @__PURE__ */ r(le, { indicator: s || 0, title: "Global rank" })
182
189
  ] }),
183
190
  /* @__PURE__ */ I(jt, { children: [
184
- /* @__PURE__ */ r(F, { indicator: c || 0, title: "Win streak" }),
185
- /* @__PURE__ */ r(F, { indicator: l || 0, title: "Correct" }),
186
- /* @__PURE__ */ r(F, { indicator: m || 0, title: "Incorrect" }),
187
- /* @__PURE__ */ r(F, { indicator: `${f || 0}%`, title: "Succ. rate" })
191
+ /* @__PURE__ */ r(V, { indicator: c || 0, title: "Win streak" }),
192
+ /* @__PURE__ */ r(V, { indicator: l || 0, title: "Correct" }),
193
+ /* @__PURE__ */ r(V, { indicator: m || 0, title: "Incorrect" }),
194
+ /* @__PURE__ */ r(V, { indicator: `${f || 0}%`, title: "Succ. rate" })
188
195
  ] })
189
196
  ] })
190
197
  ] }), Ct = /* @__PURE__ */ a("div")({
@@ -227,11 +234,11 @@ const Je = /* @__PURE__ */ a("div")({
227
234
  name: "FeedbackDescription",
228
235
  class: "fzfk69z",
229
236
  propsAsIs: !1
230
- }), _t = /* @__PURE__ */ a("div")({
237
+ }), Pt = /* @__PURE__ */ a("div")({
231
238
  name: "FeedbackText",
232
239
  class: "fx87qaj",
233
240
  propsAsIs: !1
234
- }), Pt = ({
241
+ }), _t = ({
235
242
  feedbackMessages: e,
236
243
  questionVotedCorrectly: t,
237
244
  questionVoted: n,
@@ -240,15 +247,15 @@ const Je = /* @__PURE__ */ a("div")({
240
247
  questionStatus: c
241
248
  }) => {
242
249
  const l = n && (i === x.TRIVIA || i === x.PREDICTION);
243
- if (!l && c !== _.RESOLVED)
250
+ if (!l && c !== P.RESOLVED)
244
251
  return null;
245
252
  const m = i === x.PREDICTION && !s, u = t ? "correct" : "incorrect", f = t ? e.correctFeedback : e.incorrectFeedback;
246
253
  return /* @__PURE__ */ I(Lt, { "data-isPrediction": m, children: [
247
- c === _.RESOLVED && i === x.TRIVIA && !n && /* @__PURE__ */ I($, { children: [
254
+ c === P.RESOLVED && i === x.TRIVIA && !n && /* @__PURE__ */ I($, { children: [
248
255
  /* @__PURE__ */ r(ce, { children: /* @__PURE__ */ r(j, { name: "questionExpired" }) }),
249
256
  /* @__PURE__ */ I("div", { children: [
250
257
  /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(J, { children: "Question Expired" }) }),
251
- /* @__PURE__ */ r(_t, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
258
+ /* @__PURE__ */ r(Pt, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
252
259
  ] })
253
260
  ] }),
254
261
  l && m && /* @__PURE__ */ I($, { children: [
@@ -275,11 +282,11 @@ const Je = /* @__PURE__ */ a("div")({
275
282
  name: "Title",
276
283
  class: "t1hq58md",
277
284
  propsAsIs: !1
278
- }), Ft = /* @__PURE__ */ a("div")({
285
+ }), Vt = /* @__PURE__ */ a("div")({
279
286
  name: "Options",
280
287
  class: "o1c8nxcx",
281
288
  propsAsIs: !1
282
- }), Vt = /* @__PURE__ */ a("button")({
289
+ }), Ft = /* @__PURE__ */ a("button")({
283
290
  name: "ButtonContainer",
284
291
  class: "b1b6dl8t",
285
292
  propsAsIs: !1
@@ -349,7 +356,7 @@ const Je = /* @__PURE__ */ a("div")({
349
356
  correct: n,
350
357
  hasCorrectAnswer: i,
351
358
  questionStatus: s
352
- }) => e === x.TRIVIA ? t && n : e === x.PREDICTION ? t && n && i || s === _.RESOLVED && n : !1, cn = (e) => {
359
+ }) => e === x.TRIVIA ? t && n : e === x.PREDICTION ? t && n && i || s === P.RESOLVED && n : !1, cn = (e) => {
353
360
  var t;
354
361
  const {
355
362
  // option props
@@ -369,9 +376,9 @@ const Je = /* @__PURE__ */ a("div")({
369
376
  questionType: A,
370
377
  correct: D,
371
378
  hasCorrectAnswer: o
372
- } = e, d = an(e), p = ln({ questionType: A, questionVoted: u, correct: D, hasCorrectAnswer: o, questionStatus: v }), h = u || v === _.RESOLVED && A === x.PREDICTION;
379
+ } = e, d = an(e), p = ln({ questionType: A, questionVoted: u, correct: D, hasCorrectAnswer: o, questionStatus: v }), h = u || v === P.RESOLVED && A === x.PREDICTION;
373
380
  return /* @__PURE__ */ I(
374
- Vt,
381
+ Ft,
375
382
  {
376
383
  value: n,
377
384
  "data-selected": m,
@@ -405,7 +412,7 @@ var pe = typeof window > "u" ? Ge : Ze, dn = ({ isPlaying: e, duration: t, start
405
412
  m(z ? t : y), z || (v.current = requestAnimationFrame(D));
406
413
  }, o = () => {
407
414
  v.current && cancelAnimationFrame(v.current), A.current && clearTimeout(A.current), g.current = null;
408
- }, d = P((p) => {
415
+ }, d = _((p) => {
409
416
  o(), u.current = 0;
410
417
  let h = typeof p == "number" ? p : n;
411
418
  f.current = h, m(h), e && (v.current = requestAnimationFrame(D));
@@ -469,9 +476,9 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
469
476
  remainingTime: u
470
477
  }) => /* @__PURE__ */ r(Mn, {
471
478
  children: u
472
- }), l = P(() => {
479
+ }), l = _(() => {
473
480
  n == null || n(), s(yn);
474
- }, [n, s]), m = P((u) => {
481
+ }, [n, s]), m = _((u) => {
475
482
  u === 10 && s(Ie);
476
483
  }, [s]);
477
484
  return /* @__PURE__ */ r(be, {
@@ -537,7 +544,7 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
537
544
  i && /* @__PURE__ */ r(Nn, { isPlaying: n, onTimerExpired: l, duration: c })
538
545
  ] }), wn = ({ openedQuestion: e, vote: t, close: n }) => {
539
546
  var i;
540
- const s = e.subject, c = e.type, l = (i = e.options) == null ? void 0 : i.options, [m, u] = L(!1), [f, T] = L(!1), [v, g] = L(""), A = e == null ? void 0 : e.id, D = P(
547
+ const s = e.subject, c = e.type, l = (i = e.options) == null ? void 0 : i.options, [m, u] = L(!1), [f, T] = L(!1), [v, g] = L(""), A = e == null ? void 0 : e.id, D = _(
541
548
  async (N) => {
542
549
  if (A) {
543
550
  const y = N.currentTarget.value;
@@ -545,7 +552,7 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
545
552
  }
546
553
  },
547
554
  [A, g, t]
548
- ), o = P(() => {
555
+ ), o = _(() => {
549
556
  u(!0), setTimeout(n, 3e3);
550
557
  }, [n]), d = B(
551
558
  () => e == null ? void 0 : e.answers.find((N) => N.youVoted === !0),
@@ -571,7 +578,7 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
571
578
  }) : [], [p, m, f, e, d, D, v]), M = l && (l.case === "trivia" || l.case === "prediction") ? l.value : void 0;
572
579
  return /* @__PURE__ */ r(ie, { "data-question-header": "true", children: /* @__PURE__ */ r(qt, { children: /* @__PURE__ */ I(Yt, { children: [
573
580
  M && /* @__PURE__ */ r(
574
- Pt,
581
+ _t,
575
582
  {
576
583
  feedbackMessages: M,
577
584
  questionVoted: !!d,
@@ -601,7 +608,7 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
601
608
  }
602
609
  ) : /* @__PURE__ */ I($, { children: [
603
610
  /* @__PURE__ */ r(Wt, { "data-isPrediction": e.type === x.PREDICTION, children: s }),
604
- /* @__PURE__ */ r(Ft, { children: h.map((N) => /* @__PURE__ */ r(cn, { ...N }, N.id)) })
611
+ /* @__PURE__ */ r(Vt, { children: h.map((N) => /* @__PURE__ */ r(cn, { ...N }, N.id)) })
605
612
  ] })
606
613
  ] }) }) });
607
614
  }, Cn = /* @__PURE__ */ a("div")({
@@ -661,13 +668,13 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
661
668
  name: "WebLinkBtn",
662
669
  class: "w19zie3h",
663
670
  propsAsIs: !1
664
- }), _n = ({ instantView: e, ...t }) => /* @__PURE__ */ I(Qn, { children: [
671
+ }), Pn = ({ instantView: e, ...t }) => /* @__PURE__ */ I(Qn, { children: [
665
672
  /* @__PURE__ */ r($e, { instantView: e, ...t }),
666
673
  (e == null ? void 0 : e.webLink) && /* @__PURE__ */ I(Un, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
667
674
  "Explore more of the Masters History",
668
675
  /* @__PURE__ */ r(j, { name: "icon-external-link" })
669
676
  ] })
670
- ] }), Pn = /* @__PURE__ */ a("div")({
677
+ ] }), _n = /* @__PURE__ */ a("div")({
671
678
  name: "QuestionContainer",
672
679
  class: "qdri6g3",
673
680
  propsAsIs: !1
@@ -675,7 +682,7 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
675
682
  openedQuestion: e
676
683
  }) => {
677
684
  var t;
678
- return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ r(_n, {
685
+ return ((t = e == null ? void 0 : e.attributes) == null ? void 0 : t.attributes.case) === "insight" ? /* @__PURE__ */ r(Pn, {
679
686
  created: e.attributes.created,
680
687
  ...e.attributes.attributes.value
681
688
  }) : null;
@@ -701,7 +708,7 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
701
708
  if (!n)
702
709
  return null;
703
710
  const s = n.type;
704
- return /* @__PURE__ */ I(Pn, {
711
+ return /* @__PURE__ */ I(_n, {
705
712
  children: [/* @__PURE__ */ r(xe, {
706
713
  close: e.closeQuestion,
707
714
  type: ((t = n.attributes) == null ? void 0 : t.type) || x.UNSET
@@ -713,11 +720,11 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
713
720
  openedQuestion: n
714
721
  })]
715
722
  });
716
- }, Fn = /* @__PURE__ */ a("div")({
723
+ }, Vn = /* @__PURE__ */ a("div")({
717
724
  name: "Container",
718
725
  class: "c115qtkr",
719
726
  propsAsIs: !1
720
- }), Vn = /* @__PURE__ */ a("div")({
727
+ }), Fn = /* @__PURE__ */ a("div")({
721
728
  name: "STabs",
722
729
  class: "sxnslc8",
723
730
  propsAsIs: !1
@@ -731,7 +738,7 @@ const fn = [E.PRIMARY_GREEN1, E.SECONDARY_RED1, E.SECONDARY_RED1], gn = [10, 10,
731
738
  propsAsIs: !1
732
739
  });
733
740
  var H = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(H || {});
734
- const fe = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ r(Bn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ r(Hn, { children: e }) }), Gn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ r(Fn, { children: /* @__PURE__ */ I(Vn, { "data-position": e === "home" ? "left" : "right", children: [
741
+ const fe = ({ title: e, active: t, onClick: n }) => /* @__PURE__ */ r(Bn, { onClick: n, "data-selected": t, children: /* @__PURE__ */ r(Hn, { children: e }) }), Gn = ({ activePage: e = "home", toggleActivePage: t }) => /* @__PURE__ */ r(Vn, { children: /* @__PURE__ */ I(Fn, { "data-position": e === "home" ? "left" : "right", children: [
735
742
  /* @__PURE__ */ r(fe, { title: "Home", active: e === "home", onClick: () => t(
736
743
  "home"
737
744
  /* HOME */
@@ -981,9 +988,9 @@ function ii(e) {
981
988
  }, A.componentWillUnmount = function() {
982
989
  this._resetIsScrollingTimeoutId !== null && ye(this._resetIsScrollingTimeoutId);
983
990
  }, A.render = function() {
984
- var o = this.props, d = o.children, p = o.className, h = o.direction, M = o.height, N = o.innerRef, y = o.innerElementType, S = o.innerTagName, z = o.itemCount, O = o.itemData, k = o.itemKey, q = k === void 0 ? ni : k, Y = o.layout, Ee = o.outerElementType, Le = o.outerTagName, Re = o.style, Qe = o.useIsScrolling, Ue = o.width, se = this.state.isScrolling, G = h === "horizontal" || Y === "horizontal", _e = G ? this._onScrollHorizontal : this._onScrollVertical, re = this._getRangeToRender(), Pe = re[0], qe = re[1], oe = [];
991
+ var o = this.props, d = o.children, p = o.className, h = o.direction, M = o.height, N = o.innerRef, y = o.innerElementType, S = o.innerTagName, z = o.itemCount, O = o.itemData, k = o.itemKey, q = k === void 0 ? ni : k, Y = o.layout, Ee = o.outerElementType, Le = o.outerTagName, Re = o.style, Qe = o.useIsScrolling, Ue = o.width, se = this.state.isScrolling, G = h === "horizontal" || Y === "horizontal", Pe = G ? this._onScrollHorizontal : this._onScrollVertical, re = this._getRangeToRender(), _e = re[0], qe = re[1], oe = [];
985
992
  if (z > 0)
986
- for (var R = Pe; R <= qe; R++)
993
+ for (var R = _e; R <= qe; R++)
987
994
  oe.push(Z(d, {
988
995
  data: O,
989
996
  key: q(R, O),
@@ -994,7 +1001,7 @@ function ii(e) {
994
1001
  var ae = i(this.props, this._instanceProps);
995
1002
  return Z(Ee || Le || "div", {
996
1003
  className: p,
997
- onScroll: _e,
1004
+ onScroll: Pe,
998
1005
  ref: this._outerRefSetter,
999
1006
  style: te({
1000
1007
  position: "relative",
@@ -1271,7 +1278,7 @@ const pi = /* @__PURE__ */ a("div")({
1271
1278
  currentUserId: t,
1272
1279
  openItemDetail: n,
1273
1280
  fetchMore: i
1274
- }) => /* @__PURE__ */ r(Fe, { children: ({ width: s, height: c }) => /* @__PURE__ */ r(
1281
+ }) => /* @__PURE__ */ r(Ve, { children: ({ width: s, height: c }) => /* @__PURE__ */ r(
1275
1282
  ui,
1276
1283
  {
1277
1284
  isItemLoaded: (l) => l < e.length,
@@ -1302,7 +1309,7 @@ const pi = /* @__PURE__ */ a("div")({
1302
1309
  ) }), Di = ({ deepLink: e }) => {
1303
1310
  const { data: t } = w(e.$store);
1304
1311
  return /* @__PURE__ */ r(
1305
- Ve,
1312
+ Fe,
1306
1313
  {
1307
1314
  inviteLink: t == null ? void 0 : t.url,
1308
1315
  socialLinks: [
@@ -1348,7 +1355,7 @@ const pi = /* @__PURE__ */ a("div")({
1348
1355
  name: "QuestionAction",
1349
1356
  class: "q105uluy",
1350
1357
  propsAsIs: !1
1351
- }), ki = () => j, V = /* @__PURE__ */ a(ki())({
1358
+ }), ki = () => j, F = /* @__PURE__ */ a(ki())({
1352
1359
  name: "QuestionActionIcon",
1353
1360
  class: "q1fa0b9h",
1354
1361
  propsAsIs: !0
@@ -1369,10 +1376,10 @@ const pi = /* @__PURE__ */ a("div")({
1369
1376
  class: "p1pba9p1",
1370
1377
  propsAsIs: !1
1371
1378
  }), Li = {
1372
- [W.LOST]: /* @__PURE__ */ r(V, { name: "icon-cross" }),
1373
- [W.WON]: /* @__PURE__ */ r(V, { name: "icon-check" }),
1374
- [W.UNSET]: /* @__PURE__ */ r(V, { name: "icon-arrow" }),
1375
- [W.DNP]: /* @__PURE__ */ r(V, { name: "icon-arrow" })
1379
+ [W.LOST]: /* @__PURE__ */ r(F, { name: "incorrectVoted" }),
1380
+ [W.WON]: /* @__PURE__ */ r(F, { name: "icon-check" }),
1381
+ [W.UNSET]: /* @__PURE__ */ r(F, { name: "icon-arrow" }),
1382
+ [W.DNP]: /* @__PURE__ */ r(F, { name: "icon-arrow" })
1376
1383
  }, Ri = ({
1377
1384
  questionId: e,
1378
1385
  questionType: t,
@@ -1386,10 +1393,17 @@ const pi = /* @__PURE__ */ a("div")({
1386
1393
  return m ? /* @__PURE__ */ I(zi, { onClick: () => c == null ? void 0 : c(e), children: [
1387
1394
  /* @__PURE__ */ I($i, { children: [
1388
1395
  /* @__PURE__ */ I(xi, { children: [
1389
- /* @__PURE__ */ r(Ci, { name: m.iconName }),
1396
+ /* @__PURE__ */ r(
1397
+ Ci,
1398
+ {
1399
+ "data-type-trivia": t === x.TRIVIA,
1400
+ "data-type-poll": t === x.POLL,
1401
+ name: m.iconName
1402
+ }
1403
+ ),
1390
1404
  /* @__PURE__ */ I(bi, { children: [
1391
1405
  m.label,
1392
- t === x.TRIVIA && n === _.RESOLVED && " • Expired"
1406
+ t === x.TRIVIA && n === P.RESOLVED && " • Expired"
1393
1407
  ] })
1394
1408
  ] }),
1395
1409
  /* @__PURE__ */ r(ji, { children: i || "" })
@@ -1404,18 +1418,18 @@ const pi = /* @__PURE__ */ a("div")({
1404
1418
  name: "ActionBtn",
1405
1419
  class: "a10g1iik",
1406
1420
  propsAsIs: !1
1407
- }), _i = ({
1421
+ }), Pi = ({
1408
1422
  openInsight: e,
1409
1423
  questionId: t,
1410
1424
  ...n
1411
1425
  }) => /* @__PURE__ */ I(Qi, { children: [
1412
1426
  /* @__PURE__ */ r($e, { questionId: t, ...n }),
1413
1427
  e && /* @__PURE__ */ r(Ui, { onClick: () => e(t), children: "View Insight" })
1414
- ] }), Pi = /* @__PURE__ */ a("div")({
1428
+ ] }), _i = /* @__PURE__ */ a("div")({
1415
1429
  name: "QuestionsContainer",
1416
1430
  class: "qvghv3l",
1417
1431
  propsAsIs: !1
1418
- }), qi = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ r(Pi, { children: e == null ? void 0 : e.map((n) => {
1432
+ }), qi = ({ questions: e, openQuestion: t }) => /* @__PURE__ */ r(_i, { children: e == null ? void 0 : e.map((n) => {
1419
1433
  var i, s;
1420
1434
  if (n.type === "question" && ((i = n.attributes) == null ? void 0 : i.attributes.case) === "question") {
1421
1435
  const c = n.attributes.attributes.value;
@@ -1423,7 +1437,7 @@ const pi = /* @__PURE__ */ a("div")({
1423
1437
  }
1424
1438
  if (n.type === "insight" && ((s = n.attributes) == null ? void 0 : s.attributes.case) === "insight") {
1425
1439
  const c = n.attributes.attributes.value;
1426
- return /* @__PURE__ */ r(_i, { openInsight: t, ...c }, c.questionId);
1440
+ return /* @__PURE__ */ r(Pi, { openInsight: t, ...c }, c.questionId);
1427
1441
  }
1428
1442
  return null;
1429
1443
  }) }), Yi = ({ store: e, openQuestion: t }) => {
@@ -1433,7 +1447,7 @@ const pi = /* @__PURE__ */ a("div")({
1433
1447
  var t, n;
1434
1448
  const i = w(e.getStore());
1435
1449
  return (t = i.data) != null && t.summary ? /* @__PURE__ */ r(ke, { ...i.data.summary, successRate: (n = i.data.percentage) == null ? void 0 : n.correct }) : /* @__PURE__ */ r("div", { children: "wait user..." });
1436
- }, Fi = ({
1450
+ }, Vi = ({
1437
1451
  gamification: e
1438
1452
  }) => {
1439
1453
  const [t, n] = L(H.HOME);
@@ -1473,7 +1487,7 @@ const pi = /* @__PURE__ */ a("div")({
1473
1487
  })
1474
1488
  })]
1475
1489
  });
1476
- }, Vi = () => He, De = /* @__PURE__ */ a(Vi())({
1490
+ }, Fi = () => He, De = /* @__PURE__ */ a(Fi())({
1477
1491
  name: "OpenedContainer",
1478
1492
  class: "oar61gl",
1479
1493
  propsAsIs: !0
@@ -1514,7 +1528,7 @@ const pi = /* @__PURE__ */ a("div")({
1514
1528
  }), /* @__PURE__ */ r(ie, {
1515
1529
  className: t,
1516
1530
  "data-nav": "true",
1517
- children: /* @__PURE__ */ r(Fi, {
1531
+ children: /* @__PURE__ */ r(Vi, {
1518
1532
  gamification: e
1519
1533
  })
1520
1534
  })]
@@ -1,4 +1,4 @@
1
- import { M as s, e as m, S as o, f as S } from "./masters.js";
1
+ import { M as s, f as m, S as o, g as S } from "./masters.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  export {