@cuemath/leap 3.1.48-aa3 → 3.1.48-beta-0.1

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