@cuemath/leap 2.8.25-rj-8 → 2.8.25-rj-10

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.
@@ -0,0 +1,12 @@
1
+ import o from "styled-components";
2
+ import e from "../../../../ui/layout/flex-view.js";
3
+ const t = o(e)`
4
+ padding: ${({ paddingX: r, paddingY: p }) => `${p}px ${r}px`};
5
+ margin: ${({ marginX: r, marginY: p }) => `${p}px ${r}px`};
6
+ border-width: 1px;
7
+ border-style: solid;
8
+ `;
9
+ export {
10
+ t as InfoBarWrapper
11
+ };
12
+ //# sourceMappingURL=info-bar-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info-bar-styled.js","sources":["../../../../../../src/features/circle-games/leaderboard/comps/info-bar/info-bar-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\n\nexport interface IInfoBarWrapperProps {\n paddingX?: number;\n paddingY?: number;\n marginX?: number;\n marginY?: number;\n}\n\nexport const InfoBarWrapper = styled(FlexView)<IInfoBarWrapperProps>`\n padding: ${({ paddingX, paddingY }) => `${paddingY}px ${paddingX}px`};\n margin: ${({ marginX, marginY }) => `${marginY}px ${marginX}px`};\n border-width: 1px;\n border-style: solid;\n`;\n"],"names":["InfoBarWrapper","styled","FlexView","paddingX","paddingY","marginX","marginY"],"mappings":";;AAWa,MAAAA,IAAiBC,EAAOC,CAAQ;AAAA,aAChC,CAAC,EAAE,UAAAC,GAAU,UAAAC,QAAe,GAAGA,CAAQ,MAAMD,CAAQ,IAAI;AAAA,YAC1D,CAAC,EAAE,SAAAE,GAAS,SAAAC,QAAc,GAAGA,CAAO,MAAMD,CAAO,IAAI;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,29 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { useMemo as b } from "react";
3
+ import { InfoBarWrapper as d } from "./info-bar-styled.js";
4
+ const l = (o) => ({ backgroundColor: `${o}_6`, borderColor: `${o}_4` }), f = ({
5
+ children: o,
6
+ hue: r,
7
+ marginX: n = 0,
8
+ marginY: t = 0,
9
+ paddingX: e = 0,
10
+ paddingY: m = 0
11
+ }) => {
12
+ const { backgroundColor: c, borderColor: p } = b(() => l(r), [r]);
13
+ return /* @__PURE__ */ a(
14
+ d,
15
+ {
16
+ $background: c,
17
+ $borderColor: p,
18
+ marginX: n,
19
+ marginY: t,
20
+ paddingX: e,
21
+ paddingY: m,
22
+ children: o
23
+ }
24
+ );
25
+ };
26
+ export {
27
+ f as InfoBar
28
+ };
29
+ //# sourceMappingURL=info-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info-bar.js","sources":["../../../../../../src/features/circle-games/leaderboard/comps/info-bar/info-bar.tsx"],"sourcesContent":["import type { TColorNames, THueNames } from '../../../../ui/types';\nimport type { IInfoBarProps } from './info-bar-types';\n\nimport { useMemo } from 'react';\n\nimport * as Styled from './info-bar-styled';\n\nconst computeColorsFromHue = (\n hue: THueNames,\n): { backgroundColor: TColorNames; borderColor: TColorNames } => {\n return { backgroundColor: `${hue}_6`, borderColor: `${hue}_4` };\n};\n\nexport const InfoBar: React.FC<IInfoBarProps> = ({\n children,\n hue,\n marginX = 0,\n marginY = 0,\n paddingX = 0,\n paddingY = 0,\n}) => {\n const { backgroundColor, borderColor } = useMemo(() => computeColorsFromHue(hue), [hue]);\n\n return (\n <Styled.InfoBarWrapper\n $background={backgroundColor}\n $borderColor={borderColor}\n marginX={marginX}\n marginY={marginY}\n paddingX={paddingX}\n paddingY={paddingY}\n >\n {children}\n </Styled.InfoBarWrapper>\n );\n};\n"],"names":["computeColorsFromHue","hue","InfoBar","children","marginX","marginY","paddingX","paddingY","backgroundColor","borderColor","useMemo","jsx","Styled.InfoBarWrapper"],"mappings":";;;AAOA,MAAMA,IAAuB,CAC3BC,OAEO,EAAE,iBAAiB,GAAGA,CAAG,MAAM,aAAa,GAAGA,CAAG,SAG9CC,IAAmC,CAAC;AAAA,EAC/C,UAAAC;AAAA,EACA,KAAAF;AAAA,EACA,SAAAG,IAAU;AAAA,EACV,SAAAC,IAAU;AAAA,EACV,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AACb,MAAM;AACE,QAAA,EAAE,iBAAAC,GAAiB,aAAAC,EAAA,IAAgBC,EAAQ,MAAMV,EAAqBC,CAAG,GAAG,CAACA,CAAG,CAAC;AAGrF,SAAA,gBAAAU;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAaJ;AAAA,MACb,cAAcC;AAAA,MACd,SAAAL;AAAA,MACA,SAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,21 +1,21 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { useState as T, useEffect as g } from "react";
3
- import { ILLUSTRATIONS as j } from "../../../assets/illustrations/illustrations.js";
4
- import { CircularLoader as v } from "../../ui/loader/circular-loader/circular-loader.js";
5
- import w from "../../ui/text/text.js";
6
- import { useCircleSounds as H } from "../hooks/use-circle-sounds/use-circle-sounds.js";
7
- import { Banner as d } from "./comps/banner/banner.js";
8
- import { LeaderboardItemWithObserver as U } from "./comps/leaderboard-item/leaderboard-item.js";
9
- import { NavigationButton as q } from "./comps/navigation-button/navigation-button.js";
10
- import { Timer as z } from "./comps/timer/timer.js";
2
+ import { useState as T, useEffect as d } from "react";
3
+ import { ILLUSTRATIONS as v } from "../../../assets/illustrations/illustrations.js";
4
+ import { CircularLoader as w } from "../../ui/loader/circular-loader/circular-loader.js";
5
+ import H from "../../ui/text/text.js";
6
+ import { useCircleSounds as U } from "../hooks/use-circle-sounds/use-circle-sounds.js";
7
+ import { Banner as u } from "./comps/banner/banner.js";
8
+ import { LeaderboardItemWithObserver as q } from "./comps/leaderboard-item/leaderboard-item.js";
9
+ import { NavigationButton as z } from "./comps/navigation-button/navigation-button.js";
10
+ import { Timer as G } from "./comps/timer/timer.js";
11
11
  import { ELeaderboardType as t } from "./enums/leaderboard-type-enum.js";
12
- import { Leaderboard as G, LeaderboardContainer as J, BannerWrapper as Q, TournamentBannerCustContainer as V, TrophyWrapper as X, ItemsWrapper as Z, Banner as D, ActionButtonWrapper as ee } from "./leaderboard-styled.js";
13
- import { useTimer as re } from "./hooks/useTimer.js";
14
- const u = {
12
+ import { Leaderboard as J, LeaderboardContainer as Q, BannerWrapper as V, TournamentBannerCustContainer as X, TrophyWrapper as Z, ItemsWrapper as D, Banner as ee, ActionButtonWrapper as re } from "./leaderboard-styled.js";
13
+ import { useTimer as te } from "./hooks/useTimer.js";
14
+ const E = {
15
15
  [t.ALL_TIME_STREAK]: () => import("../../../assets/lotties/circle/elite-circle-lottie.json.js"),
16
16
  [t.ALL_TIME]: () => import("../../../assets/lotties/circle/elite-circle-lottie.json.js"),
17
17
  [t.BI_WEEKLY]: () => import("../../../assets/lotties/circle/tournament-ripple-lottie.json.js")
18
- }, i = [
18
+ }, s = [
19
19
  {
20
20
  name: "TOURNAMENT",
21
21
  type: t.BI_WEEKLY
@@ -28,119 +28,124 @@ const u = {
28
28
  name: "ALL TIME",
29
29
  type: t.ALL_TIME
30
30
  }
31
- ], le = ({
31
+ ], Le = ({
32
32
  leaderboardData: m,
33
- type: E = t.BI_WEEKLY,
33
+ type: l = t.BI_WEEKLY,
34
34
  userId: C,
35
- onClose: P,
35
+ onClose: W,
36
36
  isLoading: p,
37
- listHeaderElement: W
37
+ listHeaderElement: K,
38
+ onLeaderboardTypeChange: L
38
39
  }) => {
39
- var f, y, A, S, _, x, B;
40
- const [s, l] = T(
41
- i.findIndex((r) => E === r.type)
42
- ), [n, K] = T(((f = m == null ? void 0 : m[E]) == null ? void 0 : f.leaderboardPlayers) || []), [L, M] = T({
40
+ var A, S, _, x, B, R, P;
41
+ const [o, I] = T(
42
+ s.findIndex((r) => l === r.type)
43
+ ), [i, M] = T(((A = m == null ? void 0 : m[l]) == null ? void 0 : A.leaderboardPlayers) || []), [h, k] = T({
43
44
  current: 0,
44
45
  end: 0
45
- }), [k, h] = re(0), [a, N] = T(!1), Y = (y = n == null ? void 0 : n[0]) == null ? void 0 : y.points, F = ((A = n == null ? void 0 : n[0]) == null ? void 0 : A.streakDays) || 0, { playButtonSound: I } = H(), O = () => {
46
- I(), l((r) => r - 1 < 0 ? i.length - 1 : r - 1);
47
- }, $ = () => {
48
- I(), l((r) => r + 1 === i.length ? 0 : r + 1);
46
+ }), [N, f] = te(0), [a, Y] = T(!1), F = (S = i == null ? void 0 : i[0]) == null ? void 0 : S.points, O = ((_ = i == null ? void 0 : i[0]) == null ? void 0 : _.streakDays) || 0, { playButtonSound: y } = U(), $ = () => {
47
+ y(), I((r) => r - 1 < 0 ? s.length - 1 : r - 1);
48
+ }, j = () => {
49
+ y(), I((r) => r + 1 === s.length ? 0 : r + 1);
49
50
  };
50
- return g(() => {
51
- h(0);
52
- }, [h]), g(() => {
53
- var R;
54
- const r = (R = i[s]) == null ? void 0 : R.type, o = r && (m == null ? void 0 : m[r]);
55
- if (o) {
56
- const b = o.leaderboardPlayers || [];
57
- r === t.BI_WEEKLY && (M({
58
- current: o.currentTimestamp,
59
- end: o.endTimestamp
60
- }), o.currentTimestamp > o.endTimestamp && (b.splice(10), N(!0))), K([...b]);
51
+ return d(() => {
52
+ f(0);
53
+ }, [f]), d(() => {
54
+ var b;
55
+ const r = (b = s[o]) == null ? void 0 : b.type, n = r && (m == null ? void 0 : m[r]);
56
+ if (n) {
57
+ const g = n.leaderboardPlayers || [];
58
+ r === t.BI_WEEKLY && (k({
59
+ current: n.currentTimestamp,
60
+ end: n.endTimestamp
61
+ }), n.currentTimestamp > n.endTimestamp && (g.splice(10), Y(!0))), M([...g]);
61
62
  }
62
- }, [s, m]), /* @__PURE__ */ e(G, { children: /* @__PURE__ */ c(J, { children: [
63
- /* @__PURE__ */ c(Q, { children: [
64
- ((S = i[s]) == null ? void 0 : S.type) === t.BI_WEEKLY && /* @__PURE__ */ e(
65
- d,
63
+ }, [o, m]), d(() => {
64
+ var n;
65
+ const r = (n = s[o]) == null ? void 0 : n.type;
66
+ r && L(r);
67
+ }, [o, L]), /* @__PURE__ */ e(J, { children: /* @__PURE__ */ c(Q, { children: [
68
+ /* @__PURE__ */ c(V, { children: [
69
+ ((x = s[o]) == null ? void 0 : x.type) === t.BI_WEEKLY && /* @__PURE__ */ e(
70
+ u,
66
71
  {
67
- isLoading: p || n.length === 0,
72
+ isLoading: p || i.length === 0,
68
73
  bgFromTopPosition: -120,
69
74
  bgFromRightPosition: -110,
70
75
  primaryText: a ? /* @__PURE__ */ e("span", { children: "New Tournament" }) : /* @__PURE__ */ e("span", { children: "Tournament" }),
71
76
  secondaryText: a ? /* @__PURE__ */ e("span", { children: "Starts Soon" }) : /* @__PURE__ */ c("span", { children: [
72
77
  " ",
73
78
  /* @__PURE__ */ e(
74
- z,
79
+ G,
75
80
  {
76
- fromTimestamp: k + L.current,
77
- endTimestamp: L.end
81
+ fromTimestamp: N + h.current,
82
+ endTimestamp: h.end
78
83
  }
79
84
  ),
80
85
  " ",
81
86
  "left"
82
87
  ] }),
83
- lottiePromise: u[t.BI_WEEKLY],
84
- custEle: /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e("img", { src: j.TROPHY_CIRCLE }) }) })
88
+ lottiePromise: E[t.BI_WEEKLY],
89
+ custEle: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e("img", { src: v.TROPHY_CIRCLE }) }) })
85
90
  }
86
91
  ),
87
- ((_ = i[s]) == null ? void 0 : _.type) === t.ALL_TIME_STREAK && /* @__PURE__ */ e(
88
- d,
92
+ ((B = s[o]) == null ? void 0 : B.type) === t.ALL_TIME_STREAK && /* @__PURE__ */ e(
93
+ u,
89
94
  {
90
95
  isLoading: p,
91
96
  bgFromTopPosition: -140,
92
97
  bgFromRightPosition: -90,
93
98
  primaryText: /* @__PURE__ */ e("span", { children: "Streak Stars" }),
94
99
  secondaryText: /* @__PURE__ */ e("span", { children: "Top 50" }),
95
- lottiePromise: u[t.ALL_TIME_STREAK]
100
+ lottiePromise: E[t.ALL_TIME_STREAK]
96
101
  }
97
102
  ),
98
- ((x = i[s]) == null ? void 0 : x.type) === t.ALL_TIME && /* @__PURE__ */ e(
99
- d,
103
+ ((R = s[o]) == null ? void 0 : R.type) === t.ALL_TIME && /* @__PURE__ */ e(
104
+ u,
100
105
  {
101
106
  isLoading: p,
102
107
  bgFromTopPosition: -140,
103
108
  bgFromRightPosition: -90,
104
109
  primaryText: /* @__PURE__ */ e("span", { children: "Elite Circle" }),
105
110
  secondaryText: /* @__PURE__ */ e("span", { children: "Top 50" }),
106
- lottiePromise: u[t.ALL_TIME]
111
+ lottiePromise: E[t.ALL_TIME]
107
112
  }
108
113
  )
109
114
  ] }),
110
- p && /* @__PURE__ */ e(v, {}),
111
- !p && n && /* @__PURE__ */ c(Z, { topInset: 0, children: [
112
- W,
113
- a && ((B = i[s]) == null ? void 0 : B.type) === t.BI_WEEKLY && /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(w, { $renderAs: "ab3", $color: "WHITE", children: "Congratulating winners of the last tournament!" }) }),
114
- n.map((r) => {
115
- var o;
115
+ p && /* @__PURE__ */ e(w, {}),
116
+ !p && i && /* @__PURE__ */ c(D, { topInset: 0, children: [
117
+ K,
118
+ a && ((P = s[o]) == null ? void 0 : P.type) === t.BI_WEEKLY && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(H, { $renderAs: "ab3", $color: "WHITE", children: "Congratulating winners of the last tournament!" }) }),
119
+ i.map((r) => {
120
+ var n;
116
121
  return /* @__PURE__ */ e(
117
- U,
122
+ q,
118
123
  {
119
124
  player: r,
120
125
  rank: r.rank,
121
- maxStreakDays: F,
122
- maxPoints: Y,
123
- leaderboardType: (o = i[s]) == null ? void 0 : o.type,
126
+ maxStreakDays: O,
127
+ maxPoints: F,
128
+ leaderboardType: (n = s[o]) == null ? void 0 : n.type,
124
129
  isActive: r.userId === C
125
130
  },
126
131
  r.rank
127
132
  );
128
133
  })
129
134
  ] }),
130
- /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(
131
- q,
135
+ /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
136
+ z,
132
137
  {
133
138
  labels: Object.values(t),
134
- onLeftClick: O,
135
- onRightClick: $,
136
- currIndex: s,
137
- onClose: P,
138
- disableSwipe: p || n.length === 0
139
+ onLeftClick: $,
140
+ onRightClick: j,
141
+ currIndex: o,
142
+ onClose: W,
143
+ disableSwipe: p || i.length === 0
139
144
  }
140
145
  ) })
141
146
  ] }) });
142
147
  };
143
148
  export {
144
- le as Leaderboard
149
+ Le as Leaderboard
145
150
  };
146
151
  //# sourceMappingURL=leaderboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"leaderboard.js","sources":["../../../../src/features/circle-games/leaderboard/leaderboard.tsx"],"sourcesContent":["import type {\n ILeaderboardPlayerWithPoints,\n ILeaderboardPlayerWithStreak,\n} from './dal/use-get-leaderboard-dal/use-get-leaderboard-dal-types';\nimport type { ILeaderboardProps } from './leaderboard-types';\n\nimport { useEffect, useState } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport { CircularLoader } from '../../ui/loader/circular-loader/circular-loader';\nimport Text from '../../ui/text/text';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { Banner } from './comps/banner/banner';\nimport { LeaderboardItemWithObserver } from './comps/leaderboard-item/leaderboard-item';\nimport { NavigationButton } from './comps/navigation-button/navigation-button';\nimport { Timer } from './comps/timer/timer';\nimport { ELeaderboardType } from './enums/leaderboard-type-enum';\nimport { useTimer } from './hooks';\nimport * as Styled from './leaderboard-styled';\n\n// lazy load banner lotties\nconst BANNER_LOTTIES: Record<ELeaderboardType, () => Promise<Record<string, unknown>>> = {\n [ELeaderboardType.ALL_TIME_STREAK]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.ALL_TIME]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.BI_WEEKLY]: () =>\n import('../../../assets/lotties/circle/tournament-ripple-lottie.json'),\n};\n\nconst leaderboards = [\n {\n name: 'TOURNAMENT',\n type: ELeaderboardType.BI_WEEKLY,\n },\n {\n name: 'STREAK STARS',\n type: ELeaderboardType.ALL_TIME_STREAK,\n },\n {\n name: 'ALL TIME',\n type: ELeaderboardType.ALL_TIME,\n },\n];\n\nexport const Leaderboard = ({\n leaderboardData,\n type = ELeaderboardType.BI_WEEKLY,\n userId,\n onClose,\n isLoading,\n listHeaderElement,\n}: ILeaderboardProps) => {\n const [currentLeaderBoardIndex, setCurrentLeaderboardIndex] = useState(\n leaderboards.findIndex(leaderboard => type === leaderboard.type),\n );\n\n const [currLeaderboardData, setCurrLeaderboardData] = useState<\n (ILeaderboardPlayerWithPoints | ILeaderboardPlayerWithStreak)[] | []\n >(leaderboardData?.[type]?.leaderboardPlayers || []);\n\n const [currLeaderboardTimeStamps, setCurrLeaderboardTimeStamps] = useState<{\n current: number;\n end: number;\n }>({\n current: 0,\n end: 0,\n });\n\n const [time, setTimer] = useTimer(0);\n const [isTournamentEnded, setIsTournamentEnded] = useState(false);\n const maxPoints = (currLeaderboardData?.[0] as ILeaderboardPlayerWithPoints)?.points;\n const maxStreakDays = (currLeaderboardData?.[0] as ILeaderboardPlayerWithStreak)?.streakDays || 0;\n const { playButtonSound } = useCircleSounds();\n\n const handlePrevious = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev - 1 < 0) {\n return leaderboards.length - 1;\n }\n\n return prev - 1;\n });\n };\n\n const handleNext = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev + 1 === leaderboards.length) {\n return 0;\n }\n\n return prev + 1;\n });\n };\n\n useEffect(() => {\n setTimer(0);\n }, [setTimer]);\n\n useEffect(() => {\n const currType = leaderboards[currentLeaderBoardIndex]?.type;\n const currLeaderboard = currType && leaderboardData?.[currType];\n\n if (currLeaderboard) {\n const leaderboardList = currLeaderboard.leaderboardPlayers || [];\n\n if (currType === ELeaderboardType.BI_WEEKLY) {\n setCurrLeaderboardTimeStamps({\n current: currLeaderboard.currentTimestamp,\n end: currLeaderboard.endTimestamp,\n });\n\n if (currLeaderboard.currentTimestamp > currLeaderboard.endTimestamp) {\n leaderboardList.splice(10);\n setIsTournamentEnded(true);\n }\n }\n\n setCurrLeaderboardData([...leaderboardList]);\n }\n }, [currentLeaderBoardIndex, leaderboardData]);\n\n return (\n <Styled.Leaderboard>\n <Styled.LeaderboardContainer>\n <Styled.BannerWrapper>\n {/* tournament banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Banner\n isLoading={isLoading || currLeaderboardData.length === 0}\n bgFromTopPosition={-120}\n bgFromRightPosition={-110}\n primaryText={\n isTournamentEnded ? <span>New Tournament</span> : <span>Tournament</span>\n }\n secondaryText={\n isTournamentEnded ? (\n <span>Starts Soon</span>\n ) : (\n <span>\n {' '}\n <Timer\n fromTimestamp={(time as number) + currLeaderboardTimeStamps.current}\n endTimestamp={currLeaderboardTimeStamps.end}\n />{' '}\n {'left'}\n </span>\n )\n }\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.BI_WEEKLY]}\n custEle={\n <Styled.TournamentBannerCustContainer>\n <Styled.TrophyWrapper>\n <img src={ILLUSTRATIONS.TROPHY_CIRCLE} />\n </Styled.TrophyWrapper>\n </Styled.TournamentBannerCustContainer>\n }\n />\n )}\n\n {/* top streak banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME_STREAK && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Streak Stars</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME_STREAK]}\n />\n )}\n\n {/* elite circle banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Elite Circle</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME]}\n />\n )}\n </Styled.BannerWrapper>\n\n {isLoading && <CircularLoader />}\n\n {!isLoading && currLeaderboardData && (\n <Styled.ItemsWrapper topInset={0}>\n {listHeaderElement}\n {isTournamentEnded &&\n leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Styled.Banner>\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n Congratulating winners of the last tournament!\n </Text>\n </Styled.Banner>\n )}\n {currLeaderboardData.map(player => {\n return (\n <LeaderboardItemWithObserver\n key={player.rank}\n player={player}\n rank={player.rank}\n maxStreakDays={maxStreakDays}\n maxPoints={maxPoints}\n leaderboardType={leaderboards[currentLeaderBoardIndex]?.type}\n isActive={player.userId === userId}\n />\n );\n })}\n </Styled.ItemsWrapper>\n )}\n\n <Styled.ActionButtonWrapper>\n <NavigationButton\n labels={Object.values(ELeaderboardType)}\n onLeftClick={handlePrevious}\n onRightClick={handleNext}\n currIndex={currentLeaderBoardIndex}\n onClose={onClose}\n disableSwipe={isLoading || currLeaderboardData.length === 0}\n />\n </Styled.ActionButtonWrapper>\n </Styled.LeaderboardContainer>\n </Styled.Leaderboard>\n );\n};\n"],"names":["BANNER_LOTTIES","ELeaderboardType","leaderboards","Leaderboard","leaderboardData","type","userId","onClose","isLoading","listHeaderElement","currentLeaderBoardIndex","setCurrentLeaderboardIndex","useState","leaderboard","currLeaderboardData","setCurrLeaderboardData","_a","currLeaderboardTimeStamps","setCurrLeaderboardTimeStamps","time","setTimer","useTimer","isTournamentEnded","setIsTournamentEnded","maxPoints","_b","maxStreakDays","_c","playButtonSound","useCircleSounds","handlePrevious","prev","handleNext","useEffect","currType","currLeaderboard","leaderboardList","Styled.Leaderboard","jsxs","Styled.LeaderboardContainer","Styled.BannerWrapper","_d","jsx","Banner","Timer","Styled.TournamentBannerCustContainer","Styled.TrophyWrapper","ILLUSTRATIONS","_e","_f","CircularLoader","Styled.ItemsWrapper","_g","Styled.Banner","Text","player","LeaderboardItemWithObserver","Styled.ActionButtonWrapper","NavigationButton"],"mappings":";;;;;;;;;;;;;AAqBA,MAAMA,IAAmF;AAAA,EACvF,CAACC,EAAiB,eAAe,GAAG,MAClC,OAAO,4DAAyD;AAAA,EAClE,CAACA,EAAiB,QAAQ,GAAG,MAC3B,OAAO,4DAAyD;AAAA,EAClE,CAACA,EAAiB,SAAS,GAAG,MAC5B,OAAO,iEAA8D;AACzE,GAEMC,IAAe;AAAA,EACnB;AAAA,IACE,MAAM;AAAA,IACN,MAAMD,EAAiB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,MAAMA,EAAiB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,MAAMA,EAAiB;AAAA,EACzB;AACF,GAEaE,KAAc,CAAC;AAAA,EAC1B,iBAAAC;AAAA,EACA,MAAAC,IAAOJ,EAAiB;AAAA,EACxB,QAAAK;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,mBAAAC;AACF,MAAyB;;AACjB,QAAA,CAACC,GAAyBC,CAA0B,IAAIC;AAAA,IAC5DV,EAAa,UAAU,CAAeW,MAAAR,MAASQ,EAAY,IAAI;AAAA,EAAA,GAG3D,CAACC,GAAqBC,CAAsB,IAAIH,IAEpDI,IAAAZ,KAAA,gBAAAA,EAAkBC,OAAlB,gBAAAW,EAAyB,uBAAsB,CAAA,CAAE,GAE7C,CAACC,GAA2BC,CAA4B,IAAIN,EAG/D;AAAA,IACD,SAAS;AAAA,IACT,KAAK;AAAA,EAAA,CACN,GAEK,CAACO,GAAMC,CAAQ,IAAIC,GAAS,CAAC,GAC7B,CAACC,GAAmBC,CAAoB,IAAIX,EAAS,EAA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,EAAK,UAAY,eAAA,CAAA;AAAA,UAC/B,eAAgB,gBAAAA,EAAA,QAAA,EAAK,UAAM,SAAA,CAAA;AAAA,UAC3B,eAAe1C,EAAeC,EAAiB,QAAQ;AAAA,QAAA;AAAA,MACzD;AAAA,IAAA,GAEJ;AAAA,IAECO,uBAAc0C,GAAe,EAAA;AAAA,IAE7B,CAAC1C,KAAaM,KACb,gBAAAwB,EAACa,GAAA,EAAoB,UAAU,GAC5B,UAAA;AAAA,MAAA1C;AAAA,MACAa,OACC8B,IAAAlD,EAAaQ,CAAuB,MAApC,gBAAA0C,EAAuC,UAASnD,EAAiB,aAC9D,gBAAAyC,EAAAW,GAAA,EACC,4BAACC,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,2DAErC,CAAA,GACF;AAAA,MAEHxC,EAAoB,IAAI,CAAUyC,MAAA;;AAE/B,eAAA,gBAAAb;AAAA,UAACc;AAAA,UAAA;AAAA,YAEC,QAAAD;AAAA,YACA,MAAMA,EAAO;AAAA,YACb,eAAA7B;AAAA,YACA,WAAAF;AAAA,YACA,kBAAiBR,IAAAd,EAAaQ,CAAuB,MAApC,gBAAAM,EAAuC;AAAA,YACxD,UAAUuC,EAAO,WAAWjD;AAAA,UAAA;AAAA,UANvBiD,EAAO;AAAA,QAAA;AAAA,MAOd,CAEH;AAAA,IAAA,GACH;AAAA,IAGF,gBAAAb,EAACe,IAAA,EACC,UAAA,gBAAAf;AAAA,MAACgB;AAAA,MAAA;AAAA,QACC,QAAQ,OAAO,OAAOzD,CAAgB;AAAA,QACtC,aAAa6B;AAAA,QACb,cAAcE;AAAA,QACd,WAAWtB;AAAA,QACX,SAAAH;AAAA,QACA,cAAcC,KAAaM,EAAoB,WAAW;AAAA,MAAA;AAAA,IAAA,GAE9D;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ;"}
1
+ {"version":3,"file":"leaderboard.js","sources":["../../../../src/features/circle-games/leaderboard/leaderboard.tsx"],"sourcesContent":["import type {\n ILeaderboardPlayerWithPoints,\n ILeaderboardPlayerWithStreak,\n} from './dal/use-get-leaderboard-dal/use-get-leaderboard-dal-types';\nimport type { ILeaderboardProps } from './leaderboard-types';\n\nimport { useEffect, useState } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport { CircularLoader } from '../../ui/loader/circular-loader/circular-loader';\nimport Text from '../../ui/text/text';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { Banner } from './comps/banner/banner';\nimport { LeaderboardItemWithObserver } from './comps/leaderboard-item/leaderboard-item';\nimport { NavigationButton } from './comps/navigation-button/navigation-button';\nimport { Timer } from './comps/timer/timer';\nimport { ELeaderboardType } from './enums/leaderboard-type-enum';\nimport { useTimer } from './hooks';\nimport * as Styled from './leaderboard-styled';\n\n// lazy load banner lotties\nconst BANNER_LOTTIES: Record<ELeaderboardType, () => Promise<Record<string, unknown>>> = {\n [ELeaderboardType.ALL_TIME_STREAK]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.ALL_TIME]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.BI_WEEKLY]: () =>\n import('../../../assets/lotties/circle/tournament-ripple-lottie.json'),\n};\n\nconst leaderboards = [\n {\n name: 'TOURNAMENT',\n type: ELeaderboardType.BI_WEEKLY,\n },\n {\n name: 'STREAK STARS',\n type: ELeaderboardType.ALL_TIME_STREAK,\n },\n {\n name: 'ALL TIME',\n type: ELeaderboardType.ALL_TIME,\n },\n];\n\nexport const Leaderboard = ({\n leaderboardData,\n type = ELeaderboardType.BI_WEEKLY,\n userId,\n onClose,\n isLoading,\n listHeaderElement,\n onLeaderboardTypeChange,\n}: ILeaderboardProps) => {\n const [currentLeaderBoardIndex, setCurrentLeaderboardIndex] = useState(\n leaderboards.findIndex(leaderboard => type === leaderboard.type),\n );\n\n const [currLeaderboardData, setCurrLeaderboardData] = useState<\n (ILeaderboardPlayerWithPoints | ILeaderboardPlayerWithStreak)[] | []\n >(leaderboardData?.[type]?.leaderboardPlayers || []);\n\n const [currLeaderboardTimeStamps, setCurrLeaderboardTimeStamps] = useState<{\n current: number;\n end: number;\n }>({\n current: 0,\n end: 0,\n });\n\n const [time, setTimer] = useTimer(0);\n const [isTournamentEnded, setIsTournamentEnded] = useState(false);\n const maxPoints = (currLeaderboardData?.[0] as ILeaderboardPlayerWithPoints)?.points;\n const maxStreakDays = (currLeaderboardData?.[0] as ILeaderboardPlayerWithStreak)?.streakDays || 0;\n const { playButtonSound } = useCircleSounds();\n\n const handlePrevious = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev - 1 < 0) {\n return leaderboards.length - 1;\n }\n\n return prev - 1;\n });\n };\n\n const handleNext = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev + 1 === leaderboards.length) {\n return 0;\n }\n\n return prev + 1;\n });\n };\n\n useEffect(() => {\n setTimer(0);\n }, [setTimer]);\n\n useEffect(() => {\n const currType = leaderboards[currentLeaderBoardIndex]?.type;\n const currLeaderboard = currType && leaderboardData?.[currType];\n\n if (currLeaderboard) {\n const leaderboardList = currLeaderboard.leaderboardPlayers || [];\n\n if (currType === ELeaderboardType.BI_WEEKLY) {\n setCurrLeaderboardTimeStamps({\n current: currLeaderboard.currentTimestamp,\n end: currLeaderboard.endTimestamp,\n });\n\n if (currLeaderboard.currentTimestamp > currLeaderboard.endTimestamp) {\n leaderboardList.splice(10);\n setIsTournamentEnded(true);\n }\n }\n\n setCurrLeaderboardData([...leaderboardList]);\n }\n }, [currentLeaderBoardIndex, leaderboardData]);\n\n useEffect(() => {\n const currType = leaderboards[currentLeaderBoardIndex]?.type;\n\n if (currType) {\n onLeaderboardTypeChange(currType);\n }\n }, [currentLeaderBoardIndex, onLeaderboardTypeChange]);\n\n return (\n <Styled.Leaderboard>\n <Styled.LeaderboardContainer>\n <Styled.BannerWrapper>\n {/* tournament banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Banner\n isLoading={isLoading || currLeaderboardData.length === 0}\n bgFromTopPosition={-120}\n bgFromRightPosition={-110}\n primaryText={\n isTournamentEnded ? <span>New Tournament</span> : <span>Tournament</span>\n }\n secondaryText={\n isTournamentEnded ? (\n <span>Starts Soon</span>\n ) : (\n <span>\n {' '}\n <Timer\n fromTimestamp={(time as number) + currLeaderboardTimeStamps.current}\n endTimestamp={currLeaderboardTimeStamps.end}\n />{' '}\n {'left'}\n </span>\n )\n }\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.BI_WEEKLY]}\n custEle={\n <Styled.TournamentBannerCustContainer>\n <Styled.TrophyWrapper>\n <img src={ILLUSTRATIONS.TROPHY_CIRCLE} />\n </Styled.TrophyWrapper>\n </Styled.TournamentBannerCustContainer>\n }\n />\n )}\n\n {/* top streak banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME_STREAK && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Streak Stars</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME_STREAK]}\n />\n )}\n\n {/* elite circle banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Elite Circle</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME]}\n />\n )}\n </Styled.BannerWrapper>\n\n {isLoading && <CircularLoader />}\n\n {!isLoading && currLeaderboardData && (\n <Styled.ItemsWrapper topInset={0}>\n {listHeaderElement}\n {isTournamentEnded &&\n leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Styled.Banner>\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n Congratulating winners of the last tournament!\n </Text>\n </Styled.Banner>\n )}\n {currLeaderboardData.map(player => {\n return (\n <LeaderboardItemWithObserver\n key={player.rank}\n player={player}\n rank={player.rank}\n maxStreakDays={maxStreakDays}\n maxPoints={maxPoints}\n leaderboardType={leaderboards[currentLeaderBoardIndex]?.type}\n isActive={player.userId === userId}\n />\n );\n })}\n </Styled.ItemsWrapper>\n )}\n\n <Styled.ActionButtonWrapper>\n <NavigationButton\n labels={Object.values(ELeaderboardType)}\n onLeftClick={handlePrevious}\n onRightClick={handleNext}\n currIndex={currentLeaderBoardIndex}\n onClose={onClose}\n disableSwipe={isLoading || currLeaderboardData.length === 0}\n />\n </Styled.ActionButtonWrapper>\n </Styled.LeaderboardContainer>\n </Styled.Leaderboard>\n );\n};\n"],"names":["BANNER_LOTTIES","ELeaderboardType","leaderboards","Leaderboard","leaderboardData","type","userId","onClose","isLoading","listHeaderElement","onLeaderboardTypeChange","currentLeaderBoardIndex","setCurrentLeaderboardIndex","useState","leaderboard","currLeaderboardData","setCurrLeaderboardData","_a","currLeaderboardTimeStamps","setCurrLeaderboardTimeStamps","time","setTimer","useTimer","isTournamentEnded","setIsTournamentEnded","maxPoints","_b","maxStreakDays","_c","playButtonSound","useCircleSounds","handlePrevious","prev","handleNext","useEffect","currType","currLeaderboard","leaderboardList","Styled.Leaderboard","jsxs","Styled.LeaderboardContainer","Styled.BannerWrapper","_d","jsx","Banner","Timer","Styled.TournamentBannerCustContainer","Styled.TrophyWrapper","ILLUSTRATIONS","_e","_f","CircularLoader","Styled.ItemsWrapper","_g","Styled.Banner","Text","player","LeaderboardItemWithObserver","Styled.ActionButtonWrapper","NavigationButton"],"mappings":";;;;;;;;;;;;;AAqBA,MAAMA,IAAmF;AAAA,EACvF,CAACC,EAAiB,eAAe,GAAG,MAClC,OAAO,4DAAyD;AAAA,EAClE,CAACA,EAAiB,QAAQ,GAAG,MAC3B,OAAO,4DAAyD;AAAA,EAClE,CAACA,EAAiB,SAAS,GAAG,MAC5B,OAAO,i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AAAwB,EAACa,GAAA,EAAoB,UAAU,GAC5B,UAAA;AAAA,MAAA3C;AAAA,MACAc,OACC8B,IAAAnD,EAAaS,CAAuB,MAApC,gBAAA0C,EAAuC,UAASpD,EAAiB,aAC9D,gBAAA0C,EAAAW,IAAA,EACC,4BAACC,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,2DAErC,CAAA,GACF;AAAA,MAEHxC,EAAoB,IAAI,CAAUyC,MAAA;;AAE/B,eAAA,gBAAAb;AAAA,UAACc;AAAA,UAAA;AAAA,YAEC,QAAAD;AAAA,YACA,MAAMA,EAAO;AAAA,YACb,eAAA7B;AAAA,YACA,WAAAF;AAAA,YACA,kBAAiBR,IAAAf,EAAaS,CAAuB,MAApC,gBAAAM,EAAuC;AAAA,YACxD,UAAUuC,EAAO,WAAWlD;AAAA,UAAA;AAAA,UANvBkD,EAAO;AAAA,QAAA;AAAA,MAOd,CAEH;AAAA,IAAA,GACH;AAAA,IAGF,gBAAAb,EAACe,IAAA,EACC,UAAA,gBAAAf;AAAA,MAACgB;AAAA,MAAA;AAAA,QACC,QAAQ,OAAO,OAAO1D,CAAgB;AAAA,QACtC,aAAa8B;AAAA,QACb,cAAcE;AAAA,QACd,WAAWtB;AAAA,QACX,SAAAJ;AAAA,QACA,cAAcC,KAAaO,EAAoB,WAAW;AAAA,MAAA;AAAA,IAAA,GAE9D;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ;"}
package/dist/index.d.ts CHANGED
@@ -1207,6 +1207,18 @@ declare interface IIconButtonProps extends Omit<IButtonProps, 'label' | 'shape'
1207
1207
  customBgColor?: TColorNames;
1208
1208
  }
1209
1209
 
1210
+ declare interface IInfoBarProps extends IInfoBarWrapperProps {
1211
+ hue: THueNames;
1212
+ children: React.ReactNode;
1213
+ }
1214
+
1215
+ declare interface IInfoBarWrapperProps {
1216
+ paddingX?: number;
1217
+ paddingY?: number;
1218
+ marginX?: number;
1219
+ marginY?: number;
1220
+ }
1221
+
1210
1222
  export declare interface IInfoMessage {
1211
1223
  message: string;
1212
1224
  position: 'top' | 'bottom';
@@ -1351,6 +1363,7 @@ declare interface ILeaderboardProps {
1351
1363
  onClose: () => void;
1352
1364
  isLoading: boolean;
1353
1365
  listHeaderElement: ReactNode;
1366
+ onLeaderboardTypeChange: (type: ELeaderboardType) => void;
1354
1367
  }
1355
1368
 
1356
1369
  declare interface ILearningSheetData {
@@ -1979,6 +1992,8 @@ export declare enum IndicatorType {
1979
1992
 
1980
1993
  export declare const Info2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
1981
1994
 
1995
+ export declare const InfoBar: React.FC<IInfoBarProps>;
1996
+
1982
1997
  export declare const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
1983
1998
 
1984
1999
  export declare interface INudgeProps {
@@ -3257,7 +3272,7 @@ export declare const JourneyProvider: FC<{
3257
3272
  children: ReactNode;
3258
3273
  }>;
3259
3274
 
3260
- export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, listHeaderElement, }: ILeaderboardProps) => JSX_2.Element;
3275
+ export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, listHeaderElement, onLeaderboardTypeChange, }: ILeaderboardProps) => JSX_2.Element;
3261
3276
 
3262
3277
  export declare const LearnosityPreloader: FC<PropsWithChildren<ILearnosityPreloaderProps>>;
3263
3278
 
package/dist/index.js CHANGED
@@ -141,91 +141,92 @@ import { default as na } from "./features/chapters/lpar-milestone-chapter/lpar-m
141
141
  import { default as Ia } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
142
142
  import { checkIfPPTNodeType as Ta } from "./features/chapters/lpar-chapter/utils/index.js";
143
143
  import { GAME_LAUNCHER_ASSET_PADDING as Sa, GAME_LAUNCHER_SIZE as Ca } from "./features/circle-games/game-launcher/comps/segmented-game-card/constants.js";
144
- import { useGetLeaderboardDal as Pa } from "./features/circle-games/leaderboard/dal/use-get-leaderboard-dal/use-get-leaderboard-dal.js";
145
- import { ELeaderboardType as ha } from "./features/circle-games/leaderboard/enums/leaderboard-type-enum.js";
146
- import { useCircleSounds as ka } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js";
147
- import { CircleSoundKey as Na } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js";
148
- import { Tutorial as Oa } from "./features/circle-games/games/tutorial/tutorial.js";
149
- import { WebView as Da } from "./features/circle-games/games/web-view/web-view.js";
150
- import { GameId as ya, LessonId as Ba, MiniGameId as ga, ProjectId as ba, PuzzleId as Ua } from "./features/circle-games/games/web-view/enums/project-ids-enum.js";
151
- import { ProjectOutcome as Wa } from "./features/circle-games/games/web-view/enums/project-outcomes-enum.js";
152
- import { WebViewEvent as wa } from "./features/circle-games/games/web-view/enums/web-view-events-enum.js";
153
- import { ProjectType as Ya } from "./features/circle-games/games/web-view/enums/project-type-enum.js";
154
- import { PlayerType as Fa } from "./features/circle-games/games/web-view/enums/player-type-enum.js";
155
- import { IStatsToAwardErrorCode as ja } from "./features/circle-games/games/web-view/web-view-types.js";
156
- import { CIRCLE_ONBOARDING_ANALYTICS_STEPS as Za } from "./features/circle-games/enum/circle-onboarding-steps.js";
157
- import { CIRCLE_ACTION_IDS as Xa } from "./features/circle-games/enum/circle-action-ids.js";
158
- import { GameLauncher as ef } from "./features/circle-games/game-launcher/game-launcher.js";
159
- import { useGetCircleHomeDetailsDal as rf } from "./features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js";
160
- import { usePostUpdateCircleJourneyDal as af } from "./features/circle-games/game-launcher/dal/use-post-update-circle-journey-dal/use-post-update-circle-journey-dal.js";
161
- import { Leaderboard as sf } from "./features/circle-games/leaderboard/leaderboard.js";
162
- import { BackgroundImage as pf, CircularSteps as mf } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
163
- import { SplashScreen as df } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
164
- import { SignUp as nf } from "./features/circle-games/sign-up/sign-up.js";
165
- import { default as If } from "./features/cue-canvas/cue-canvas-provider.js";
166
- import { default as Ef } from "./features/cue-canvas/toolbar/toolbar.js";
167
- import { default as Cf } from "./features/cue-canvas/cue-canvas.js";
168
- import { default as Pf } from "./features/cue-canvas/hooks/use-canvas-sync-broker.js";
169
- import { default as hf } from "./features/communication/hooks/use-inclass-message-broker/use-inclass-message-broker.js";
170
- import { default as kf } from "./features/communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
171
- import { EVENTS as Nf } from "./features/communication/pub-sub/constants.js";
172
- import { useInClassActionDispatcher as Of, useInClassActionListener as Rf } from "./features/communication/pub-sub/hooks.js";
173
- import { default as Gf } from "./features/trial-session/trial-session.js";
174
- import { EClassTimeAlertLevel as Bf } from "./features/trial-session/trial-session-types.js";
175
- import { useClassTimeAlerts as bf } from "./features/trial-session/hooks/use-class-time-alerts.js";
176
- import { default as vf } from "./features/extra-practice/extra-practice.js";
177
- import { useAutoPlayPermission as Vf } from "./features/hooks/use-auto-play-permission/use-auto-play-permission.js";
178
- import { JOURNEY_ID_STUDENT as Qf } from "./features/journey/journey-id/journey-id-student.js";
179
- import { useJourney as Kf } from "./features/journey/use-journey/use-journey.js";
180
- import { JourneyProvider as Jf } from "./features/journey/use-journey/journey-context-provider.js";
181
- import { IndicatorType as zf } from "./features/journey/use-journey/constants.js";
182
- import { Coachmark as qf } from "./features/journey/comps/coachmark/coachmark.js";
183
- import { default as $f } from "./features/milestone/create/submit-modal/submit-modal.js";
184
- import { default as os } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
185
- import { default as ts } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
186
- import { default as fs } from "./features/milestone/create/milestone-create-container.js";
187
- import { default as ls } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
188
- import { default as ms } from "./features/milestone/outcome/milestone-outcome-container.js";
189
- import { default as ds } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
190
- import { default as ns } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
191
- import { default as Is } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
192
- import { default as Ts } from "./features/milestone/edit/goal-edit-container.js";
193
- import { default as Ss } from "./features/milestone/edit/milestone-edit-container.js";
194
- import { default as As } from "./features/milestone/milestone-list-container/milestone-list-container.js";
195
- import { default as _s } from "./features/milestone/milestone-action-widget/milestone-action-widget.js";
196
- import { default as Ls } from "./features/milestone/start/milestone-start.js";
197
- import { default as Ms } from "./features/milestone/milestone-tests/tests-creation/tests-creation.js";
198
- import { ACHIEVEMENT_ACTIONS as Hs, STAGES as Os } from "./features/milestone/outcome/milestone-outcome-constants.js";
199
- import { invalidateMilestonesData as Ds, useGetAllMilestonesdata as Gs } from "./features/milestone/milestone-list-container/api/get-milestones.js";
200
- import { invalidateTestHelpData as Bs, useGetTestHelpData as gs } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
201
- import { invalidateMilestoneResources as Us, useGetMilestoneResources as vs } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
202
- import { default as Vs } from "./features/pointer-sync/pointer.js";
203
- import { default as Qs } from "./features/pointer-sync/hooks/use-pointer-sync.js";
204
- import { PostGameStats as Ks } from "./features/post-game-stats/post-game-stats.js";
205
- import { EPostGameStat as Js } from "./features/post-game-stats/enums/post-game-stats-enum.js";
206
- import { default as zs } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
207
- import { default as qs } from "./features/sheet-tools/tool-header/tool-header.js";
208
- import { default as $s } from "./features/sheets/sheets-list/sheets-list.js";
209
- import { default as ol } from "./features/sheets/reference-sheet/reference-sheet.js";
210
- import { isV3Worksheet as tl, isV3WorksheetAttempt as al } from "./features/sheets/utils/is-v3-worksheet.js";
211
- import { COMPLETED_SHEET_STATE as sl, NODE_LABELS as ll, NODE_SUB_GROUP as pl, NODE_TYPE as ml, PYTHON_NODE_TYPES as ul, REWARDS_LIST as dl, SHEET_ACTIONS as xl, SHEET_ATTEMPT_LOCATION as nl, SHEET_ATTEMPT_LOCATION_MAP as cl, SHEET_ATTEMPT_STATE as Il, SHEET_DATA_TYPE as il, SHEET_STATE as Tl } from "./features/sheets/constants/sheet.js";
212
- import { default as Sl } from "./features/student-details/student-details.js";
213
- import { default as Al } from "./features/utils/load-script.js";
214
- import { ACTION_BAR_HEIGHT as _l, QUESTIONS_GAP as hl, QUESTION_WIDTH as Ll, TOP_NAVIGATION_HEIGHT as kl } from "./features/worksheet/worksheet/constants.js";
215
- import { isOkayTypeQuestion as Nl } from "./features/worksheet/worksheet/worksheet-helpers.js";
216
- import { default as Ol } from "./features/worksheet/worksheet/worksheet-container.js";
217
- import { default as Dl } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
218
- import { default as yl } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
219
- import { default as gl } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
220
- import { default as Ul } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
221
- import { default as Wl } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
222
- import { default as wl } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
223
- import { default as Yl } from "./features/maintenance/maintenance.js";
144
+ import { InfoBar as Pa } from "./features/circle-games/leaderboard/comps/info-bar/info-bar.js";
145
+ import { useGetLeaderboardDal as ha } from "./features/circle-games/leaderboard/dal/use-get-leaderboard-dal/use-get-leaderboard-dal.js";
146
+ import { ELeaderboardType as ka } from "./features/circle-games/leaderboard/enums/leaderboard-type-enum.js";
147
+ import { useCircleSounds as Na } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js";
148
+ import { CircleSoundKey as Oa } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js";
149
+ import { Tutorial as Da } from "./features/circle-games/games/tutorial/tutorial.js";
150
+ import { WebView as ya } from "./features/circle-games/games/web-view/web-view.js";
151
+ import { GameId as ga, LessonId as ba, MiniGameId as Ua, ProjectId as va, PuzzleId as Wa } from "./features/circle-games/games/web-view/enums/project-ids-enum.js";
152
+ import { ProjectOutcome as wa } from "./features/circle-games/games/web-view/enums/project-outcomes-enum.js";
153
+ import { WebViewEvent as Ya } from "./features/circle-games/games/web-view/enums/web-view-events-enum.js";
154
+ import { ProjectType as Fa } from "./features/circle-games/games/web-view/enums/project-type-enum.js";
155
+ import { PlayerType as ja } from "./features/circle-games/games/web-view/enums/player-type-enum.js";
156
+ import { IStatsToAwardErrorCode as Za } from "./features/circle-games/games/web-view/web-view-types.js";
157
+ import { CIRCLE_ONBOARDING_ANALYTICS_STEPS as Xa } from "./features/circle-games/enum/circle-onboarding-steps.js";
158
+ import { CIRCLE_ACTION_IDS as ef } from "./features/circle-games/enum/circle-action-ids.js";
159
+ import { GameLauncher as rf } from "./features/circle-games/game-launcher/game-launcher.js";
160
+ import { useGetCircleHomeDetailsDal as af } from "./features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js";
161
+ import { usePostUpdateCircleJourneyDal as sf } from "./features/circle-games/game-launcher/dal/use-post-update-circle-journey-dal/use-post-update-circle-journey-dal.js";
162
+ import { Leaderboard as pf } from "./features/circle-games/leaderboard/leaderboard.js";
163
+ import { BackgroundImage as uf, CircularSteps as df } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
164
+ import { SplashScreen as nf } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
165
+ import { SignUp as If } from "./features/circle-games/sign-up/sign-up.js";
166
+ import { default as Ef } from "./features/cue-canvas/cue-canvas-provider.js";
167
+ import { default as Cf } from "./features/cue-canvas/toolbar/toolbar.js";
168
+ import { default as Pf } from "./features/cue-canvas/cue-canvas.js";
169
+ import { default as hf } from "./features/cue-canvas/hooks/use-canvas-sync-broker.js";
170
+ import { default as kf } from "./features/communication/hooks/use-inclass-message-broker/use-inclass-message-broker.js";
171
+ import { default as Nf } from "./features/communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
172
+ import { EVENTS as Of } from "./features/communication/pub-sub/constants.js";
173
+ import { useInClassActionDispatcher as Df, useInClassActionListener as Gf } from "./features/communication/pub-sub/hooks.js";
174
+ import { default as Bf } from "./features/trial-session/trial-session.js";
175
+ import { EClassTimeAlertLevel as bf } from "./features/trial-session/trial-session-types.js";
176
+ import { useClassTimeAlerts as vf } from "./features/trial-session/hooks/use-class-time-alerts.js";
177
+ import { default as Vf } from "./features/extra-practice/extra-practice.js";
178
+ import { useAutoPlayPermission as Qf } from "./features/hooks/use-auto-play-permission/use-auto-play-permission.js";
179
+ import { JOURNEY_ID_STUDENT as Kf } from "./features/journey/journey-id/journey-id-student.js";
180
+ import { useJourney as Jf } from "./features/journey/use-journey/use-journey.js";
181
+ import { JourneyProvider as zf } from "./features/journey/use-journey/journey-context-provider.js";
182
+ import { IndicatorType as qf } from "./features/journey/use-journey/constants.js";
183
+ import { Coachmark as $f } from "./features/journey/comps/coachmark/coachmark.js";
184
+ import { default as os } from "./features/milestone/create/submit-modal/submit-modal.js";
185
+ import { default as ts } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
186
+ import { default as fs } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
187
+ import { default as ls } from "./features/milestone/create/milestone-create-container.js";
188
+ import { default as ms } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
189
+ import { default as ds } from "./features/milestone/outcome/milestone-outcome-container.js";
190
+ import { default as ns } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
191
+ import { default as Is } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
192
+ import { default as Ts } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
193
+ import { default as Ss } from "./features/milestone/edit/goal-edit-container.js";
194
+ import { default as As } from "./features/milestone/edit/milestone-edit-container.js";
195
+ import { default as _s } from "./features/milestone/milestone-list-container/milestone-list-container.js";
196
+ import { default as Ls } from "./features/milestone/milestone-action-widget/milestone-action-widget.js";
197
+ import { default as Ms } from "./features/milestone/start/milestone-start.js";
198
+ import { default as Hs } from "./features/milestone/milestone-tests/tests-creation/tests-creation.js";
199
+ import { ACHIEVEMENT_ACTIONS as Rs, STAGES as Ds } from "./features/milestone/outcome/milestone-outcome-constants.js";
200
+ import { invalidateMilestonesData as ys, useGetAllMilestonesdata as Bs } from "./features/milestone/milestone-list-container/api/get-milestones.js";
201
+ import { invalidateTestHelpData as bs, useGetTestHelpData as Us } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
202
+ import { invalidateMilestoneResources as Ws, useGetMilestoneResources as Vs } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
203
+ import { default as Qs } from "./features/pointer-sync/pointer.js";
204
+ import { default as Ks } from "./features/pointer-sync/hooks/use-pointer-sync.js";
205
+ import { PostGameStats as Js } from "./features/post-game-stats/post-game-stats.js";
206
+ import { EPostGameStat as zs } from "./features/post-game-stats/enums/post-game-stats-enum.js";
207
+ import { default as qs } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
208
+ import { default as $s } from "./features/sheet-tools/tool-header/tool-header.js";
209
+ import { default as ol } from "./features/sheets/sheets-list/sheets-list.js";
210
+ import { default as tl } from "./features/sheets/reference-sheet/reference-sheet.js";
211
+ import { isV3Worksheet as fl, isV3WorksheetAttempt as sl } from "./features/sheets/utils/is-v3-worksheet.js";
212
+ import { COMPLETED_SHEET_STATE as pl, NODE_LABELS as ml, NODE_SUB_GROUP as ul, NODE_TYPE as dl, PYTHON_NODE_TYPES as xl, REWARDS_LIST as nl, SHEET_ACTIONS as cl, SHEET_ATTEMPT_LOCATION as Il, SHEET_ATTEMPT_LOCATION_MAP as il, SHEET_ATTEMPT_STATE as Tl, SHEET_DATA_TYPE as El, SHEET_STATE as Sl } from "./features/sheets/constants/sheet.js";
213
+ import { default as Al } from "./features/student-details/student-details.js";
214
+ import { default as _l } from "./features/utils/load-script.js";
215
+ import { ACTION_BAR_HEIGHT as Ll, QUESTIONS_GAP as kl, QUESTION_WIDTH as Ml, TOP_NAVIGATION_HEIGHT as Nl } from "./features/worksheet/worksheet/constants.js";
216
+ import { isOkayTypeQuestion as Ol } from "./features/worksheet/worksheet/worksheet-helpers.js";
217
+ import { default as Dl } from "./features/worksheet/worksheet/worksheet-container.js";
218
+ import { default as yl } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
219
+ import { default as gl } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
220
+ import { default as Ul } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
221
+ import { default as Wl } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
222
+ import { default as wl } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
223
+ import { default as Yl } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
224
+ import { default as Fl } from "./features/maintenance/maintenance.js";
224
225
  export {
225
- Hs as ACHIEVEMENT_ACTIONS,
226
+ Rs as ACHIEVEMENT_ACTIONS,
226
227
  Pr as AccordionSection,
227
- ds as AchievementNotShareReasonModal,
228
- ns as AchievementShareInstructionModal,
228
+ ns as AchievementNotShareReasonModal,
229
+ Is as AchievementShareInstructionModal,
229
230
  u as AlertIcon,
230
231
  ct as AppLoader,
231
232
  Wr as ArcButton,
@@ -234,7 +235,7 @@ export {
234
235
  bt as Avatar,
235
236
  Xo as Back2Icon,
236
237
  x as BackIcon,
237
- pf as BackgroundImage,
238
+ uf as BackgroundImage,
238
239
  i as Bin2Icon,
239
240
  c as BinIcon,
240
241
  P as Book2Icon,
@@ -244,14 +245,14 @@ export {
244
245
  N as Bulb2Icon,
245
246
  k as BulbIcon,
246
247
  Dr as Button,
247
- Xa as CIRCLE_ACTION_IDS,
248
- Za as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
249
- sl as COMPLETED_SHEET_STATE,
248
+ ef as CIRCLE_ACTION_IDS,
249
+ Xa as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
250
+ pl as COMPLETED_SHEET_STATE,
250
251
  O as CalendarIcon,
251
252
  kt as Callout,
252
253
  at as CascadingSelectInput,
253
254
  la as Chapter,
254
- ts as ChapterClearanceConfirmationModal,
255
+ fs as ChapterClearanceConfirmationModal,
255
256
  ma as ChaptersList,
256
257
  ur as ChatIcon,
257
258
  y as Check2Icon,
@@ -261,52 +262,52 @@ export {
261
262
  ar as ChevronDownIcon,
262
263
  rr as ChevronLeftIcon,
263
264
  er as ChevronRightIcon,
264
- Na as CircleSoundKey,
265
+ Oa as CircleSoundKey,
265
266
  it as CircularLoader,
266
- mf as CircularSteps,
267
+ df as CircularSteps,
267
268
  yr as Clickable,
268
269
  g as ClipboardIcon,
269
270
  W as Clock2Icon,
270
271
  U as ClockIcon,
271
- qf as Coachmark,
272
+ $f as Coachmark,
272
273
  w as CodeIcon,
273
274
  kr as ContextMenu,
274
275
  Y as CopyIcon,
275
276
  Nr as CountdownTimer,
276
277
  F as CrossIcon,
277
- Cf as CueCanvas,
278
- Ef as CueCanvasController,
279
- If as CueCanvasProvider,
278
+ Pf as CueCanvas,
279
+ Cf as CueCanvasController,
280
+ Ef as CueCanvasProvider,
280
281
  j as CueRocket,
281
282
  xr as CuemathLogo,
282
283
  Z as DashArrowIcon,
283
- zs as DesmosCalculator,
284
+ qs as DesmosCalculator,
284
285
  X as DownIcon,
285
286
  ee as DraftIcon,
286
287
  re as DragIcon,
287
- Bf as EClassTimeAlertLevel,
288
- ha as ELeaderboardType,
289
- Js as EPostGameStat,
290
- Nf as EVENTS,
288
+ bf as EClassTimeAlertLevel,
289
+ ka as ELeaderboardType,
290
+ zs as EPostGameStat,
291
+ Of as EVENTS,
291
292
  se as Edit2Icon,
292
293
  ae as EditIcon,
293
- Is as EditMilestoneModal,
294
+ Ts as EditMilestoneModal,
294
295
  pe as EditStarIcon,
295
296
  ue as EraserIcon,
296
297
  wr as Error,
297
- qs as ExpandableHeader,
298
- vf as ExtraPractice,
298
+ $s as ExpandableHeader,
299
+ Vf as ExtraPractice,
299
300
  ce as Eye2Icon,
300
301
  xe as EyeIcon,
301
302
  xt as FlexView,
302
303
  Sa as GAME_LAUNCHER_ASSET_PADDING,
303
304
  Ca as GAME_LAUNCHER_SIZE,
304
305
  sr as GameIcon,
305
- ya as GameId,
306
- ef as GameLauncher,
307
- os as GoalCreationConfirmationModal,
308
- ls as GoalDraftEdit,
309
- Ts as GoalEdit,
306
+ ga as GameId,
307
+ rf as GameLauncher,
308
+ ts as GoalCreationConfirmationModal,
309
+ ms as GoalDraftEdit,
310
+ Ss as GoalEdit,
310
311
  et as GooglePlacesSearchInput,
311
312
  r as GradeSelector,
312
313
  ie as HandIcon,
@@ -315,81 +316,82 @@ export {
315
316
  Pe as HomeIcon,
316
317
  s as ILLUSTRATIONS,
317
318
  p as IMAGES,
318
- ja as IStatsToAwardErrorCode,
319
+ Za as IStatsToAwardErrorCode,
319
320
  gr as IconButton,
320
321
  he as ImageIcon,
321
- zf as IndicatorType,
322
+ qf as IndicatorType,
322
323
  Ne as Info2Icon,
324
+ Pa as InfoBar,
323
325
  ke as InfoIcon,
324
- Qf as JOURNEY_ID_STUDENT,
325
- Jf as JourneyProvider,
326
+ Kf as JOURNEY_ID_STUDENT,
327
+ zf as JourneyProvider,
326
328
  da as LPARChapter,
327
329
  na as LPARMilestoneChapter,
328
- sf as Leaderboard,
329
- Ul as LearnosityPreloader,
330
+ pf as Leaderboard,
331
+ Wl as LearnosityPreloader,
330
332
  Oe as LeftIcon,
331
- Ba as LessonId,
333
+ ba as LessonId,
332
334
  ye as Lock2Icon,
333
335
  De as LockIcon,
334
- Yl as Maintenance,
335
- _s as MilestoneActionWidget,
336
- fs as MilestoneCreate,
337
- Ss as MilestoneEdit,
338
- As as MilestoneList,
339
- ms as MilestoneOutcome,
340
- Ls as MilestoneStart,
341
- ga as MiniGameId,
336
+ Fl as Maintenance,
337
+ Ls as MilestoneActionWidget,
338
+ ls as MilestoneCreate,
339
+ As as MilestoneEdit,
340
+ _s as MilestoneList,
341
+ ds as MilestoneOutcome,
342
+ Ms as MilestoneStart,
343
+ Ua as MiniGameId,
342
344
  Ue as Minus2Icon,
343
345
  ge as MinusIcon,
344
346
  We as MistakeIcon,
345
347
  we as Mobile,
346
348
  Ye as MoreVerticalIcon,
347
349
  fa as MultiTabBlocker,
348
- ll as NODE_LABELS,
349
- pl as NODE_SUB_GROUP,
350
- ml as NODE_TYPE,
350
+ ml as NODE_LABELS,
351
+ ul as NODE_SUB_GROUP,
352
+ dl as NODE_TYPE,
351
353
  cr as Next2Icon,
352
354
  Fe as NextIcon,
353
355
  Or as Nudge,
354
356
  st as NumRangeInput,
355
357
  qt as PLATFORM_EVENTS_STUDENT,
356
358
  $t as PLATFORM_EVENTS_TEACHER,
357
- ul as PYTHON_NODE_TYPES,
359
+ xl as PYTHON_NODE_TYPES,
358
360
  je as PencilIcon,
359
361
  pt as PercentileInput,
360
362
  zt as PerfectHits,
361
363
  eo as Play2Icon,
362
364
  Xe as PlayIcon,
363
- Fa as PlayerType,
365
+ ja as PlayerType,
364
366
  ao as Plus2Icon,
365
367
  ro as PlusIcon,
366
368
  Ze as PointerIcon,
367
- Ks as PostGameStats,
369
+ Js as PostGameStats,
368
370
  so as PracticeIcon,
369
- Dl as PreviewWorksheet,
371
+ yl as PreviewWorksheet,
370
372
  po as ProgressIcon,
371
- ba as ProjectId,
372
- Wa as ProjectOutcome,
373
- Ya as ProjectType,
374
- Ua as PuzzleId,
373
+ va as ProjectId,
374
+ wa as ProjectOutcome,
375
+ Fa as ProjectType,
376
+ Wa as PuzzleId,
375
377
  uo as QuestionIcon,
376
378
  no as QuestionLetterIcon,
377
- dl as REWARDS_LIST,
379
+ nl as REWARDS_LIST,
378
380
  Et as RadioCard,
379
381
  jr as RadioInput,
380
382
  Io as RedoIcon,
381
- ol as ReferenceSheet,
382
- Vs as RemotePeerPointer,
383
+ tl as ReferenceSheet,
384
+ Qs as RemotePeerPointer,
383
385
  To as RightIcon,
384
386
  So as RulerIcon,
385
387
  Ia as SATSheetSummary,
386
- xl as SHEET_ACTIONS,
387
- nl as SHEET_ATTEMPT_LOCATION,
388
- cl as SHEET_ATTEMPT_LOCATION_MAP,
389
- Il as SHEET_ATTEMPT_STATE,
390
- il as SHEET_DATA_TYPE,
391
- Tl as SHEET_STATE,
392
- Os as STAGES,
388
+ cl as SHEET_ACTIONS,
389
+ Il as SHEET_ATTEMPT_LOCATION,
390
+ il as SHEET_ATTEMPT_LOCATION_MAP,
391
+ Tl as SHEET_ATTEMPT_STATE,
392
+ El as SHEET_DATA_TYPE,
393
+ Sl as SHEET_STATE,
394
+ Ds as STAGES,
393
395
  zo as ScribbleIcon,
394
396
  Ao as SearchIcon,
395
397
  Xr as SearchableSelectInput,
@@ -397,33 +399,33 @@ export {
397
399
  Zr as SelectInput,
398
400
  ut as SelectionCards,
399
401
  Kt as Separator,
400
- gl as SheetError,
401
- $s as SheetList,
402
- yl as SheetLocked,
403
- nf as SignUp,
402
+ Ul as SheetError,
403
+ ol as SheetList,
404
+ gl as SheetLocked,
405
+ If as SignUp,
404
406
  Zo as SketchIcon,
405
407
  Mo as Skip2Icon,
406
408
  Lo as SkipIcon,
407
- df as SplashScreen,
409
+ nf as SplashScreen,
408
410
  Ho as Star2Icon,
409
411
  _o as StarIcon,
410
412
  a as Stepper,
411
413
  Qt as StreakIcon,
412
414
  Ro as StrikedEyeIcon,
413
- Sl as StudentDetails,
414
- $f as SubmitMilestoneModal,
415
+ Al as StudentDetails,
416
+ os as SubmitMilestoneModal,
415
417
  Go as SwitchIcon,
416
418
  Vt as TabComponent,
417
419
  ht as Tag,
418
- Ms as TestsCreation,
420
+ Hs as TestsCreation,
419
421
  Pt as Text,
420
422
  Ur as TextButton,
421
423
  rt as TextInput,
422
424
  Bo as TickIcon,
423
425
  vt as TimeLeftTimeline,
424
- Gf as TrialSession,
426
+ Bf as TrialSession,
425
427
  bo as TrophyIcon,
426
- Oa as Tutorial,
428
+ Da as Tutorial,
427
429
  pr as TutoringIcon,
428
430
  Nt as UIContext,
429
431
  vo as UndoIcon,
@@ -433,45 +435,45 @@ export {
433
435
  Ko as UserIcon,
434
436
  Jt as Video,
435
437
  oa as WHITELIST_EVENTS,
436
- _l as WORKSHEET_ACTION_BAR_HEIGHT,
437
- hl as WORKSHEET_QUESTIONS_GAP,
438
- Ll as WORKSHEET_QUESTION_WIDTH,
439
- kl as WORKSHEET_TOP_NAVIGATION_HEIGHT,
440
- Da as WebView,
441
- wa as WebViewEvent,
442
- Ol as Worksheet,
438
+ Ll as WORKSHEET_ACTION_BAR_HEIGHT,
439
+ kl as WORKSHEET_QUESTIONS_GAP,
440
+ Ml as WORKSHEET_QUESTION_WIDTH,
441
+ Nl as WORKSHEET_TOP_NAVIGATION_HEIGHT,
442
+ ya as WebView,
443
+ Ya as WebViewEvent,
444
+ Dl as Worksheet,
443
445
  Ta as checkIfPPTNodeType,
444
446
  Bt as getTheme,
445
- Us as invalidateMilestoneResources,
446
- Ds as invalidateMilestonesData,
447
- Bs as invalidateTestHelpData,
448
- Nl as isOkayTypeQuestion,
449
- tl as isV3Worksheet,
450
- al as isV3WorksheetAttempt,
451
- Al as loadScript,
452
- Vf as useAutoPlayPermission,
453
- Pf as useCanvasSyncBroker,
454
- ka as useCircleSounds,
455
- bf as useClassTimeAlerts,
447
+ Ws as invalidateMilestoneResources,
448
+ ys as invalidateMilestonesData,
449
+ bs as invalidateTestHelpData,
450
+ Ol as isOkayTypeQuestion,
451
+ fl as isV3Worksheet,
452
+ sl as isV3WorksheetAttempt,
453
+ _l as loadScript,
454
+ Qf as useAutoPlayPermission,
455
+ hf as useCanvasSyncBroker,
456
+ Na as useCircleSounds,
457
+ vf as useClassTimeAlerts,
456
458
  Gt as useContextMenuClickHandler,
457
459
  Cr as useForceReload,
458
- Gs as useGetAllMilestonesdata,
459
- rf as useGetCircleHomeDetailsDal,
460
- Pa as useGetLeaderboardDal,
461
- vs as useGetMilestoneResources,
462
- gs as useGetTestHelpData,
463
- Of as useInClassActionDispatcher,
464
- Rf as useInClassActionListener,
465
- hf as useInClassMessageBroker,
466
- Wl as useIsLearnosityLoaded,
460
+ Bs as useGetAllMilestonesdata,
461
+ af as useGetCircleHomeDetailsDal,
462
+ ha as useGetLeaderboardDal,
463
+ Vs as useGetMilestoneResources,
464
+ Us as useGetTestHelpData,
465
+ Df as useInClassActionDispatcher,
466
+ Gf as useInClassActionListener,
467
+ kf as useInClassMessageBroker,
468
+ wl as useIsLearnosityLoaded,
467
469
  ta as useIsTabBlocked,
468
- Kf as useJourney,
469
- Qs as usePointerSync,
470
- af as usePostUpdateCircleJourneyDal,
470
+ Jf as useJourney,
471
+ Ks as usePointerSync,
472
+ sf as usePostUpdateCircleJourneyDal,
471
473
  Rt as useTrackingContext,
472
- kf as useTrialSessionMessageBroker,
474
+ Nf as useTrialSessionMessageBroker,
473
475
  Ht as useUIContext,
474
- wl as useWorksheetLayout,
476
+ Yl as useWorksheetLayout,
475
477
  Er as useZoomDisable
476
478
  };
477
479
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "2.8.25-rj-8",
3
+ "version": "2.8.25-rj-10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"