@cuemath/leap 3.2.30-aa1 → 3.2.30-aa11

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