@cuemath/leap 3.1.47 → 3.1.48-aa0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/assets/illustrations/illustrations.js +3 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +19 -1
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/chapters/lpar-chapter/constants/index.js.map +1 -1
  6. package/dist/features/chapters-v2/utils/index.js +23 -11
  7. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  8. package/dist/features/chapters-v2/utils/node-card-utils.js +50 -34
  9. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  10. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js +10 -0
  11. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js.map +1 -0
  12. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +44 -0
  13. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -0
  14. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js +44 -0
  15. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js.map +1 -0
  16. package/dist/features/worksheet/worksheet/constants.js +12 -13
  17. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  18. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +227 -245
  19. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  20. package/dist/features/worksheet/worksheet/worksheet.js +163 -162
  21. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  22. package/dist/index.d.ts +32 -1
  23. package/dist/index.js +76 -74
  24. package/dist/index.js.map +1 -1
  25. package/dist/static/activity.ca6afed5.json +417 -0
  26. package/dist/static/cent.3a07ef13.json +5576 -0
  27. package/dist/static/clap.aa0b824b.json +12684 -0
  28. package/dist/static/dart.60f73d0f.json +4207 -0
  29. package/dist/static/diamond.8c91431a.json +6716 -0
  30. package/dist/static/dice.eb192df8.json +16260 -0
  31. package/dist/static/download.475e7e15.json +1038 -0
  32. package/dist/static/golf.55585049.json +2832 -0
  33. package/dist/static/magicwand.75ac8f1b.json +3879 -0
  34. package/dist/static/mechanical-arm.7561628e.json +4428 -0
  35. package/dist/static/medal.782dab23.json +4134 -0
  36. package/dist/static/node-activity-bg.122f7e01.svg +1 -0
  37. package/dist/static/node-download-bg.b8367de7.svg +1 -0
  38. package/dist/static/node-subjective-bg.d6013a16.svg +1 -0
  39. package/dist/static/party-ball.e19caed6.json +11578 -0
  40. package/dist/static/party-popper.9f7992e8.json +6416 -0
  41. package/dist/static/slot-machine.ba8014dd.json +7779 -0
  42. package/dist/static/subjective.bc5f37fb.json +1177 -0
  43. package/dist/static/super.7fad19f6.json +3720 -0
  44. package/dist/static/trophy.a8ea85ef.json +6813 -0
  45. package/dist/static/victory.2ca41d92.json +9959 -0
  46. package/package.json +1 -1
@@ -1,307 +1,289 @@
1
- import { jsxs as L, jsx as i, Fragment as Kt } from "react/jsx-runtime";
2
- import { memo as Vt, useMemo as p, useState as T, useRef as K, useCallback as Xt, useEffect as R, useLayoutEffect as Pt } from "react";
3
- import { IMAGES as jt } from "../../../../assets/images/images.js";
4
- import Gt from "../../../cue-canvas/cue-canvas.js";
5
- import Yt from "../../../pointer-sync/pointer.js";
1
+ import { jsxs as x, jsx as r, Fragment as Mt } from "react/jsx-runtime";
2
+ import { memo as Qt, useMemo as w, useState as z, useRef as D, useCallback as Ut, useEffect as s, useLayoutEffect as zt } from "react";
3
+ import { IMAGES as Dt } from "../../../../assets/images/images.js";
4
+ import Vt from "../../../cue-canvas/cue-canvas.js";
5
+ import Xt from "../../../pointer-sync/pointer.js";
6
6
  import St from "../../../ui/layout/flex-view.js";
7
- import Zt from "../../constants/events.js";
8
- import { QUESTIONS_GAP as Jt, LEARNOSITY_KEYBOARD_HEIGHT as Ht } from "../constants.js";
9
- import { getPaperColorByQuestion as kt, isConceptIntroWidget as qt, scrollToQuestion as bt } from "../worksheet-helpers.js";
10
- import te from "./header/header.js";
11
- import ee from "./learnosity-question.js";
12
- import ie from "./question-backdrop/question-backdrop.js";
13
- import re from "./subjective-review.js";
14
- import oe from "./system-intros/advanced-practice-intro.js";
15
- import ne from "./system-intros/basic-practice-intro.js";
16
- import ce from "./system-intros/exit-ticket-intro.js";
17
- import ae from "./system-intros/regular-practice-intro.js";
18
- import { QuestionContainerWrapper as se, StimulusReview as le, QuestionContainer as me, QuestionWrapper as ue, LessonOverviewBanner as fe, CueCanvasWrapper as he, Hint as de, Solution as ge } from "./worksheet-question-styled.js";
19
- const Ae = Vt(
7
+ import Pt from "../../constants/events.js";
8
+ import { QUESTIONS_GAP as jt } from "../constants.js";
9
+ import { getPaperColorByQuestion as Ft, isConceptIntroWidget as Gt, scrollToQuestion as vt } from "../worksheet-helpers.js";
10
+ import yt from "./header/header.js";
11
+ import Yt from "./learnosity-question.js";
12
+ import Zt from "./question-backdrop/question-backdrop.js";
13
+ import Kt from "./subjective-review.js";
14
+ import Jt from "./system-intros/advanced-practice-intro.js";
15
+ import qt from "./system-intros/basic-practice-intro.js";
16
+ import kt from "./system-intros/exit-ticket-intro.js";
17
+ import ti from "./system-intros/regular-practice-intro.js";
18
+ import { QuestionContainerWrapper as ii, StimulusReview as ri, QuestionContainer as ei, QuestionWrapper as oi, LessonOverviewBanner as ni, CueCanvasWrapper as ci, Hint as ai, Solution as mi } from "./worksheet-question-styled.js";
19
+ const Ii = Qt(
20
20
  ({
21
- userType: c,
22
- signedRequest: Ct,
23
- worksheetCompleted: g,
21
+ userType: o,
22
+ signedRequest: Rt,
23
+ worksheetCompleted: f,
24
24
  question: n,
25
- response: e,
26
- nextQuestionId: v,
27
- isActive: w,
25
+ response: i,
26
+ nextQuestionId: S,
27
+ isActive: v,
28
28
  isHidden: A,
29
29
  canRender: V,
30
- loggerRef: M,
31
- appended: a,
30
+ loggerRef: B,
31
+ appended: c,
32
32
  maxQuestionWidth: X,
33
33
  behavior: P,
34
34
  layout: j,
35
- actionbarHeight: Wt,
36
- learnosity: b,
37
- intersectionObserver: G,
38
- background: Y = "paper",
39
- onMediaStateChange: yt,
40
- onMarkForReview: Bt,
41
- userId: xt,
42
- onPublishStrokes: Z,
43
- onReceiveStrokes: J,
44
- isScribblingEnabled: k,
35
+ actionbarHeight: Ht,
36
+ learnosity: m,
37
+ intersectionObserver: F,
38
+ background: G = "paper",
39
+ onMediaStateChange: Wt,
40
+ onMarkForReview: Lt,
41
+ userId: pt,
42
+ onPublishStrokes: y,
43
+ onReceiveStrokes: Y,
44
+ isScribblingEnabled: Z,
45
45
  initialStrokesData: O,
46
- isCanvasEnabled: q,
47
- onPublishMouseMove: tt,
48
- onSubscribeMouseMove: et,
49
- setActiveQuestionId: it,
50
- canResolveDoubt: It,
51
- onResolveDoubt: Lt,
52
- studentId: Tt,
53
- responses: At,
54
- subjectiveProps: rt
46
+ isCanvasEnabled: K,
47
+ onPublishMouseMove: J,
48
+ onSubscribeMouseMove: q,
49
+ setActiveQuestionId: k,
50
+ canResolveDoubt: Ct,
51
+ onResolveDoubt: It,
52
+ studentId: bt,
53
+ responses: Tt,
54
+ subjectiveProps: tt
55
55
  }) => {
56
- const C = p(
57
- () => Y === "paper" ? kt(n) : void 0,
58
- [Y, n]
59
- ), [W, Mt] = T(), [ot, Ot] = T(), {
60
- validation: nt,
56
+ const L = w(
57
+ () => G === "paper" ? Ft(n) : void 0,
58
+ [G, n]
59
+ ), [p, xt] = z(), {
60
+ validation: it,
61
61
  review: N,
62
- maximumAttempts: ct,
63
- canExceedAttempts: at,
64
- teacherValidationEnabled: S,
65
- solutionHidden: st
66
- } = P, { minQuestionHeight: Nt, topOffset: lt, questionsScrollable: y } = j, {
67
- type: E,
68
- response_id: r,
69
- stimulus_review: _,
70
- item_type: f,
71
- instructor_stimulus: mt,
72
- metadata: { hints: h, solution: B, widget_reference: ut },
73
- item_reference: ft,
74
- question_number: ht,
75
- item_number: dt,
76
- item_display_number: gt
77
- } = n, Qt = !!_, x = f === "overview", m = qt(mt), d = mt === "SystemIntro", Q = m || d, Et = e == null ? void 0 : e.responseEdited, Ft = p(() => {
62
+ maximumAttempts: rt,
63
+ canExceedAttempts: et,
64
+ teacherValidationEnabled: C,
65
+ solutionHidden: ot
66
+ } = P, { minQuestionHeight: At, topOffset: nt, questionsScrollable: I } = j, {
67
+ type: R,
68
+ response_id: e,
69
+ stimulus_review: E,
70
+ item_type: l,
71
+ instructor_stimulus: ct,
72
+ metadata: { hints: h, solution: H, widget_reference: at },
73
+ item_reference: mt,
74
+ question_number: ut,
75
+ item_number: ft,
76
+ item_display_number: lt
77
+ } = n, ht = !!E, b = l === "overview", u = Gt(ct), d = ct === "SystemIntro", dt = u || d, st = i == null ? void 0 : i.responseEdited, Bt = w(() => {
78
78
  const t = [];
79
- return Et && c === "TEACHER" && t.push("attempting"), a || t.push("hidden"), E === "hotspot" && t.push("correct-answers-hidden"), a && S && E === "clozetext" && (!m || c === "STUDENT" ? t.push("response-hidden") : t.push("response-code-hidden")), x && t.push("lesson-overview"), m && t.push("concept-intro"), d && t.push("system-intro"), t.join(" ");
79
+ return st && o === "TEACHER" && t.push("attempting"), c || t.push("hidden"), R === "hotspot" && t.push("correct-answers-hidden"), c && C && R === "clozetext" && (!u || o === "STUDENT" ? t.push("response-hidden") : t.push("response-code-hidden")), b && t.push("lesson-overview"), u && t.push("concept-intro"), d && t.push("system-intro"), t.join(" ");
80
80
  }, [
81
- a,
82
- m,
83
- x,
81
+ c,
82
+ u,
83
+ b,
84
84
  d,
85
- E,
86
- Et,
87
- S,
88
- c
89
- ]), F = K({}), z = (e == null ? void 0 : e.hintsUsed) ?? 0, [_t] = T((e == null ? void 0 : e.validatedByTeacher) ?? !1), I = K(null), D = K(null), U = p(() => h == null ? void 0 : h.slice(0, z), [h, z]), $t = p(() => c === "TEACHER" || g ? !0 : !e || !e.response || e.responseEdited ? !1 : nt, [e, c, nt, g]), pt = p(() => {
90
- if (c === "TEACHER") return !0;
85
+ R,
86
+ st,
87
+ C,
88
+ o
89
+ ]), M = D({}), T = (i == null ? void 0 : i.hintsUsed) ?? 0, [Et] = z((i == null ? void 0 : i.validatedByTeacher) ?? !1), W = D(null), Q = D(null), U = w(() => h == null ? void 0 : h.slice(0, T), [h, T]), gt = w(() => o === "TEACHER" || f ? !0 : !i || !i.response || i.responseEdited ? !1 : it, [i, o, it, f]), $t = w(() => {
90
+ if (o === "TEACHER") return !0;
91
91
  if (N) {
92
- const { attemptsHistory: t } = e ?? {};
93
- return ((t == null ? void 0 : t.length) ?? 0) >= ct && !at;
92
+ const { attemptsHistory: t } = i ?? {};
93
+ return ((t == null ? void 0 : t.length) ?? 0) >= rt && !et;
94
94
  }
95
95
  return !1;
96
- }, [at, ct, e, N, c]), zt = p(
97
- () => B && g && !st,
98
- [st, B, g]
99
- ), [Rt, Dt] = T({
96
+ }, [et, rt, i, N, o]), Ot = w(
97
+ () => H && f && !ot,
98
+ [ot, H, f]
99
+ ), [_t, Nt] = z({
100
100
  width: 0,
101
101
  height: 0
102
- }), Ut = Xt((t) => {
103
- Ot(t);
102
+ }), wt = Ut((t) => {
103
+ xt(t);
104
104
  }, []);
105
- return R(() => {
106
- I.current && G.observe(I.current);
107
- }, [G]), R(() => {
108
- if (a && (n.type === "clozeassociation" || n.type === "association" || n.type === "clozeformula")) {
105
+ return s(() => {
106
+ W.current && F.observe(W.current);
107
+ }, [F]), s(() => {
108
+ if (c && (n.type === "clozeassociation" || n.type === "association" || n.type === "clozeformula")) {
109
109
  const t = document.querySelectorAll(
110
110
  `.widget-${n.response_id} .lrn_draggable`
111
111
  );
112
- let s = 0, o = 0;
113
- t.forEach((l) => {
114
- s = Math.max(s, l.clientWidth + 33), o = Math.max(o, l.clientHeight + 1);
115
- }), Dt({
116
- width: n.type !== "association" ? s : 0,
117
- height: o
112
+ let a = 0, g = 0;
113
+ t.forEach(($) => {
114
+ a = Math.max(a, $.clientWidth + 33), g = Math.max(g, $.clientHeight + 1);
115
+ }), Nt({
116
+ width: n.type !== "association" ? a : 0,
117
+ height: g
118
118
  });
119
119
  }
120
- }, [a, n.response_id, n.type]), R(() => {
121
- if (a && $t) {
122
- const t = b.question(r);
120
+ }, [c, n.response_id, n.type]), s(() => {
121
+ if (c && gt) {
122
+ const t = m.question(e);
123
123
  t && t.validate({
124
- showCorrectAnswers: pt
124
+ showCorrectAnswers: $t
125
125
  });
126
126
  }
127
- }, [a, b, r, N, pt, c, $t]), R(() => {
128
- const t = D.current;
129
- if (a && t && M.current && F.current[r] === void 0 && !m && !d) {
130
- const s = t.clientWidth, o = t.querySelectorAll("*");
131
- for (let l = 0; l < o.length; l++) {
132
- const u = o[l];
133
- if (u != null && u.closest(".resize-sensor"))
127
+ }, [c, m, e, N, $t, o, gt]), s(() => {
128
+ const t = Q.current;
129
+ if (c && t && B.current && M.current[e] === void 0 && !u && !d) {
130
+ const a = t.clientWidth, g = t.querySelectorAll("*");
131
+ for (let $ = 0; $ < g.length; $++) {
132
+ const _ = g[$];
133
+ if (_ != null && _.closest(".resize-sensor"))
134
134
  continue;
135
- if (((u == null ? void 0 : u.clientWidth) ?? 0) > s) {
136
- F.current[r] = !0, M.current(Zt.WORKSHEET_V3_GREATER_WIDTH_ELEMENT, {
137
- item_reference: ft,
138
- widget_reference: ut,
139
- question_type: E,
140
- question_number: ht,
141
- responseId: r,
142
- item_number: dt,
143
- item_display_number: gt
135
+ if (((_ == null ? void 0 : _.clientWidth) ?? 0) > a) {
136
+ M.current[e] = !0, B.current(Pt.WORKSHEET_V3_GREATER_WIDTH_ELEMENT, {
137
+ item_reference: mt,
138
+ widget_reference: at,
139
+ question_type: R,
140
+ question_number: ut,
141
+ responseId: e,
142
+ item_number: ft,
143
+ item_display_number: lt
144
144
  });
145
145
  break;
146
146
  }
147
147
  }
148
- F.current[r] = !1;
148
+ M.current[e] = !1;
149
149
  }
150
150
  }, [
151
- a,
152
- m,
151
+ c,
152
+ u,
153
153
  d,
154
- gt,
155
- dt,
154
+ lt,
156
155
  ft,
157
- M,
158
- E,
159
- ht,
160
- r,
161
- ut
162
- ]), R(() => {
163
- const t = I.current, s = (o) => {
164
- const l = o.querySelector(".lrn_response_wrapper");
165
- if (Q || !l)
166
- return 0;
167
- const u = o.getBoundingClientRect().bottom, H = l.getBoundingClientRect().bottom, $ = Math.abs(u - H);
168
- return $ < Ht ? Ht - $ : 0;
169
- };
170
- a && t && Mt((o) => {
171
- var wt;
172
- const H = ((wt = n.ui_style) == null ? void 0 : wt.type) === "floating-keyboard" && !(S && E === "clozetext"), $ = t.clientHeight;
173
- if ($ === 0)
174
- return o;
175
- if (!o)
176
- return Math.ceil(
177
- $ + (H ? s(t) : 0)
178
- );
179
- const vt = Math.ceil(
180
- $ + (H ? s(t) : 0)
181
- );
182
- return Math.abs(vt - o) > 4 ? vt : o;
183
- }), (z || Qt || B && g) && b.renderMath("mathjax");
184
- }), Pt(() => {
185
- !y && !A && bt(r);
186
- }, [A, y, r, lt]), R(() => {
187
- if (S && v && !_t && (e != null && e.validatedByTeacher)) {
156
+ mt,
157
+ B,
158
+ R,
159
+ ut,
160
+ e,
161
+ at
162
+ ]), s(() => {
163
+ var t, a;
164
+ c && W.current && wt((t = W.current) == null ? void 0 : t.clientHeight), (T || ht || H && f) && ((a = m == null ? void 0 : m.renderMath) == null || a.call(m, "mathjax"));
165
+ }), zt(() => {
166
+ !I && !A && vt(e);
167
+ }, [A, I, e, nt]), s(() => {
168
+ if (C && S && !Et && (i != null && i.validatedByTeacher)) {
188
169
  const t = setTimeout(() => {
189
- y ? bt(v) : it(v);
170
+ I ? vt(S) : k(S);
190
171
  }, 1e3);
191
172
  return () => {
192
173
  clearTimeout(t);
193
174
  };
194
175
  }
195
176
  }, [
196
- v,
197
177
  S,
198
- _t,
199
- y,
200
- it,
201
- e == null ? void 0 : e.validatedByTeacher
202
- ]), /* @__PURE__ */ L(
203
- se,
178
+ C,
179
+ Et,
180
+ I,
181
+ k,
182
+ i == null ? void 0 : i.validatedByTeacher
183
+ ]), s(() => {
184
+ }, [ht, T, m, H, f]), /* @__PURE__ */ x(
185
+ ii,
204
186
  {
205
- "data-response-id": r,
206
- className: `widget-${r}`,
207
- ref: I,
208
- $topOffset: lt,
209
- $flexDirection: _ ? "row" : "column",
210
- $alignItems: _ ? "flex-start" : "center",
187
+ "data-response-id": e,
188
+ className: `widget-${e}`,
189
+ ref: W,
190
+ $topOffset: nt,
191
+ $flexDirection: E ? "row" : "column",
192
+ $alignItems: E ? "flex-start" : "center",
211
193
  $hidden: A,
212
- $marginBottom: Jt,
194
+ $marginBottom: jt,
213
195
  children: [
214
- _ && /* @__PURE__ */ i(
215
- le,
196
+ E && /* @__PURE__ */ r(
197
+ ri,
216
198
  {
217
199
  dangerouslySetInnerHTML: {
218
- __html: _
200
+ __html: E
219
201
  }
220
202
  }
221
203
  ),
222
- /* @__PURE__ */ L(
223
- me,
204
+ /* @__PURE__ */ x(
205
+ ei,
224
206
  {
225
- ref: D,
226
- $width: _ ? "50%" : `${X}px`,
227
- $minHeight: W ? Math.max(W - 72, ot ?? 0) : Nt,
228
- $isActive: w,
229
- $paperColor: C,
230
- $opacity: w ? 1 : 0.2,
207
+ ref: Q,
208
+ $width: E ? "50%" : `${X}px`,
209
+ $minHeight: p ? p - 72 : At,
210
+ $isActive: v,
211
+ $paperColor: L,
212
+ $opacity: v ? 1 : 0.2,
231
213
  children: [
232
- w && !!tt && !!et && q && /* @__PURE__ */ i(
233
- Yt,
214
+ v && !!J && !!q && K && /* @__PURE__ */ r(
215
+ Xt,
234
216
  {
235
- containerRef: D,
236
- onPublish: tt,
237
- onSubscribe: et,
238
- responseId: r
217
+ containerRef: Q,
218
+ onPublish: J,
219
+ onSubscribe: q,
220
+ responseId: e
239
221
  }
240
222
  ),
241
- /* @__PURE__ */ L(
242
- ue,
223
+ /* @__PURE__ */ x(
224
+ oi,
243
225
  {
244
- className: Ft,
245
- $dropzoneMinWidth: Rt.width,
246
- $dropzoneMinHeight: Rt.height,
226
+ className: Bt,
227
+ $dropzoneMinWidth: _t.width,
228
+ $dropzoneMinHeight: _t.height,
247
229
  children: [
248
- !(x || m || d) && /* @__PURE__ */ i(
249
- te,
230
+ !(b || u || d) && /* @__PURE__ */ r(
231
+ yt,
250
232
  {
251
- userType: c,
233
+ userType: o,
252
234
  question: n,
253
- response: e,
235
+ response: i,
254
236
  behavior: P,
255
237
  layout: j,
256
- paperColor: C,
257
- onMarkForReview: Bt,
258
- actionbarHeight: Wt,
259
- canResolveDoubt: It,
260
- onResolveDoubt: Lt,
261
- worksheetCompleted: g
238
+ paperColor: L,
239
+ onMarkForReview: Lt,
240
+ actionbarHeight: Ht,
241
+ canResolveDoubt: Ct,
242
+ onResolveDoubt: It,
243
+ worksheetCompleted: f
262
244
  }
263
245
  ),
264
- x && /* @__PURE__ */ i(fe, { src: jt.LESSON_OVERVIEW_BANNER }),
265
- m && C && /* @__PURE__ */ i(ie, { paperColor: C }),
266
- d ? /* @__PURE__ */ L(Kt, { children: [
267
- f === "practice-basic" && /* @__PURE__ */ i(ne, {}),
268
- f === "practice-regular" && /* @__PURE__ */ i(ae, {}),
269
- f === "exit-ticket" && /* @__PURE__ */ i(ce, {}),
270
- (f == null ? void 0 : f.startsWith("advanced-")) && /* @__PURE__ */ i(oe, {})
246
+ b && /* @__PURE__ */ r(ni, { src: Dt.LESSON_OVERVIEW_BANNER }),
247
+ u && L && /* @__PURE__ */ r(Zt, { paperColor: L }),
248
+ d ? /* @__PURE__ */ x(Mt, { children: [
249
+ l === "practice-basic" && /* @__PURE__ */ r(qt, {}),
250
+ l === "practice-regular" && /* @__PURE__ */ r(ti, {}),
251
+ l === "exit-ticket" && /* @__PURE__ */ r(kt, {}),
252
+ (l == null ? void 0 : l.startsWith("advanced-")) && /* @__PURE__ */ r(Jt, {})
271
253
  ] }) : void 0,
272
- /* @__PURE__ */ i(
273
- ee,
254
+ /* @__PURE__ */ r(
255
+ Yt,
274
256
  {
275
- signedRequest: Ct,
276
- appended: a,
257
+ signedRequest: Rt,
258
+ appended: c,
277
259
  question: n,
278
- response: e == null ? void 0 : e.response,
279
- canRender: V || w,
280
- learnosity: b,
281
- canForceAppend: c === "TEACHER",
282
- isConceptIntro: m,
283
- simState: e == null ? void 0 : e.simState,
284
- onMediaStateChange: yt
260
+ response: i == null ? void 0 : i.response,
261
+ canRender: V || v,
262
+ learnosity: m,
263
+ canForceAppend: o === "TEACHER",
264
+ isConceptIntro: u,
265
+ simState: i == null ? void 0 : i.simState,
266
+ onMediaStateChange: Wt
285
267
  }
286
268
  ),
287
- !Q && q && Z && J && W !== void 0 && /* @__PURE__ */ i(he, { $canScribble: k, children: /* @__PURE__ */ i(
288
- Gt,
269
+ !dt && K && y && Y && p !== void 0 && /* @__PURE__ */ r(ci, { $canScribble: Z, children: /* @__PURE__ */ r(
270
+ Vt,
289
271
  {
290
272
  canRender: V,
291
- canScribble: k && w,
292
- appended: a,
293
- canvasId: r,
273
+ canScribble: Z && v,
274
+ appended: c,
275
+ canvasId: e,
294
276
  width: X,
295
- height: Math.max(W, ot ?? 0),
296
- onUpdateHeight: Ut,
297
- onPublish: Z,
298
- onSubscribe: J,
299
- userId: xt,
300
- initialData: O == null ? void 0 : O[r],
301
- userType: c
277
+ height: p,
278
+ onUpdateHeight: wt,
279
+ onPublish: y,
280
+ onSubscribe: Y,
281
+ userId: pt,
282
+ initialData: O == null ? void 0 : O[e],
283
+ userType: o
302
284
  }
303
285
  ) }),
304
- !Q && U && U.length > 0 && /* @__PURE__ */ i(
286
+ !dt && U && U.length > 0 && /* @__PURE__ */ r(
305
287
  St,
306
288
  {
307
289
  $background: "BLUE_1",
@@ -309,18 +291,18 @@ const Ae = Vt(
309
291
  $gapX: 0.5,
310
292
  $borderRadiusX: 0,
311
293
  $borderColor: "BLUE_2",
312
- children: U.map((t, s) => /* @__PURE__ */ i(
313
- de,
294
+ children: U.map((t, a) => /* @__PURE__ */ r(
295
+ ai,
314
296
  {
315
297
  dangerouslySetInnerHTML: {
316
- __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${s + 1}` : ""}:</span>&nbsp;${t}`
298
+ __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${a + 1}` : ""}:</span>&nbsp;${t}`
317
299
  }
318
300
  },
319
301
  t
320
302
  ))
321
303
  }
322
304
  ),
323
- zt && /* @__PURE__ */ i(
305
+ Ot && /* @__PURE__ */ r(
324
306
  St,
325
307
  {
326
308
  $background: "YELLOW_1",
@@ -328,26 +310,26 @@ const Ae = Vt(
328
310
  $gapX: 0.875,
329
311
  $borderRadiusX: 0,
330
312
  $borderColor: "YELLOW_2",
331
- children: /* @__PURE__ */ i(
332
- ge,
313
+ children: /* @__PURE__ */ r(
314
+ mi,
333
315
  {
334
316
  dangerouslySetInnerHTML: {
335
- __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${B}`
317
+ __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${H}`
336
318
  }
337
319
  }
338
320
  )
339
321
  }
340
322
  ),
341
- !!rt && /* @__PURE__ */ i(
342
- re,
323
+ !!tt && /* @__PURE__ */ r(
324
+ Kt,
343
325
  {
344
- responses: At,
345
- response: e,
346
- nextQuestionId: v,
347
- responseId: r,
348
- studentId: Tt,
349
- userType: c,
350
- ...rt
326
+ responses: Tt,
327
+ response: i,
328
+ nextQuestionId: S,
329
+ responseId: e,
330
+ studentId: bt,
331
+ userType: o,
332
+ ...tt
351
333
  }
352
334
  )
353
335
  ]
@@ -362,6 +344,6 @@ const Ae = Vt(
362
344
  }
363
345
  );
364
346
  export {
365
- Ae as default
347
+ Ii as default
366
348
  };
367
349
  //# sourceMappingURL=worksheet-question.js.map