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