@streamlayer/react 0.24.1 → 0.24.2

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/es/index.js CHANGED
@@ -12,17 +12,17 @@ import * as D from "react";
12
12
  import Le, { useCallback as Ne, useEffect as te, useState as Q, useRef as Ai, useMemo as J, createContext as yi, useContext as s1 } from "react";
13
13
  import Ci from "react-auth-code-input";
14
14
  import mi, { isValidPhoneNumber as ji, formatPhoneNumberIntl as Ti } from "react-phone-number-input";
15
- import { CountdownCircleTimer as wi } from "react-countdown-circle-timer";
15
+ import { CountdownCircleTimer as Ei } from "react-countdown-circle-timer";
16
16
  import { createPromiseClient as o1 } from "@connectrpc/connect";
17
17
  import { createGrpcWebTransport as l1 } from "@connectrpc/connect-web";
18
18
  import { Users as a1 } from "@streamlayer/sl-eslib/users/users_connect";
19
- import { useStore as w } from "@nanostores/react";
19
+ import { useStore as E } from "@nanostores/react";
20
20
  import "@streamlayer/sl-eslib/interactive/interactive.common_pb";
21
21
  import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
22
22
  import { SdkOverlayType as ze } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
23
23
  import "@streamlayer/sl-eslib/sports/events/events_connect";
24
24
  import "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
25
- import { StreamLayer as Ei } from "@streamlayer/sdk-web";
25
+ import { StreamLayer as wi } from "@streamlayer/sdk-web";
26
26
  const Se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
27
27
  function fi(t) {
28
28
  var r = /* @__PURE__ */ Object.create(null);
@@ -221,7 +221,7 @@ const _i = /* @__PURE__ */ c("div")({
221
221
  return te(() => {
222
222
  l(!1);
223
223
  }, [l]), /* @__PURE__ */ s(
224
- wi,
224
+ Ei,
225
225
  {
226
226
  isPlaying: t,
227
227
  duration: r,
@@ -411,15 +411,15 @@ const yt = /* @__PURE__ */ c("div")({
411
411
  name: "d",
412
412
  class: "d1i3t4lw",
413
413
  propsAsIs: !1
414
- }), wt = /* @__PURE__ */ c("div")({
414
+ }), Et = /* @__PURE__ */ c("div")({
415
415
  name: "l",
416
416
  class: "l1heulx5",
417
417
  propsAsIs: !1
418
- }), Et = ({ rules: t, rulesTitle: r, primaryColor: l }) => /* @__PURE__ */ A(yt, { children: [
418
+ }), wt = ({ rules: t, rulesTitle: r, primaryColor: l }) => /* @__PURE__ */ A(yt, { children: [
419
419
  /* @__PURE__ */ s(Ct, { children: r }),
420
420
  /* @__PURE__ */ s(mt, { children: t == null ? void 0 : t.map((d, I) => /* @__PURE__ */ A(jt, { children: [
421
421
  /* @__PURE__ */ s(Tt, { style: { backgroundColor: l }, children: I + 1 }),
422
- /* @__PURE__ */ s(wt, { children: d })
422
+ /* @__PURE__ */ s(Et, { children: d })
423
423
  ] }, I)) })
424
424
  ] });
425
425
  const ft = /* @__PURE__ */ c("div")({
@@ -501,7 +501,7 @@ const ft = /* @__PURE__ */ c("div")({
501
501
  ] }),
502
502
  /* @__PURE__ */ A(Lt, { children: [
503
503
  U.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ s(Mt, { graphic: l[v].graphic, headline: l[v].headline }),
504
- U.rules && /* @__PURE__ */ s(Et, { rules: g, rulesTitle: a, primaryColor: h }),
504
+ U.rules && /* @__PURE__ */ s(wt, { rules: g, rulesTitle: a, primaryColor: h }),
505
505
  U.inviteCard && /* @__PURE__ */ s(
506
506
  At,
507
507
  {
@@ -553,7 +553,7 @@ const Zt = /* @__PURE__ */ c("div")({
553
553
  name: "o",
554
554
  class: "oa5apdf",
555
555
  propsAsIs: !1
556
- }), w1 = /* @__PURE__ */ c("button")({
556
+ }), E1 = /* @__PURE__ */ c("button")({
557
557
  name: "n",
558
558
  class: "n1wh5guy",
559
559
  propsAsIs: !1
@@ -563,10 +563,10 @@ const Zt = /* @__PURE__ */ c("div")({
563
563
  propsAsIs: !1
564
564
  }), Vt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", _1 = ({ icon: t, comeBack: r, close: l }) => /* @__PURE__ */ A(Zt, { children: [
565
565
  /* @__PURE__ */ A("div", { children: [
566
- r && /* @__PURE__ */ s(w1, { onClick: r, children: /* @__PURE__ */ s("img", { alt: "header-back-icon", src: Vt }) }),
566
+ r && /* @__PURE__ */ s(E1, { onClick: r, children: /* @__PURE__ */ s("img", { alt: "header-back-icon", src: Vt }) }),
567
567
  t && /* @__PURE__ */ s(Pt, { alt: "header-icon", src: t })
568
568
  ] }),
569
- /* @__PURE__ */ s("div", { children: l && /* @__PURE__ */ s(w1, { onClick: l, children: /* @__PURE__ */ s("img", { alt: "header-close-icon", src: Se }) }) })
569
+ /* @__PURE__ */ s("div", { children: l && /* @__PURE__ */ s(E1, { onClick: l, children: /* @__PURE__ */ s("img", { alt: "header-close-icon", src: Se }) }) })
570
570
  ] }), H1 = (t) => t.split(/\s+/).map((r) => r[0]).join("").toUpperCase(), Gt = (t) => t ? t.toLocaleString("en-US") : "0";
571
571
  const _t = /* @__PURE__ */ c("div")({
572
572
  name: "t",
@@ -580,7 +580,7 @@ const _t = /* @__PURE__ */ c("div")({
580
580
  name: "i",
581
581
  class: "i1whkbqh",
582
582
  propsAsIs: !1
583
- }), E1 = ({ indicator: t, title: r }) => /* @__PURE__ */ A(_t, { children: [
583
+ }), w1 = ({ indicator: t, title: r }) => /* @__PURE__ */ A(_t, { children: [
584
584
  /* @__PURE__ */ s(Ht, { children: r }),
585
585
  /* @__PURE__ */ s(Wt, { children: t })
586
586
  ] });
@@ -706,8 +706,8 @@ const Xt = /* @__PURE__ */ c("div")({
706
706
  ] }) }),
707
707
  /* @__PURE__ */ A(en, { children: [
708
708
  /* @__PURE__ */ A(dn, { children: [
709
- /* @__PURE__ */ s(E1, { indicator: d || 0, title: "Friends rank" }),
710
- /* @__PURE__ */ s(E1, { indicator: I || 0, title: "Global rank" })
709
+ /* @__PURE__ */ s(w1, { indicator: d || 0, title: "Friends rank" }),
710
+ /* @__PURE__ */ s(w1, { indicator: I || 0, title: "Global rank" })
711
711
  ] }),
712
712
  /* @__PURE__ */ A(gn, { children: [
713
713
  /* @__PURE__ */ s(xe, { indicator: g || 0, title: "Win streak" }),
@@ -800,7 +800,7 @@ const Cn = (t) => /* @__PURE__ */ D.createElement("svg", {
800
800
  id: "Vector",
801
801
  d: "M13.4315 3.18246L5.53321 11.0808L1.99771 7.54527C1.54056 7.08811 0.799913 7.08811 0.342864 7.54527C-0.114288 8.00242 -0.114288 8.74307 0.342864 9.20011L4.70567 13.5629C4.93331 13.7906 5.23415 13.9063 5.53307 13.9063C5.83202 13.9063 6.13096 13.7924 6.36048 13.5629L15.0861 4.83731C15.5432 4.38016 15.5432 3.63951 15.0861 3.18246C14.629 2.72531 13.8884 2.72531 13.4312 3.18246H13.4315Z",
802
802
  fill: "#00BD60"
803
- }))), wn = (t) => /* @__PURE__ */ D.createElement("svg", {
803
+ }))), En = (t) => /* @__PURE__ */ D.createElement("svg", {
804
804
  width: 24,
805
805
  height: 24,
806
806
  viewBox: "0 0 24 24",
@@ -815,7 +815,7 @@ const Cn = (t) => /* @__PURE__ */ D.createElement("svg", {
815
815
  clipRule: "evenodd",
816
816
  d: "M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z",
817
817
  fill: "#FFFFFF"
818
- }))), En = (t) => /* @__PURE__ */ D.createElement("svg", {
818
+ }))), wn = (t) => /* @__PURE__ */ D.createElement("svg", {
819
819
  width: 12,
820
820
  height: 20,
821
821
  viewBox: "0 0 12 20",
@@ -1353,8 +1353,8 @@ const Cn = (t) => /* @__PURE__ */ D.createElement("svg", {
1353
1353
  "icon-circle-arrow-right": zn,
1354
1354
  "icon-chevron": Ln,
1355
1355
  "icon-chevron-white-left": fn,
1356
- "icon-chevron-left": En,
1357
- "icon-check-white": wn,
1356
+ "icon-chevron-left": wn,
1357
+ "icon-check-white": En,
1358
1358
  "icon-check-green": Tn,
1359
1359
  "icon-btn-channels": Gn,
1360
1360
  "icon-btn-feature-groups": _n,
@@ -1565,20 +1565,20 @@ const g2 = /* @__PURE__ */ c("div")({
1565
1565
  class: "a82wnnx",
1566
1566
  propsAsIs: !1
1567
1567
  }), h2 = /* @__PURE__ */ c("div")({
1568
- name: "l",
1569
- class: "l1nz1ddv",
1568
+ name: "d",
1569
+ class: "d1nz1ddv",
1570
1570
  propsAsIs: !1
1571
1571
  }), D2 = /* @__PURE__ */ c("img")({
1572
- name: "r",
1573
- class: "rd1fmde",
1572
+ name: "l",
1573
+ class: "ld1fmde",
1574
1574
  propsAsIs: !1
1575
1575
  }), A2 = /* @__PURE__ */ c("div")({
1576
- name: "d",
1577
- class: "dbyqoe6",
1576
+ name: "p",
1577
+ class: "pbyqoe6",
1578
1578
  propsAsIs: !1
1579
1579
  }), y2 = /* @__PURE__ */ c("div")({
1580
- name: "p",
1581
- class: "p4qnn76",
1580
+ name: "r",
1581
+ class: "r4qnn76",
1582
1582
  propsAsIs: !1
1583
1583
  }), C2 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC4wMDE5NTMxMiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iMTIiIGZpbGw9IiNGODAwMjIiLz4KPHJlY3QgeD0iOC4yNSIgeT0iNy4wMDE5NSIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcuMDAxOTUpIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSI3IiB5PSIxNS43NTIiIHdpZHRoPSIxMi4zNzQ0IiBoZWlnaHQ9IjEuNzY3NzciIHJ4PSIwLjg4Mzg4NCIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ1IDcgMTUuNzUyKSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==", X1 = ({
1584
1584
  title: t,
@@ -1633,11 +1633,11 @@ const m2 = /* @__PURE__ */ c("div")({
1633
1633
  name: "e",
1634
1634
  class: "e6i73qc",
1635
1635
  propsAsIs: !1
1636
- }), w2 = /* @__PURE__ */ c("div")({
1636
+ }), E2 = /* @__PURE__ */ c("div")({
1637
1637
  name: "i",
1638
1638
  class: "iu0veuw",
1639
1639
  propsAsIs: !1
1640
- }), E2 = /* @__PURE__ */ c("img")({
1640
+ }), w2 = /* @__PURE__ */ c("img")({
1641
1641
  name: "p",
1642
1642
  class: "ph41hsa",
1643
1643
  propsAsIs: !1
@@ -1672,10 +1672,10 @@ const m2 = /* @__PURE__ */ c("div")({
1672
1672
  }) => /* @__PURE__ */ A(m2, { children: [
1673
1673
  /* @__PURE__ */ s(O2, { onClick: t, children: /* @__PURE__ */ s(v2, { alt: "icon-close-onboarding-inapp", src: k2 }) }),
1674
1674
  /* @__PURE__ */ s(j2, { style: { backgroundImage: `url(${p || ""})` }, children: l && /* @__PURE__ */ s(T2, { alt: "onboarding-inapp-icon", src: l }) }),
1675
- /* @__PURE__ */ A(w2, { children: [
1675
+ /* @__PURE__ */ A(E2, { children: [
1676
1676
  /* @__PURE__ */ A("div", { children: [
1677
1677
  /* @__PURE__ */ s("div", { children: a ? /* @__PURE__ */ A(P, { children: [
1678
- /* @__PURE__ */ s(E2, { alt: "sponsor-logo", src: a }),
1678
+ /* @__PURE__ */ s(w2, { alt: "sponsor-logo", src: a }),
1679
1679
  /* @__PURE__ */ s(f2, { children: "Presents" })
1680
1680
  ] }) : d || "" }),
1681
1681
  /* @__PURE__ */ s(L2, { children: I || "" }),
@@ -1716,7 +1716,7 @@ const Y2 = /* @__PURE__ */ c("div")({
1716
1716
  class: "oc6h1al",
1717
1717
  propsAsIs: !1
1718
1718
  }), B2 = ({ notificationsStore: t }) => {
1719
- const r = w(t);
1719
+ const r = E(t);
1720
1720
  return /* @__PURE__ */ s(Y2, { children: r == null ? void 0 : r.map((l, d) => /* @__PURE__ */ s(
1721
1721
  Q2,
1722
1722
  {
@@ -1727,10 +1727,10 @@ const Y2 = /* @__PURE__ */ c("div")({
1727
1727
  l.id
1728
1728
  )) });
1729
1729
  }, R2 = ({ store: t }) => {
1730
- const { data: r } = w(t);
1730
+ const { data: r } = E(t);
1731
1731
  return r != null && r.summary ? /* @__PURE__ */ s(c1, { ...r.summary, ...r.percentage }) : /* @__PURE__ */ s("div", { children: "wait user..." });
1732
1732
  }, $2 = ({ store: t, openQuestion: r }) => {
1733
- const l = w(t);
1733
+ const l = E(t);
1734
1734
  return l != null && l.data ? /* @__PURE__ */ s(q1, { openQuestion: r, questions: l.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
1735
1735
  };
1736
1736
  const Z2 = /* @__PURE__ */ c("div")({
@@ -1957,11 +1957,11 @@ const mr = /* @__PURE__ */ c("div")({
1957
1957
  name: "r",
1958
1958
  class: "r1gw9pik",
1959
1959
  propsAsIs: !1
1960
- }), wr = /* @__PURE__ */ c("div")({
1960
+ }), Er = /* @__PURE__ */ c("div")({
1961
1961
  name: "n",
1962
1962
  class: "nxxxhec",
1963
1963
  propsAsIs: !1
1964
- }), Er = /* @__PURE__ */ c("div")({
1964
+ }), wr = /* @__PURE__ */ c("div")({
1965
1965
  name: "p",
1966
1966
  class: "pm069t4",
1967
1967
  propsAsIs: !1
@@ -1976,8 +1976,8 @@ const mr = /* @__PURE__ */ c("div")({
1976
1976
  }), zr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iMTYiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8cGF0aCBkPSJNMTAuNDYxNSAxMi42ODc1QzkuNDQyMzEgMTIuNjg3NSA4LjYxNTM4IDEzLjQ2NjUgOC42MTUzOCAxNC40MjY2QzguNjE1MzggMTUuMzg2OCA5LjQ0MjMxIDE2LjE2NTggMTAuNDYxNSAxNi4xNjU4QzExLjQ4MDggMTYuMTY1OCAxMi4zMDc3IDE1LjM4Nj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CAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikh5cGVybGluayI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xLjUyIDhDMS41MiA2LjYzMiAyLjYzMiA1LjUyIDQgNS41Mkg3LjJWNEw0IDRDMS43OTIgNCAwIDUuNzkyIDAgOEMwIDEwLjIwOCAxLjc5MiAxMiA0IDEySDcuMkw3LjIgMTAuNDhINEMyLjYzMiAxMC40OCAxLjUyIDkuMzY4IDEuNTIgOFpNNC44IDguOEgxMS4yVjcuMkg0LjhWOC44Wk0xMiA0SDguOFY1LjUyTDEyIDUuNTJDMTMuMzY4IDUuNTIgMTQuNDggNi42MzIgMTQuNDggOEMxNC40OCA5LjM2OCAxMy4zNjggMTAuNDggMTIgMTAuNDhIOC44VjEySDEyQzE0LjIwOCAxMiAxNiAxMC4yMDggMTYgOEMxNiA1Ljc5MiAxNC4yMDggNCAxMiA0WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", vr = ({ title: t, description: r, onClick: l }) => /* @__PURE__ */ A(mr, { onClick: l, children: [
1977
1977
  /* @__PURE__ */ s(jr, { alt: "icon-link", src: Or }),
1978
1978
  /* @__PURE__ */ s(Tr, { alt: "friends-icon", src: zr }),
1979
- /* @__PURE__ */ A(wr, { children: [
1980
- /* @__PURE__ */ s(Er, { children: t }),
1979
+ /* @__PURE__ */ A(Er, { children: [
1980
+ /* @__PURE__ */ s(wr, { children: t }),
1981
1981
  /* @__PURE__ */ s(fr, { children: r })
1982
1982
  ] }),
1983
1983
  /* @__PURE__ */ s(Lr, { alt: "arrow-invite-icon", src: xr })
@@ -2038,7 +2038,7 @@ const Pr = /* @__PURE__ */ c("div")({
2038
2038
  /* @__PURE__ */ s(vr, { title: "Invite Link", description: "Challenge friends!", onClick: () => {
2039
2039
  } })
2040
2040
  ] }), Vr = ({ store: t }) => {
2041
- const { data: r } = w(t), [l, d] = Q(void 0);
2041
+ const { data: r } = E(t), [l, d] = Q(void 0);
2042
2042
  if (!r)
2043
2043
  return /* @__PURE__ */ s("div", { children: "wait leader board..." });
2044
2044
  const I = (g) => {
@@ -2085,7 +2085,7 @@ const se = /* @__PURE__ */ c("div")({
2085
2085
  sdk: r
2086
2086
  }) => {
2087
2087
  var l, d, I, g, p, a, h, y, C, m, T, f, v, S, U, b, K, V, me, G, he, De, je;
2088
- const Qe = w(t.status), Ye = w(t.onboardingStatus), Te = w(t.openedQuestion), { slStreamId: ae } = w(r.sdkStore), R = w(t.featureSettings), [ce, we] = Q(ie.HOME);
2088
+ const Qe = E(t.status), Ye = E(t.onboardingStatus), Te = E(t.openedQuestion), { slStreamId: ae } = E(r.sdkStore), R = E(t.featureSettings), [ce, Ee] = Q(ie.HOME);
2089
2089
  if (Qe !== Z.Ready)
2090
2090
  return /* @__PURE__ */ s("div", { children: "wait..." });
2091
2091
  if (ae != null && ae.loading)
@@ -2119,7 +2119,7 @@ const se = /* @__PURE__ */ c("div")({
2119
2119
  };
2120
2120
  return /* @__PURE__ */ A(se, { children: [
2121
2121
  /* @__PURE__ */ s(G1, { activePage: ce, toggleActivePage: (re) => {
2122
- we(re);
2122
+ Ee(re);
2123
2123
  } }),
2124
2124
  ce === ie.HOME && /* @__PURE__ */ A(P, { children: [
2125
2125
  /* @__PURE__ */ s(Gr, { children: t.userSummary && /* @__PURE__ */ s(R2, { store: t.userSummary.getStore() }) }),
@@ -2148,7 +2148,7 @@ const se = /* @__PURE__ */ c("div")({
2148
2148
  /* @__PURE__ */ s(dr, { alt: "next-icon", src: Fr })
2149
2149
  ] })
2150
2150
  ] }), Xr = ({ insights: t, openInsight: r }) => /* @__PURE__ */ s(gr, { children: /* @__PURE__ */ s(Ir, { children: t == null ? void 0 : t.map((l) => /* @__PURE__ */ s(Jr, { openInsight: r, ...l }, l.questionId)) }) }), ei = ({ highlights: t, store: r }) => {
2151
- const { data: l } = w(r);
2151
+ const { data: l } = E(r);
2152
2152
  return l ? /* @__PURE__ */ s(Xr, { insights: l, openInsight: t.openHighlight }) : /* @__PURE__ */ s("div", { children: "wait insights..." });
2153
2153
  }, Kr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGFzcz0ic2MtQU5kc04ga1RWV0pFIj48cGF0aCBkPSJNNi42NjY1IDMuMTY2NjlINC45OTk4NEM0LjI2MzQ2IDMuMTY2NjkgMy42NjY1IDMuNzYzNjQgMy42NjY1IDQuNTAwMDJWMTEuNUMzLjY2NjUgMTIuMjM2NCA0LjI2MzQ2IDEyLjgzMzQgNC45OTk4NCAxMi44MzM0SDExLjk5OThDMTIuNzM2MiAxMi44MzM0IDEzLjMzMzIgMTIuMjM2NCAxMy4zMzMyIDExLjVWOS44MzMzNSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTTEzLjMzMzUgNi4xNjY2OVYzLjE2NjY5SDEwLjMzMzUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjxwYXRoIGQ9Ik0xMy4xNjY4IDMuMzMzMzFMOC4zMzM1IDguMTY2NjUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPgo=", e4 = ({
2154
2154
  image: t,
@@ -2190,7 +2190,7 @@ const se = /* @__PURE__ */ c("div")({
2190
2190
  }
2191
2191
  );
2192
2192
  }, i4 = ({ highlights: t, sdk: r }) => {
2193
- const l = w(t.status), d = w(t.openedInsight), { slStreamId: I } = w(r.sdkStore);
2193
+ const l = E(t.status), d = E(t.openedInsight), { slStreamId: I } = E(r.sdkStore);
2194
2194
  return l !== Z.Ready ? /* @__PURE__ */ s("div", { children: "wait..." }) : I != null && I.loading ? /* @__PURE__ */ s(se, { children: /* @__PURE__ */ s("div", { children: "Event is loading" }) }) : I != null && I.data ? t.insights === void 0 ? /* @__PURE__ */ s("div", { children: "wait insights..." }) : /* @__PURE__ */ A(se, { children: [
2195
2195
  !d && /* @__PURE__ */ s(ei, { highlights: t, store: t.insights.getStore() }),
2196
2196
  d && /* @__PURE__ */ s(
@@ -2607,9 +2607,9 @@ M1.write = function(t, r, l, d, I, g) {
2607
2607
  return 0;
2608
2608
  let N = u - M, j = o - i;
2609
2609
  const z = Math.min(N, j), L = this.slice(M, u), x = e.slice(i, o);
2610
- for (let E = 0; E < z; ++E)
2611
- if (L[E] !== x[E]) {
2612
- N = L[E], j = x[E];
2610
+ for (let w = 0; w < z; ++w)
2611
+ if (L[w] !== x[w]) {
2612
+ N = L[w], j = x[w];
2613
2613
  break;
2614
2614
  }
2615
2615
  return N < j ? -1 : j < N ? 1 : 0;
@@ -2639,8 +2639,8 @@ M1.write = function(t, r, l, d, I, g) {
2639
2639
  return -1;
2640
2640
  u = 2, N /= 2, j /= 2, i /= 2;
2641
2641
  }
2642
- function z(x, E) {
2643
- return u === 1 ? x[E] : x.readUInt16BE(E * u);
2642
+ function z(x, w) {
2643
+ return u === 1 ? x[w] : x.readUInt16BE(w * u);
2644
2644
  }
2645
2645
  let L;
2646
2646
  if (M) {
@@ -2654,8 +2654,8 @@ M1.write = function(t, r, l, d, I, g) {
2654
2654
  } else
2655
2655
  for (i + j > N && (i = N - j), L = i; L >= 0; L--) {
2656
2656
  let x = !0;
2657
- for (let E = 0; E < j; E++)
2658
- if (z(n, L + E) !== z(e, E)) {
2657
+ for (let w = 0; w < j; w++)
2658
+ if (z(n, L + w) !== z(e, w)) {
2659
2659
  x = !1;
2660
2660
  break;
2661
2661
  }
@@ -2687,16 +2687,16 @@ M1.write = function(t, r, l, d, I, g) {
2687
2687
  return N;
2688
2688
  }
2689
2689
  function Qe(n, e, i, o) {
2690
- return Ee(Ve(e, n.length - i), n, i, o);
2690
+ return we(Ve(e, n.length - i), n, i, o);
2691
2691
  }
2692
2692
  function Ye(n, e, i, o) {
2693
- return Ee(gi(e), n, i, o);
2693
+ return we(gi(e), n, i, o);
2694
2694
  }
2695
2695
  function Te(n, e, i, o) {
2696
- return Ee(A1(e), n, i, o);
2696
+ return we(A1(e), n, i, o);
2697
2697
  }
2698
2698
  function ae(n, e, i, o) {
2699
- return Ee(Ii(e, n.length - i), n, i, o);
2699
+ return we(Ii(e, n.length - i), n, i, o);
2700
2700
  }
2701
2701
  a.prototype.write = function(e, i, o, M) {
2702
2702
  if (i === void 0)
@@ -2754,35 +2754,35 @@ M1.write = function(t, r, l, d, I, g) {
2754
2754
  const u = n[M];
2755
2755
  let N = null, j = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
2756
2756
  if (M + j <= i) {
2757
- let z, L, x, E;
2757
+ let z, L, x, w;
2758
2758
  switch (j) {
2759
2759
  case 1:
2760
2760
  u < 128 && (N = u);
2761
2761
  break;
2762
2762
  case 2:
2763
- z = n[M + 1], (z & 192) === 128 && (E = (u & 31) << 6 | z & 63, E > 127 && (N = E));
2763
+ z = n[M + 1], (z & 192) === 128 && (w = (u & 31) << 6 | z & 63, w > 127 && (N = w));
2764
2764
  break;
2765
2765
  case 3:
2766
- z = n[M + 1], L = n[M + 2], (z & 192) === 128 && (L & 192) === 128 && (E = (u & 15) << 12 | (z & 63) << 6 | L & 63, E > 2047 && (E < 55296 || E > 57343) && (N = E));
2766
+ z = n[M + 1], L = n[M + 2], (z & 192) === 128 && (L & 192) === 128 && (w = (u & 15) << 12 | (z & 63) << 6 | L & 63, w > 2047 && (w < 55296 || w > 57343) && (N = w));
2767
2767
  break;
2768
2768
  case 4:
2769
- z = n[M + 1], L = n[M + 2], x = n[M + 3], (z & 192) === 128 && (L & 192) === 128 && (x & 192) === 128 && (E = (u & 15) << 18 | (z & 63) << 12 | (L & 63) << 6 | x & 63, E > 65535 && E < 1114112 && (N = E));
2769
+ z = n[M + 1], L = n[M + 2], x = n[M + 3], (z & 192) === 128 && (L & 192) === 128 && (x & 192) === 128 && (w = (u & 15) << 18 | (z & 63) << 12 | (L & 63) << 6 | x & 63, w > 65535 && w < 1114112 && (N = w));
2770
2770
  }
2771
2771
  }
2772
2772
  N === null ? (N = 65533, j = 1) : N > 65535 && (N -= 65536, o.push(N >>> 10 & 1023 | 55296), N = 56320 | N & 1023), o.push(N), M += j;
2773
2773
  }
2774
2774
  return Be(o);
2775
2775
  }
2776
- const we = 4096;
2776
+ const Ee = 4096;
2777
2777
  function Be(n) {
2778
2778
  const e = n.length;
2779
- if (e <= we)
2779
+ if (e <= Ee)
2780
2780
  return String.fromCharCode.apply(String, n);
2781
2781
  let i = "", o = 0;
2782
2782
  for (; o < e; )
2783
2783
  i += String.fromCharCode.apply(
2784
2784
  String,
2785
- n.slice(o, o += we)
2785
+ n.slice(o, o += Ee)
2786
2786
  );
2787
2787
  return i;
2788
2788
  }
@@ -3224,7 +3224,7 @@ M1.write = function(t, r, l, d, I, g) {
3224
3224
  function A1(n) {
3225
3225
  return r.toByteArray(di(n));
3226
3226
  }
3227
- function Ee(n, e, i, o) {
3227
+ function we(n, e, i, o) {
3228
3228
  let M;
3229
3229
  for (M = 0; M < o && !(M + i >= e.length || M >= n.length); ++M)
3230
3230
  e[M + i] = n[M];
@@ -3383,14 +3383,14 @@ var R1;
3383
3383
  (function(t) {
3384
3384
  t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnecting = "reconnecting";
3385
3385
  })(R1 || (R1 = {}));
3386
- const I4 = ({ sdk: t }) => w(t.getUserStore()).data ? /* @__PURE__ */ s("button", { onClick: t.logout, children: "logout" }) : /* @__PURE__ */ s(st, { login: async (r) => {
3386
+ const I4 = ({ sdk: t }) => E(t.getUserStore()).data ? /* @__PURE__ */ s("button", { onClick: t.logout, children: "logout" }) : /* @__PURE__ */ s(st, { login: async (r) => {
3387
3387
  try {
3388
3388
  await t.authorizationBypass("streamlayer:streamlayer", r);
3389
3389
  } catch (l) {
3390
3390
  throw console.log("login err", l), l;
3391
3391
  }
3392
3392
  }, anonymousLogin: t.anonymousAuthorization, host: t.host }), p4 = ({ activeFeature: t, sdk: r }) => {
3393
- const [l, d] = Q(null), { organizationSettings: I, streamSettings: g } = w(r.sdkStore), p = J(() => {
3393
+ const [l, d] = Q(null), { organizationSettings: I, streamSettings: g } = E(r.sdkStore), p = J(() => {
3394
3394
  const h = (g == null ? void 0 : g.data) || (I == null ? void 0 : I.data);
3395
3395
  return h != null && h.overlays ? h.overlays : [];
3396
3396
  }, [I, g]);
@@ -3432,7 +3432,7 @@ const I4 = ({ sdk: t }) => w(t.getUserStore()).data ? /* @__PURE__ */ s("button"
3432
3432
  a
3433
3433
  ] });
3434
3434
  }, N4 = ({ sdk: t }) => {
3435
- const r = w(t.organizationStore()), l = w(t.getUserStore()), d = w(t.getActiveFeature());
3435
+ const r = E(t.organizationStore()), l = E(t.getUserStore()), d = E(t.getActiveFeature());
3436
3436
  return r.loading ? /* @__PURE__ */ s("div", { children: "authentication..." }) : r.data ? l.loading ? /* @__PURE__ */ s("div", { children: "authentication..." }) : l.data ? /* @__PURE__ */ A(P, { children: [
3437
3437
  /* @__PURE__ */ s(B2, { notificationsStore: t.getNotificationsStore() }),
3438
3438
  /* @__PURE__ */ s(p4, { sdk: t, activeFeature: d })
@@ -3469,7 +3469,7 @@ const h4 = () => ne, D4 = /* @__PURE__ */ c("div")({
3469
3469
  /* @__PURE__ */ s(j4, { children: t.toLocaleString("en") })
3470
3470
  ] })
3471
3471
  ] });
3472
- const w4 = "fedqibx", ai = ({ children: t, style: r }) => /* @__PURE__ */ s("div", { className: w4, style: r, children: t }), E4 = (t, r, l, d) => {
3472
+ const E4 = "fedqibx", ai = ({ children: t, style: r }) => /* @__PURE__ */ s("div", { className: E4, style: r, children: t }), w4 = (t, r, l, d) => {
3473
3473
  const [I, g] = Q(null);
3474
3474
  return console.log("useStreamLayerApp", t, l), te(() => {
3475
3475
  console.log("init sdk");
@@ -3478,7 +3478,7 @@ const w4 = "fedqibx", ai = ({ children: t, style: r }) => /* @__PURE__ */ s("div
3478
3478
  return console.error("streamlayer sdk key should be provided"), g((h) => (h !== null && typeof h.disableApp == "function" && h.disableApp(), null)), () => {
3479
3479
  p = !0;
3480
3480
  };
3481
- const a = Ei(t, l, d);
3481
+ const a = wi(t, l, d);
3482
3482
  if (r)
3483
3483
  for (const h of r)
3484
3484
  a.use(h);
@@ -3503,7 +3503,7 @@ const be = yi({
3503
3503
  production: d = !0,
3504
3504
  autoEnable: I = !0
3505
3505
  }) => {
3506
- const g = E4(t, r, d, I), p = J(() => g ? {
3506
+ const g = w4(t, r, d, I), p = J(() => g ? {
3507
3507
  sdk: g,
3508
3508
  status: 2
3509
3509
  /* READY */
@@ -3519,10 +3519,10 @@ const be = yi({
3519
3519
  return r === ve.CONNECTED ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "wait" }) : t === null ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(N4, { sdk: t }) });
3520
3520
  }, L4 = ({ userSummary: t }) => {
3521
3521
  var l, d;
3522
- const r = w(t.getStore());
3522
+ const r = E(t.getStore());
3523
3523
  return ((d = (l = r.data) == null ? void 0 : l.summary) == null ? void 0 : d.points) === void 0 ? null : /* @__PURE__ */ s(T4, { points: r.data.summary.points });
3524
3524
  }, z4 = ({ sdk: t }) => {
3525
- const { organizationSettings: r, streamSettings: l } = w(t.sdkStore), d = J(() => t.getFeature(pe.GAMES), [t, r, l]);
3525
+ const { organizationSettings: r, streamSettings: l } = E(t.sdkStore), d = J(() => t.getFeature(pe.GAMES), [t, r, l]);
3526
3526
  return d ? /* @__PURE__ */ s(L4, { userSummary: d.userSummary }) : null;
3527
3527
  }, qs = () => {
3528
3528
  const t = f4();
@@ -3533,7 +3533,7 @@ const x4 = "n1w0z66i", $1 = ({
3533
3533
  sdk: r,
3534
3534
  children: l
3535
3535
  }) => {
3536
- const d = w(t.status), { slStreamId: I } = w(r.sdkStore);
3536
+ const d = E(t.status), { slStreamId: I } = E(r.sdkStore);
3537
3537
  return I != null && I.loading ? /* @__PURE__ */ s("div", { children: "event is loading..." }) : I != null && I.data ? d !== Z.Ready ? /* @__PURE__ */ s("div", { children: "wait feature..." }) : l : /* @__PURE__ */ s("div", { children: "event is forbidden..." });
3538
3538
  };
3539
3539
  const O4 = () => ci, v4 = /* @__PURE__ */ c("div")({
@@ -3592,17 +3592,17 @@ const b4 = () => ne, Q4 = () => ne, Y4 = /* @__PURE__ */ c("div")({
3592
3592
  propsAsIs: !0
3593
3593
  }), V4 = ({ type: t, close: r }) => {
3594
3594
  const l = F1[t];
3595
- return l ? /* @__PURE__ */ A(Y4, { children: [
3595
+ return /* @__PURE__ */ A(Y4, { children: [
3596
3596
  /* @__PURE__ */ A(B4, { children: [
3597
- /* @__PURE__ */ s(R4, { name: l.iconName }),
3598
- /* @__PURE__ */ s($4, { children: l.label })
3597
+ (l == null ? void 0 : l.iconName) && /* @__PURE__ */ s(R4, { name: l.iconName }),
3598
+ (l == null ? void 0 : l.label) && /* @__PURE__ */ s($4, { children: l.label })
3599
3599
  ] }),
3600
3600
  /* @__PURE__ */ s(Z4, { onClick: r, children: /* @__PURE__ */ s(P4, { name: "icon-cross" }) })
3601
- ] }) : null;
3601
+ ] });
3602
3602
  };
3603
3603
  const G4 = /* @__PURE__ */ c("div")({
3604
- name: "b",
3605
- class: "bk8r1eq",
3604
+ name: "T",
3605
+ class: "tk8r1eq",
3606
3606
  propsAsIs: !1
3607
3607
  }), _4 = ({
3608
3608
  openedQuestion: t,
@@ -3615,39 +3615,35 @@ const G4 = /* @__PURE__ */ c("div")({
3615
3615
  g(h);
3616
3616
  }, [g]);
3617
3617
  const p = J(() => t == null ? void 0 : t.answers.find((h) => h.youVoted === !0), [t]), a = J(() => !!(t != null && t.answers.find((h) => h.correct === !0)), [t]);
3618
- return t ? /* @__PURE__ */ s(G4, {
3619
- children: /* @__PURE__ */ A("div", {
3620
- children: [/* @__PURE__ */ s(V4, {
3621
- close: r,
3622
- type: t.type
3623
- }), /* @__PURE__ */ s("div", {
3624
- children: /* @__PURE__ */ s(X1, {
3625
- title: t.subject,
3626
- feedbackMessages: (d = t.options) == null ? void 0 : d.options.value,
3627
- questionType: t.type,
3628
- questionId: t.id,
3629
- questionAnswered: !!p,
3630
- questionAnsweredCorrectly: p == null ? void 0 : p.correct,
3631
- options: t.answers.map((h) => ({
3632
- id: h.id,
3633
- title: h.text,
3634
- icon: h.icon,
3635
- type: t.type,
3636
- correct: h.correct,
3637
- percentage: h.percentage,
3638
- answered: h.youVoted,
3639
- disabled: !!p || t.marketClosed || I,
3640
- questionAnswered: !!p,
3641
- hasCorrectAnswer: a,
3642
- points: h.points,
3643
- onVote: l
3644
- }))
3645
- })
3646
- })]
3647
- })
3648
- }) : null;
3618
+ return /* @__PURE__ */ A(G4, {
3619
+ children: [/* @__PURE__ */ s(V4, {
3620
+ close: r,
3621
+ type: (t == null ? void 0 : t.type) || B.UNSET
3622
+ }), t && /* @__PURE__ */ s(X1, {
3623
+ title: t.subject,
3624
+ feedbackMessages: (d = t.options) == null ? void 0 : d.options.value,
3625
+ questionType: t.type,
3626
+ questionId: t.id,
3627
+ questionAnswered: !!p,
3628
+ questionAnsweredCorrectly: p == null ? void 0 : p.correct,
3629
+ options: t.answers.map((h) => ({
3630
+ id: h.id,
3631
+ title: h.text,
3632
+ icon: h.icon,
3633
+ type: t.type,
3634
+ correct: h.correct,
3635
+ percentage: h.percentage,
3636
+ answered: h.youVoted,
3637
+ disabled: !!p || t.marketClosed || I,
3638
+ questionAnswered: !!p,
3639
+ hasCorrectAnswer: a,
3640
+ points: h.points,
3641
+ onVote: l
3642
+ }))
3643
+ })]
3644
+ });
3649
3645
  }, H4 = ({ store: t }) => {
3650
- const { data: r } = w(t), [l, d] = Q(void 0);
3646
+ const { data: r } = E(t), [l, d] = Q(void 0);
3651
3647
  if (!r)
3652
3648
  return /* @__PURE__ */ s("div", { children: "wait leader board..." });
3653
3649
  const I = (g) => {
@@ -3669,10 +3665,10 @@ const G4 = /* @__PURE__ */ c("div")({
3669
3665
  )
3670
3666
  ] });
3671
3667
  }, W4 = ({ store: t, openQuestion: r }) => {
3672
- const l = w(t);
3668
+ const l = E(t);
3673
3669
  return l != null && l.data ? /* @__PURE__ */ s(q1, { openQuestion: r, questions: l.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
3674
3670
  }, F4 = ({ store: t }) => {
3675
- const { data: r } = w(t);
3671
+ const { data: r } = E(t);
3676
3672
  return r != null && r.summary ? /* @__PURE__ */ s(c1, { ...r.summary, ...r.percentage }) : /* @__PURE__ */ s("div", { children: "wait user..." });
3677
3673
  }, q4 = ({ gamification: t }) => {
3678
3674
  const [r, l] = Q(ie.HOME);
@@ -3686,19 +3682,22 @@ const G4 = /* @__PURE__ */ c("div")({
3686
3682
  ] });
3687
3683
  };
3688
3684
  const J4 = () => U4, X4 = /* @__PURE__ */ c(J4())({
3689
- name: "d",
3690
- class: "d1ph66cs",
3685
+ name: "u",
3686
+ class: "u1ph66cs",
3691
3687
  propsAsIs: !0
3692
3688
  }), K4 = ({
3693
3689
  gamification: t
3694
3690
  }) => {
3695
- const r = w(t.openedQuestion);
3691
+ const {
3692
+ loading: r,
3693
+ data: l
3694
+ } = E(t.openedQuestion);
3696
3695
  return /* @__PURE__ */ A(P, {
3697
- children: [r && /* @__PURE__ */ s(X4, {
3696
+ children: [(r || l) && /* @__PURE__ */ s(X4, {
3698
3697
  children: /* @__PURE__ */ s(_4, {
3699
3698
  closeQuestion: t.closeQuestion,
3700
3699
  vote: t.submitAnswer,
3701
- openedQuestion: r
3700
+ openedQuestion: l
3702
3701
  })
3703
3702
  }), /* @__PURE__ */ s(r1, {
3704
3703
  "data-nav": "true",
@@ -3708,7 +3707,7 @@ const J4 = () => U4, X4 = /* @__PURE__ */ c(J4())({
3708
3707
  })]
3709
3708
  });
3710
3709
  }, es = ({ highlights: t }) => {
3711
- const r = w(t.openedInsight);
3710
+ const r = E(t.openedInsight);
3712
3711
  return /* @__PURE__ */ A(P, { children: [
3713
3712
  !r && t.insights && /* @__PURE__ */ s(ei, { highlights: t, store: t.insights.getStore() }),
3714
3713
  r && /* @__PURE__ */ s(
@@ -3820,7 +3819,7 @@ const Ns = () => ps, hs = /* @__PURE__ */ c(Ns())({
3820
3819
  }
3821
3820
  )
3822
3821
  ] }), As = (t, r) => {
3823
- const [l, d] = Q(!1), I = w(t.status) === "ready", [g, p] = Q(le), a = Ne(
3822
+ const [l, d] = Q(!1), I = E(t.status) === "ready", [g, p] = Q(le), a = Ne(
3824
3823
  (h) => {
3825
3824
  p(h), h === le ? (t.createEventSession(r), t.openFeature(pe.GAMES)) : t.closeFeature();
3826
3825
  },
@@ -3850,7 +3849,7 @@ const Ns = () => ps, hs = /* @__PURE__ */ c(Ns())({
3850
3849
  }
3851
3850
  };
3852
3851
  }, ys = (t) => {
3853
- const r = w(t.getActiveFeature()), [l, d] = Q(null);
3852
+ const r = E(t.getActiveFeature()), [l, d] = Q(null);
3854
3853
  return te(() => {
3855
3854
  const I = t.getFeatures();
3856
3855
  if (r)
@@ -3913,5 +3912,5 @@ export {
3913
3912
  qs as StreamLayerSDKPoints,
3914
3913
  Fs as StreamLayerSDKReact,
3915
3914
  f4 as useStreamLayer,
3916
- E4 as useStreamLayerApp
3915
+ w4 as useStreamLayerApp
3917
3916
  };