@cuemath/leap 3.2.1-pd-1 → 3.2.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 (72) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -1
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +0 -6
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js +56 -59
  6. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js.map +1 -1
  7. package/dist/features/circle-games/game-launcher/game-launcher.js +84 -82
  8. package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
  9. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +204 -157
  10. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  11. package/dist/features/communication/pub-sub/constants.js +4 -7
  12. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  13. package/dist/features/homework/homework-card-view.js +100 -87
  14. package/dist/features/homework/homework-card-view.js.map +1 -1
  15. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  16. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  17. package/dist/features/puzzles/comps/puzzle-card-styled.js +69 -24
  18. package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
  19. package/dist/features/puzzles/comps/puzzle-card.js +30 -53
  20. package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
  21. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +25 -55
  22. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
  23. package/dist/features/puzzles/puzzle-container/puzzle-container.js +107 -89
  24. package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
  25. package/dist/features/puzzles/utils/puzzle-pattern.js +13 -28
  26. package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
  27. package/dist/features/worksheet/worksheet/worksheet-helpers.js +19 -20
  28. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  29. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +25 -29
  30. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  31. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +47 -97
  32. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
  33. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +163 -166
  34. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  35. package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
  36. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  37. package/dist/features/worksheet/worksheet/worksheet.js +309 -303
  38. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  39. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
  40. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  41. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +16 -17
  42. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  43. package/dist/index.d.ts +6 -38
  44. package/dist/index.js +27 -29
  45. package/dist/index.js.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/features/puzzles/api/puzzle-dashboard.js +0 -10
  48. package/dist/features/puzzles/api/puzzle-dashboard.js.map +0 -1
  49. package/dist/features/puzzles/constants/puzzle-container.js +0 -8
  50. package/dist/features/puzzles/constants/puzzle-container.js.map +0 -1
  51. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -45
  52. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
  53. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -30
  54. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
  55. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -84
  56. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -1
  57. package/dist/static/arm-mechanical.7561628e.json +0 -4428
  58. package/dist/static/cent-emoji.3a07ef13.json +0 -5576
  59. package/dist/static/clap-emoji.aa0b824b.json +0 -12684
  60. package/dist/static/gem-stone.8c91431a.json +0 -6716
  61. package/dist/static/partyball.e19caed6.json +0 -11578
  62. package/dist/static/partypopper.9f7992e8.json +0 -6416
  63. package/dist/static/puzzle-blue-lottie.7017e2e8.json +0 -1
  64. package/dist/static/puzzle-blue-lottie.bf64ebc5.json +0 -12760
  65. package/dist/static/puzzle-dashboard-banner.b7956519.svg +0 -1
  66. package/dist/static/puzzle-green-lottie.1da90698.json +0 -1
  67. package/dist/static/puzzle-orange-lottie.cfcf3724.json +0 -1
  68. package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
  69. package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
  70. package/dist/static/slotmachine.ba8014dd.json +0 -7779
  71. package/dist/static/super-emoji.7fad19f6.json +0 -3720
  72. package/dist/static/victory-emoji.2ca41d92.json +0 -9959
@@ -1,129 +1,130 @@
1
- import { jsxs as R, Fragment as mt, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as R, Fragment as ut, jsx as o } from "react/jsx-runtime";
2
2
  import { captureMessage as Y } from "@sentry/browser";
3
- import { memo as ft, forwardRef as pt, useMemo as Z, useState as v, useCallback as y, useEffect as b, useLayoutEffect as ht } from "react";
4
- import gt from "../../../assets/line-icons/icons/check2.js";
5
- import bt from "../../../assets/line-icons/icons/info2.js";
6
- import It from "../../../helpers/get-device-details.js";
7
- import St from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
8
- import fe from "../../ui/layout/flex-view.js";
9
- import Ct from "../../ui/text/text.js";
10
- import vt from "../constants/events.js";
11
- import yt from "../user-pointer-pin/user-pin.js";
12
- import { WORKSHEET_NUDGE_BANNER_HEIGHT as pe, TOP_NAVIGATION_HEIGHT as Tt, DESMOS_CALC_POSITION as $t } from "./constants.js";
13
- import _t from "./hooks/use-create-imperative-handle.js";
14
- import Et from "./hooks/use-get-active-question-id.js";
15
- import kt from "./hooks/use-time-on-questions.js";
16
- import wt from "./question-tips.js";
17
- import Nt from "./worksheet-action-bar/worksheet-action-bar.js";
18
- import At from "./worksheet-blocker/worksheet-blocker.js";
19
- import { getWorksheetDimensions as Bt, getQuestionsFromItems as Wt, getInitialResponses as Ot, getLastUnlockedQuestionIndex as he, getInitialQuestionId as Rt, getQuestionMetadata as ge, scrollToQuestion as Q, getRenderableQuestions as Dt, getWorksheetNudgeBannerInfo as Vt } from "./worksheet-helpers.js";
20
- import Mt from "./worksheet-navigation/worksheet-navigation.js";
21
- import xt from "./worksheet-question/worksheet-question.js";
22
- import Ht from "./worksheet-sidebar/navigator.js";
23
- import Pt from "./worksheet-sidebar/sidebar.js";
24
- import { NudgeBannerWrapper as qt, NudgeBannerIcon as be, WorksheetContainer as Qt, NavigationContainer as Gt, NavigationWrapper as Lt, BlockerWrapper as zt, DesmosCalcWrapper as Ft, ActionbarContainer as jt, ActionbarWrapper as Ut, StudentWorksheetSideBar as Kt, QuestionsWrapper as Xt } from "./worksheet-styled.js";
25
- import Jt from "./worksheet-summary/worksheet-summary.js";
26
- const Yt = (Ie, Se) => {
3
+ import { memo as mt, forwardRef as ft, useMemo as Z, useState as v, useCallback as y, useEffect as b, useLayoutEffect as pt } from "react";
4
+ import ht from "../../../assets/line-icons/icons/check2.js";
5
+ import gt from "../../../assets/line-icons/icons/info2.js";
6
+ import bt from "../../../helpers/get-device-details.js";
7
+ import It from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
8
+ import me from "../../ui/layout/flex-view.js";
9
+ import St from "../../ui/text/text.js";
10
+ import Ct from "../constants/events.js";
11
+ import vt from "../user-pointer-pin/user-pin.js";
12
+ import { WORKSHEET_NUDGE_BANNER_HEIGHT as fe, TOP_NAVIGATION_HEIGHT as yt, DESMOS_CALC_POSITION as Tt } from "./constants.js";
13
+ import $t from "./hooks/use-create-imperative-handle.js";
14
+ import _t from "./hooks/use-get-active-question-id.js";
15
+ import Et from "./hooks/use-time-on-questions.js";
16
+ import kt from "./question-tips.js";
17
+ import wt from "./worksheet-action-bar/worksheet-action-bar.js";
18
+ import Nt from "./worksheet-blocker/worksheet-blocker.js";
19
+ import { getWorksheetDimensions as At, getQuestionsFromItems as Bt, getInitialResponses as Wt, getLastUnlockedQuestionIndex as pe, getInitialQuestionId as Ot, getQuestionMetadata as he, scrollToQuestion as Q, getRenderableQuestions as Rt, getWorksheetNudgeBannerInfo as Dt } from "./worksheet-helpers.js";
20
+ import Vt from "./worksheet-navigation/worksheet-navigation.js";
21
+ import Ht from "./worksheet-question/worksheet-question.js";
22
+ import Mt from "./worksheet-sidebar/navigator.js";
23
+ import xt from "./worksheet-sidebar/sidebar.js";
24
+ import { NudgeBannerWrapper as qt, NudgeBannerIcon as ge, WorksheetContainer as Pt, NavigationContainer as Qt, NavigationWrapper as Gt, BlockerWrapper as Lt, DesmosCalcWrapper as Ft, ActionbarContainer as jt, ActionbarWrapper as Ut, StudentWorksheetSideBar as Kt, QuestionsWrapper as Xt } from "./worksheet-styled.js";
25
+ import zt from "./worksheet-summary/worksheet-summary.js";
26
+ const Jt = (be, Ie) => {
27
27
  const {
28
28
  userType: s,
29
- studentName: Ce = "Student",
30
- questionsSignedRequest: ve,
29
+ studentName: Se = "Student",
30
+ questionsSignedRequest: Ce,
31
31
  worksheetName: ee,
32
- initialResponseId: ye,
33
- initialItemIndex: Te,
32
+ initialResponseId: ve,
33
+ initialItemIndex: ye,
34
34
  learnosityActivityRef: E,
35
35
  learnosityItems: k,
36
- learnosityResponses: $e,
36
+ learnosityResponses: Te,
37
37
  layout: T,
38
- background: _e,
38
+ background: $e,
39
39
  behavior: a,
40
40
  updatedResponses: G,
41
- showNudgeBanner: Ee,
41
+ showNudgeBanner: _e,
42
42
  markedAsCompleted: te,
43
43
  onResponseChange: I,
44
- onBulkResponsesChange: ke,
44
+ onBulkResponsesChange: Ee,
45
45
  onResponsesChange: L,
46
- onMediaStateChange: z,
46
+ onMediaStateChange: F,
47
47
  onTeacherValidation: ie,
48
- onOptionalItemAssignment: we,
49
- onOptionalItemSkip: Ne,
48
+ onOptionalItemAssignment: ke,
49
+ onOptionalItemSkip: we,
50
50
  onExitTicketStart: D,
51
51
  onExitTicketSubmit: V,
52
- onSubmit: Ae,
52
+ onSubmit: Ne,
53
53
  learnosity: S,
54
54
  appendedQuestionIds: ne,
55
- worksheetCompleted: Be,
56
- userId: We,
57
- onPublishStrokes: Oe,
58
- onReceiveStrokes: Re,
59
- initialStrokesData: De,
55
+ worksheetCompleted: Ae,
56
+ userId: Be,
57
+ onPublishStrokes: We,
58
+ onReceiveStrokes: Oe,
59
+ initialStrokesData: Re,
60
60
  isCanvasEnabled: oe,
61
- onHelp: Ve,
62
- onPublishMouseMove: Me,
63
- onSubscribeMouseMove: xe,
64
- onActiveQuestionChange: F,
65
- openQuestionFeedbackModal: He,
66
- summaryDescription: Pe,
61
+ onHelp: De,
62
+ onPublishMouseMove: Ve,
63
+ onSubscribeMouseMove: He,
64
+ onActiveQuestionChange: j,
65
+ openQuestionFeedbackModal: Me,
66
+ summaryDescription: xe,
67
67
  canSubmitWorksheet: qe,
68
68
  loggerRef: w,
69
- canResolveDoubt: Qe,
70
- onResolveDoubt: Ge,
71
- onSkip: Le,
72
- onUnassign: ze,
69
+ canResolveDoubt: Pe,
70
+ onResolveDoubt: Qe,
71
+ onSkip: Ge,
72
+ onUnassign: Le,
73
73
  onReview: Fe,
74
74
  canToggleScribbling: je = !0,
75
75
  studentId: Ue,
76
76
  subjectiveProps: Ke,
77
77
  canShowActionBar: Xe = !0
78
- } = Ie, { initialQuestion: Je, navigationMode: p, teacherValidationEnabled: j, maximumAttempts: re } = a, {
79
- containerStyle: M,
80
- containerWidth: Ye,
81
- minQuestionHeight: se,
82
- minSummaryHeight: Ze,
83
- questionsScrollable: x,
84
- navigationBar: et,
85
- topOffset: H,
86
- renderSideBar: tt,
87
- showUserPointer: it = !0
88
- } = T, ae = re === -2, { actionbarHeight: C, maxQuestionWidth: U, questionsContainerWidth: K } = Z(
89
- () => Bt(k, T),
78
+ } = be, { initialQuestion: ze, navigationMode: p, teacherValidationEnabled: U } = a, {
79
+ containerStyle: H,
80
+ containerWidth: Je,
81
+ minQuestionHeight: re,
82
+ minSummaryHeight: Ye,
83
+ questionsScrollable: M,
84
+ navigationBar: Ze,
85
+ topOffset: x,
86
+ renderSideBar: et,
87
+ showUserPointer: tt = !0,
88
+ imageHue: se
89
+ } = T, { actionbarHeight: C, maxQuestionWidth: K, questionsContainerWidth: X } = Z(
90
+ () => At(k, T),
90
91
  [T, k]
91
92
  ), [t] = v(
92
- () => Wt(k, {
93
- sectioned: j && p !== "ADAPTIVE" && p !== "CURRENT",
93
+ () => Bt(k, {
94
+ sectioned: U && p !== "ADAPTIVE" && p !== "CURRENT",
94
95
  adaptive: p === "ADAPTIVE"
95
96
  })
96
97
  ), [c, N] = v(
97
- () => $e ?? Ot(t)
98
- ), [ce, nt] = v(!1), h = Z(
99
- () => p !== "OPEN" ? he({
98
+ () => Te ?? Wt(t)
99
+ ), [ae, it] = v(!1), h = Z(
100
+ () => p !== "OPEN" ? pe({
100
101
  questions: t,
101
102
  responses: c,
102
103
  behavior: a,
103
104
  userType: s
104
105
  }) : t.length - 1,
105
106
  [a, p, t, c, s]
106
- ), l = t[h], r = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: ot, label: rt } = Vt(s, !!te), [A] = v(
107
- () => Rt({
107
+ ), l = t[h], r = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: nt, label: ot } = Dt(s, !!te), [A] = v(
108
+ () => Ot({
108
109
  questions: t,
109
- initialQuestion: Je,
110
- lastUnlockedQuestionIndex: he({
110
+ initialQuestion: ze,
111
+ lastUnlockedQuestionIndex: pe({
111
112
  questions: t,
112
113
  responses: c,
113
114
  behavior: a,
114
115
  userType: s
115
116
  }),
116
- initialResponseId: ye,
117
- initialItemIndex: Te
117
+ initialResponseId: ve,
118
+ initialItemIndex: ye
118
119
  })
119
- ), { activeQuestionId: B, setActiveQuestionId: P, intersectionObserver: X } = Et(A), f = Z(
120
+ ), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: z } = _t(A), f = Z(
120
121
  () => t.findIndex((e) => e.response_id === B),
121
122
  [B, t]
122
- ), [g, J] = v(!1), [le, W] = v(), [de, ue] = v(!1), me = kt(a, c, B), st = y(
123
+ ), [g, J] = v(!1), [ce, W] = v(), [le, de] = v(!1), ue = Et(a, c, B), rt = y(
123
124
  (e, i, n) => {
124
125
  const d = i === "SIMULATION" ? "simState" : void 0;
125
126
  d && (I ? N((u) => {
126
- const m = e.response_id, $ = ge(t, m);
127
+ const m = e.response_id, $ = he(t, m);
127
128
  if (!$) return u;
128
129
  const _ = {
129
130
  ...$,
@@ -139,13 +140,13 @@ const Yt = (Ie, Se) => {
139
140
  ...u,
140
141
  [m]: _
141
142
  };
142
- }) : z && z(e, i, n));
143
+ }) : F && F(e, i, n));
143
144
  },
144
- [z, I, t]
145
- ), at = y(
145
+ [F, I, t]
146
+ ), st = y(
146
147
  (e, i) => {
147
148
  N((n) => {
148
- const d = ge(t, e);
149
+ const d = he(t, e);
149
150
  return d ? {
150
151
  ...n,
151
152
  [e]: {
@@ -167,42 +168,42 @@ const Yt = (Ie, Se) => {
167
168
  }, 50);
168
169
  }
169
170
  });
170
- }, [h, t]), q = y(
171
+ }, [h, t]), P = y(
171
172
  (e) => {
172
- J(!1), x ? requestAnimationFrame(() => Q(e)) : P(e);
173
+ J(!1), M ? requestAnimationFrame(() => Q(e)) : q(e);
173
174
  },
174
- [x, P]
175
- ), ct = y(() => {
176
- ue(!1);
175
+ [M, q]
176
+ ), at = y(() => {
177
+ de(!1);
178
+ }, []), ct = y(() => {
179
+ de(!0);
177
180
  }, []), lt = y(() => {
178
- ue(!0);
179
- }, []), dt = y(() => {
180
181
  J(!0);
181
182
  }, []);
182
183
  return b(() => {
183
184
  const e = t[f];
184
- e && F && F(e);
185
- }, [F, t, f]), _t(Se, {
185
+ e && j && j(e);
186
+ }, [j, t, f]), $t(Ie, {
186
187
  behavior: a,
187
188
  questions: t,
188
189
  setResponses: N,
189
190
  onResponseChange: I,
190
- onBulkResponsesChange: ke,
191
- getTimeSpentOnQuestion: me
191
+ onBulkResponsesChange: Ee,
192
+ getTimeSpentOnQuestion: ue
192
193
  }), b(() => () => {
193
- X.disconnect();
194
- }, [X]), b(() => {
194
+ z.disconnect();
195
+ }, [z]), b(() => {
195
196
  L && c && L(c);
196
197
  }, [L, c]), b(() => {
197
198
  G && N(G);
198
- }, [G]), ht(() => {
199
+ }, [G]), pt(() => {
199
200
  let e;
200
- return S && A && (It().browser_name === "Safari" ? e = setTimeout(() => {
201
+ return S && A && (bt().browser_name === "Safari" ? e = setTimeout(() => {
201
202
  Q(A);
202
203
  }, 400) : Q(A)), () => {
203
204
  clearTimeout(e);
204
205
  };
205
- }, [S, A, H]), b(() => {
206
+ }, [S, A, x]), b(() => {
206
207
  if (a.teacherValidationEnabled && l) {
207
208
  const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
208
209
  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());
@@ -252,9 +253,9 @@ const Yt = (Ie, Se) => {
252
253
  }, [E, k, p]), b(() => {
253
254
  t.forEach((e) => {
254
255
  const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
255
- if ((j ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
256
+ if ((U ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
256
257
  const _ = i.valid_response.value ?? [];
257
- (_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((ut) => ut.value.length > 0) || (Y(`Question has no valid response: ${m.widget_reference}`, {
258
+ (_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((dt) => dt.value.length > 0) || (Y(`Question has no valid response: ${m.widget_reference}`, {
258
259
  tags: {
259
260
  "content-type": "learnosity",
260
261
  "activity-reference": E,
@@ -264,7 +265,7 @@ const Yt = (Ie, Se) => {
264
265
  },
265
266
  fingerprint: [`no-valid-response-${m.widget_reference}`]
266
267
  // Add unique fingerprint
267
- }), w.current(vt.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
268
+ }), w.current(Ct.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
268
269
  item_reference: n,
269
270
  widget_reference: m.widget_reference,
270
271
  question_type: d,
@@ -272,8 +273,8 @@ const Yt = (Ie, Se) => {
272
273
  })));
273
274
  }
274
275
  });
275
- }, [E, w, t, j]), S ? /* @__PURE__ */ R(mt, { children: [
276
- Ee && /* @__PURE__ */ R(
276
+ }, [E, w, t, U]), S ? /* @__PURE__ */ R(ut, { children: [
277
+ _e && /* @__PURE__ */ R(
277
278
  qt,
278
279
  {
279
280
  $flexDirection: "row",
@@ -281,223 +282,228 @@ const Yt = (Ie, Se) => {
281
282
  $alignItems: "center",
282
283
  $width: "100%",
283
284
  $heightX: 1.75,
284
- $height: pe,
285
+ $height: fe,
285
286
  $gap: 8,
286
287
  $gutter: 8,
287
288
  $flexGap: 8,
288
- $background: ot,
289
- $topOffset: T.topOffset - pe,
289
+ $background: nt,
290
+ $topOffset: T.topOffset - fe,
290
291
  children: [
291
- te ? /* @__PURE__ */ o(be, { children: /* @__PURE__ */ o(gt, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(be, { children: /* @__PURE__ */ o(bt, { width: 16, height: 16 }) }),
292
- /* @__PURE__ */ o(Ct, { $renderAs: "ub3", children: rt })
292
+ te ? /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(ht, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(gt, { width: 16, height: 16 }) }),
293
+ /* @__PURE__ */ o(St, { $renderAs: "ub3", children: ot })
293
294
  ]
294
295
  }
295
296
  ),
296
- /* @__PURE__ */ R(Qt, { $background: "WHITE_1", $width: Ye, children: [
297
- et === "top" && /* @__PURE__ */ o(Gt, { $topOffset: H, $height: Tt, children: /* @__PURE__ */ o(Lt, { children: /* @__PURE__ */ o(
298
- Mt,
299
- {
300
- placement: "top",
301
- questions: t,
302
- responses: c,
303
- activeQuestionIndex: f,
304
- lastUnlockedQuestionIndex: h,
305
- behavior: a,
306
- onItemNumberClick: q,
307
- userType: s,
308
- summaryVisible: g
309
- }
310
- ) }) }),
311
- le && l && /* @__PURE__ */ o(zt, { $minHeight: se, $topOffset: H, children: /* @__PURE__ */ o(fe, { $width: U, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
312
- At,
313
- {
314
- blocker: le,
315
- lastUnlockedQuestion: l,
316
- studentName: Ce,
317
- onBlockerClose: O,
318
- onOptionalItemAssignment: we,
319
- onOptionalItemSkip: Ne,
320
- onTeacherValidation: ie
321
- }
322
- ) }) }),
323
- it && /* @__PURE__ */ o(
324
- yt,
325
- {
326
- activeQuestionIndex: f,
327
- onClick: q,
328
- questions: t,
329
- bottomOffset: C,
330
- topOffset: H,
331
- userType: s
332
- }
333
- ),
334
- de && /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(St, { initialPosition: $t, onClose: ct }) }),
335
- /* @__PURE__ */ R(
336
- jt,
337
- {
338
- $marginTop: s === "TEACHER" && g ? "0" : C,
339
- $height: C,
340
- $isCardView: M === "card",
341
- $isPuzzleCard: ae,
342
- children: [
343
- re !== -2 && /* @__PURE__ */ o(
344
- wt,
345
- {
346
- width: K - 32,
347
- question: t[f],
348
- learnosity: S,
349
- userType: s
350
- }
351
- ),
352
- Xe && /* @__PURE__ */ o(
353
- Ut,
354
- {
355
- $height: C,
356
- $width: M === "card" ? K - 32 : "100%",
357
- $isCardView: M === "card",
358
- children: /* @__PURE__ */ o(
359
- fe,
297
+ /* @__PURE__ */ R(
298
+ Pt,
299
+ {
300
+ $background: se ? `${se}_1` : "WHITE",
301
+ $width: Je,
302
+ children: [
303
+ Ze === "top" && /* @__PURE__ */ o(Qt, { $topOffset: x, $height: yt, children: /* @__PURE__ */ o(Gt, { children: /* @__PURE__ */ o(
304
+ Vt,
305
+ {
306
+ placement: "top",
307
+ questions: t,
308
+ responses: c,
309
+ activeQuestionIndex: f,
310
+ lastUnlockedQuestionIndex: h,
311
+ behavior: a,
312
+ onItemNumberClick: P,
313
+ userType: s,
314
+ summaryVisible: g
315
+ }
316
+ ) }) }),
317
+ ce && l && /* @__PURE__ */ o(Lt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(me, { $width: K, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
318
+ Nt,
319
+ {
320
+ blocker: ce,
321
+ lastUnlockedQuestion: l,
322
+ studentName: Se,
323
+ onBlockerClose: O,
324
+ onOptionalItemAssignment: ke,
325
+ onOptionalItemSkip: we,
326
+ onTeacherValidation: ie
327
+ }
328
+ ) }) }),
329
+ tt && /* @__PURE__ */ o(
330
+ vt,
331
+ {
332
+ activeQuestionIndex: f,
333
+ onClick: P,
334
+ questions: t,
335
+ bottomOffset: C,
336
+ topOffset: x,
337
+ userType: s
338
+ }
339
+ ),
340
+ le && /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(It, { initialPosition: Tt, onClose: at }) }),
341
+ /* @__PURE__ */ R(
342
+ jt,
343
+ {
344
+ $marginTop: s === "TEACHER" && g ? "0" : C,
345
+ $height: C,
346
+ $isCardView: H === "card",
347
+ children: [
348
+ /* @__PURE__ */ o(
349
+ kt,
360
350
  {
361
- $gutterX: 1,
362
- $flexDirection: "row",
363
- $justifyContent: "space-between",
364
- $alignItems: "center",
365
- $width: K - 32,
351
+ width: X - 32,
352
+ question: t[f],
353
+ learnosity: S,
354
+ userType: s
355
+ }
356
+ ),
357
+ Xe && /* @__PURE__ */ o(
358
+ Ut,
359
+ {
360
+ $height: C,
361
+ $width: H === "card" ? X - 32 : "100%",
362
+ $isCardView: H === "card",
366
363
  children: /* @__PURE__ */ o(
367
- Nt,
364
+ me,
368
365
  {
366
+ $gutterX: 1,
367
+ $flexDirection: "row",
368
+ $justifyContent: "space-between",
369
+ $alignItems: "center",
370
+ $width: X - 32,
371
+ children: /* @__PURE__ */ o(
372
+ wt,
373
+ {
374
+ userType: s,
375
+ layout: T,
376
+ behavior: a,
377
+ worksheetName: ee,
378
+ questions: t,
379
+ responses: c,
380
+ onCalculatorOpen: ct,
381
+ activeQuestionIndex: f,
382
+ lastUnlockedQuestionIndex: h,
383
+ appendedQuestionIds: ne,
384
+ learnosity: S,
385
+ isCanvasEnabled: oe,
386
+ canSubmitWorksheet: qe,
387
+ isScribblingEnabled: ae,
388
+ isSummaryVisible: g,
389
+ setResponses: N,
390
+ getTimeSpentOnQuestion: ue,
391
+ setSummaryVisible: J,
392
+ setBlocker: W,
393
+ setIsScribblingEnabled: it,
394
+ setActiveQuestionId: q,
395
+ onItemNumberClick: P,
396
+ onGoToReview: lt,
397
+ onResponseChange: I,
398
+ onHelp: De,
399
+ onTeacherValidation: ie,
400
+ onSubmit: Ne,
401
+ showCalculator: le,
402
+ loggerRef: w,
403
+ onSkip: Ge,
404
+ onUnassign: Le,
405
+ onReview: Fe,
406
+ canToggleScribbling: je
407
+ }
408
+ )
409
+ }
410
+ )
411
+ }
412
+ ),
413
+ !g && M && s === "STUDENT" && /* @__PURE__ */ o(Kt, { children: /* @__PURE__ */ o(Mt, {}) })
414
+ ]
415
+ }
416
+ ),
417
+ /* @__PURE__ */ R(
418
+ Xt,
419
+ {
420
+ $actionbarHeight: C,
421
+ $isCardView: H === "card",
422
+ children: [
423
+ Rt({ questions: t, lastUnlockedQuestionIndex: h, userType: s }).map(
424
+ (e, i) => {
425
+ var m, $;
426
+ const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
427
+ return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ o(
428
+ Ht,
429
+ {
430
+ signedRequest: Ce,
369
431
  userType: s,
370
- layout: T,
371
- behavior: a,
372
- worksheetName: ee,
373
- questions: t,
374
- responses: c,
375
- onCalculatorOpen: lt,
376
- activeQuestionIndex: f,
377
- lastUnlockedQuestionIndex: h,
378
- appendedQuestionIds: ne,
432
+ worksheetCompleted: Ae,
433
+ question: e,
434
+ response: c[n],
435
+ nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
436
+ maxQuestionWidth: K,
379
437
  learnosity: S,
438
+ isActive: n === B,
439
+ isHidden: !M && n !== B || g,
440
+ canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
441
+ background: $e,
442
+ appended: ne.includes(n),
443
+ behavior: a,
444
+ layout: T,
445
+ actionbarHeight: C,
446
+ intersectionObserver: z,
447
+ onMarkForReview: st,
448
+ onMediaStateChange: rt,
449
+ userId: Be,
450
+ isScribblingEnabled: ae,
451
+ onPublishStrokes: We,
452
+ onReceiveStrokes: Oe,
453
+ initialStrokesData: Re,
380
454
  isCanvasEnabled: oe,
381
- canSubmitWorksheet: qe,
382
- isScribblingEnabled: ce,
383
- isSummaryVisible: g,
384
- setResponses: N,
385
- getTimeSpentOnQuestion: me,
386
- setSummaryVisible: J,
387
- setBlocker: W,
388
- setIsScribblingEnabled: nt,
389
- setActiveQuestionId: P,
390
- onItemNumberClick: q,
391
- onGoToReview: dt,
392
- onResponseChange: I,
393
- onHelp: Ve,
394
- onTeacherValidation: ie,
395
- onSubmit: Ae,
396
- showCalculator: de,
397
- loggerRef: w,
398
- onSkip: Le,
399
- onUnassign: ze,
400
- onReview: Fe,
401
- canToggleScribbling: je
402
- }
403
- )
455
+ onPublishMouseMove: Ve,
456
+ onSubscribeMouseMove: He,
457
+ setActiveQuestionId: q,
458
+ canResolveDoubt: Pe,
459
+ onResolveDoubt: Qe,
460
+ studentId: Ue,
461
+ subjectiveProps: Ke,
462
+ responses: c,
463
+ loggerRef: w
464
+ },
465
+ n
466
+ );
404
467
  }
405
- )
406
- }
407
- ),
408
- !g && x && s === "STUDENT" && /* @__PURE__ */ o(Kt, { children: /* @__PURE__ */ o(Ht, {}) })
409
- ]
410
- }
411
- ),
412
- /* @__PURE__ */ R(
413
- Xt,
414
- {
415
- $actionbarHeight: C,
416
- $isCardView: M === "card",
417
- $isPuzzleCard: ae,
418
- children: [
419
- Dt({ questions: t, lastUnlockedQuestionIndex: h, userType: s }).map(
420
- (e, i) => {
421
- var m, $;
422
- const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
423
- return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ o(
424
- xt,
468
+ ),
469
+ g && /* @__PURE__ */ o(
470
+ zt,
425
471
  {
426
- signedRequest: ve,
427
- userType: s,
428
- worksheetCompleted: Be,
429
- question: e,
430
- response: c[n],
431
- nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
432
- maxQuestionWidth: U,
433
- learnosity: S,
434
- isActive: n === B,
435
- isHidden: !x && n !== B || g,
436
- canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
437
- background: _e,
438
- appended: ne.includes(n),
439
- behavior: a,
440
- layout: T,
441
- actionbarHeight: C,
442
- intersectionObserver: X,
443
- onMarkForReview: at,
444
- onMediaStateChange: st,
445
- userId: We,
446
- isScribblingEnabled: ce,
447
- onPublishStrokes: Oe,
448
- onReceiveStrokes: Re,
449
- initialStrokesData: De,
450
- isCanvasEnabled: oe,
451
- onPublishMouseMove: Me,
452
- onSubscribeMouseMove: xe,
453
- setActiveQuestionId: P,
454
- canResolveDoubt: Qe,
455
- onResolveDoubt: Ge,
456
- studentId: Ue,
457
- subjectiveProps: Ke,
472
+ worksheetName: ee,
473
+ questions: t,
458
474
  responses: c,
459
- loggerRef: w
460
- },
461
- n
462
- );
463
- }
464
- ),
465
- g && /* @__PURE__ */ o(
466
- Jt,
467
- {
468
- worksheetName: ee,
469
- questions: t,
470
- responses: c,
471
- activeQuestionIndex: f,
472
- lastUnlockedQuestionIndex: h,
473
- onItemNumberClick: q,
474
- behavior: a,
475
- minHeight: Ze,
476
- summaryDescription: Pe,
477
- summaryVisible: g
478
- }
479
- )
480
- ]
481
- }
482
- ),
483
- !g && tt && /* @__PURE__ */ o(
484
- Pt,
485
- {
486
- questionWidth: U,
487
- questions: t,
488
- activeQuestionIndex: f,
489
- learnosity: S,
490
- userType: s,
491
- height: se,
492
- actionbarHeight: C,
493
- openQuestionFeedbackModal: He,
494
- loggerRef: w
495
- }
496
- )
497
- ] })
475
+ activeQuestionIndex: f,
476
+ lastUnlockedQuestionIndex: h,
477
+ onItemNumberClick: P,
478
+ behavior: a,
479
+ minHeight: Ye,
480
+ summaryDescription: xe,
481
+ summaryVisible: g
482
+ }
483
+ )
484
+ ]
485
+ }
486
+ ),
487
+ !g && et && /* @__PURE__ */ o(
488
+ xt,
489
+ {
490
+ questionWidth: K,
491
+ questions: t,
492
+ activeQuestionIndex: f,
493
+ learnosity: S,
494
+ userType: s,
495
+ height: re,
496
+ actionbarHeight: C,
497
+ openQuestionFeedbackModal: Me,
498
+ loggerRef: w
499
+ }
500
+ )
501
+ ]
502
+ }
503
+ )
498
504
  ] }) : null;
499
- }, Ei = ft(pt(Yt));
505
+ }, _i = mt(ft(Jt));
500
506
  export {
501
- Ei as default
507
+ _i as default
502
508
  };
503
509
  //# sourceMappingURL=worksheet.js.map