@cuemath/leap 3.1.47 → 3.1.48-aa0

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.
Files changed (46) hide show
  1. package/dist/assets/illustrations/illustrations.js +3 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +19 -1
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/chapters/lpar-chapter/constants/index.js.map +1 -1
  6. package/dist/features/chapters-v2/utils/index.js +23 -11
  7. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  8. package/dist/features/chapters-v2/utils/node-card-utils.js +50 -34
  9. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  10. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js +10 -0
  11. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js.map +1 -0
  12. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +44 -0
  13. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -0
  14. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js +44 -0
  15. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js.map +1 -0
  16. package/dist/features/worksheet/worksheet/constants.js +12 -13
  17. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  18. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +227 -245
  19. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  20. package/dist/features/worksheet/worksheet/worksheet.js +163 -162
  21. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  22. package/dist/index.d.ts +32 -1
  23. package/dist/index.js +76 -74
  24. package/dist/index.js.map +1 -1
  25. package/dist/static/activity.ca6afed5.json +417 -0
  26. package/dist/static/cent.3a07ef13.json +5576 -0
  27. package/dist/static/clap.aa0b824b.json +12684 -0
  28. package/dist/static/dart.60f73d0f.json +4207 -0
  29. package/dist/static/diamond.8c91431a.json +6716 -0
  30. package/dist/static/dice.eb192df8.json +16260 -0
  31. package/dist/static/download.475e7e15.json +1038 -0
  32. package/dist/static/golf.55585049.json +2832 -0
  33. package/dist/static/magicwand.75ac8f1b.json +3879 -0
  34. package/dist/static/mechanical-arm.7561628e.json +4428 -0
  35. package/dist/static/medal.782dab23.json +4134 -0
  36. package/dist/static/node-activity-bg.122f7e01.svg +1 -0
  37. package/dist/static/node-download-bg.b8367de7.svg +1 -0
  38. package/dist/static/node-subjective-bg.d6013a16.svg +1 -0
  39. package/dist/static/party-ball.e19caed6.json +11578 -0
  40. package/dist/static/party-popper.9f7992e8.json +6416 -0
  41. package/dist/static/slot-machine.ba8014dd.json +7779 -0
  42. package/dist/static/subjective.bc5f37fb.json +1177 -0
  43. package/dist/static/super.7fad19f6.json +3720 -0
  44. package/dist/static/trophy.a8ea85ef.json +6813 -0
  45. package/dist/static/victory.2ca41d92.json +9959 -0
  46. package/package.json +1 -1
@@ -1,49 +1,49 @@
1
- import { jsxs as R, Fragment as ct, jsx as o } from "react/jsx-runtime";
2
- import { captureMessage as Y } from "@sentry/browser";
3
- import { memo as lt, forwardRef as dt, useMemo as Z, useState as y, useCallback as T, useEffect as b, useLayoutEffect as ut } from "react";
4
- import mt from "../../../assets/line-icons/icons/check2.js";
5
- import ft from "../../../assets/line-icons/icons/info2.js";
6
- import pt from "../../../helpers/get-device-details.js";
7
- import ht from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
1
+ import { jsxs as R, Fragment as lt, jsx as o } from "react/jsx-runtime";
2
+ import { captureMessage as Z } from "@sentry/browser";
3
+ import { memo as dt, forwardRef as ut, useMemo as Q, useState as T, useCallback as y, useEffect as b, useLayoutEffect as mt } from "react";
4
+ import ft from "../../../assets/line-icons/icons/check2.js";
5
+ import pt from "../../../assets/line-icons/icons/info2.js";
6
+ import ht from "../../../helpers/get-device-details.js";
7
+ import gt from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
8
8
  import ue from "../../ui/layout/flex-view.js";
9
- import gt from "../../ui/text/text.js";
10
- import bt from "../constants/events.js";
11
- import It from "../user-pointer-pin/user-pin.js";
12
- import { WORKSHEET_NUDGE_BANNER_HEIGHT as me, TOP_NAVIGATION_HEIGHT as St, DESMOS_CALC_POSITION as Ct } from "./constants.js";
9
+ import bt from "../../ui/text/text.js";
10
+ import It from "../constants/events.js";
11
+ import St from "../user-pointer-pin/user-pin.js";
12
+ import { WORKSHEET_NUDGE_BANNER_HEIGHT as me, TOP_NAVIGATION_HEIGHT as Ct, DESMOS_CALC_POSITION as Tt } from "./constants.js";
13
13
  import yt from "./hooks/use-create-imperative-handle.js";
14
- import Tt from "./hooks/use-get-active-question-id.js";
15
- import vt from "./hooks/use-time-on-questions.js";
16
- import $t from "./question-tips.js";
17
- import Et from "./worksheet-action-bar/worksheet-action-bar.js";
18
- import _t from "./worksheet-blocker/worksheet-blocker.js";
19
- import { getWorksheetDimensions as kt, getQuestionsFromItems as wt, getInitialResponses as Nt, getLastUnlockedQuestionIndex as fe, getInitialQuestionId as At, getQuestionMetadata as pe, scrollToQuestion as Q, getRenderableQuestions as Bt, getWorksheetNudgeBannerInfo as Wt } from "./worksheet-helpers.js";
20
- import Ot from "./worksheet-navigation/worksheet-navigation.js";
21
- import Rt from "./worksheet-question/worksheet-question.js";
22
- import Dt from "./worksheet-sidebar/navigator.js";
23
- import Vt from "./worksheet-sidebar/sidebar.js";
24
- import { NudgeBannerWrapper as Mt, NudgeBannerIcon as he, WorksheetContainer as Ht, NavigationContainer as xt, NavigationWrapper as qt, BlockerWrapper as Pt, DesmosCalcWrapper as Qt, ActionbarContainer as Gt, ActionbarWrapper as Lt, StudentWorksheetSideBar as Ft, QuestionsWrapper as jt } from "./worksheet-styled.js";
25
- import Kt from "./worksheet-summary/worksheet-summary.js";
26
- const Ut = (ge, be) => {
14
+ import vt from "./hooks/use-get-active-question-id.js";
15
+ import $t from "./hooks/use-time-on-questions.js";
16
+ import Et from "./question-tips.js";
17
+ import _t from "./worksheet-action-bar/worksheet-action-bar.js";
18
+ import kt from "./worksheet-blocker/worksheet-blocker.js";
19
+ import { getWorksheetDimensions as wt, getQuestionsFromItems as Nt, getInitialResponses as At, getLastUnlockedQuestionIndex as fe, getRenderableQuestions as Bt, getInitialQuestionId as Wt, getQuestionMetadata as pe, scrollToQuestion as G, getWorksheetNudgeBannerInfo as Ot } from "./worksheet-helpers.js";
20
+ import Rt from "./worksheet-navigation/worksheet-navigation.js";
21
+ import Dt from "./worksheet-question/worksheet-question.js";
22
+ import Vt from "./worksheet-sidebar/navigator.js";
23
+ import Mt from "./worksheet-sidebar/sidebar.js";
24
+ import { NudgeBannerWrapper as Ht, NudgeBannerIcon as he, WorksheetContainer as xt, NavigationContainer as qt, NavigationWrapper as Pt, BlockerWrapper as Qt, DesmosCalcWrapper as Gt, ActionbarContainer as Lt, ActionbarWrapper as Ft, StudentWorksheetSideBar as jt, QuestionsWrapper as Kt } from "./worksheet-styled.js";
25
+ import Ut from "./worksheet-summary/worksheet-summary.js";
26
+ const Xt = (ge, be) => {
27
27
  const {
28
- userType: s,
28
+ userType: r,
29
29
  studentName: Ie = "Student",
30
30
  questionsSignedRequest: Se,
31
31
  worksheetName: ee,
32
32
  initialResponseId: Ce,
33
- initialItemIndex: ye,
33
+ initialItemIndex: Te,
34
34
  learnosityActivityRef: _,
35
35
  learnosityItems: k,
36
- learnosityResponses: Te,
36
+ learnosityResponses: ye,
37
37
  layout: v,
38
38
  background: ve,
39
39
  behavior: a,
40
- updatedResponses: G,
40
+ updatedResponses: L,
41
41
  showNudgeBanner: $e,
42
42
  markedAsCompleted: te,
43
43
  onResponseChange: I,
44
44
  onBulkResponsesChange: Ee,
45
- onResponsesChange: L,
46
- onMediaStateChange: F,
45
+ onResponsesChange: F,
46
+ onMediaStateChange: j,
47
47
  onTeacherValidation: ie,
48
48
  onOptionalItemAssignment: _e,
49
49
  onOptionalItemSkip: ke,
@@ -61,7 +61,7 @@ const Ut = (ge, be) => {
61
61
  onHelp: Re,
62
62
  onPublishMouseMove: De,
63
63
  onSubscribeMouseMove: Ve,
64
- onActiveQuestionChange: j,
64
+ onActiveQuestionChange: K,
65
65
  openQuestionFeedbackModal: Me,
66
66
  summaryDescription: He,
67
67
  canSubmitWorksheet: xe,
@@ -73,7 +73,7 @@ const Ut = (ge, be) => {
73
73
  studentId: Le,
74
74
  subjectiveProps: Fe,
75
75
  canShowActionBar: je = !0
76
- } = ge, { initialQuestion: Ke, navigationMode: p, teacherValidationEnabled: K } = a, {
76
+ } = ge, { initialQuestion: Ke, navigationMode: p, teacherValidationEnabled: U } = a, {
77
77
  containerStyle: M,
78
78
  containerWidth: Ue,
79
79
  minQuestionHeight: re,
@@ -83,41 +83,44 @@ const Ut = (ge, be) => {
83
83
  topOffset: x,
84
84
  renderSideBar: Je,
85
85
  showUserPointer: Ye = !0
86
- } = v, { actionbarHeight: C, maxQuestionWidth: U, questionsContainerWidth: X } = Z(
87
- () => kt(k, v),
86
+ } = v, { actionbarHeight: C, maxQuestionWidth: X, questionsContainerWidth: z } = Q(
87
+ () => wt(k, v),
88
88
  [v, k]
89
- ), [t] = y(
90
- () => wt(k, {
91
- sectioned: K && p !== "ADAPTIVE" && p !== "CURRENT",
89
+ ), [t] = T(
90
+ () => Nt(k, {
91
+ sectioned: U && p !== "ADAPTIVE" && p !== "CURRENT",
92
92
  adaptive: p === "ADAPTIVE"
93
93
  })
94
- ), [c, N] = y(
95
- () => Te ?? Nt(t)
96
- ), [se, Ze] = y(!1), h = Z(
94
+ ), [c, N] = T(
95
+ () => ye ?? At(t)
96
+ ), [se, Ze] = T(!1), h = Q(
97
97
  () => p !== "OPEN" ? fe({
98
98
  questions: t,
99
99
  responses: c,
100
100
  behavior: a,
101
- userType: s
101
+ userType: r
102
102
  }) : t.length - 1,
103
- [a, p, t, c, s]
104
- ), l = t[h], r = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: et, label: tt } = Wt(s, !!te), [A] = y(
105
- () => At({
103
+ [a, p, t, c, r]
104
+ ), et = Q(
105
+ () => Bt({ questions: t, lastUnlockedQuestionIndex: h, userType: r }),
106
+ [t, h, r]
107
+ ), l = t[h], s = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: tt, label: it } = Ot(r, !!te), [A] = T(
108
+ () => Wt({
106
109
  questions: t,
107
110
  initialQuestion: Ke,
108
111
  lastUnlockedQuestionIndex: fe({
109
112
  questions: t,
110
113
  responses: c,
111
114
  behavior: a,
112
- userType: s
115
+ userType: r
113
116
  }),
114
117
  initialResponseId: Ce,
115
- initialItemIndex: ye
118
+ initialItemIndex: Te
116
119
  })
117
- ), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: z } = Tt(A), f = Z(
120
+ ), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: J } = vt(A), f = Q(
118
121
  () => t.findIndex((e) => e.response_id === B),
119
122
  [B, t]
120
- ), [g, J] = y(!1), [ae, W] = y(), [ce, le] = y(!1), de = vt(a, c, B), it = T(
123
+ ), [g, Y] = T(!1), [ae, W] = T(), [ce, le] = T(!1), de = $t(a, c, B), nt = y(
121
124
  (e, i, n) => {
122
125
  const d = i === "SIMULATION" ? "simState" : void 0;
123
126
  d && (I ? N((u) => {
@@ -137,10 +140,10 @@ const Ut = (ge, be) => {
137
140
  ...u,
138
141
  [m]: E
139
142
  };
140
- }) : F && F(e, i, n));
143
+ }) : j && j(e, i, n));
141
144
  },
142
- [F, I, t]
143
- ), nt = T(
145
+ [j, I, t]
146
+ ), ot = y(
144
147
  (e, i) => {
145
148
  N((n) => {
146
149
  const d = pe(t, e);
@@ -155,32 +158,32 @@ const Ut = (ge, be) => {
155
158
  });
156
159
  },
157
160
  [t]
158
- ), O = T(() => {
161
+ ), O = y(() => {
159
162
  W((e) => {
160
163
  var i;
161
164
  if (e) {
162
165
  const n = (i = t[h]) == null ? void 0 : i.response_id;
163
166
  n && setTimeout(() => {
164
- Q(n);
167
+ G(n);
165
168
  }, 50);
166
169
  }
167
170
  });
168
- }, [h, t]), P = T(
171
+ }, [h, t]), P = y(
169
172
  (e) => {
170
- J(!1), H ? requestAnimationFrame(() => Q(e)) : q(e);
173
+ Y(!1), H ? requestAnimationFrame(() => G(e)) : q(e);
171
174
  },
172
175
  [H, q]
173
- ), ot = T(() => {
176
+ ), rt = y(() => {
174
177
  le(!1);
175
- }, []), rt = T(() => {
178
+ }, []), st = y(() => {
176
179
  le(!0);
177
- }, []), st = T(() => {
178
- J(!0);
180
+ }, []), at = y(() => {
181
+ Y(!0);
179
182
  }, []);
180
183
  return b(() => {
181
184
  const e = t[f];
182
- e && j && j(e);
183
- }, [j, t, f]), yt(be, {
185
+ e && K && K(e);
186
+ }, [K, t, f]), yt(be, {
184
187
  behavior: a,
185
188
  questions: t,
186
189
  setResponses: N,
@@ -188,45 +191,45 @@ const Ut = (ge, be) => {
188
191
  onBulkResponsesChange: Ee,
189
192
  getTimeSpentOnQuestion: de
190
193
  }), b(() => () => {
191
- z.disconnect();
192
- }, [z]), b(() => {
193
- L && c && L(c);
194
- }, [L, c]), b(() => {
195
- G && N(G);
196
- }, [G]), ut(() => {
194
+ J.disconnect();
195
+ }, [J]), b(() => {
196
+ F && c && F(c);
197
+ }, [F, c]), b(() => {
198
+ L && N(L);
199
+ }, [L]), mt(() => {
197
200
  let e;
198
- return S && A && (pt().browser_name === "Safari" ? e = setTimeout(() => {
199
- Q(A);
200
- }, 400) : Q(A)), () => {
201
+ return S && A && (ht().browser_name === "Safari" ? e = setTimeout(() => {
202
+ G(A);
203
+ }, 400) : G(A)), () => {
201
204
  clearTimeout(e);
202
205
  };
203
206
  }, [S, A, x]), b(() => {
204
207
  if (a.teacherValidationEnabled && l) {
205
208
  const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
206
- s === "TEACHER" && (e === "exit-ticket" && i !== "SystemIntro" ? r != null && r.submittedByStudent && !(r != null && r.validatedByTeacher) ? W("exit-ticket-review-available") : r != null && r.validatedByTeacher ? O() : W("exit-ticket-teacher-intervention") : n ? r != null && r.assignStatus ? O() : W("optional-items-assignment") : n || O());
209
+ r === "TEACHER" && (e === "exit-ticket" && i !== "SystemIntro" ? s != null && s.submittedByStudent && !(s != null && s.validatedByTeacher) ? W("exit-ticket-review-available") : s != null && s.validatedByTeacher ? O() : W("exit-ticket-teacher-intervention") : n ? s != null && s.assignStatus ? O() : W("optional-items-assignment") : n || O());
207
210
  }
208
211
  }, [
209
212
  a.teacherValidationEnabled,
210
213
  O,
211
214
  l,
212
- r,
213
- s
215
+ s,
216
+ r
214
217
  ]), b(() => {
215
218
  if (a.teacherValidationEnabled && l) {
216
219
  const { item_type: e, instructor_stimulus: i } = l;
217
- s === "STUDENT" && e === "exit-ticket" && i !== "SystemIntro" && (r != null && r.submittedByStudent ? V == null || V() : D == null || D());
220
+ r === "STUDENT" && e === "exit-ticket" && i !== "SystemIntro" && (s != null && s.submittedByStudent ? V == null || V() : D == null || D());
218
221
  }
219
222
  }, [
220
223
  a.teacherValidationEnabled,
221
224
  l,
222
- r == null ? void 0 : r.submittedByStudent,
225
+ s == null ? void 0 : s.submittedByStudent,
223
226
  D,
224
227
  V,
225
- s
228
+ r
226
229
  ]), b(() => {
227
230
  p === "CURRENT" && k.forEach(({ reference: e, questions: i }) => {
228
231
  var n, d, u;
229
- i.length < 3 ? Y(`Diagnostics item has Less than 3 questions: ${e}`, {
232
+ i.length < 3 ? Z(`Diagnostics item has Less than 3 questions: ${e}`, {
230
233
  tags: {
231
234
  "content-type": "learnosity",
232
235
  "activity-reference": _,
@@ -234,7 +237,7 @@ const Ut = (ge, be) => {
234
237
  },
235
238
  fingerprint: [`diagnostics-item-questions-count-${e}`]
236
239
  // Add unique fingerprint
237
- }) : (((n = i[0]) == null ? void 0 : n.instructor_stimulus) !== "Try" || ((d = i[1]) == null ? void 0 : d.instructor_stimulus) !== "Learn" || ((u = i[2]) == null ? void 0 : u.instructor_stimulus) !== "Apply") && Y(
240
+ }) : (((n = i[0]) == null ? void 0 : n.instructor_stimulus) !== "Try" || ((d = i[1]) == null ? void 0 : d.instructor_stimulus) !== "Learn" || ((u = i[2]) == null ? void 0 : u.instructor_stimulus) !== "Apply") && Z(
238
241
  `Diagnostics questions sequence is incorrect expected [Try, Learn, Apply]: ${e}`,
239
242
  {
240
243
  tags: {
@@ -250,9 +253,9 @@ const Ut = (ge, be) => {
250
253
  }, [_, k, p]), b(() => {
251
254
  t.forEach((e) => {
252
255
  const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
253
- if ((K ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
256
+ if ((U ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
254
257
  const E = i.valid_response.value ?? [];
255
- (E == null ? void 0 : E.length) === 0 && ((i.alt_responses ?? []).some((at) => at.value.length > 0) || (Y(`Question has no valid response: ${m.widget_reference}`, {
258
+ (E == null ? void 0 : E.length) === 0 && ((i.alt_responses ?? []).some((ct) => ct.value.length > 0) || (Z(`Question has no valid response: ${m.widget_reference}`, {
256
259
  tags: {
257
260
  "content-type": "learnosity",
258
261
  "activity-reference": _,
@@ -262,7 +265,7 @@ const Ut = (ge, be) => {
262
265
  },
263
266
  fingerprint: [`no-valid-response-${m.widget_reference}`]
264
267
  // Add unique fingerprint
265
- }), w.current(bt.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
268
+ }), w.current(It.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
266
269
  item_reference: n,
267
270
  widget_reference: m.widget_reference,
268
271
  question_type: d,
@@ -270,9 +273,9 @@ const Ut = (ge, be) => {
270
273
  })));
271
274
  }
272
275
  });
273
- }, [_, w, t, K]), S ? /* @__PURE__ */ R(ct, { children: [
276
+ }, [_, w, t, U]), S ? /* @__PURE__ */ R(lt, { children: [
274
277
  $e && /* @__PURE__ */ R(
275
- Mt,
278
+ Ht,
276
279
  {
277
280
  $flexDirection: "row",
278
281
  $justifyContent: "center",
@@ -283,17 +286,17 @@ const Ut = (ge, be) => {
283
286
  $gap: 8,
284
287
  $gutter: 8,
285
288
  $flexGap: 8,
286
- $background: et,
289
+ $background: tt,
287
290
  $topOffset: v.topOffset - me,
288
291
  children: [
289
- te ? /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(mt, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(ft, { width: 16, height: 16 }) }),
290
- /* @__PURE__ */ o(gt, { $renderAs: "ub3", children: tt })
292
+ te ? /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(ft, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(pt, { width: 16, height: 16 }) }),
293
+ /* @__PURE__ */ o(bt, { $renderAs: "ub3", children: it })
291
294
  ]
292
295
  }
293
296
  ),
294
- /* @__PURE__ */ R(Ht, { $background: "WHITE", $width: Ue, children: [
295
- ze === "top" && /* @__PURE__ */ o(xt, { $topOffset: x, $height: St, children: /* @__PURE__ */ o(qt, { children: /* @__PURE__ */ o(
296
- Ot,
297
+ /* @__PURE__ */ R(xt, { $background: "WHITE", $width: Ue, children: [
298
+ ze === "top" && /* @__PURE__ */ o(qt, { $topOffset: x, $height: Ct, children: /* @__PURE__ */ o(Pt, { children: /* @__PURE__ */ o(
299
+ Rt,
297
300
  {
298
301
  placement: "top",
299
302
  questions: t,
@@ -302,12 +305,12 @@ const Ut = (ge, be) => {
302
305
  lastUnlockedQuestionIndex: h,
303
306
  behavior: a,
304
307
  onItemNumberClick: P,
305
- userType: s,
308
+ userType: r,
306
309
  summaryVisible: g
307
310
  }
308
311
  ) }) }),
309
- ae && l && /* @__PURE__ */ o(Pt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(ue, { $width: U, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
310
- _t,
312
+ ae && l && /* @__PURE__ */ o(Qt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(ue, { $width: X, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
313
+ kt,
311
314
  {
312
315
  blocker: ae,
313
316
  lastUnlockedQuestion: l,
@@ -319,38 +322,38 @@ const Ut = (ge, be) => {
319
322
  }
320
323
  ) }) }),
321
324
  Ye && /* @__PURE__ */ o(
322
- It,
325
+ St,
323
326
  {
324
327
  activeQuestionIndex: f,
325
328
  onClick: P,
326
329
  questions: t,
327
330
  bottomOffset: C,
328
331
  topOffset: x,
329
- userType: s
332
+ userType: r
330
333
  }
331
334
  ),
332
- ce && /* @__PURE__ */ o(Qt, { children: /* @__PURE__ */ o(ht, { initialPosition: Ct, onClose: ot }) }),
335
+ ce && /* @__PURE__ */ o(Gt, { children: /* @__PURE__ */ o(gt, { initialPosition: Tt, onClose: rt }) }),
333
336
  /* @__PURE__ */ R(
334
- Gt,
337
+ Lt,
335
338
  {
336
- $marginTop: s === "TEACHER" && g ? "0" : C,
339
+ $marginTop: r === "TEACHER" && g ? "0" : C,
337
340
  $height: C,
338
341
  $isCardView: M === "card",
339
342
  children: [
340
343
  /* @__PURE__ */ o(
341
- $t,
344
+ Et,
342
345
  {
343
- width: X - 32,
346
+ width: z - 32,
344
347
  question: t[f],
345
348
  learnosity: S,
346
- userType: s
349
+ userType: r
347
350
  }
348
351
  ),
349
352
  je && /* @__PURE__ */ o(
350
- Lt,
353
+ Ft,
351
354
  {
352
355
  $height: C,
353
- $width: M === "card" ? X - 32 : "100%",
356
+ $width: M === "card" ? z - 32 : "100%",
354
357
  $isCardView: M === "card",
355
358
  children: /* @__PURE__ */ o(
356
359
  ue,
@@ -359,17 +362,17 @@ const Ut = (ge, be) => {
359
362
  $flexDirection: "row",
360
363
  $justifyContent: "space-between",
361
364
  $alignItems: "center",
362
- $width: X - 32,
365
+ $width: z - 32,
363
366
  children: /* @__PURE__ */ o(
364
- Et,
367
+ _t,
365
368
  {
366
- userType: s,
369
+ userType: r,
367
370
  layout: v,
368
371
  behavior: a,
369
372
  worksheetName: ee,
370
373
  questions: t,
371
374
  responses: c,
372
- onCalculatorOpen: rt,
375
+ onCalculatorOpen: st,
373
376
  activeQuestionIndex: f,
374
377
  lastUnlockedQuestionIndex: h,
375
378
  appendedQuestionIds: ne,
@@ -380,12 +383,12 @@ const Ut = (ge, be) => {
380
383
  isSummaryVisible: g,
381
384
  setResponses: N,
382
385
  getTimeSpentOnQuestion: de,
383
- setSummaryVisible: J,
386
+ setSummaryVisible: Y,
384
387
  setBlocker: W,
385
388
  setIsScribblingEnabled: Ze,
386
389
  setActiveQuestionId: q,
387
390
  onItemNumberClick: P,
388
- onGoToReview: st,
391
+ onGoToReview: at,
389
392
  onResponseChange: I,
390
393
  onHelp: Re,
391
394
  onTeacherValidation: ie,
@@ -400,64 +403,62 @@ const Ut = (ge, be) => {
400
403
  )
401
404
  }
402
405
  ),
403
- !g && H && s === "STUDENT" && /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(Dt, {}) })
406
+ !g && H && r === "STUDENT" && /* @__PURE__ */ o(jt, { children: /* @__PURE__ */ o(Vt, {}) })
404
407
  ]
405
408
  }
406
409
  ),
407
410
  /* @__PURE__ */ R(
408
- jt,
411
+ Kt,
409
412
  {
410
413
  $actionbarHeight: C,
411
414
  $isCardView: M === "card",
412
415
  children: [
413
- Bt({ questions: t, lastUnlockedQuestionIndex: h, userType: s }).map(
414
- (e, i) => {
415
- var m, $;
416
- const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
417
- return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ o(
418
- Rt,
419
- {
420
- signedRequest: Se,
421
- userType: s,
422
- worksheetCompleted: Ne,
423
- question: e,
424
- response: c[n],
425
- nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
426
- maxQuestionWidth: U,
427
- learnosity: S,
428
- isActive: n === B,
429
- isHidden: !H && n !== B || g,
430
- canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
431
- background: ve,
432
- appended: ne.includes(n),
433
- behavior: a,
434
- layout: v,
435
- actionbarHeight: C,
436
- intersectionObserver: z,
437
- onMarkForReview: nt,
438
- onMediaStateChange: it,
439
- userId: Ae,
440
- isScribblingEnabled: se,
441
- onPublishStrokes: Be,
442
- onReceiveStrokes: We,
443
- initialStrokesData: Oe,
444
- isCanvasEnabled: oe,
445
- onPublishMouseMove: De,
446
- onSubscribeMouseMove: Ve,
447
- setActiveQuestionId: q,
448
- canResolveDoubt: qe,
449
- onResolveDoubt: Pe,
450
- studentId: Le,
451
- subjectiveProps: Fe,
452
- responses: c,
453
- loggerRef: w
454
- },
455
- n
456
- );
457
- }
458
- ),
416
+ et.map((e, i) => {
417
+ var m, $;
418
+ const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
419
+ return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && r === "STUDENT") ? null : /* @__PURE__ */ o(
420
+ Dt,
421
+ {
422
+ signedRequest: Se,
423
+ userType: r,
424
+ worksheetCompleted: Ne,
425
+ question: e,
426
+ response: c[n],
427
+ nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
428
+ maxQuestionWidth: X,
429
+ learnosity: S,
430
+ isActive: n === B,
431
+ isHidden: !H && n !== B || g,
432
+ canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
433
+ background: ve,
434
+ appended: ne.includes(n),
435
+ behavior: a,
436
+ layout: v,
437
+ actionbarHeight: C,
438
+ intersectionObserver: J,
439
+ onMarkForReview: ot,
440
+ onMediaStateChange: nt,
441
+ userId: Ae,
442
+ isScribblingEnabled: se,
443
+ onPublishStrokes: Be,
444
+ onReceiveStrokes: We,
445
+ initialStrokesData: Oe,
446
+ isCanvasEnabled: oe,
447
+ onPublishMouseMove: De,
448
+ onSubscribeMouseMove: Ve,
449
+ setActiveQuestionId: q,
450
+ canResolveDoubt: qe,
451
+ onResolveDoubt: Pe,
452
+ studentId: Le,
453
+ subjectiveProps: Fe,
454
+ responses: c,
455
+ loggerRef: w
456
+ },
457
+ n
458
+ );
459
+ }),
459
460
  g && /* @__PURE__ */ o(
460
- Kt,
461
+ Ut,
461
462
  {
462
463
  worksheetName: ee,
463
464
  questions: t,
@@ -475,13 +476,13 @@ const Ut = (ge, be) => {
475
476
  }
476
477
  ),
477
478
  !g && Je && /* @__PURE__ */ o(
478
- Vt,
479
+ Mt,
479
480
  {
480
- questionWidth: U,
481
+ questionWidth: X,
481
482
  questions: t,
482
483
  activeQuestionIndex: f,
483
484
  learnosity: S,
484
- userType: s,
485
+ userType: r,
485
486
  height: re,
486
487
  actionbarHeight: C,
487
488
  openQuestionFeedbackModal: Me,
@@ -490,8 +491,8 @@ const Ut = (ge, be) => {
490
491
  )
491
492
  ] })
492
493
  ] }) : null;
493
- }, Ti = lt(dt(Ut));
494
+ }, vi = dt(ut(Xt));
494
495
  export {
495
- Ti as default
496
+ vi as default
496
497
  };
497
498
  //# sourceMappingURL=worksheet.js.map