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