@cuemath/leap 2.8.61-rj-7 → 2.8.61-rj-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,224 +1,209 @@
1
- import { jsx as n, Fragment as b } from "react/jsx-runtime";
1
+ import { jsx as n, Fragment as R } from "react/jsx-runtime";
2
2
  import { useRef as A, useCallback as I, useEffect as F } from "react";
3
3
  import X from "../../../../../assets/line-icons/icons/carat-right.js";
4
- import { PLATFORM_EVENTS_STUDENT as v } from "../../../../analytics-events/platform-events-student.js";
4
+ import { PLATFORM_EVENTS_STUDENT as G } from "../../../../analytics-events/platform-events-student.js";
5
5
  import { JOURNEY_ID_STUDENT as K } from "../../../../journey/journey-id/journey-id-student.js";
6
- import { IndicatorType as d } from "../../../../journey/use-journey/constants.js";
6
+ import { IndicatorType as u } from "../../../../journey/use-journey/constants.js";
7
7
  import { useJourney as j } from "../../../../journey/use-journey/use-journey.js";
8
8
  import Z from "../../../../ui/buttons/icon-button/icon-button.js";
9
9
  import { useUIContext as q } from "../../../../ui/context/context.js";
10
- import S from "../../../../ui/layout/flex-view.js";
11
- import T from "../../../../ui/text/text.js";
12
- import { CIRCLE_ONBOARDING_ANALYTICS_STEPS as M } from "../../../enum/circle-onboarding-steps.js";
10
+ import N from "../../../../ui/layout/flex-view.js";
11
+ import m from "../../../../ui/text/text.js";
12
+ import { CIRCLE_ONBOARDING_ANALYTICS_STEPS as v } from "../../../enum/circle-onboarding-steps.js";
13
13
  import { useCircleSounds as z } from "../../../hooks/use-circle-sounds/use-circle-sounds.js";
14
- import { TablesCard as $ } from "../../comps/tables-card/tables-card.js";
14
+ import { TablesCard as M } from "../../comps/tables-card/tables-card.js";
15
15
  import { GAME_LAUNCHER_ANALYTICS_EVENTS as Q } from "../../game-launcher-analytics-events.js";
16
- import { SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS as ee, SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS as te, START_ANIMATING_CLONED_ELEM as x, TABLE_CARD_INDEX as J, GO_TO_TABLE_LAUNCHER_DURATION_MS as re, SHOW_CLICK_TABLE_NUDGE_AFTER_MS as ne, PUZZLE_CARD_INDEX as oe, SHOW_INITIAL_COACHMARK_AFTER_MS as V, LESSON_CARD_INDEX as ie, SHOW_INITIAL_TOOLTIP_AFTER_MS as le } from "./constants.js";
16
+ import { SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS as ee, SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS as te, START_ANIMATING_CLONED_ELEM as $, TABLE_CARD_INDEX as x, GO_TO_TABLE_LAUNCHER_DURATION_MS as re, SHOW_CLICK_TABLE_NUDGE_AFTER_MS as ne, PUZZLE_CARD_INDEX as oe, SHOW_INITIAL_COACHMARK_AFTER_MS as J, LESSON_CARD_INDEX as ie, SHOW_INITIAL_TOOLTIP_AFTER_MS as le } from "./constants.js";
17
17
  import { Indicator as ce } from "./use-table-launcher-journey-styled.js";
18
18
  const Re = ({
19
- carouselRefs: a,
20
- onTableSegmentClick: P
19
+ carouselRefs: s,
20
+ onTableSegmentClick: b
21
21
  }) => {
22
- const t = K.CIRCLE_TABLES_INTRO_JOURNEY, e = A(null), p = A(null), L = A(!1), u = A([]), { playButtonSound: y } = z(), { nextCoachmark: c, setJourney: C, addCoachmark: m, endJourney: H } = j(), { onEvent: _ } = q(), O = I(
22
+ const e = K.CIRCLE_TABLES_INTRO_JOURNEY, t = A(null), p = A(null), L = A(!1), T = A([]), { playButtonSound: S } = z(), { nextCoachmark: c, setJourney: P, addCoachmark: a, endJourney: y } = j(), { onEvent: _ } = q(), C = I(
23
23
  (r) => {
24
24
  var l, o;
25
- r && P(r), _(v.ONBOARDING_STEP_COMPLETED, {
26
- step: M.TABLES
27
- }), (l = e == null ? void 0 : e.current) == null || l.setLabelVisiblity(!0), (o = e == null ? void 0 : e.current) == null || o.stopLabelAnimation(), H(t);
25
+ r && b(r), _(G.ONBOARDING_STEP_COMPLETED, {
26
+ step: v.TABLES
27
+ }), (l = t == null ? void 0 : t.current) == null || l.setLabelVisiblity(!0), (o = t == null ? void 0 : t.current) == null || o.stopLabelAnimation(), y(e);
28
28
  },
29
- [H, t, P, _]
30
- ), W = I(
29
+ [y, e, b, _]
30
+ ), H = I(
31
31
  (r, l) => {
32
32
  var g, E, h;
33
- if (!((g = e.current) != null && g.segmentedCardWrapperRef.current) || !((E = e.current) != null && E.labelRef.current))
33
+ if (!((g = t.current) != null && g.segmentedCardWrapperRef.current) || !((E = t.current) != null && E.labelRef.current))
34
34
  return;
35
- const o = e.current.labelRef.current.getBoundingClientRect(), i = (h = e.current) == null ? void 0 : h.segmentedCardWrapperRef.current.getBoundingClientRect();
36
- m(t, {
37
- originalElementToHighlightRef: e.current.segmentedCardWrapperRef,
35
+ const o = t.current.labelRef.current.getBoundingClientRect(), i = (h = t.current) == null ? void 0 : h.segmentedCardWrapperRef.current.getBoundingClientRect();
36
+ a(e, {
37
+ originalElementToHighlightRef: t.current.segmentedCardWrapperRef,
38
38
  isActive: !1,
39
- type: d.TOOLTIP,
39
+ type: u.TOOLTIP,
40
40
  elementToHighlight: /* @__PURE__ */ n(
41
- $,
41
+ M,
42
42
  {
43
43
  ref: p,
44
44
  defaultTable: l,
45
45
  label: r.label,
46
46
  data: r.data,
47
- onPress: O,
48
- onGoBackFromTableLevel: O
47
+ onPress: C,
48
+ onGoBackFromTableLevel: C
49
49
  }
50
50
  ),
51
51
  indicator: {
52
52
  position: "left",
53
53
  backgroundColor: "YELLOW_4",
54
54
  width: 236,
55
- tooltipItem: /* @__PURE__ */ n(S, { children: /* @__PURE__ */ n(T, { $renderAs: "ab2-bold", children: "Each table has 3 levels—clear them and earn 3 stars!" }) }),
55
+ tooltipItem: /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n(m, { $renderAs: "ab2-bold", children: "Each table has 3 levels—clear them and earn 3 stars!" }) }),
56
56
  tooltipXCoOrdinates: 0,
57
57
  tooltipYCoOrdinates: o.height * 0.35
58
58
  }
59
- }), m(t, {
60
- originalElementToHighlightRef: e.current.segmentedCardWrapperRef,
59
+ }), a(e, {
60
+ originalElementToHighlightRef: t.current.segmentedCardWrapperRef,
61
61
  isActive: !1,
62
- type: d.NUDGE,
62
+ type: u.NUDGE,
63
63
  indicator: {
64
64
  nudge: "click",
65
- content: /* @__PURE__ */ n(T, { $renderAs: "ab1", $color: "WHITE", children: "Pick a level" }),
65
+ content: /* @__PURE__ */ n(m, { $renderAs: "ab1", $color: "WHITE", children: "Pick a level" }),
66
66
  nudgePointerX: i.width / 2 + 50,
67
67
  nudgePointerY: i.height * 0.4
68
68
  },
69
- elementToHighlight: /* @__PURE__ */ n(b, {})
70
- }), c(t, !1, ee), c(t, !0, te);
71
- const s = setTimeout(() => {
69
+ elementToHighlight: /* @__PURE__ */ n(R, {})
70
+ }), c(e, !1, ee), c(e, !0, te);
71
+ const d = setTimeout(() => {
72
72
  var f;
73
- clearTimeout(s), (f = p.current) == null || f.startLabelAnimation("YELLOW_4");
74
- }, x);
75
- u.current.push(s);
73
+ clearTimeout(d), (f = p.current) == null || f.startLabelAnimation("YELLOW_4");
74
+ }, $);
75
+ T.current.push(d);
76
76
  },
77
- [m, O, t, c]
78
- ), R = I(() => {
77
+ [a, C, e, c]
78
+ ), O = I(() => {
79
79
  var o;
80
- y(), (o = a.current) == null || o.goToIndex(J), c(t, !1, re), _(v.ONBOARDING_STEP_VIEWED, {
81
- step: M.TABLES
80
+ S(), (o = s.current) == null || o.goToIndex(x), c(e, !1, re), _(G.ONBOARDING_STEP_VIEWED, {
81
+ step: v.TABLES
82
82
  });
83
83
  const r = setTimeout(() => {
84
84
  var i;
85
- clearTimeout(r), (i = e.current) == null || i.setLabelVisiblity(!1), c(t, !0);
85
+ clearTimeout(r), (i = t.current) == null || i.setLabelVisiblity(!1), c(e, !0);
86
86
  }, ne);
87
- u.current.push(r);
87
+ T.current.push(r);
88
88
  const l = setTimeout(() => {
89
89
  var i;
90
90
  clearTimeout(l), (i = p.current) == null || i.startLabelAnimation("YELLOW_4");
91
- }, x);
92
- u.current.push(l);
93
- }, [a, t, c, y, _]), w = I(
91
+ }, $);
92
+ T.current.push(l);
93
+ }, [s, e, c, S, _]), V = I(
94
94
  (r, l = !1) => {
95
- var h, f, D, U, k, B, Y;
95
+ var h, f, W, D, U, k, B, Y;
96
96
  if (console.log("startJourney", { tablesData: r, isTutorialOnboardingDone: l }), L.current)
97
97
  return;
98
- const o = (h = a.current) == null ? void 0 : h.indicatorRefs, i = (f = a.current) == null ? void 0 : f.nextBtnRef, s = o == null ? void 0 : o[J];
99
- if (!((D = e.current) != null && D.segmentedCardWrapperRef.current) || !((U = e.current) != null && U.labelRef.current) || !o || !(i != null && i.current) || !s || !s.current) {
98
+ const o = (h = s.current) == null ? void 0 : h.indicatorRefs, i = (f = s.current) == null ? void 0 : f.nextBtnRef, d = o == null ? void 0 : o[x];
99
+ if (!((W = t.current) != null && W.segmentedCardWrapperRef.current) || !((D = t.current) != null && D.labelRef.current) || !o || !(i != null && i.current) || !d || !d.current) {
100
100
  console.log("SOMETHING IS NOT AVAILABLE");
101
101
  return;
102
102
  }
103
103
  L.current = !0;
104
- const g = e.current.labelRef.current.getBoundingClientRect(), E = (k = e.current) == null ? void 0 : k.segmentedCardWrapperRef.current.getBoundingClientRect();
105
- if (!l)
106
- console.log("TURIRTUAK NOT DONE", { tablesData: r, isTutorialOnboardingDone: l }), C(t, [
107
- {
108
- originalElementToHighlightRef: (B = a.current) == null ? void 0 : B.nextBtnRef,
109
- isActive: !1,
110
- type: d.NUDGE,
111
- indicator: {
112
- nudge: "click",
113
- content: /* @__PURE__ */ n(T, { $renderAs: "ab1", $color: "WHITE", children: "Click to proceed" }),
114
- nudgePointerX: 0,
115
- nudgePointerY: 0
116
- },
117
- elementToHighlight: /* @__PURE__ */ n(
118
- Z,
119
- {
120
- renderAs: "secondary",
121
- Icon: X,
122
- onClick: R,
123
- analyticsLabel: Q.JOURNEY_NEXT_ACTIVITY
124
- }
125
- )
126
- }
127
- ]), (Y = a.current) == null || Y.goToIndex(oe), c(t, !1, V);
128
- else {
129
- console.log("TUTORIAL DONE 2", { tablePaginationRef: s }), C(t, [
130
- {
131
- originalElementToHighlightRef: s,
132
- isActive: !1,
133
- type: d.TOOLTIP,
134
- elementToHighlight: /* @__PURE__ */ n(ce, { id: "kill-me", $isActive: !1 }),
135
- indicator: {
136
- position: "bottom",
137
- backgroundColor: "YELLOW_4",
138
- width: 52,
139
- tooltipItem: /* @__PURE__ */ n(
140
- S,
141
- {
142
- $position: "absolute",
143
- $flexDirection: "row",
144
- style: { top: 6, left: 8, cursor: "pointer" },
145
- onClick: R,
146
- children: /* @__PURE__ */ n(T, { $renderAs: "ab2-bold", children: "NEW" })
147
- }
148
- ),
149
- tooltipYCoOrdinates: 14
150
- // Need some offset in Y direction from top
104
+ const g = t.current.labelRef.current.getBoundingClientRect(), E = (U = t.current) == null ? void 0 : U.segmentedCardWrapperRef.current.getBoundingClientRect();
105
+ P(e, []), l ? (console.log("TUTORIAL DONE 2", { tablePaginationRef: d }), a(e, {
106
+ originalElementToHighlightRef: d,
107
+ isActive: !1,
108
+ type: u.TOOLTIP,
109
+ elementToHighlight: /* @__PURE__ */ n(ce, { id: "kill-me", $isActive: !1 }),
110
+ indicator: {
111
+ position: "bottom",
112
+ backgroundColor: "YELLOW_4",
113
+ width: 52,
114
+ tooltipItem: /* @__PURE__ */ n(
115
+ N,
116
+ {
117
+ $position: "absolute",
118
+ $flexDirection: "row",
119
+ style: { top: 6, left: 8, cursor: "pointer" },
120
+ onClick: O,
121
+ children: /* @__PURE__ */ n(m, { $renderAs: "ab2-bold", children: "NEW" })
151
122
  }
152
- },
123
+ ),
124
+ tooltipYCoOrdinates: 14
125
+ // Need some offset in Y direction from top
126
+ }
127
+ }), a(e, {
128
+ originalElementToHighlightRef: d,
129
+ isActive: !1,
130
+ type: u.NUDGE,
131
+ indicator: {
132
+ nudge: "click",
133
+ content: "",
134
+ nudgePointerY: 20
135
+ },
136
+ elementToHighlight: /* @__PURE__ */ n(R, {})
137
+ }), (Y = s.current) == null || Y.goToIndex(ie), c(e, !1, J), c(e, !0, le)) : (console.log("TURIRTUAK NOT DONE", { tablesData: r, isTutorialOnboardingDone: l }), a(e, {
138
+ originalElementToHighlightRef: (k = s.current) == null ? void 0 : k.nextBtnRef,
139
+ isActive: !1,
140
+ type: u.NUDGE,
141
+ indicator: {
142
+ nudge: "click",
143
+ content: /* @__PURE__ */ n(m, { $renderAs: "ab1", $color: "WHITE", children: "Click to proceed" }),
144
+ nudgePointerX: 0,
145
+ nudgePointerY: 0
146
+ },
147
+ elementToHighlight: /* @__PURE__ */ n(
148
+ Z,
153
149
  {
154
- originalElementToHighlightRef: s,
155
- isActive: !1,
156
- type: d.NUDGE,
157
- indicator: {
158
- nudge: "click",
159
- content: "",
160
- nudgePointerY: 20
161
- },
162
- elementToHighlight: /* @__PURE__ */ n(b, {})
150
+ renderAs: "secondary",
151
+ Icon: X,
152
+ onClick: O,
153
+ analyticsLabel: Q.JOURNEY_NEXT_ACTIVITY
163
154
  }
164
- ]);
165
- const N = setTimeout(() => {
166
- var G;
167
- (G = a.current) == null || G.goToIndex(ie);
168
- }, 0);
169
- u.current.push(N), c(t, !1, V), c(t, !0, le);
170
- }
171
- m(t, {
172
- originalElementToHighlightRef: e.current.labelRef,
155
+ )
156
+ }), (B = s.current) == null || B.goToIndex(oe), c(e, !1, J)), a(e, {
157
+ originalElementToHighlightRef: t.current.labelRef,
173
158
  isActive: !1,
174
- type: d.TOOLTIP,
175
- elementToHighlight: /* @__PURE__ */ n(b, {}),
159
+ type: u.TOOLTIP,
160
+ elementToHighlight: /* @__PURE__ */ n(R, {}),
176
161
  indicator: {
177
162
  position: "right",
178
163
  backgroundColor: "YELLOW_4",
179
164
  width: 264,
180
- tooltipItem: /* @__PURE__ */ n(S, { children: /* @__PURE__ */ n(T, { $renderAs: "ab2-bold", children: "Get faster at multiplication! Practice everyday and become a Tables champ." }) }),
165
+ tooltipItem: /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n(m, { $renderAs: "ab2-bold", children: "Get faster at multiplication! Practice everyday and become a Tables champ." }) }),
181
166
  tooltipXCoOrdinates: g.width + 50,
182
167
  tooltipYCoOrdinates: g.height / 2
183
168
  }
184
- }), m(t, {
185
- originalElementToHighlightRef: e.current.segmentedCardWrapperRef,
169
+ }), a(e, {
170
+ originalElementToHighlightRef: t.current.segmentedCardWrapperRef,
186
171
  isActive: !1,
187
- type: d.NUDGE,
172
+ type: u.NUDGE,
188
173
  indicator: {
189
174
  nudge: "click",
190
- content: /* @__PURE__ */ n(T, { $renderAs: "ab1", $color: "WHITE", children: "Pick a table to start" }),
175
+ content: /* @__PURE__ */ n(m, { $renderAs: "ab1", $color: "WHITE", children: "Pick a table to start" }),
191
176
  nudgePointerX: E.width / 2 + 50,
192
177
  nudgePointerY: E.height / 2
193
178
  },
194
179
  elementToHighlight: /* @__PURE__ */ n(
195
- $,
180
+ M,
196
181
  {
197
182
  ref: p,
198
183
  label: r.label,
199
184
  data: r.data,
200
185
  onPress: () => {
201
186
  },
202
- onPressTableSegment: (N) => W(r, N)
187
+ onPressTableSegment: (w) => H(r, w)
203
188
  }
204
189
  )
205
190
  });
206
191
  },
207
192
  [
208
- m,
209
193
  a,
210
- R,
211
- W,
212
- t,
194
+ s,
195
+ O,
196
+ H,
197
+ e,
213
198
  c,
214
- C
199
+ P
215
200
  ]
216
201
  );
217
202
  return F(() => () => {
218
- u.current.forEach((r) => clearTimeout(r)), u.current = [], L.current = !1;
219
- }, [t]), {
220
- tableRef: e,
221
- startJourney: w
203
+ T.current.forEach((r) => clearTimeout(r)), T.current = [], L.current = !1;
204
+ }, [e]), {
205
+ tableRef: t,
206
+ startJourney: V
222
207
  };
223
208
  };
224
209
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"use-table-launcher-journey.js","sources":["../../../../../../src/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.tsx"],"sourcesContent":["/* eslint-disable react-native/no-inline-styles */\nimport type { IArrowTooltipProps } from '../../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { INudgeProps } from '../../../../ui/nudge/nudge-types';\nimport type { ITableCardRef, ITableDetails } from '../../comps/tables-card/tables-card-types';\nimport type {\n ITableInfo,\n ITables,\n} from '../../dal/use-get-circle-home-details-dal/use-get-circle-home-dal-types';\nimport type { IUseTableJourneyProps } from './use-table-launcher-journey-types';\n\nimport { useCallback, useEffect, useRef } from 'react';\n\nimport CaratRightIcon from '../../../../../assets/line-icons/icons/carat-right';\nimport { PLATFORM_EVENTS_STUDENT } from '../../../../analytics-events/platform-events-student';\nimport { JOURNEY_ID_STUDENT } from '../../../../journey/journey-id/journey-id-student';\nimport { IndicatorType } from '../../../../journey/use-journey/constants';\nimport { useJourney } from '../../../../journey/use-journey/use-journey';\nimport IconButton from '../../../../ui/buttons/icon-button/icon-button';\nimport { useUIContext } from '../../../../ui/context/context';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { CIRCLE_ONBOARDING_ANALYTICS_STEPS as Action } from '../../../enum/circle-onboarding-steps';\nimport { useCircleSounds } from '../../../hooks/use-circle-sounds/use-circle-sounds';\nimport { TablesCard } from '../../comps/tables-card/tables-card';\nimport { GAME_LAUNCHER_ANALYTICS_EVENTS } from '../../game-launcher-analytics-events';\nimport {\n LESSON_CARD_INDEX,\n PUZZLE_CARD_INDEX,\n SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS,\n SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS,\n TABLE_CARD_INDEX,\n} from './constants';\nimport {\n GO_TO_TABLE_LAUNCHER_DURATION_MS,\n SHOW_CLICK_TABLE_NUDGE_AFTER_MS,\n SHOW_INITIAL_COACHMARK_AFTER_MS,\n SHOW_INITIAL_TOOLTIP_AFTER_MS,\n START_ANIMATING_CLONED_ELEM,\n} from './constants';\nimport * as S from './use-table-launcher-journey-styled';\n\nexport const useTableLauncherJourney = ({\n carouselRefs,\n onTableSegmentClick,\n}: IUseTableJourneyProps) => {\n const journeyId = JOURNEY_ID_STUDENT.CIRCLE_TABLES_INTRO_JOURNEY;\n const originalTableRef = useRef<ITableCardRef>(null);\n const highlightedTableRef = useRef<ITableCardRef>(null);\n const isJourneyInProgress = useRef(false);\n\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { playButtonSound } = useCircleSounds();\n const { nextCoachmark, setJourney, addCoachmark, endJourney } = useJourney();\n const { onEvent: trackAnalytics } = useUIContext();\n\n const handleEndJourney = useCallback(\n (tableDetails?: ITableDetails) => {\n // Only when User clicked on play\n if (tableDetails) {\n onTableSegmentClick(tableDetails);\n }\n trackAnalytics(PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_COMPLETED, {\n step: Action.TABLES,\n });\n\n // Reset original table card ref label\n originalTableRef?.current?.setLabelVisiblity(true);\n originalTableRef?.current?.stopLabelAnimation();\n endJourney(journeyId);\n },\n [endJourney, journeyId, onTableSegmentClick, trackAnalytics],\n );\n\n const handleTableSegmentClick = useCallback(\n (launcherData: ITables, tableData: ITableInfo) => {\n if (\n !originalTableRef.current?.segmentedCardWrapperRef.current ||\n !originalTableRef.current?.labelRef.current\n ) {\n return;\n }\n\n const segmentedCardDims = originalTableRef.current.labelRef.current.getBoundingClientRect();\n const tableCardDims =\n originalTableRef.current?.segmentedCardWrapperRef.current.getBoundingClientRect();\n\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.segmentedCardWrapperRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <TablesCard\n ref={highlightedTableRef}\n defaultTable={tableData}\n label={launcherData.label}\n data={launcherData.data}\n onPress={handleEndJourney}\n onGoBackFromTableLevel={handleEndJourney}\n />\n ),\n indicator: {\n position: 'left',\n backgroundColor: 'YELLOW_4',\n width: 236,\n tooltipItem: (\n <FlexView>\n <Text $renderAs=\"ab2-bold\">Each table has 3 levels—clear them and earn 3 stars!</Text>\n </FlexView>\n ),\n tooltipXCoOrdinates: 0,\n tooltipYCoOrdinates: segmentedCardDims.height * 0.35,\n } as IArrowTooltipProps,\n });\n\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.segmentedCardWrapperRef,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: (\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n Pick a level\n </Text>\n ),\n nudgePointerX: tableCardDims.width / 2 + 50,\n nudgePointerY: tableCardDims.height * 0.4,\n } as INudgeProps,\n elementToHighlight: <></>,\n });\n\n nextCoachmark(journeyId, false, SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS); // Show coachmark => Each table has 3... and Hide the previous two\n nextCoachmark(journeyId, true, SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS); // Show nudge => Pick a level\n\n const startAnimationOnLabelAgain = setTimeout(() => {\n clearTimeout(startAnimationOnLabelAgain);\n highlightedTableRef.current?.startLabelAnimation('YELLOW_4');\n }, START_ANIMATING_CLONED_ELEM);\n\n timerRefs.current.push(startAnimationOnLabelAgain);\n },\n [addCoachmark, handleEndJourney, journeyId, nextCoachmark],\n );\n\n const goToTableLauncher = useCallback(() => {\n playButtonSound();\n carouselRefs.current?.goToIndex(TABLE_CARD_INDEX);\n nextCoachmark(journeyId, false, GO_TO_TABLE_LAUNCHER_DURATION_MS);\n\n trackAnalytics(PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_VIEWED, {\n step: Action.TABLES,\n });\n\n const showNudge = setTimeout(() => {\n clearTimeout(showNudge);\n originalTableRef.current?.setLabelVisiblity(false);\n nextCoachmark(journeyId, true);\n }, SHOW_CLICK_TABLE_NUDGE_AFTER_MS);\n\n timerRefs.current.push(showNudge);\n\n const animateLabel = setTimeout(() => {\n clearTimeout(animateLabel);\n highlightedTableRef.current?.startLabelAnimation('YELLOW_4');\n }, START_ANIMATING_CLONED_ELEM);\n\n timerRefs.current.push(animateLabel);\n }, [carouselRefs, journeyId, nextCoachmark, playButtonSound, trackAnalytics]);\n\n const startJourney = useCallback(\n (tablesData: ITables, isTutorialOnboardingDone: boolean = false) => {\n console.log('startJourney', { tablesData, isTutorialOnboardingDone });\n\n if (isJourneyInProgress.current) {\n return;\n }\n\n const paginationList = carouselRefs.current?.indicatorRefs;\n const carouselNextBtnRef = carouselRefs.current?.nextBtnRef;\n const tablePaginationRef = paginationList?.[TABLE_CARD_INDEX];\n\n if (\n !originalTableRef.current?.segmentedCardWrapperRef.current ||\n !originalTableRef.current?.labelRef.current ||\n !paginationList ||\n !carouselNextBtnRef?.current ||\n !tablePaginationRef ||\n !tablePaginationRef.current\n ) {\n console.log('SOMETHING IS NOT AVAILABLE');\n\n return;\n }\n\n isJourneyInProgress.current = true;\n\n const labelDims = originalTableRef.current.labelRef.current.getBoundingClientRect();\n const tableCardDims =\n originalTableRef.current?.segmentedCardWrapperRef.current.getBoundingClientRect();\n\n // TAKE THE USER TO THE TABLE CARD\n if (!isTutorialOnboardingDone) {\n console.log('TURIRTUAK NOT DONE', { tablesData, isTutorialOnboardingDone });\n setJourney(journeyId, [\n {\n originalElementToHighlightRef: carouselRefs.current?.nextBtnRef,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: (\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n Click to proceed\n </Text>\n ),\n nudgePointerX: 0,\n nudgePointerY: 0,\n } as INudgeProps,\n elementToHighlight: (\n <IconButton\n renderAs=\"secondary\"\n Icon={CaratRightIcon}\n onClick={goToTableLauncher}\n analyticsLabel={GAME_LAUNCHER_ANALYTICS_EVENTS.JOURNEY_NEXT_ACTIVITY}\n />\n ),\n },\n ]);\n carouselRefs.current?.goToIndex(PUZZLE_CARD_INDEX);\n nextCoachmark(journeyId, false, SHOW_INITIAL_COACHMARK_AFTER_MS); // Show nudge => Click to proceed\n } else {\n console.log('TUTORIAL DONE 2', { tablePaginationRef });\n setJourney(journeyId, [\n {\n originalElementToHighlightRef: tablePaginationRef as React.RefObject<HTMLDivElement>,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: <S.Indicator id=\"kill-me\" $isActive={false} />,\n indicator: {\n position: 'bottom',\n backgroundColor: 'YELLOW_4',\n width: 52,\n tooltipItem: (\n <FlexView\n $position=\"absolute\"\n $flexDirection=\"row\"\n style={{ top: 6, left: 8, cursor: 'pointer' }}\n onClick={goToTableLauncher}\n >\n <Text $renderAs=\"ab2-bold\">NEW</Text>\n </FlexView>\n ),\n tooltipYCoOrdinates: 14, // Need some offset in Y direction from top\n } as IArrowTooltipProps,\n },\n {\n originalElementToHighlightRef: tablePaginationRef as React.RefObject<HTMLDivElement>,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: '',\n nudgePointerY: 20,\n } as INudgeProps,\n elementToHighlight: <></>,\n },\n ]);\n const timerId = setTimeout(() => {\n carouselRefs.current?.goToIndex(LESSON_CARD_INDEX);\n }, 0);\n\n timerRefs.current.push(timerId);\n\n nextCoachmark(journeyId, false, SHOW_INITIAL_COACHMARK_AFTER_MS); // Show Coachmark => NEW\n nextCoachmark(journeyId, true, SHOW_INITIAL_TOOLTIP_AFTER_MS); // Show Nudge over Coachmark\n }\n\n // SHOW THE USER SELECT A TABLE\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.labelRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: <></>,\n indicator: {\n position: 'right',\n backgroundColor: 'YELLOW_4',\n width: 264,\n tooltipItem: (\n <FlexView>\n <Text $renderAs=\"ab2-bold\">\n Get faster at multiplication! Practice everyday and become a Tables champ.\n </Text>\n </FlexView>\n ),\n tooltipXCoOrdinates: labelDims.width + 50,\n tooltipYCoOrdinates: labelDims.height / 2,\n } as IArrowTooltipProps,\n });\n\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.segmentedCardWrapperRef,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: (\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n {'Pick a table to start'}\n </Text>\n ),\n nudgePointerX: tableCardDims.width / 2 + 50,\n nudgePointerY: tableCardDims.height / 2,\n } as INudgeProps,\n elementToHighlight: (\n <TablesCard\n ref={highlightedTableRef}\n label={tablesData.label}\n data={tablesData.data}\n onPress={() => {}}\n onPressTableSegment={tableInfo => handleTableSegmentClick(tablesData, tableInfo)}\n />\n ),\n });\n },\n [\n addCoachmark,\n carouselRefs,\n goToTableLauncher,\n handleTableSegmentClick,\n journeyId,\n nextCoachmark,\n setJourney,\n ],\n );\n\n // Cleanup on unmount\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n isJourneyInProgress.current = false;\n };\n }, [journeyId]);\n\n return {\n tableRef: originalTableRef,\n startJourney,\n };\n};\n"],"names":["useTableLauncherJourney","carouselRefs","onTableSegmentClick","journeyId","JOURNEY_ID_STUDENT","originalTableRef","useRef","highlightedTableRef","isJourneyInProgress","timerRefs","playButtonSound","useCircleSounds","nextCoachmark","setJourney","addCoachmark","endJourney","useJourney","trackAnalytics","useUIContext","handleEndJourney","useCallback","tableDetails","PLATFORM_EVENTS_STUDENT","Action","_a","_b","handleTableSegmentClick","launcherData","tableData","segmentedCardDims","tableCardDims","_c","IndicatorType","jsx","TablesCard","FlexView","Text","Fragment","SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS","SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS","startAnimationOnLabelAgain","START_ANIMATING_CLONED_ELEM","goToTableLauncher","TABLE_CARD_INDEX","GO_TO_TABLE_LAUNCHER_DURATION_MS","showNudge","SHOW_CLICK_TABLE_NUDGE_AFTER_MS","animateLabel","startJourney","tablesData","isTutorialOnboardingDone","paginationList","carouselNextBtnRef","tablePaginationRef","_d","labelDims","_e","_f","IconButton","CaratRightIcon","GAME_LAUNCHER_ANALYTICS_EVENTS","_g","PUZZLE_CARD_INDEX","S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1B,UACH,yBAAA;AAAA,UAEF,eAAeN,EAAc,QAAQ,IAAI;AAAA,UACzC,eAAeA,EAAc,SAAS;AAAA,QACxC;AAAA,QACA,oBACE,gBAAAG;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,KAAK3B;AAAA,YACL,OAAO0C,EAAW;AAAA,YAClB,MAAMA,EAAW;AAAA,YACjB,SAAS,MAAM;AAAA,YAAC;AAAA,YAChB,qBAAqB,CAAAmB,MAAa1C,EAAwBuB,GAAYmB,CAAS;AAAA,UAAA;AAAA,QACjF;AAAA,MAAA,CAEH;AAAA,IACH;AAAA,IACA;AAAA,MACEtD;AAAA,MACAb;AAAA,MACAyC;AAAA,MACAhB;AAAA,MACAvB;AAAA,MACAS;AAAA,MACAC;AAAA,IACF;AAAA,EAAA;AAIF,SAAAwD,EAAU,MACD,MAAM;AACX,IAAA5D,EAAU,QAAQ,QAAQ,CAAS6D,MAAA,aAAaA,CAAK,CAAC,GACtD7D,EAAU,UAAU,IACpBD,EAAoB,UAAU;AAAA,EAAA,GAE/B,CAACL,CAAS,CAAC,GAEP;AAAA,IACL,UAAUE;AAAA,IACV,cAAA2C;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"use-table-launcher-journey.js","sources":["../../../../../../src/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.tsx"],"sourcesContent":["/* eslint-disable react-native/no-inline-styles */\nimport type { IArrowTooltipProps } from '../../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { INudgeProps } from '../../../../ui/nudge/nudge-types';\nimport type { ITableCardRef, ITableDetails } from '../../comps/tables-card/tables-card-types';\nimport type {\n ITableInfo,\n ITables,\n} from '../../dal/use-get-circle-home-details-dal/use-get-circle-home-dal-types';\nimport type { IUseTableJourneyProps } from './use-table-launcher-journey-types';\n\nimport { useCallback, useEffect, useRef } from 'react';\n\nimport CaratRightIcon from '../../../../../assets/line-icons/icons/carat-right';\nimport { PLATFORM_EVENTS_STUDENT } from '../../../../analytics-events/platform-events-student';\nimport { JOURNEY_ID_STUDENT } from '../../../../journey/journey-id/journey-id-student';\nimport { IndicatorType } from '../../../../journey/use-journey/constants';\nimport { useJourney } from '../../../../journey/use-journey/use-journey';\nimport IconButton from '../../../../ui/buttons/icon-button/icon-button';\nimport { useUIContext } from '../../../../ui/context/context';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { CIRCLE_ONBOARDING_ANALYTICS_STEPS as Action } from '../../../enum/circle-onboarding-steps';\nimport { useCircleSounds } from '../../../hooks/use-circle-sounds/use-circle-sounds';\nimport { TablesCard } from '../../comps/tables-card/tables-card';\nimport { GAME_LAUNCHER_ANALYTICS_EVENTS } from '../../game-launcher-analytics-events';\nimport {\n LESSON_CARD_INDEX,\n PUZZLE_CARD_INDEX,\n SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS,\n SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS,\n TABLE_CARD_INDEX,\n} from './constants';\nimport {\n GO_TO_TABLE_LAUNCHER_DURATION_MS,\n SHOW_CLICK_TABLE_NUDGE_AFTER_MS,\n SHOW_INITIAL_COACHMARK_AFTER_MS,\n SHOW_INITIAL_TOOLTIP_AFTER_MS,\n START_ANIMATING_CLONED_ELEM,\n} from './constants';\nimport * as S from './use-table-launcher-journey-styled';\n\nexport const useTableLauncherJourney = ({\n carouselRefs,\n onTableSegmentClick,\n}: IUseTableJourneyProps) => {\n const journeyId = JOURNEY_ID_STUDENT.CIRCLE_TABLES_INTRO_JOURNEY;\n const originalTableRef = useRef<ITableCardRef>(null);\n const highlightedTableRef = useRef<ITableCardRef>(null);\n const isJourneyInProgress = useRef(false);\n\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { playButtonSound } = useCircleSounds();\n const { nextCoachmark, setJourney, addCoachmark, endJourney } = useJourney();\n const { onEvent: trackAnalytics } = useUIContext();\n\n const handleEndJourney = useCallback(\n (tableDetails?: ITableDetails) => {\n // Only when User clicked on play\n if (tableDetails) {\n onTableSegmentClick(tableDetails);\n }\n trackAnalytics(PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_COMPLETED, {\n step: Action.TABLES,\n });\n\n // Reset original table card ref label\n originalTableRef?.current?.setLabelVisiblity(true);\n originalTableRef?.current?.stopLabelAnimation();\n endJourney(journeyId);\n },\n [endJourney, journeyId, onTableSegmentClick, trackAnalytics],\n );\n\n const handleTableSegmentClick = useCallback(\n (launcherData: ITables, tableData: ITableInfo) => {\n if (\n !originalTableRef.current?.segmentedCardWrapperRef.current ||\n !originalTableRef.current?.labelRef.current\n ) {\n return;\n }\n\n const segmentedCardDims = originalTableRef.current.labelRef.current.getBoundingClientRect();\n const tableCardDims =\n originalTableRef.current?.segmentedCardWrapperRef.current.getBoundingClientRect();\n\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.segmentedCardWrapperRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: (\n <TablesCard\n ref={highlightedTableRef}\n defaultTable={tableData}\n label={launcherData.label}\n data={launcherData.data}\n onPress={handleEndJourney}\n onGoBackFromTableLevel={handleEndJourney}\n />\n ),\n indicator: {\n position: 'left',\n backgroundColor: 'YELLOW_4',\n width: 236,\n tooltipItem: (\n <FlexView>\n <Text $renderAs=\"ab2-bold\">Each table has 3 levels—clear them and earn 3 stars!</Text>\n </FlexView>\n ),\n tooltipXCoOrdinates: 0,\n tooltipYCoOrdinates: segmentedCardDims.height * 0.35,\n } as IArrowTooltipProps,\n });\n\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.segmentedCardWrapperRef,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: (\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n Pick a level\n </Text>\n ),\n nudgePointerX: tableCardDims.width / 2 + 50,\n nudgePointerY: tableCardDims.height * 0.4,\n } as INudgeProps,\n elementToHighlight: <></>,\n });\n\n nextCoachmark(journeyId, false, SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS); // Show coachmark => Each table has 3... and Hide the previous two\n nextCoachmark(journeyId, true, SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS); // Show nudge => Pick a level\n\n const startAnimationOnLabelAgain = setTimeout(() => {\n clearTimeout(startAnimationOnLabelAgain);\n highlightedTableRef.current?.startLabelAnimation('YELLOW_4');\n }, START_ANIMATING_CLONED_ELEM);\n\n timerRefs.current.push(startAnimationOnLabelAgain);\n },\n [addCoachmark, handleEndJourney, journeyId, nextCoachmark],\n );\n\n const goToTableLauncher = useCallback(() => {\n playButtonSound();\n carouselRefs.current?.goToIndex(TABLE_CARD_INDEX);\n nextCoachmark(journeyId, false, GO_TO_TABLE_LAUNCHER_DURATION_MS);\n\n trackAnalytics(PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_VIEWED, {\n step: Action.TABLES,\n });\n\n const showNudge = setTimeout(() => {\n clearTimeout(showNudge);\n originalTableRef.current?.setLabelVisiblity(false);\n nextCoachmark(journeyId, true);\n }, SHOW_CLICK_TABLE_NUDGE_AFTER_MS);\n\n timerRefs.current.push(showNudge);\n\n const animateLabel = setTimeout(() => {\n clearTimeout(animateLabel);\n highlightedTableRef.current?.startLabelAnimation('YELLOW_4');\n }, START_ANIMATING_CLONED_ELEM);\n\n timerRefs.current.push(animateLabel);\n }, [carouselRefs, journeyId, nextCoachmark, playButtonSound, trackAnalytics]);\n\n const startJourney = useCallback(\n (tablesData: ITables, isTutorialOnboardingDone: boolean = false) => {\n console.log('startJourney', { tablesData, isTutorialOnboardingDone });\n\n if (isJourneyInProgress.current) {\n return;\n }\n\n const paginationList = carouselRefs.current?.indicatorRefs;\n const carouselNextBtnRef = carouselRefs.current?.nextBtnRef;\n const tablePaginationRef = paginationList?.[TABLE_CARD_INDEX];\n\n if (\n !originalTableRef.current?.segmentedCardWrapperRef.current ||\n !originalTableRef.current?.labelRef.current ||\n !paginationList ||\n !carouselNextBtnRef?.current ||\n !tablePaginationRef ||\n !tablePaginationRef.current\n ) {\n console.log('SOMETHING IS NOT AVAILABLE');\n\n return;\n }\n\n isJourneyInProgress.current = true;\n\n const labelDims = originalTableRef.current.labelRef.current.getBoundingClientRect();\n const tableCardDims =\n originalTableRef.current?.segmentedCardWrapperRef.current.getBoundingClientRect();\n\n setJourney(journeyId, []);\n\n // TAKE THE USER TO THE TABLE CARD\n if (!isTutorialOnboardingDone) {\n console.log('TURIRTUAK NOT DONE', { tablesData, isTutorialOnboardingDone });\n addCoachmark(journeyId, {\n originalElementToHighlightRef: carouselRefs.current?.nextBtnRef,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: (\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n Click to proceed\n </Text>\n ),\n nudgePointerX: 0,\n nudgePointerY: 0,\n } as INudgeProps,\n elementToHighlight: (\n <IconButton\n renderAs=\"secondary\"\n Icon={CaratRightIcon}\n onClick={goToTableLauncher}\n analyticsLabel={GAME_LAUNCHER_ANALYTICS_EVENTS.JOURNEY_NEXT_ACTIVITY}\n />\n ),\n });\n carouselRefs.current?.goToIndex(PUZZLE_CARD_INDEX);\n nextCoachmark(journeyId, false, SHOW_INITIAL_COACHMARK_AFTER_MS); // Show nudge => Click to proceed\n } else {\n console.log('TUTORIAL DONE 2', { tablePaginationRef });\n addCoachmark(journeyId, {\n originalElementToHighlightRef: tablePaginationRef as React.RefObject<HTMLDivElement>,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: <S.Indicator id=\"kill-me\" $isActive={false} />,\n indicator: {\n position: 'bottom',\n backgroundColor: 'YELLOW_4',\n width: 52,\n tooltipItem: (\n <FlexView\n $position=\"absolute\"\n $flexDirection=\"row\"\n style={{ top: 6, left: 8, cursor: 'pointer' }}\n onClick={goToTableLauncher}\n >\n <Text $renderAs=\"ab2-bold\">NEW</Text>\n </FlexView>\n ),\n tooltipYCoOrdinates: 14, // Need some offset in Y direction from top\n } as IArrowTooltipProps,\n });\n addCoachmark(journeyId, {\n originalElementToHighlightRef: tablePaginationRef as React.RefObject<HTMLDivElement>,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: '',\n nudgePointerY: 20,\n } as INudgeProps,\n elementToHighlight: <></>,\n });\n carouselRefs.current?.goToIndex(LESSON_CARD_INDEX);\n nextCoachmark(journeyId, false, SHOW_INITIAL_COACHMARK_AFTER_MS); // Show Coachmark => NEW\n nextCoachmark(journeyId, true, SHOW_INITIAL_TOOLTIP_AFTER_MS); // Show Nudge over Coachmark\n }\n\n // SHOW THE USER SELECT A TABLE\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.labelRef,\n isActive: false,\n type: IndicatorType.TOOLTIP,\n elementToHighlight: <></>,\n indicator: {\n position: 'right',\n backgroundColor: 'YELLOW_4',\n width: 264,\n tooltipItem: (\n <FlexView>\n <Text $renderAs=\"ab2-bold\">\n Get faster at multiplication! Practice everyday and become a Tables champ.\n </Text>\n </FlexView>\n ),\n tooltipXCoOrdinates: labelDims.width + 50,\n tooltipYCoOrdinates: labelDims.height / 2,\n } as IArrowTooltipProps,\n });\n\n addCoachmark(journeyId, {\n originalElementToHighlightRef: originalTableRef.current.segmentedCardWrapperRef,\n isActive: false,\n type: IndicatorType.NUDGE,\n indicator: {\n nudge: 'click',\n content: (\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n {'Pick a table to start'}\n </Text>\n ),\n nudgePointerX: tableCardDims.width / 2 + 50,\n nudgePointerY: tableCardDims.height / 2,\n } as INudgeProps,\n elementToHighlight: (\n <TablesCard\n ref={highlightedTableRef}\n label={tablesData.label}\n data={tablesData.data}\n onPress={() => {}}\n onPressTableSegment={tableInfo => handleTableSegmentClick(tablesData, tableInfo)}\n />\n ),\n });\n },\n [\n addCoachmark,\n carouselRefs,\n goToTableLauncher,\n handleTableSegmentClick,\n journeyId,\n nextCoachmark,\n setJourney,\n ],\n );\n\n // Cleanup on unmount\n useEffect(() => {\n return () => {\n timerRefs.current.forEach(timer => clearTimeout(timer));\n timerRefs.current = [];\n isJourneyInProgress.current = false;\n };\n }, [journeyId]);\n\n return {\n tableRef: originalTableRef,\n startJourney,\n };\n};\n"],"names":["useTableLauncherJourney","carouselRefs","onTableSegmentClick","journeyId","JOURNEY_ID_STUDENT","originalTableRef","useRef","highlightedTableRef","isJourneyInProgress","timerRefs","playButtonSound","useCircleSounds","nextCoachmark","setJourney","addCoachmark","endJourney","useJourney","trackAnalytics","useUIContext","handleEndJourney","useCallback","tableDetails","PLATFORM_EVENTS_STUDENT","Action","_a","_b","handleTableSegmentClick","launcherData","tableData","segmentedCardDims","tableCardDims","_c","IndicatorType","jsx","TablesCard","FlexView","Text","Fragment","SHOW_PICK_A_LEVEL_TOOLTIP_AFTER_MS","SHOW_PICK_A_LEVEL_NUDGE_AFTER_MS","startAnimationOnLabelAgain","START_ANIMATING_CLONED_ELEM","goToTableLauncher","TABLE_CARD_INDEX","GO_TO_TABLE_LAUNCHER_DURATION_MS","showNudge","SHOW_CLICK_TABLE_NUDGE_AFTER_MS","animateLabel","startJourney","tablesData","isTutorialOnboardingDone","paginationList","carouselNextBtnRef","tablePaginationRef","_d","labelDims","_e","S.Indicator","_h","LESSON_CARD_INDEX","SHOW_INITIAL_COACHMARK_AFTER_MS","SHOW_INITIAL_TOOLTIP_AFTER_MS","_f","IconButton","CaratRightIcon","GAME_LAUNCHER_ANALYTICS_EVENTS","_g","PUZZLE_CARD_INDEX","tableInfo","useEffect","timer"],"mappings":";;;;;;;;;;;;;;;;;AAyCO,MAAMA,KAA0B,CAAC;AAAA,EACtC,cAAAC;AAAA,EACA,qBAAAC;AACF,MAA6B;AAC3B,QAAMC,IAAYC,EAAmB,6BAC/BC,IAAmBC,EAAsB,IAAI,GAC7CC,IAAsBD,EAAsB,IAAI,GAChDE,IAAsBF,EAAO,EAAK,GAElCG,IAAYH,EAAwC,CAAA,CAAE,GAEtD,EAAE,iBAAAI,MAAoBC,KACtB,EAA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,QAAQ,CAAS6D,MAAA,aAAaA,CAAK,CAAC,GACtD7D,EAAU,UAAU,IACpBD,EAAoB,UAAU;AAAA,EAAA,GAE/B,CAACL,CAAS,CAAC,GAEP;AAAA,IACL,UAAUE;AAAA,IACV,cAAA2C;AAAA,EAAA;AAEJ;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "2.8.61-rj-7",
3
+ "version": "2.8.61-rj-8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"