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