@cuemath/leap 3.3.3 → 3.3.4-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 (35) hide show
  1. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +19 -20
  2. package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js.map +1 -1
  3. package/dist/features/sheets/constants/sheet.js +12 -7
  4. package/dist/features/sheets/constants/sheet.js.map +1 -1
  5. package/dist/features/sheets/utils/is-v3-worksheet.js +17 -0
  6. package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
  7. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +86 -90
  8. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
  9. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +147 -0
  10. package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -0
  11. package/dist/features/worksheet/worksheet/worksheet-container.js +62 -42
  12. package/dist/features/worksheet/worksheet/worksheet-container.js.map +1 -1
  13. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +197 -199
  14. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  15. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +219 -293
  16. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  17. package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
  18. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  19. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  20. package/dist/features/worksheet/worksheet/worksheet.js +206 -215
  21. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  22. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +31 -32
  23. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
  24. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +30 -28
  25. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  26. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +68 -73
  27. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
  28. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +30 -79
  29. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  30. package/dist/index.d.ts +40 -38
  31. package/dist/index.js +193 -187
  32. package/dist/index.js.map +1 -1
  33. package/package.json +3 -2
  34. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
  35. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
@@ -1,149 +1,146 @@
1
- import { jsxs as y, Fragment as lt, jsx as i } from "react/jsx-runtime";
2
- import { memo as dt, forwardRef as mt, useMemo as K, useState as I, useCallback as S, useEffect as T, useLayoutEffect as ut } from "react";
3
- import ht from "../../../assets/line-icons/icons/check2.js";
4
- import ft from "../../../assets/line-icons/icons/info2.js";
5
- import pt from "../../../helpers/get-device-details.js";
6
- import gt from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
7
- import de from "../../ui/layout/flex-view.js";
8
- import bt from "../../ui/text/text.js";
9
- import Ct from "../user-pointer-pin/user-pin.js";
10
- import { WORKSHEET_NUDGE_BANNER_HEIGHT as me, TOP_NAVIGATION_HEIGHT as It, DESMOS_CALC_POSITION as St } from "./constants.js";
11
- import kt from "./hooks/use-create-imperative-handle.js";
12
- import $t from "./hooks/use-get-active-question-id.js";
13
- import Tt from "./hooks/use-time-on-questions.js";
14
- import vt from "./question-tips.js";
15
- import wt from "./worksheet-action-bar/worksheet-action-bar.js";
16
- import Et from "./worksheet-blocker/worksheet-blocker.js";
17
- import { getWorksheetDimensions as Nt, getQuestionsFromItems as At, getInitialResponses as Bt, getLastUnlockedQuestionIndex as ue, getInitialQuestionId as yt, getQuestionMetadata as he, scrollToQuestion as x, getRenderableQuestions as Wt, getWorksheetNudgeBannerInfo as _t } from "./worksheet-helpers.js";
18
- import Ot from "./worksheet-navigation/worksheet-navigation.js";
19
- import Dt from "./worksheet-question/worksheet-question.js";
20
- import Vt from "./worksheet-sidebar/navigator.js";
21
- import Ht from "./worksheet-sidebar/sidebar.js";
22
- import { NudgeBannerWrapper as Mt, NudgeBannerIcon as fe, WorksheetContainer as xt, NavigationContainer as Rt, NavigationWrapper as Pt, BlockerWrapper as Qt, DesmosCalcWrapper as Gt, ActionbarContainer as Ft, ActionbarWrapper as jt, StudentWorksheetSideBar as zt, QuestionsWrapper as Lt } from "./worksheet-styled.js";
23
- import qt from "./worksheet-summary/worksheet-summary.js";
24
- const Xt = (pe, ge) => {
1
+ import { jsxs as y, Fragment as rt, jsx as i } from "react/jsx-runtime";
2
+ import { memo as st, forwardRef as at, useMemo as z, useState as C, useCallback as S, useEffect as T, useLayoutEffect as ct } from "react";
3
+ import dt from "../../../assets/line-icons/icons/check2.js";
4
+ import lt from "../../../assets/line-icons/icons/info2.js";
5
+ import mt from "../../../helpers/get-device-details.js";
6
+ import ut from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
7
+ import ce from "../../ui/layout/flex-view.js";
8
+ import ht from "../../ui/text/text.js";
9
+ import ft from "../user-pointer-pin/user-pin.js";
10
+ import { WORKSHEET_NUDGE_BANNER_HEIGHT as de, TOP_NAVIGATION_HEIGHT as pt, DESMOS_CALC_POSITION as gt } from "./constants.js";
11
+ import bt from "./hooks/use-create-imperative-handle.js";
12
+ import It from "./hooks/use-get-active-question-id.js";
13
+ import Ct from "./hooks/use-time-on-questions.js";
14
+ import St from "./question-tips.js";
15
+ import kt from "./worksheet-action-bar/worksheet-action-bar.js";
16
+ import $t from "./worksheet-blocker/worksheet-blocker.js";
17
+ import { getWorksheetDimensions as Tt, getQuestionsFromItems as vt, getInitialResponses as Et, getLastUnlockedQuestionIndex as le, getInitialQuestionId as wt, getQuestionMetadata as me, scrollToQuestion as x, getRenderableQuestions as Nt, getWorksheetNudgeBannerInfo as Bt } from "./worksheet-helpers.js";
18
+ import At from "./worksheet-navigation/worksheet-navigation.js";
19
+ import yt from "./worksheet-question/worksheet-question.js";
20
+ import Wt from "./worksheet-sidebar/navigator.js";
21
+ import _t from "./worksheet-sidebar/sidebar.js";
22
+ import { NudgeBannerWrapper as Ot, NudgeBannerIcon as ue, WorksheetContainer as Dt, NavigationContainer as Vt, NavigationWrapper as Ht, BlockerWrapper as Mt, DesmosCalcWrapper as xt, ActionbarContainer as Rt, ActionbarWrapper as Pt, StudentWorksheetSideBar as Qt, QuestionsWrapper as Gt } from "./worksheet-styled.js";
23
+ import Ft from "./worksheet-summary/worksheet-summary.js";
24
+ const jt = (he, fe) => {
25
25
  const {
26
26
  userType: r,
27
- studentName: be = "Student",
28
- questionsSignedRequest: Ce,
29
- worksheetName: U,
30
- initialResponseId: Ie,
31
- initialItemIndex: Se,
27
+ studentName: pe = "Student",
28
+ questionsSignedRequest: ge,
29
+ worksheetName: J,
30
+ initialResponseId: be,
31
+ initialItemIndex: Ie,
32
32
  // learnosityActivityRef,
33
33
  learnosityItems: R,
34
- learnosityResponses: ke,
34
+ learnosityResponses: Ce,
35
35
  layout: k,
36
- background: $e,
37
36
  behavior: a,
38
37
  updatedResponses: P,
39
- showNudgeBanner: Te,
40
- markedAsCompleted: J,
38
+ showNudgeBanner: Se,
39
+ markedAsCompleted: U,
41
40
  onResponseChange: f,
42
- onBulkResponsesChange: ve,
41
+ onBulkResponsesChange: ke,
43
42
  onResponsesChange: Q,
44
43
  onMediaStateChange: G,
45
44
  onTeacherValidation: Y,
46
- onOptionalItemAssignment: we,
47
- onOptionalItemSkip: Ee,
45
+ onOptionalItemAssignment: $e,
46
+ onOptionalItemSkip: Te,
48
47
  onExitTicketStart: W,
49
48
  onExitTicketSubmit: _,
50
- onSubmit: Ne,
49
+ onSubmit: ve,
51
50
  learnosity: p,
52
51
  appendedQuestionIds: Z,
53
- worksheetCompleted: Ae,
54
- userId: Be,
55
- onPublishStrokes: ye,
56
- onReceiveStrokes: We,
57
- initialStrokesData: _e,
58
- isCanvasEnabled: ee,
59
- onHelp: Oe,
60
- onPublishMouseMove: De,
61
- onSubscribeMouseMove: Ve,
52
+ worksheetCompleted: Ee,
53
+ userId: we,
54
+ onPublishStrokes: Ne,
55
+ onReceiveStrokes: Be,
56
+ initialStrokesData: Ae,
57
+ onHelp: ye,
58
+ onPublishMouseMove: We,
59
+ onSubscribeMouseMove: _e,
62
60
  onActiveQuestionChange: F,
63
- openQuestionFeedbackModal: He,
64
- summaryDescription: Me,
65
- canSubmitWorksheet: xe,
61
+ openQuestionFeedbackModal: Oe,
62
+ summaryDescription: De,
63
+ canSubmitWorksheet: Ve,
66
64
  loggerRef: j,
67
- canResolveDoubt: Re,
68
- onResolveDoubt: Pe,
69
- onSkip: Qe,
70
- onUnassign: Ge,
71
- onReview: Fe,
72
- canToggleScribbling: je = !0,
73
- studentId: ze,
74
- subjectiveProps: Le,
75
- canShowActionBar: qe = !0
76
- } = pe, { initialQuestion: Xe, navigationMode: m, teacherValidationEnabled: Ke, maximumAttempts: te } = a, {
65
+ canResolveDoubt: He,
66
+ onResolveDoubt: Me,
67
+ onSkip: xe,
68
+ studentId: Re,
69
+ subjectiveProps: Pe,
70
+ canShowActionBar: Qe = !0,
71
+ actionBarRightElement: Ge
72
+ } = he, { initialQuestion: Fe, navigationMode: m, teacherValidationEnabled: je, maximumAttempts: ee } = a, {
77
73
  containerStyle: O,
78
- containerWidth: Ue,
79
- minQuestionHeight: ie,
80
- minSummaryHeight: Je,
74
+ containerWidth: qe,
75
+ minQuestionHeight: te,
76
+ minSummaryHeight: Le,
81
77
  questionsScrollable: D,
82
- navigationBar: Ye,
78
+ navigationBar: Xe,
83
79
  topOffset: V,
84
- renderSideBar: Ze,
85
- showUserPointer: et = !0
86
- } = k, ne = te === -2, { actionbarHeight: g, maxQuestionWidth: z, questionsContainerWidth: L } = K(
87
- () => Nt(R, k),
80
+ renderSideBar: Ke,
81
+ showUserPointer: ze = !0,
82
+ questionPadding: Je
83
+ } = k, { actionbarHeight: g, maxQuestionWidth: q, questionsContainerWidth: L } = z(
84
+ () => Tt(R, k),
88
85
  [k, R]
89
- ), [t] = I(
90
- () => At(R, {
91
- sectioned: Ke && m !== "ADAPTIVE" && m !== "CURRENT",
86
+ ), [t] = C(
87
+ () => vt(R, {
88
+ sectioned: je && m !== "ADAPTIVE" && m !== "CURRENT",
92
89
  adaptive: m === "ADAPTIVE"
93
90
  })
94
- ), [c, v] = I(
95
- () => ke ?? Bt(t)
96
- ), [oe, tt] = I(!1), u = K(
97
- () => m !== "OPEN" ? ue({
91
+ ), [c, v] = C(
92
+ () => Ce ?? Et(t)
93
+ ), [ie, Ue] = C(!1), u = z(
94
+ () => m !== "OPEN" ? le({
98
95
  questions: t,
99
96
  responses: c,
100
97
  behavior: a,
101
98
  userType: r
102
99
  }) : t.length - 1,
103
100
  [a, m, t, c, r]
104
- ), l = t[u], n = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: it, label: nt } = _t(r, !!J), [w] = I(
105
- () => yt({
101
+ ), d = t[u], n = c[(d == null ? void 0 : d.response_id) ?? ""], { bannerBackgroundColor: Ye, label: Ze } = Bt(r, !!U), [E] = C(
102
+ () => wt({
106
103
  questions: t,
107
- initialQuestion: Xe,
108
- lastUnlockedQuestionIndex: ue({
104
+ initialQuestion: Fe,
105
+ lastUnlockedQuestionIndex: le({
109
106
  questions: t,
110
107
  responses: c,
111
108
  behavior: a,
112
109
  userType: r
113
110
  }),
114
- initialResponseId: Ie,
115
- initialItemIndex: Se
111
+ initialResponseId: be,
112
+ initialItemIndex: Ie
116
113
  })
117
- ), { activeQuestionId: E, setActiveQuestionId: H, intersectionObserver: q } = $t(w), d = K(
118
- () => t.findIndex((e) => e.response_id === E),
119
- [E, t]
120
- ), [h, X] = I(!1), [re, N] = I(), [se, ae] = I(!1), ce = Tt(a, c, E), ot = S(
114
+ ), { activeQuestionId: w, setActiveQuestionId: H, intersectionObserver: X } = It(E), l = z(
115
+ () => t.findIndex((e) => e.response_id === w),
116
+ [w, t]
117
+ ), [h, K] = C(!1), [ne, N] = C(), [oe, re] = C(!1), se = Ct(a, c, w), et = S(
121
118
  (e, s, o) => {
122
119
  const b = s === "SIMULATION" ? "simState" : void 0;
123
120
  b && (f ? v(($) => {
124
- const C = e.response_id, B = he(t, C);
125
- if (!B) return $;
126
- const le = {
127
- ...B,
128
- ...$[C],
121
+ const I = e.response_id, A = me(t, I);
122
+ if (!A) return $;
123
+ const ae = {
124
+ ...A,
125
+ ...$[I],
129
126
  [b]: o
130
127
  };
131
128
  return f == null || f({
132
- responseId: C,
133
- response: le,
129
+ responseId: I,
130
+ response: ae,
134
131
  isNewAttempt: !1,
135
132
  question: e
136
133
  }), {
137
134
  ...$,
138
- [C]: le
135
+ [I]: ae
139
136
  };
140
137
  }) : G && G(e, s, o));
141
138
  },
142
139
  [G, f, t]
143
- ), rt = S(
140
+ ), tt = S(
144
141
  (e, s) => {
145
142
  v((o) => {
146
- const b = he(t, e);
143
+ const b = me(t, e);
147
144
  return b ? {
148
145
  ...o,
149
146
  [e]: {
@@ -155,7 +152,7 @@ const Xt = (pe, ge) => {
155
152
  });
156
153
  },
157
154
  [t]
158
- ), A = S(() => {
155
+ ), B = S(() => {
159
156
  N((e) => {
160
157
  var s;
161
158
  if (e) {
@@ -167,91 +164,91 @@ const Xt = (pe, ge) => {
167
164
  });
168
165
  }, [u, t]), M = S(
169
166
  (e) => {
170
- X(!1), D ? requestAnimationFrame(() => x(e)) : H(e);
167
+ K(!1), D ? requestAnimationFrame(() => x(e)) : H(e);
171
168
  },
172
169
  [D, H]
173
- ), st = S(() => {
174
- ae(!1);
175
- }, []), at = S(() => {
176
- ae(!0);
177
- }, []), ct = S(() => {
178
- X(!0);
170
+ ), it = S(() => {
171
+ re(!1);
172
+ }, []), nt = S(() => {
173
+ re(!0);
174
+ }, []), ot = S(() => {
175
+ K(!0);
179
176
  }, []);
180
177
  return T(() => {
181
- const e = t[d];
178
+ const e = t[l];
182
179
  e && F && F(e);
183
- }, [F, t, d]), kt(ge, {
180
+ }, [F, t, l]), bt(fe, {
184
181
  behavior: a,
185
182
  questions: t,
186
183
  setResponses: v,
187
184
  onResponseChange: f,
188
- onBulkResponsesChange: ve,
189
- getTimeSpentOnQuestion: ce
185
+ onBulkResponsesChange: ke,
186
+ getTimeSpentOnQuestion: se
190
187
  }), T(() => () => {
191
- q.disconnect();
192
- }, [q]), T(() => {
188
+ X.disconnect();
189
+ }, [X]), T(() => {
193
190
  Q && c && Q(c);
194
191
  }, [Q, c]), T(() => {
195
192
  P && v(P);
196
- }, [P]), ut(() => {
193
+ }, [P]), ct(() => {
197
194
  let e;
198
- return p && w && (pt().browser_name === "Safari" ? e = setTimeout(() => {
199
- x(w);
200
- }, 400) : x(w)), () => {
195
+ return p && E && (mt().browser_name === "Safari" ? e = setTimeout(() => {
196
+ x(E);
197
+ }, 400) : x(E)), () => {
201
198
  clearTimeout(e);
202
199
  };
203
- }, [p, w, V]), T(() => {
204
- if (a.teacherValidationEnabled && l) {
205
- const { item_type: e, instructor_stimulus: s, is_optional: o } = l;
206
- r === "TEACHER" && (e === "exit-ticket" && s !== "SystemIntro" ? n != null && n.submittedByStudent && !(n != null && n.validatedByTeacher) ? N("exit-ticket-review-available") : n != null && n.validatedByTeacher ? A() : N("exit-ticket-teacher-intervention") : o ? n != null && n.assignStatus ? A() : N("optional-items-assignment") : o || A());
200
+ }, [p, E, V]), T(() => {
201
+ if (a.teacherValidationEnabled && d) {
202
+ const { item_type: e, instructor_stimulus: s, is_optional: o } = d;
203
+ r === "TEACHER" && (e === "exit-ticket" && s !== "SystemIntro" ? n != null && n.submittedByStudent && !(n != null && n.validatedByTeacher) ? N("exit-ticket-review-available") : n != null && n.validatedByTeacher ? B() : N("exit-ticket-teacher-intervention") : o ? n != null && n.assignStatus ? B() : N("optional-items-assignment") : o || B());
207
204
  }
208
205
  }, [
209
206
  a.teacherValidationEnabled,
210
- A,
211
- l,
207
+ B,
208
+ d,
212
209
  n,
213
210
  r
214
211
  ]), T(() => {
215
- if (a.teacherValidationEnabled && l) {
216
- const { item_type: e, instructor_stimulus: s } = l;
212
+ if (a.teacherValidationEnabled && d) {
213
+ const { item_type: e, instructor_stimulus: s } = d;
217
214
  r === "STUDENT" && e === "exit-ticket" && s !== "SystemIntro" && (n != null && n.submittedByStudent ? _ == null || _() : W == null || W());
218
215
  }
219
216
  }, [
220
217
  a.teacherValidationEnabled,
221
- l,
218
+ d,
222
219
  n == null ? void 0 : n.submittedByStudent,
223
220
  W,
224
221
  _,
225
222
  r
226
- ]), p ? /* @__PURE__ */ y(lt, { children: [
227
- Te && /* @__PURE__ */ y(
228
- Mt,
223
+ ]), p ? /* @__PURE__ */ y(rt, { children: [
224
+ Se && /* @__PURE__ */ y(
225
+ Ot,
229
226
  {
230
227
  $flexDirection: "row",
231
228
  $justifyContent: "center",
232
229
  $alignItems: "center",
233
230
  $width: "100%",
234
231
  $heightX: 1.75,
235
- $height: me,
232
+ $height: de,
236
233
  $gap: 8,
237
234
  $gutter: 8,
238
235
  $flexGap: 8,
239
- $background: it,
240
- $topOffset: k.topOffset - me,
236
+ $background: Ye,
237
+ $topOffset: k.topOffset - de,
241
238
  children: [
242
- J ? /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ht, { width: 16, height: 16 }) }) : /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(ft, { width: 16, height: 16 }) }),
243
- /* @__PURE__ */ i(bt, { $renderAs: "ub3", children: nt })
239
+ U ? /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ i(dt, { width: 16, height: 16 }) }) : /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ i(lt, { width: 16, height: 16 }) }),
240
+ /* @__PURE__ */ i(ht, { $renderAs: "ub3", children: Ze })
244
241
  ]
245
242
  }
246
243
  ),
247
- /* @__PURE__ */ y(xt, { $background: "WHITE_1", $width: Ue, children: [
248
- Ye === "top" && /* @__PURE__ */ i(Rt, { $topOffset: V, $height: It, children: /* @__PURE__ */ i(Pt, { children: /* @__PURE__ */ i(
249
- Ot,
244
+ /* @__PURE__ */ y(Dt, { $background: "WHITE_1", $width: qe, children: [
245
+ Xe === "top" && /* @__PURE__ */ i(Vt, { $topOffset: V, $height: pt, children: /* @__PURE__ */ i(Ht, { children: /* @__PURE__ */ i(
246
+ At,
250
247
  {
251
248
  placement: "top",
252
249
  questions: t,
253
250
  responses: c,
254
- activeQuestionIndex: d,
251
+ activeQuestionIndex: l,
255
252
  lastUnlockedQuestionIndex: u,
256
253
  behavior: a,
257
254
  onItemNumberClick: M,
@@ -259,22 +256,22 @@ const Xt = (pe, ge) => {
259
256
  summaryVisible: h
260
257
  }
261
258
  ) }) }),
262
- re && l && /* @__PURE__ */ i(Qt, { $minHeight: ie, $topOffset: V, children: /* @__PURE__ */ i(de, { $width: z, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ i(
263
- Et,
259
+ ne && d && /* @__PURE__ */ i(Mt, { $minHeight: te, $topOffset: V, children: /* @__PURE__ */ i(ce, { $width: q, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ i(
260
+ $t,
264
261
  {
265
- blocker: re,
266
- lastUnlockedQuestion: l,
267
- studentName: be,
268
- onBlockerClose: A,
269
- onOptionalItemAssignment: we,
270
- onOptionalItemSkip: Ee,
262
+ blocker: ne,
263
+ lastUnlockedQuestion: d,
264
+ studentName: pe,
265
+ onBlockerClose: B,
266
+ onOptionalItemAssignment: $e,
267
+ onOptionalItemSkip: Te,
271
268
  onTeacherValidation: Y
272
269
  }
273
270
  ) }) }),
274
- et && /* @__PURE__ */ i(
275
- Ct,
271
+ ze && /* @__PURE__ */ i(
272
+ ft,
276
273
  {
277
- activeQuestionIndex: d,
274
+ activeQuestionIndex: l,
278
275
  onClick: M,
279
276
  questions: t,
280
277
  bottomOffset: g,
@@ -282,32 +279,31 @@ const Xt = (pe, ge) => {
282
279
  userType: r
283
280
  }
284
281
  ),
285
- se && /* @__PURE__ */ i(Gt, { children: /* @__PURE__ */ i(gt, { initialPosition: St, onClose: st }) }),
282
+ oe && /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(ut, { initialPosition: gt, onClose: it }) }),
286
283
  /* @__PURE__ */ y(
287
- Ft,
284
+ Rt,
288
285
  {
289
286
  $marginTop: r === "TEACHER" && h ? "0" : g,
290
287
  $height: g,
291
288
  $isCardView: O === "card",
292
- $isPuzzleCard: ne,
293
289
  children: [
294
- te !== -2 && /* @__PURE__ */ i(
295
- vt,
290
+ ee !== -2 && /* @__PURE__ */ i(
291
+ St,
296
292
  {
297
293
  width: L - 32,
298
- question: t[d],
294
+ question: t[l],
299
295
  learnosity: p,
300
296
  userType: r
301
297
  }
302
298
  ),
303
- qe && /* @__PURE__ */ i(
304
- jt,
299
+ Qe && /* @__PURE__ */ i(
300
+ Pt,
305
301
  {
306
302
  $height: g,
307
- $width: O === "card" ? L - 32 : "100%",
303
+ $width: O === "card" || ee === -2 ? L - 32 : "100%",
308
304
  $isCardView: O === "card",
309
305
  children: /* @__PURE__ */ i(
310
- de,
306
+ ce,
311
307
  {
312
308
  $gutterX: 1,
313
309
  $flexDirection: "row",
@@ -315,97 +311,92 @@ const Xt = (pe, ge) => {
315
311
  $alignItems: "center",
316
312
  $width: L - 32,
317
313
  children: /* @__PURE__ */ i(
318
- wt,
314
+ kt,
319
315
  {
320
316
  userType: r,
321
317
  layout: k,
322
318
  behavior: a,
323
- worksheetName: U,
319
+ worksheetName: J,
324
320
  questions: t,
325
321
  responses: c,
326
- onCalculatorOpen: at,
327
- activeQuestionIndex: d,
322
+ onCalculatorOpen: nt,
323
+ activeQuestionIndex: l,
328
324
  lastUnlockedQuestionIndex: u,
329
325
  appendedQuestionIds: Z,
330
326
  learnosity: p,
331
- isCanvasEnabled: ee,
332
- canSubmitWorksheet: xe,
333
- isScribblingEnabled: oe,
327
+ canSubmitWorksheet: Ve,
328
+ isScribblingEnabled: ie,
334
329
  isSummaryVisible: h,
335
330
  setResponses: v,
336
- getTimeSpentOnQuestion: ce,
337
- setSummaryVisible: X,
331
+ getTimeSpentOnQuestion: se,
332
+ setSummaryVisible: K,
338
333
  setBlocker: N,
339
- setIsScribblingEnabled: tt,
334
+ setIsScribblingEnabled: Ue,
340
335
  setActiveQuestionId: H,
341
336
  onItemNumberClick: M,
342
- onGoToReview: ct,
337
+ onGoToReview: ot,
343
338
  onResponseChange: f,
344
- onHelp: Oe,
339
+ onHelp: ye,
345
340
  onTeacherValidation: Y,
346
- onSubmit: Ne,
347
- showCalculator: se,
341
+ onSubmit: ve,
342
+ showCalculator: oe,
348
343
  loggerRef: j,
349
- onSkip: Qe,
350
- onUnassign: Ge,
351
- onReview: Fe,
352
- canToggleScribbling: je
344
+ onSkip: xe,
345
+ actionBarRightElement: Ge
353
346
  }
354
347
  )
355
348
  }
356
349
  )
357
350
  }
358
351
  ),
359
- !h && D && r === "STUDENT" && /* @__PURE__ */ i(zt, { children: /* @__PURE__ */ i(Vt, {}) })
352
+ !h && D && r === "STUDENT" && /* @__PURE__ */ i(Qt, { children: /* @__PURE__ */ i(Wt, {}) })
360
353
  ]
361
354
  }
362
355
  ),
363
356
  /* @__PURE__ */ y(
364
- Lt,
357
+ Gt,
365
358
  {
366
359
  $actionbarHeight: g,
367
360
  $isCardView: O === "card",
368
- $isPuzzleCard: ne,
361
+ $questionPadding: Je,
369
362
  children: [
370
- Wt({ questions: t, lastUnlockedQuestionIndex: u, userType: r }).map(
363
+ Nt({ questions: t, lastUnlockedQuestionIndex: u, userType: r }).map(
371
364
  (e, s) => {
372
- var C, B;
373
- const { response_id: o, is_optional: b } = e, $ = (C = c[o]) == null ? void 0 : C.assignStatus;
365
+ var I, A;
366
+ const { response_id: o, is_optional: b } = e, $ = (I = c[o]) == null ? void 0 : I.assignStatus;
374
367
  return a.teacherValidationEnabled && ($ === "skipped" || b && $ !== "assigned" && r === "STUDENT") ? null : /* @__PURE__ */ i(
375
- Dt,
368
+ yt,
376
369
  {
377
- signedRequest: Ce,
370
+ signedRequest: ge,
378
371
  userType: r,
379
- worksheetCompleted: Ae,
372
+ worksheetCompleted: Ee,
380
373
  question: e,
381
374
  response: c[o],
382
- nextQuestionId: m === "ADAPTIVE" || m === "CURRENT" ? l == null ? void 0 : l.response_id : s < u ? (B = t[s + 1]) == null ? void 0 : B.response_id : void 0,
383
- maxQuestionWidth: z,
375
+ nextQuestionId: m === "ADAPTIVE" || m === "CURRENT" ? d == null ? void 0 : d.response_id : s < u ? (A = t[s + 1]) == null ? void 0 : A.response_id : void 0,
376
+ maxQuestionWidth: q,
384
377
  learnosity: p,
385
- isActive: o === E,
386
- isHidden: !D && o !== E || h,
387
- canRender: d > -1 && (s === d || m !== "CURRENT" && s === d + 1),
388
- background: $e,
378
+ isActive: o === w,
379
+ isHidden: !D && o !== w || h,
380
+ canRender: l > -1 && (s === l || m !== "CURRENT" && s === l + 1),
389
381
  appended: Z.includes(o),
390
382
  behavior: a,
391
383
  layout: k,
392
384
  actionbarHeight: g,
393
- intersectionObserver: q,
394
- onMarkForReview: rt,
395
- onMediaStateChange: ot,
396
- userId: Be,
397
- isScribblingEnabled: oe,
398
- onPublishStrokes: ye,
399
- onReceiveStrokes: We,
400
- initialStrokesData: _e,
401
- isCanvasEnabled: ee,
402
- onPublishMouseMove: De,
403
- onSubscribeMouseMove: Ve,
385
+ intersectionObserver: X,
386
+ onMarkForReview: tt,
387
+ onMediaStateChange: et,
388
+ userId: we,
389
+ isScribblingEnabled: ie,
390
+ onPublishStrokes: Ne,
391
+ onReceiveStrokes: Be,
392
+ initialStrokesData: Ae,
393
+ onPublishMouseMove: We,
394
+ onSubscribeMouseMove: _e,
404
395
  setActiveQuestionId: H,
405
- canResolveDoubt: Re,
406
- onResolveDoubt: Pe,
407
- studentId: ze,
408
- subjectiveProps: Le,
396
+ canResolveDoubt: He,
397
+ onResolveDoubt: Me,
398
+ studentId: Re,
399
+ subjectiveProps: Pe,
409
400
  responses: c,
410
401
  loggerRef: j
411
402
  },
@@ -414,41 +405,41 @@ const Xt = (pe, ge) => {
414
405
  }
415
406
  ),
416
407
  h && /* @__PURE__ */ i(
417
- qt,
408
+ Ft,
418
409
  {
419
- worksheetName: U,
410
+ worksheetName: J,
420
411
  questions: t,
421
412
  responses: c,
422
- activeQuestionIndex: d,
413
+ activeQuestionIndex: l,
423
414
  lastUnlockedQuestionIndex: u,
424
415
  onItemNumberClick: M,
425
416
  behavior: a,
426
- minHeight: Je,
427
- summaryDescription: Me,
417
+ minHeight: Le,
418
+ summaryDescription: De,
428
419
  summaryVisible: h
429
420
  }
430
421
  )
431
422
  ]
432
423
  }
433
424
  ),
434
- !h && Ze && /* @__PURE__ */ i(
435
- Ht,
425
+ !h && Ke && /* @__PURE__ */ i(
426
+ _t,
436
427
  {
437
- questionWidth: z,
428
+ questionWidth: q,
438
429
  questions: t,
439
- activeQuestionIndex: d,
430
+ activeQuestionIndex: l,
440
431
  learnosity: p,
441
432
  userType: r,
442
- height: ie,
433
+ height: te,
443
434
  actionbarHeight: g,
444
- openQuestionFeedbackModal: He,
435
+ openQuestionFeedbackModal: Oe,
445
436
  loggerRef: j
446
437
  }
447
438
  )
448
439
  ] })
449
440
  ] }) : null;
450
- }, Ci = dt(mt(Xt));
441
+ }, fi = st(at(jt));
451
442
  export {
452
- Ci as default
443
+ fi as default
453
444
  };
454
445
  //# sourceMappingURL=worksheet.js.map