@cuemath/leap 2.8.62-rj-0.1 → 2.8.62-rj-0.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.
@@ -1,62 +1,69 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { memo as x, useRef as D, useCallback as
|
3
|
-
import { LOTTIE as
|
4
|
-
import { JOURNEY_ID_STUDENT as
|
5
|
-
import { useJourney as
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
2
|
+
import { memo as x, useRef as D, useCallback as m, useMemo as V } from "react";
|
3
|
+
import { LOTTIE as Y } from "../../../assets/lottie/lottie.js";
|
4
|
+
import { JOURNEY_ID_STUDENT as E } from "../../journey/journey-id/journey-id-student.js";
|
5
|
+
import { useJourney as g } from "../../journey/use-journey/use-journey.js";
|
6
6
|
import { CircularLoader as B } from "../../ui/loader/circular-loader/circular-loader.js";
|
7
7
|
import K from "../../ui/lottie-animation/lottie-animation.js";
|
8
8
|
import { useCircleSounds as H } from "../hooks/use-circle-sounds/use-circle-sounds.js";
|
9
9
|
import { CircleSoundKey as u } from "../hooks/use-circle-sounds/use-circle-sounds-enums.js";
|
10
10
|
import { GAME_LAUNCHER_SIZE as Z } from "./comps/card-container/constants.js";
|
11
|
-
import { Carousel as
|
12
|
-
import { GAME_LAUNCHER_ASSET_PADDING as
|
11
|
+
import { Carousel as z } from "./comps/carousel/carousel.js";
|
12
|
+
import { GAME_LAUNCHER_ASSET_PADDING as j } from "./comps/segmented-game-card/constants.js";
|
13
13
|
import { SegmentedGameCard as a } from "./comps/segmented-game-card/segmented-game-card.js";
|
14
|
-
import { TablesCard as
|
15
|
-
import { GAME_LAUNCHER_ANALYTICS_EVENTS as
|
16
|
-
import { useGameLauncherJourney as
|
17
|
-
import { useTableLauncherJourney as
|
14
|
+
import { TablesCard as w } from "./comps/tables-card/tables-card.js";
|
15
|
+
import { GAME_LAUNCHER_ANALYTICS_EVENTS as G } from "./game-launcher-analytics-events.js";
|
16
|
+
import { useGameLauncherJourney as X } from "./hooks/use-game-launcher-journey/use-game-launcher-journey.js";
|
17
|
+
import { useTableLauncherJourney as q } from "./hooks/use-table-launcher-journey/use-table-launcher-journey.js";
|
18
18
|
import { ProjectType as f } from "../games/web-view/enums/project-type-enum.js";
|
19
|
-
const
|
20
|
-
({
|
21
|
-
|
19
|
+
const S = Z + j, pe = x(
|
20
|
+
({
|
21
|
+
onSegmentClick: l,
|
22
|
+
data: e,
|
23
|
+
isLoading: c,
|
24
|
+
isTutorialOnboardingDone: C,
|
25
|
+
eligibleJourneyIds: i,
|
26
|
+
defaultIndex: M = 0
|
27
|
+
}) => {
|
28
|
+
const t = D(null), { isJourneyActive: _ } = g(), { playSwipSound: L, play: o } = H(), p = m(
|
22
29
|
(r) => {
|
23
30
|
o(u.GAME_CARD_CLICK), l(r, f.TABLE);
|
24
31
|
},
|
25
32
|
[l, o]
|
26
|
-
), A =
|
33
|
+
), A = m(
|
27
34
|
(r) => {
|
28
35
|
r.status !== "completed" && (o(u.GAME_CARD_CLICK), l(r, f.LESSON));
|
29
36
|
},
|
30
37
|
[l, o]
|
31
|
-
),
|
38
|
+
), T = m(
|
32
39
|
(r) => {
|
33
40
|
o(u.GAME_CARD_CLICK), l(r, f.GAME);
|
34
41
|
},
|
35
42
|
[l, o]
|
36
|
-
),
|
43
|
+
), R = m(
|
37
44
|
(r) => {
|
38
45
|
o(u.GAME_CARD_CLICK), l(r, f.PUZZLE);
|
39
46
|
},
|
40
47
|
[l, o]
|
41
48
|
), {
|
42
|
-
gameRefs:
|
43
|
-
lessonRefs:
|
44
|
-
puzzleRefs:
|
45
|
-
startJourney:
|
46
|
-
} =
|
47
|
-
carouselRefs:
|
49
|
+
gameRefs: I,
|
50
|
+
lessonRefs: y,
|
51
|
+
puzzleRefs: b,
|
52
|
+
startJourney: N
|
53
|
+
} = X({
|
54
|
+
carouselRefs: t,
|
48
55
|
onSegmentClick: l
|
49
|
-
}), { startJourney: P, tableRef:
|
50
|
-
carouselRefs:
|
56
|
+
}), { startJourney: P, tableRef: h } = q({
|
57
|
+
carouselRefs: t,
|
51
58
|
onTableSegmentClick: p
|
52
|
-
}),
|
59
|
+
}), O = V(() => {
|
53
60
|
let r = [];
|
54
61
|
return e && (e.lessons && (r = [
|
55
62
|
...r,
|
56
|
-
/* @__PURE__ */
|
63
|
+
/* @__PURE__ */ n(
|
57
64
|
a,
|
58
65
|
{
|
59
|
-
ref:
|
66
|
+
ref: y,
|
60
67
|
label: e.lessons.label,
|
61
68
|
value: e.lessons.data.filter((s) => s.status === "completed").length,
|
62
69
|
maxValue: e.lessons.data.length,
|
@@ -71,10 +78,10 @@ const J = Z + w, pe = x(
|
|
71
78
|
)
|
72
79
|
]), r = [
|
73
80
|
...r,
|
74
|
-
/* @__PURE__ */
|
81
|
+
/* @__PURE__ */ n(
|
75
82
|
a,
|
76
83
|
{
|
77
|
-
ref:
|
84
|
+
ref: I,
|
78
85
|
label: e.games.label,
|
79
86
|
value: e.games.data.filter((s) => s.isPlayed).length,
|
80
87
|
maxValue: e.games.data.length,
|
@@ -83,14 +90,14 @@ const J = Z + w, pe = x(
|
|
83
90
|
card: s.cardLottie,
|
84
91
|
name: s.name,
|
85
92
|
isCompleted: !1,
|
86
|
-
onPress: () =>
|
93
|
+
onPress: () => T(s)
|
87
94
|
}))
|
88
95
|
}
|
89
96
|
),
|
90
|
-
/* @__PURE__ */
|
97
|
+
/* @__PURE__ */ n(
|
91
98
|
a,
|
92
99
|
{
|
93
|
-
ref:
|
100
|
+
ref: b,
|
94
101
|
label: e.puzzles.label,
|
95
102
|
value: e.puzzles.data.filter((s) => s.solved).length,
|
96
103
|
maxValue: e.puzzles.data.length,
|
@@ -99,16 +106,16 @@ const J = Z + w, pe = x(
|
|
99
106
|
card: s.cardLottie,
|
100
107
|
name: s.name,
|
101
108
|
isCompleted: s.solved,
|
102
|
-
onPress: () =>
|
109
|
+
onPress: () => R(s)
|
103
110
|
}))
|
104
111
|
}
|
105
112
|
)
|
106
113
|
], e.tables && (r = [
|
107
114
|
...r,
|
108
|
-
/* @__PURE__ */
|
109
|
-
|
115
|
+
/* @__PURE__ */ n(
|
116
|
+
w,
|
110
117
|
{
|
111
|
-
ref:
|
118
|
+
ref: h,
|
112
119
|
label: e.tables.label,
|
113
120
|
data: e.tables.data,
|
114
121
|
onPress: p,
|
@@ -118,67 +125,71 @@ const J = Z + w, pe = x(
|
|
118
125
|
])), r;
|
119
126
|
}, [
|
120
127
|
e,
|
121
|
-
|
128
|
+
I,
|
129
|
+
b,
|
122
130
|
y,
|
123
|
-
R,
|
124
131
|
A,
|
125
|
-
|
126
|
-
|
127
|
-
|
132
|
+
T,
|
133
|
+
R,
|
134
|
+
h,
|
128
135
|
p
|
129
|
-
]), v =
|
136
|
+
]), v = V(
|
130
137
|
() => [
|
131
|
-
/* @__PURE__ */
|
138
|
+
/* @__PURE__ */ n(
|
132
139
|
K,
|
133
140
|
{
|
134
|
-
src:
|
135
|
-
width:
|
136
|
-
height:
|
141
|
+
src: Y.SLEEPY_BOI,
|
142
|
+
width: S,
|
143
|
+
height: S
|
137
144
|
}
|
138
145
|
)
|
139
146
|
],
|
140
147
|
[]
|
141
|
-
),
|
148
|
+
), J = m(() => {
|
142
149
|
var s;
|
143
|
-
const r = (s =
|
144
|
-
(
|
150
|
+
const r = (s = t.current) == null ? void 0 : s.indicatorRefs.every(
|
151
|
+
(U) => U.current !== null
|
145
152
|
);
|
146
|
-
if (!(c || !e ||
|
147
|
-
if (e != null && e.puzzles &&
|
148
|
-
|
153
|
+
if (!(c || !e || _ || !r || i.length === 0)) {
|
154
|
+
if (e != null && e.puzzles && i.includes(E.CIRCLE_ACTIVITIES_INTRO_JOURNEY)) {
|
155
|
+
N(
|
156
|
+
e == null ? void 0 : e.puzzles,
|
157
|
+
!!(e != null && e.lessons),
|
158
|
+
E.CIRCLE_ACTIVITIES_INTRO_JOURNEY
|
159
|
+
);
|
149
160
|
return;
|
150
161
|
}
|
151
|
-
e != null && e.tables &&
|
162
|
+
e != null && e.tables && i.includes(E.CIRCLE_TABLES_INTRO_JOURNEY) && P(e == null ? void 0 : e.tables, C);
|
152
163
|
}
|
153
164
|
}, [
|
154
165
|
e,
|
155
|
-
|
166
|
+
i,
|
167
|
+
_,
|
156
168
|
c,
|
157
|
-
|
158
|
-
|
159
|
-
I,
|
169
|
+
C,
|
170
|
+
N,
|
160
171
|
P
|
161
172
|
]);
|
162
|
-
return c ? /* @__PURE__ */
|
163
|
-
|
173
|
+
return c ? /* @__PURE__ */ n(B, {}) : e ? /* @__PURE__ */ n(
|
174
|
+
z,
|
164
175
|
{
|
165
|
-
ref:
|
166
|
-
items:
|
176
|
+
ref: t,
|
177
|
+
items: O,
|
167
178
|
defaultIndex: M,
|
168
179
|
onNext: L,
|
169
180
|
onPrev: L,
|
170
|
-
onItemsRendered:
|
181
|
+
onItemsRendered: J,
|
171
182
|
analyticsNext: {
|
172
|
-
analyticsLabel:
|
183
|
+
analyticsLabel: G.NEXT_ACTIVITY
|
173
184
|
},
|
174
185
|
analyticsPrev: {
|
175
|
-
analyticsLabel:
|
186
|
+
analyticsLabel: G.PREV_ACTIVITY
|
176
187
|
}
|
177
188
|
}
|
178
|
-
) : /* @__PURE__ */
|
179
|
-
|
189
|
+
) : /* @__PURE__ */ n(
|
190
|
+
z,
|
180
191
|
{
|
181
|
-
ref:
|
192
|
+
ref: t,
|
182
193
|
items: v,
|
183
194
|
analyticsNext: {
|
184
195
|
analyticsLabel: ""
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"game-launcher.js","sources":["../../../../src/features/circle-games/game-launcher/game-launcher.tsx"],"sourcesContent":["import type { ICarouselRefs } from './comps/carousel/carousel-types';\nimport type { ITableDetails } from './comps/tables-card/tables-card-types';\nimport type {\n Game,\n Lesson,\n Puzzle,\n} from './dal/use-get-circle-home-details-dal/use-get-circle-home-dal-types';\nimport type { IGameLauncherProps } from './game-launcher-types';\nimport type { FC, ReactNode } from 'react';\n\nimport { memo, useCallback, useMemo, useRef } from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport { JOURNEY_ID_STUDENT } from '../../journey/journey-id/journey-id-student';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport { CircularLoader } from '../../ui/loader/circular-loader/circular-loader';\nimport LottieAnimation from '../../ui/lottie-animation/lottie-animation';\nimport { ProjectType } from '../games/web-view/enums';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { CircleSoundKey } from '../hooks/use-circle-sounds/use-circle-sounds-enums';\nimport { GAME_LAUNCHER_SIZE } from './comps/card-container/constants';\nimport { Carousel } from './comps/carousel/carousel';\nimport { GAME_LAUNCHER_ASSET_PADDING } from './comps/segmented-game-card/constants';\nimport { SegmentedGameCard } from './comps/segmented-game-card/segmented-game-card';\nimport { TablesCard } from './comps/tables-card/tables-card';\nimport { GAME_LAUNCHER_ANALYTICS_EVENTS } from './game-launcher-analytics-events';\nimport { useGameLauncherJourney } from './hooks/use-game-launcher-journey/use-game-launcher-journey';\nimport { useTableLauncherJourney } from './hooks/use-table-launcher-journey/use-table-launcher-journey';\n\nconst sleepyBoiDimension = GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING;\n\nexport const GameLauncher: FC<IGameLauncherProps> = memo(\n ({ onSegmentClick, journeyId, data, isLoading, isTutorialOnboardingDone, defaultIndex = 0 }) => {\n const carouselRefs = useRef<ICarouselRefs>(null);\n\n const { isJourneyActive } = useJourney();\n\n const { playSwipSound, play } = useCircleSounds();\n\n const onTableSegmentClick = useCallback(\n (table: ITableDetails) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(table, ProjectType.TABLE);\n },\n [onSegmentClick, play],\n );\n\n const handleLessonSegmentClick = useCallback(\n (lesson: Lesson) => {\n if (lesson.status !== 'completed') {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(lesson, ProjectType.LESSON);\n }\n },\n [onSegmentClick, play],\n );\n\n const handleGameSegmentClick = useCallback(\n (game: Game) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(game, ProjectType.GAME);\n },\n [onSegmentClick, play],\n );\n\n const handlePuzzleSegmentClick = useCallback(\n (puzzle: Puzzle) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(puzzle, ProjectType.PUZZLE);\n },\n [onSegmentClick, play],\n );\n\n const {\n gameRefs,\n lessonRefs,\n puzzleRefs,\n startJourney: startLessonPuzzleGamesJourney,\n } = useGameLauncherJourney({\n carouselRefs,\n onSegmentClick,\n });\n\n const { startJourney: startTablesJourney, tableRef } = useTableLauncherJourney({\n carouselRefs,\n onTableSegmentClick,\n });\n\n const items = useMemo(() => {\n let itemTypes: ReactNode[] = [];\n\n if (data) {\n if (data.lessons) {\n itemTypes = [\n ...itemTypes,\n <SegmentedGameCard\n ref={lessonRefs}\n label={data.lessons.label}\n value={data.lessons.data.filter(lesson => lesson.status === 'completed').length}\n maxValue={data.lessons.data.length}\n initialValue={data.lessons.initialProgressValue}\n data={data?.lessons.data.map(lesson => ({\n card: lesson.cardLottie,\n name: lesson.name,\n isCompleted: lesson.status === 'completed',\n onPress: () => handleLessonSegmentClick(lesson),\n }))}\n />,\n ];\n }\n\n itemTypes = [\n ...itemTypes,\n <SegmentedGameCard\n ref={gameRefs}\n label={data.games.label}\n value={data.games.data.filter(game => game.isPlayed).length}\n maxValue={data.games.data.length}\n initialValue={data.games.initialProgressValue}\n data={data.games.data.map(game => ({\n card: game.cardLottie,\n name: game.name,\n isCompleted: false,\n onPress: () => handleGameSegmentClick(game),\n }))}\n />,\n <SegmentedGameCard\n ref={puzzleRefs}\n label={data.puzzles.label}\n value={data.puzzles.data.filter(puzzle => puzzle.solved).length}\n maxValue={data.puzzles.data.length}\n initialValue={data.puzzles.initialProgressValue}\n data={data.puzzles.data.map(puzzle => ({\n card: puzzle.cardLottie,\n name: puzzle.name,\n isCompleted: puzzle.solved,\n onPress: () => handlePuzzleSegmentClick(puzzle),\n }))}\n />,\n ];\n\n if (data.tables) {\n itemTypes = [\n ...itemTypes,\n <TablesCard\n ref={tableRef}\n label={data.tables.label}\n data={data.tables.data}\n onPress={onTableSegmentClick}\n openModesOfTable={data.tables.openModesOfTable}\n />,\n ];\n }\n }\n\n return itemTypes;\n }, [\n data,\n gameRefs,\n puzzleRefs,\n lessonRefs,\n handleLessonSegmentClick,\n handleGameSegmentClick,\n handlePuzzleSegmentClick,\n tableRef,\n onTableSegmentClick,\n ]);\n\n const sleepyBoiItem = useMemo(\n () => [\n <LottieAnimation\n src={LOTTIE.SLEEPY_BOI}\n width={sleepyBoiDimension}\n height={sleepyBoiDimension}\n />,\n ],\n [],\n );\n\n // Start game launcher journey only when isLoading has become false and data is available\n const startJourneys = useCallback(() => {\n const areAllRefsMounted = carouselRefs.current?.indicatorRefs.every(\n ref => ref.current !== null,\n );\n\n if (isLoading || !data || isJourneyActive || !areAllRefsMounted) {\n return;\n }\n\n if (data?.puzzles && journeyId === JOURNEY_ID_STUDENT.CIRCLE_ACTIVITIES_INTRO_JOURNEY) {\n startLessonPuzzleGamesJourney(data?.puzzles, !!data?.lessons, journeyId);\n\n return; // CIRCLE_ACTIVITIES_INTRO_JOURNEY has higher priority\n }\n\n if (data?.tables && journeyId === JOURNEY_ID_STUDENT.CIRCLE_TABLES_INTRO_JOURNEY) {\n startTablesJourney(data?.tables, isTutorialOnboardingDone);\n }\n }, [\n data,\n isJourneyActive,\n isLoading,\n isTutorialOnboardingDone,\n journeyId,\n startLessonPuzzleGamesJourney,\n startTablesJourney,\n ]);\n\n if (isLoading) {\n return <CircularLoader />;\n }\n\n if (!data) {\n return (\n <Carousel\n ref={carouselRefs}\n items={sleepyBoiItem}\n analyticsNext={{\n analyticsLabel: '',\n }}\n analyticsPrev={{\n analyticsLabel: '',\n }}\n />\n );\n }\n\n return (\n <Carousel\n ref={carouselRefs}\n items={items}\n defaultIndex={defaultIndex}\n onNext={playSwipSound}\n onPrev={playSwipSound}\n onItemsRendered={startJourneys}\n analyticsNext={{\n analyticsLabel: GAME_LAUNCHER_ANALYTICS_EVENTS.NEXT_ACTIVITY,\n }}\n analyticsPrev={{\n analyticsLabel: GAME_LAUNCHER_ANALYTICS_EVENTS.PREV_ACTIVITY,\n }}\n />\n );\n },\n);\n"],"names":["sleepyBoiDimension","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_ASSET_PADDING","GameLauncher","memo","onSegmentClick","journeyId","data","isLoading","isTutorialOnboardingDone","defaultIndex","carouselRefs","useRef","isJourneyActive","useJourney","playSwipSound","play","useCircleSounds","onTableSegmentClick","useCallback","table","CircleSoundKey","ProjectType","handleLessonSegmentClick","lesson","handleGameSegmentClick","game","handlePuzzleSegmentClick","puzzle","gameRefs","lessonRefs","puzzleRefs","startLessonPuzzleGamesJourney","useGameLauncherJourney","startTablesJourney","tableRef","useTableLauncherJourney","items","useMemo","itemTypes","jsx","SegmentedGameCard","TablesCard","sleepyBoiItem","LottieAnimation","LOTTIE","startJourneys","areAllRefsMounted","_a","ref","JOURNEY_ID_STUDENT","CircularLoader","Carousel","GAME_LAUNCHER_ANALYTICS_EVENTS"],"mappings":";;;;;;;;;;;;;;;;;;AA6BA,MAAMA,IAAqBC,IAAqBC,GAEnCC,KAAuCC;AAAA,EAClD,CAAC,EAAE,gBAAAC,GAAgB,WAAAC,GAAW,MAAAC,GAAM,WAAAC,GAAW,0BAAAC,GAA0B,cAAAC,IAAe,QAAQ;AACxF,UAAAC,IAAeC,EAAsB,IAAI,GAEzC,EAAE,iBAAAC,MAAoBC,KAEtB,EAAE,eAAAC,GAAe,MAAAC,EAAK,IAAIC,EAAgB,GAE1CC,IAAsBC;AAAA,MAC1B,CAACC,MAAyB;AACxB,QAAAJ,EAAKK,EAAe,eAAe,GACpBhB,EAAAe,GAAOE,EAAY,KAAK;AAAA,MACzC;AAAA,MACA,CAACjB,GAAgBW,CAAI;AAAA,IAAA,GAGjBO,IAA2BJ;AAAA,MAC/B,CAACK,MAAmB;AACd,QAAAA,EAAO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AAAA,QACR,QAAQA;AAAA,QACR,iBAAiB+B;AAAA,QACjB,eAAe;AAAA,UACb,gBAAgBO,EAA+B;AAAA,QACjD;AAAA,QACA,eAAe;AAAA,UACb,gBAAgBA,EAA+B;AAAA,QACjD;AAAA,MAAA;AAAA,IAAA,IA1BA,gBAAAb;AAAA,MAACY;AAAA,MAAA;AAAA,QACC,KAAKzC;AAAA,QACL,OAAOgC;AAAA,QACP,eAAe;AAAA,UACb,gBAAgB;AAAA,QAClB;AAAA,QACA,eAAe;AAAA,UACb,gBAAgB;AAAA,QAClB;AAAA,MAAA;AAAA,IAAA;AAAA,EAqBR;AACF;"}
|
1
|
+
{"version":3,"file":"game-launcher.js","sources":["../../../../src/features/circle-games/game-launcher/game-launcher.tsx"],"sourcesContent":["import type { ICarouselRefs } from './comps/carousel/carousel-types';\nimport type { ITableDetails } from './comps/tables-card/tables-card-types';\nimport type {\n Game,\n Lesson,\n Puzzle,\n} from './dal/use-get-circle-home-details-dal/use-get-circle-home-dal-types';\nimport type { IGameLauncherProps } from './game-launcher-types';\nimport type { FC, ReactNode } from 'react';\n\nimport { memo, useCallback, useMemo, useRef } from 'react';\n\nimport { LOTTIE } from '../../../assets/lottie/lottie';\nimport { JOURNEY_ID_STUDENT } from '../../journey/journey-id/journey-id-student';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport { CircularLoader } from '../../ui/loader/circular-loader/circular-loader';\nimport LottieAnimation from '../../ui/lottie-animation/lottie-animation';\nimport { ProjectType } from '../games/web-view/enums';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { CircleSoundKey } from '../hooks/use-circle-sounds/use-circle-sounds-enums';\nimport { GAME_LAUNCHER_SIZE } from './comps/card-container/constants';\nimport { Carousel } from './comps/carousel/carousel';\nimport { GAME_LAUNCHER_ASSET_PADDING } from './comps/segmented-game-card/constants';\nimport { SegmentedGameCard } from './comps/segmented-game-card/segmented-game-card';\nimport { TablesCard } from './comps/tables-card/tables-card';\nimport { GAME_LAUNCHER_ANALYTICS_EVENTS } from './game-launcher-analytics-events';\nimport { useGameLauncherJourney } from './hooks/use-game-launcher-journey/use-game-launcher-journey';\nimport { useTableLauncherJourney } from './hooks/use-table-launcher-journey/use-table-launcher-journey';\n\nconst sleepyBoiDimension = GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING;\n\nexport const GameLauncher: FC<IGameLauncherProps> = memo(\n ({\n onSegmentClick,\n data,\n isLoading,\n isTutorialOnboardingDone,\n eligibleJourneyIds,\n defaultIndex = 0,\n }) => {\n const carouselRefs = useRef<ICarouselRefs>(null);\n\n const { isJourneyActive } = useJourney();\n\n const { playSwipSound, play } = useCircleSounds();\n\n const onTableSegmentClick = useCallback(\n (table: ITableDetails) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(table, ProjectType.TABLE);\n },\n [onSegmentClick, play],\n );\n\n const handleLessonSegmentClick = useCallback(\n (lesson: Lesson) => {\n if (lesson.status !== 'completed') {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(lesson, ProjectType.LESSON);\n }\n },\n [onSegmentClick, play],\n );\n\n const handleGameSegmentClick = useCallback(\n (game: Game) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(game, ProjectType.GAME);\n },\n [onSegmentClick, play],\n );\n\n const handlePuzzleSegmentClick = useCallback(\n (puzzle: Puzzle) => {\n play(CircleSoundKey.GAME_CARD_CLICK);\n onSegmentClick(puzzle, ProjectType.PUZZLE);\n },\n [onSegmentClick, play],\n );\n\n const {\n gameRefs,\n lessonRefs,\n puzzleRefs,\n startJourney: startLessonPuzzleGamesJourney,\n } = useGameLauncherJourney({\n carouselRefs,\n onSegmentClick,\n });\n\n const { startJourney: startTablesJourney, tableRef } = useTableLauncherJourney({\n carouselRefs,\n onTableSegmentClick,\n });\n\n const items = useMemo(() => {\n let itemTypes: ReactNode[] = [];\n\n if (data) {\n if (data.lessons) {\n itemTypes = [\n ...itemTypes,\n <SegmentedGameCard\n ref={lessonRefs}\n label={data.lessons.label}\n value={data.lessons.data.filter(lesson => lesson.status === 'completed').length}\n maxValue={data.lessons.data.length}\n initialValue={data.lessons.initialProgressValue}\n data={data?.lessons.data.map(lesson => ({\n card: lesson.cardLottie,\n name: lesson.name,\n isCompleted: lesson.status === 'completed',\n onPress: () => handleLessonSegmentClick(lesson),\n }))}\n />,\n ];\n }\n\n itemTypes = [\n ...itemTypes,\n <SegmentedGameCard\n ref={gameRefs}\n label={data.games.label}\n value={data.games.data.filter(game => game.isPlayed).length}\n maxValue={data.games.data.length}\n initialValue={data.games.initialProgressValue}\n data={data.games.data.map(game => ({\n card: game.cardLottie,\n name: game.name,\n isCompleted: false,\n onPress: () => handleGameSegmentClick(game),\n }))}\n />,\n <SegmentedGameCard\n ref={puzzleRefs}\n label={data.puzzles.label}\n value={data.puzzles.data.filter(puzzle => puzzle.solved).length}\n maxValue={data.puzzles.data.length}\n initialValue={data.puzzles.initialProgressValue}\n data={data.puzzles.data.map(puzzle => ({\n card: puzzle.cardLottie,\n name: puzzle.name,\n isCompleted: puzzle.solved,\n onPress: () => handlePuzzleSegmentClick(puzzle),\n }))}\n />,\n ];\n\n if (data.tables) {\n itemTypes = [\n ...itemTypes,\n <TablesCard\n ref={tableRef}\n label={data.tables.label}\n data={data.tables.data}\n onPress={onTableSegmentClick}\n openModesOfTable={data.tables.openModesOfTable}\n />,\n ];\n }\n }\n\n return itemTypes;\n }, [\n data,\n gameRefs,\n puzzleRefs,\n lessonRefs,\n handleLessonSegmentClick,\n handleGameSegmentClick,\n handlePuzzleSegmentClick,\n tableRef,\n onTableSegmentClick,\n ]);\n\n const sleepyBoiItem = useMemo(\n () => [\n <LottieAnimation\n src={LOTTIE.SLEEPY_BOI}\n width={sleepyBoiDimension}\n height={sleepyBoiDimension}\n />,\n ],\n [],\n );\n\n // Start game launcher journey only when isLoading has become false and data is available\n const startJourneys = useCallback(() => {\n const areAllRefsMounted = carouselRefs.current?.indicatorRefs.every(\n ref => ref.current !== null,\n );\n\n if (\n isLoading ||\n !data ||\n isJourneyActive ||\n !areAllRefsMounted ||\n eligibleJourneyIds.length === 0\n ) {\n return;\n }\n\n if (\n data?.puzzles &&\n eligibleJourneyIds.includes(JOURNEY_ID_STUDENT.CIRCLE_ACTIVITIES_INTRO_JOURNEY)\n ) {\n startLessonPuzzleGamesJourney(\n data?.puzzles,\n !!data?.lessons,\n JOURNEY_ID_STUDENT.CIRCLE_ACTIVITIES_INTRO_JOURNEY,\n );\n\n return; // CIRCLE_ACTIVITIES_INTRO_JOURNEY has higher priority\n }\n\n if (\n data?.tables &&\n eligibleJourneyIds.includes(JOURNEY_ID_STUDENT.CIRCLE_TABLES_INTRO_JOURNEY)\n ) {\n startTablesJourney(data?.tables, isTutorialOnboardingDone);\n }\n }, [\n data,\n eligibleJourneyIds,\n isJourneyActive,\n isLoading,\n isTutorialOnboardingDone,\n startLessonPuzzleGamesJourney,\n startTablesJourney,\n ]);\n\n if (isLoading) {\n return <CircularLoader />;\n }\n\n if (!data) {\n return (\n <Carousel\n ref={carouselRefs}\n items={sleepyBoiItem}\n analyticsNext={{\n analyticsLabel: '',\n }}\n analyticsPrev={{\n analyticsLabel: '',\n }}\n />\n );\n }\n\n return (\n <Carousel\n ref={carouselRefs}\n items={items}\n defaultIndex={defaultIndex}\n onNext={playSwipSound}\n onPrev={playSwipSound}\n onItemsRendered={startJourneys}\n analyticsNext={{\n analyticsLabel: GAME_LAUNCHER_ANALYTICS_EVENTS.NEXT_ACTIVITY,\n }}\n analyticsPrev={{\n analyticsLabel: GAME_LAUNCHER_ANALYTICS_EVENTS.PREV_ACTIVITY,\n }}\n />\n );\n },\n);\n"],"names":["sleepyBoiDimension","GAME_LAUNCHER_SIZE","GAME_LAUNCHER_ASSET_PADDING","GameLauncher","memo","onSegmentClick","data","isLoading","isTutorialOnboardingDone","eligibleJourneyIds","defaultIndex","carouselRefs","useRef","isJourneyActive","useJourney","playSwipSound","play","useCircleSounds","onTableSegmentClick","useCallback","table","CircleSoundKey","ProjectType","handleLessonSegmentClick","lesson","handleGameSegmentClick","game","handlePuzzleSegmentClick","puzzle","gameRefs","lessonRefs","puzzleRefs","startLessonPuzzleGamesJourney","useGameLauncherJourney","startTablesJourney","tableRef","useTableLauncherJourney","items","useMemo","itemTypes","jsx","SegmentedGameCard","TablesCard","sleepyBoiItem","LottieAnimation","LOTTIE","startJourneys","areAllRefsMounted","_a","ref","JOURNEY_ID_STUDENT","CircularLoader","Carousel","GAME_LAUNCHER_ANALYTICS_EVENTS"],"mappings":";;;;;;;;;;;;;;;;;;AA6BA,MAAMA,IAAqBC,IAAqBC,GAEnCC,KAAuCC;AAAA,EAClD,CAAC;AAAA,IACC,gBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,EAAA,MACX;AACE,UAAAC,IAAeC,EAAsB,IAAI,GAEzC,EAAE,iBAAAC,MAAoBC,KAEtB,EAAE,eAAAC,GAAe,MAAAC,EAAK,IAAIC,EAAgB,GAE1CC,IAAsBC;AAAA,MAC1B,CAACC,MAAyB;AACxB,QAAAJ,EAAKK,EAAe,eAAe,GACpBhB,EAAAe,GAAOE,EAAY,KAAK;AAAA,MACzC;AAAA,MACA,CAACjB,GAAgBW,CAAI;AAAA,IAAA,GAGjBO,IAA2BJ;AAAA,MAC/B,CAACK,MAAmB;AACd,QAAAA,EAAO,WAAW,gBACpBR,EAAKK,EAAe,eAAe,GACpBhB,EAAAmB,GAAQF,EAAY,MAAM;AAAA,MAE7C;AAAA,MACA,CAACjB,GAAgBW,CAAI;AAAA,IAAA,GAGjBS,IAAyBN;AAAA,MAC7B,CAACO,MAAe;AACd,QAAAV,EAAKK,EAAe,eAAe,GACpBhB,EAAAqB,GAAMJ,EAAY,IAAI;AAAA,MACvC;AAAA,MACA,CAACjB,GAAgBW,CAAI;AAAA,IAAA,GAGjBW,IAA2BR;AAA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