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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/assets/lottie/lottie.js +0 -15
  2. package/dist/assets/lottie/lottie.js.map +1 -1
  3. package/dist/features/worksheet/worksheet/constants.js +13 -12
  4. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  5. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +245 -227
  6. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  7. package/dist/features/worksheet/worksheet/worksheet-styled.js +28 -37
  8. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  9. package/dist/features/worksheet/worksheet/worksheet.js +210 -216
  10. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  11. package/dist/index.d.ts +0 -24
  12. package/dist/index.js +74 -76
  13. package/dist/index.js.map +1 -1
  14. package/package.json +1 -1
  15. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js +0 -10
  16. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js.map +0 -1
  17. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +0 -44
  18. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +0 -1
  19. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js +0 -44
  20. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js.map +0 -1
  21. package/dist/static/cent.3a07ef13.json +0 -5576
  22. package/dist/static/clap.aa0b824b.json +0 -12684
  23. package/dist/static/dart.60f73d0f.json +0 -4207
  24. package/dist/static/diamond.8c91431a.json +0 -6716
  25. package/dist/static/dice.eb192df8.json +0 -16260
  26. package/dist/static/golf.55585049.json +0 -2832
  27. package/dist/static/magicwand.75ac8f1b.json +0 -3879
  28. package/dist/static/mechanical-arm.7561628e.json +0 -4428
  29. package/dist/static/medal.782dab23.json +0 -4134
  30. package/dist/static/party-ball.e19caed6.json +0 -11578
  31. package/dist/static/party-popper.9f7992e8.json +0 -6416
  32. package/dist/static/slot-machine.ba8014dd.json +0 -7779
  33. package/dist/static/super.7fad19f6.json +0 -3720
  34. package/dist/static/trophy.a8ea85ef.json +0 -6813
  35. package/dist/static/victory.2ca41d92.json +0 -9959
@@ -1,289 +1,307 @@
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";
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";
6
6
  import St from "../../../ui/layout/flex-view.js";
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(
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(
20
20
  ({
21
- userType: o,
22
- signedRequest: Rt,
23
- worksheetCompleted: f,
21
+ userType: c,
22
+ signedRequest: Ct,
23
+ worksheetCompleted: g,
24
24
  question: n,
25
- response: i,
26
- nextQuestionId: S,
27
- isActive: v,
25
+ response: e,
26
+ nextQuestionId: v,
27
+ isActive: w,
28
28
  isHidden: A,
29
29
  canRender: V,
30
- loggerRef: B,
31
- appended: c,
30
+ loggerRef: M,
31
+ appended: a,
32
32
  maxQuestionWidth: X,
33
33
  behavior: P,
34
34
  layout: j,
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,
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,
45
45
  initialStrokesData: O,
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
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
55
55
  }) => {
56
- const L = w(
57
- () => G === "paper" ? Ft(n) : void 0,
58
- [G, n]
59
- ), [p, xt] = z(), {
60
- validation: it,
56
+ const C = p(
57
+ () => Y === "paper" ? kt(n) : void 0,
58
+ [Y, n]
59
+ ), [W, Mt] = T(), [ot, Ot] = T(), {
60
+ validation: nt,
61
61
  review: N,
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(() => {
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(() => {
78
78
  const t = [];
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(" ");
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(" ");
80
80
  }, [
81
- c,
82
- u,
83
- b,
81
+ a,
82
+ m,
83
+ x,
84
84
  d,
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;
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;
91
91
  if (N) {
92
- const { attemptsHistory: t } = i ?? {};
93
- return ((t == null ? void 0 : t.length) ?? 0) >= rt && !et;
92
+ const { attemptsHistory: t } = e ?? {};
93
+ return ((t == null ? void 0 : t.length) ?? 0) >= ct && !at;
94
94
  }
95
95
  return !1;
96
- }, [et, rt, i, N, o]), Ot = w(
97
- () => H && f && !ot,
98
- [ot, H, f]
99
- ), [_t, Nt] = z({
96
+ }, [at, ct, e, N, c]), zt = p(
97
+ () => B && g && !st,
98
+ [st, B, g]
99
+ ), [Rt, Dt] = T({
100
100
  width: 0,
101
101
  height: 0
102
- }), wt = Ut((t) => {
103
- xt(t);
102
+ }), Ut = Xt((t) => {
103
+ Ot(t);
104
104
  }, []);
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")) {
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")) {
109
109
  const t = document.querySelectorAll(
110
110
  `.widget-${n.response_id} .lrn_draggable`
111
111
  );
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
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
118
118
  });
119
119
  }
120
- }, [c, n.response_id, n.type]), s(() => {
121
- if (c && gt) {
122
- const t = m.question(e);
120
+ }, [a, n.response_id, n.type]), R(() => {
121
+ if (a && $t) {
122
+ const t = b.question(r);
123
123
  t && t.validate({
124
- showCorrectAnswers: $t
124
+ showCorrectAnswers: pt
125
125
  });
126
126
  }
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"))
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"))
134
134
  continue;
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
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
144
144
  });
145
145
  break;
146
146
  }
147
147
  }
148
- M.current[e] = !1;
148
+ F.current[r] = !1;
149
149
  }
150
150
  }, [
151
- c,
152
- u,
151
+ a,
152
+ m,
153
153
  d,
154
- lt,
154
+ gt,
155
+ dt,
155
156
  ft,
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)) {
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)) {
169
188
  const t = setTimeout(() => {
170
- I ? vt(S) : k(S);
189
+ y ? bt(v) : it(v);
171
190
  }, 1e3);
172
191
  return () => {
173
192
  clearTimeout(t);
174
193
  };
175
194
  }
176
195
  }, [
196
+ v,
177
197
  S,
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,
198
+ _t,
199
+ y,
200
+ it,
201
+ e == null ? void 0 : e.validatedByTeacher
202
+ ]), /* @__PURE__ */ L(
203
+ se,
186
204
  {
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",
205
+ "data-response-id": r,
206
+ className: `widget-${r}`,
207
+ ref: I,
208
+ $topOffset: lt,
209
+ $flexDirection: _ ? "row" : "column",
210
+ $alignItems: _ ? "flex-start" : "center",
193
211
  $hidden: A,
194
- $marginBottom: jt,
212
+ $marginBottom: Jt,
195
213
  children: [
196
- E && /* @__PURE__ */ r(
197
- ri,
214
+ _ && /* @__PURE__ */ i(
215
+ le,
198
216
  {
199
217
  dangerouslySetInnerHTML: {
200
- __html: E
218
+ __html: _
201
219
  }
202
220
  }
203
221
  ),
204
- /* @__PURE__ */ x(
205
- ei,
222
+ /* @__PURE__ */ L(
223
+ me,
206
224
  {
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,
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,
213
231
  children: [
214
- v && !!J && !!q && K && /* @__PURE__ */ r(
215
- Xt,
232
+ w && !!tt && !!et && q && /* @__PURE__ */ i(
233
+ Yt,
216
234
  {
217
- containerRef: Q,
218
- onPublish: J,
219
- onSubscribe: q,
220
- responseId: e
235
+ containerRef: D,
236
+ onPublish: tt,
237
+ onSubscribe: et,
238
+ responseId: r
221
239
  }
222
240
  ),
223
- /* @__PURE__ */ x(
224
- oi,
241
+ /* @__PURE__ */ L(
242
+ ue,
225
243
  {
226
- className: Bt,
227
- $dropzoneMinWidth: _t.width,
228
- $dropzoneMinHeight: _t.height,
244
+ className: Ft,
245
+ $dropzoneMinWidth: Rt.width,
246
+ $dropzoneMinHeight: Rt.height,
229
247
  children: [
230
- !(b || u || d) && /* @__PURE__ */ r(
231
- yt,
248
+ !(x || m || d) && /* @__PURE__ */ i(
249
+ te,
232
250
  {
233
- userType: o,
251
+ userType: c,
234
252
  question: n,
235
- response: i,
253
+ response: e,
236
254
  behavior: P,
237
255
  layout: j,
238
- paperColor: L,
239
- onMarkForReview: Lt,
240
- actionbarHeight: Ht,
241
- canResolveDoubt: Ct,
242
- onResolveDoubt: It,
243
- worksheetCompleted: f
256
+ paperColor: C,
257
+ onMarkForReview: Bt,
258
+ actionbarHeight: Wt,
259
+ canResolveDoubt: It,
260
+ onResolveDoubt: Lt,
261
+ worksheetCompleted: g
244
262
  }
245
263
  ),
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, {})
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, {})
253
271
  ] }) : void 0,
254
- /* @__PURE__ */ r(
255
- Yt,
272
+ /* @__PURE__ */ i(
273
+ ee,
256
274
  {
257
- signedRequest: Rt,
258
- appended: c,
275
+ signedRequest: Ct,
276
+ appended: a,
259
277
  question: n,
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
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
267
285
  }
268
286
  ),
269
- !dt && K && y && Y && p !== void 0 && /* @__PURE__ */ r(ci, { $canScribble: Z, children: /* @__PURE__ */ r(
270
- Vt,
287
+ !Q && q && Z && J && W !== void 0 && /* @__PURE__ */ i(he, { $canScribble: k, children: /* @__PURE__ */ i(
288
+ Gt,
271
289
  {
272
290
  canRender: V,
273
- canScribble: Z && v,
274
- appended: c,
275
- canvasId: e,
291
+ canScribble: k && w,
292
+ appended: a,
293
+ canvasId: r,
276
294
  width: X,
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
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
284
302
  }
285
303
  ) }),
286
- !dt && U && U.length > 0 && /* @__PURE__ */ r(
304
+ !Q && U && U.length > 0 && /* @__PURE__ */ i(
287
305
  St,
288
306
  {
289
307
  $background: "BLUE_1",
@@ -291,18 +309,18 @@ const Ii = Qt(
291
309
  $gapX: 0.5,
292
310
  $borderRadiusX: 0,
293
311
  $borderColor: "BLUE_2",
294
- children: U.map((t, a) => /* @__PURE__ */ r(
295
- ai,
312
+ children: U.map((t, s) => /* @__PURE__ */ i(
313
+ de,
296
314
  {
297
315
  dangerouslySetInnerHTML: {
298
- __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${a + 1}` : ""}:</span>&nbsp;${t}`
316
+ __html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${s + 1}` : ""}:</span>&nbsp;${t}`
299
317
  }
300
318
  },
301
319
  t
302
320
  ))
303
321
  }
304
322
  ),
305
- Ot && /* @__PURE__ */ r(
323
+ zt && /* @__PURE__ */ i(
306
324
  St,
307
325
  {
308
326
  $background: "YELLOW_1",
@@ -310,26 +328,26 @@ const Ii = Qt(
310
328
  $gapX: 0.875,
311
329
  $borderRadiusX: 0,
312
330
  $borderColor: "YELLOW_2",
313
- children: /* @__PURE__ */ r(
314
- mi,
331
+ children: /* @__PURE__ */ i(
332
+ ge,
315
333
  {
316
334
  dangerouslySetInnerHTML: {
317
- __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${H}`
335
+ __html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${B}`
318
336
  }
319
337
  }
320
338
  )
321
339
  }
322
340
  ),
323
- !!tt && /* @__PURE__ */ r(
324
- Kt,
341
+ !!rt && /* @__PURE__ */ i(
342
+ re,
325
343
  {
326
- responses: Tt,
327
- response: i,
328
- nextQuestionId: S,
329
- responseId: e,
330
- studentId: bt,
331
- userType: o,
332
- ...tt
344
+ responses: At,
345
+ response: e,
346
+ nextQuestionId: v,
347
+ responseId: r,
348
+ studentId: Tt,
349
+ userType: c,
350
+ ...rt
333
351
  }
334
352
  )
335
353
  ]
@@ -344,6 +362,6 @@ const Ii = Qt(
344
362
  }
345
363
  );
346
364
  export {
347
- Ii as default
365
+ Ae as default
348
366
  };
349
367
  //# sourceMappingURL=worksheet-question.js.map