@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.
- package/dist/assets/illustrations/illustrations.js +3 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +19 -1
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/constants/index.js.map +1 -1
- package/dist/features/chapters-v2/utils/index.js +23 -11
- package/dist/features/chapters-v2/utils/index.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +50 -34
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js +10 -0
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js.map +1 -0
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +44 -0
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -0
- package/dist/features/puzzles/utils/puzzle-feedback-celebration.js +44 -0
- package/dist/features/puzzles/utils/puzzle-feedback-celebration.js.map +1 -0
- 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 +227 -245
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +163 -162
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/index.d.ts +32 -1
- package/dist/index.js +76 -74
- package/dist/index.js.map +1 -1
- package/dist/static/activity.ca6afed5.json +417 -0
- package/dist/static/cent.3a07ef13.json +5576 -0
- package/dist/static/clap.aa0b824b.json +12684 -0
- package/dist/static/dart.60f73d0f.json +4207 -0
- package/dist/static/diamond.8c91431a.json +6716 -0
- package/dist/static/dice.eb192df8.json +16260 -0
- package/dist/static/download.475e7e15.json +1038 -0
- package/dist/static/golf.55585049.json +2832 -0
- package/dist/static/magicwand.75ac8f1b.json +3879 -0
- package/dist/static/mechanical-arm.7561628e.json +4428 -0
- package/dist/static/medal.782dab23.json +4134 -0
- package/dist/static/node-activity-bg.122f7e01.svg +1 -0
- package/dist/static/node-download-bg.b8367de7.svg +1 -0
- package/dist/static/node-subjective-bg.d6013a16.svg +1 -0
- package/dist/static/party-ball.e19caed6.json +11578 -0
- package/dist/static/party-popper.9f7992e8.json +6416 -0
- package/dist/static/slot-machine.ba8014dd.json +7779 -0
- package/dist/static/subjective.bc5f37fb.json +1177 -0
- package/dist/static/super.7fad19f6.json +3720 -0
- package/dist/static/trophy.a8ea85ef.json +6813 -0
- package/dist/static/victory.2ca41d92.json +9959 -0
- package/package.json +1 -1
|
@@ -1,307 +1,289 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { IMAGES as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
|
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
|
|
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:
|
|
22
|
-
signedRequest:
|
|
23
|
-
worksheetCompleted:
|
|
21
|
+
userType: o,
|
|
22
|
+
signedRequest: Rt,
|
|
23
|
+
worksheetCompleted: f,
|
|
24
24
|
question: n,
|
|
25
|
-
response:
|
|
26
|
-
nextQuestionId:
|
|
27
|
-
isActive:
|
|
25
|
+
response: i,
|
|
26
|
+
nextQuestionId: S,
|
|
27
|
+
isActive: v,
|
|
28
28
|
isHidden: A,
|
|
29
29
|
canRender: V,
|
|
30
|
-
loggerRef:
|
|
31
|
-
appended:
|
|
30
|
+
loggerRef: B,
|
|
31
|
+
appended: c,
|
|
32
32
|
maxQuestionWidth: X,
|
|
33
33
|
behavior: P,
|
|
34
34
|
layout: j,
|
|
35
|
-
actionbarHeight:
|
|
36
|
-
learnosity:
|
|
37
|
-
intersectionObserver:
|
|
38
|
-
background:
|
|
39
|
-
onMediaStateChange:
|
|
40
|
-
onMarkForReview:
|
|
41
|
-
userId:
|
|
42
|
-
onPublishStrokes:
|
|
43
|
-
onReceiveStrokes:
|
|
44
|
-
isScribblingEnabled:
|
|
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:
|
|
47
|
-
onPublishMouseMove:
|
|
48
|
-
onSubscribeMouseMove:
|
|
49
|
-
setActiveQuestionId:
|
|
50
|
-
canResolveDoubt:
|
|
51
|
-
onResolveDoubt:
|
|
52
|
-
studentId:
|
|
53
|
-
responses:
|
|
54
|
-
subjectiveProps:
|
|
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
|
|
57
|
-
() =>
|
|
58
|
-
[
|
|
59
|
-
), [
|
|
60
|
-
validation:
|
|
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:
|
|
63
|
-
canExceedAttempts:
|
|
64
|
-
teacherValidationEnabled:
|
|
65
|
-
solutionHidden:
|
|
66
|
-
} = P, { minQuestionHeight:
|
|
67
|
-
type:
|
|
68
|
-
response_id:
|
|
69
|
-
stimulus_review:
|
|
70
|
-
item_type:
|
|
71
|
-
instructor_stimulus:
|
|
72
|
-
metadata: { hints: h, solution:
|
|
73
|
-
item_reference:
|
|
74
|
-
question_number:
|
|
75
|
-
item_number:
|
|
76
|
-
item_display_number:
|
|
77
|
-
} = 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(() => {
|
|
78
78
|
const t = [];
|
|
79
|
-
return
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
c,
|
|
82
|
+
u,
|
|
83
|
+
b,
|
|
84
84
|
d,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
]),
|
|
90
|
-
if (
|
|
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 } =
|
|
93
|
-
return ((t == null ? void 0 : t.length) ?? 0) >=
|
|
92
|
+
const { attemptsHistory: t } = i ?? {};
|
|
93
|
+
return ((t == null ? void 0 : t.length) ?? 0) >= rt && !et;
|
|
94
94
|
}
|
|
95
95
|
return !1;
|
|
96
|
-
}, [
|
|
97
|
-
() =>
|
|
98
|
-
[
|
|
99
|
-
), [
|
|
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
|
-
}),
|
|
103
|
-
|
|
102
|
+
}), wt = Ut((t) => {
|
|
103
|
+
xt(t);
|
|
104
104
|
}, []);
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
}, [
|
|
108
|
-
if (
|
|
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
|
|
113
|
-
t.forEach((
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
width: n.type !== "association" ?
|
|
117
|
-
height:
|
|
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
|
-
}, [
|
|
121
|
-
if (
|
|
122
|
-
const t =
|
|
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:
|
|
124
|
+
showCorrectAnswers: $t
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
}, [
|
|
128
|
-
const t =
|
|
129
|
-
if (
|
|
130
|
-
const
|
|
131
|
-
for (let
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
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 (((
|
|
136
|
-
|
|
137
|
-
item_reference:
|
|
138
|
-
widget_reference:
|
|
139
|
-
question_type:
|
|
140
|
-
question_number:
|
|
141
|
-
responseId:
|
|
142
|
-
item_number:
|
|
143
|
-
item_display_number:
|
|
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
|
-
|
|
148
|
+
M.current[e] = !1;
|
|
149
149
|
}
|
|
150
150
|
}, [
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
c,
|
|
152
|
+
u,
|
|
153
153
|
d,
|
|
154
|
-
|
|
155
|
-
dt,
|
|
154
|
+
lt,
|
|
156
155
|
ft,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
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
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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":
|
|
206
|
-
className: `widget-${
|
|
207
|
-
ref:
|
|
208
|
-
$topOffset:
|
|
209
|
-
$flexDirection:
|
|
210
|
-
$alignItems:
|
|
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:
|
|
194
|
+
$marginBottom: jt,
|
|
213
195
|
children: [
|
|
214
|
-
|
|
215
|
-
|
|
196
|
+
E && /* @__PURE__ */ r(
|
|
197
|
+
ri,
|
|
216
198
|
{
|
|
217
199
|
dangerouslySetInnerHTML: {
|
|
218
|
-
__html:
|
|
200
|
+
__html: E
|
|
219
201
|
}
|
|
220
202
|
}
|
|
221
203
|
),
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
|
|
204
|
+
/* @__PURE__ */ x(
|
|
205
|
+
ei,
|
|
224
206
|
{
|
|
225
|
-
ref:
|
|
226
|
-
$width:
|
|
227
|
-
$minHeight:
|
|
228
|
-
$isActive:
|
|
229
|
-
$paperColor:
|
|
230
|
-
$opacity:
|
|
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
|
-
|
|
233
|
-
|
|
214
|
+
v && !!J && !!q && K && /* @__PURE__ */ r(
|
|
215
|
+
Xt,
|
|
234
216
|
{
|
|
235
|
-
containerRef:
|
|
236
|
-
onPublish:
|
|
237
|
-
onSubscribe:
|
|
238
|
-
responseId:
|
|
217
|
+
containerRef: Q,
|
|
218
|
+
onPublish: J,
|
|
219
|
+
onSubscribe: q,
|
|
220
|
+
responseId: e
|
|
239
221
|
}
|
|
240
222
|
),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
|
|
223
|
+
/* @__PURE__ */ x(
|
|
224
|
+
oi,
|
|
243
225
|
{
|
|
244
|
-
className:
|
|
245
|
-
$dropzoneMinWidth:
|
|
246
|
-
$dropzoneMinHeight:
|
|
226
|
+
className: Bt,
|
|
227
|
+
$dropzoneMinWidth: _t.width,
|
|
228
|
+
$dropzoneMinHeight: _t.height,
|
|
247
229
|
children: [
|
|
248
|
-
!(
|
|
249
|
-
|
|
230
|
+
!(b || u || d) && /* @__PURE__ */ r(
|
|
231
|
+
yt,
|
|
250
232
|
{
|
|
251
|
-
userType:
|
|
233
|
+
userType: o,
|
|
252
234
|
question: n,
|
|
253
|
-
response:
|
|
235
|
+
response: i,
|
|
254
236
|
behavior: P,
|
|
255
237
|
layout: j,
|
|
256
|
-
paperColor:
|
|
257
|
-
onMarkForReview:
|
|
258
|
-
actionbarHeight:
|
|
259
|
-
canResolveDoubt:
|
|
260
|
-
onResolveDoubt:
|
|
261
|
-
worksheetCompleted:
|
|
238
|
+
paperColor: L,
|
|
239
|
+
onMarkForReview: Lt,
|
|
240
|
+
actionbarHeight: Ht,
|
|
241
|
+
canResolveDoubt: Ct,
|
|
242
|
+
onResolveDoubt: It,
|
|
243
|
+
worksheetCompleted: f
|
|
262
244
|
}
|
|
263
245
|
),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
d ? /* @__PURE__ */
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
(
|
|
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__ */
|
|
273
|
-
|
|
254
|
+
/* @__PURE__ */ r(
|
|
255
|
+
Yt,
|
|
274
256
|
{
|
|
275
|
-
signedRequest:
|
|
276
|
-
appended:
|
|
257
|
+
signedRequest: Rt,
|
|
258
|
+
appended: c,
|
|
277
259
|
question: n,
|
|
278
|
-
response:
|
|
279
|
-
canRender: V ||
|
|
280
|
-
learnosity:
|
|
281
|
-
canForceAppend:
|
|
282
|
-
isConceptIntro:
|
|
283
|
-
simState:
|
|
284
|
-
onMediaStateChange:
|
|
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
|
-
!
|
|
288
|
-
|
|
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:
|
|
292
|
-
appended:
|
|
293
|
-
canvasId:
|
|
273
|
+
canScribble: Z && v,
|
|
274
|
+
appended: c,
|
|
275
|
+
canvasId: e,
|
|
294
276
|
width: X,
|
|
295
|
-
height:
|
|
296
|
-
onUpdateHeight:
|
|
297
|
-
onPublish:
|
|
298
|
-
onSubscribe:
|
|
299
|
-
userId:
|
|
300
|
-
initialData: O == null ? void 0 : O[
|
|
301
|
-
userType:
|
|
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
|
-
!
|
|
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,
|
|
313
|
-
|
|
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 ? ` ${
|
|
298
|
+
__html: `<span style="color: #DA5107; font-weight: 600;">Hint${((h == null ? void 0 : h.length) ?? 0) > 1 ? ` ${a + 1}` : ""}:</span> ${t}`
|
|
317
299
|
}
|
|
318
300
|
},
|
|
319
301
|
t
|
|
320
302
|
))
|
|
321
303
|
}
|
|
322
304
|
),
|
|
323
|
-
|
|
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__ */
|
|
332
|
-
|
|
313
|
+
children: /* @__PURE__ */ r(
|
|
314
|
+
mi,
|
|
333
315
|
{
|
|
334
316
|
dangerouslySetInnerHTML: {
|
|
335
|
-
__html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${
|
|
317
|
+
__html: `<div style="color: #DA5107; font-weight: 600;">Solution:</div>${H}`
|
|
336
318
|
}
|
|
337
319
|
}
|
|
338
320
|
)
|
|
339
321
|
}
|
|
340
322
|
),
|
|
341
|
-
!!
|
|
342
|
-
|
|
323
|
+
!!tt && /* @__PURE__ */ r(
|
|
324
|
+
Kt,
|
|
343
325
|
{
|
|
344
|
-
responses:
|
|
345
|
-
response:
|
|
346
|
-
nextQuestionId:
|
|
347
|
-
responseId:
|
|
348
|
-
studentId:
|
|
349
|
-
userType:
|
|
350
|
-
...
|
|
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
|
-
|
|
347
|
+
Ii as default
|
|
366
348
|
};
|
|
367
349
|
//# sourceMappingURL=worksheet-question.js.map
|