@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,49 +1,49 @@
|
|
|
1
|
-
import { jsxs as R, Fragment as
|
|
2
|
-
import { captureMessage as
|
|
3
|
-
import { memo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { jsxs as R, Fragment as lt, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { captureMessage as Z } from "@sentry/browser";
|
|
3
|
+
import { memo as dt, forwardRef as ut, useMemo as Q, useState as T, useCallback as y, useEffect as b, useLayoutEffect as mt } from "react";
|
|
4
|
+
import ft from "../../../assets/line-icons/icons/check2.js";
|
|
5
|
+
import pt from "../../../assets/line-icons/icons/info2.js";
|
|
6
|
+
import ht from "../../../helpers/get-device-details.js";
|
|
7
|
+
import gt from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
|
|
8
8
|
import ue from "../../ui/layout/flex-view.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { WORKSHEET_NUDGE_BANNER_HEIGHT as me, TOP_NAVIGATION_HEIGHT as
|
|
9
|
+
import bt from "../../ui/text/text.js";
|
|
10
|
+
import It from "../constants/events.js";
|
|
11
|
+
import St from "../user-pointer-pin/user-pin.js";
|
|
12
|
+
import { WORKSHEET_NUDGE_BANNER_HEIGHT as me, TOP_NAVIGATION_HEIGHT as Ct, DESMOS_CALC_POSITION as Tt } from "./constants.js";
|
|
13
13
|
import yt from "./hooks/use-create-imperative-handle.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { getWorksheetDimensions as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { NudgeBannerWrapper as
|
|
25
|
-
import
|
|
26
|
-
const
|
|
14
|
+
import vt from "./hooks/use-get-active-question-id.js";
|
|
15
|
+
import $t from "./hooks/use-time-on-questions.js";
|
|
16
|
+
import Et from "./question-tips.js";
|
|
17
|
+
import _t from "./worksheet-action-bar/worksheet-action-bar.js";
|
|
18
|
+
import kt from "./worksheet-blocker/worksheet-blocker.js";
|
|
19
|
+
import { getWorksheetDimensions as wt, getQuestionsFromItems as Nt, getInitialResponses as At, getLastUnlockedQuestionIndex as fe, getRenderableQuestions as Bt, getInitialQuestionId as Wt, getQuestionMetadata as pe, scrollToQuestion as G, getWorksheetNudgeBannerInfo as Ot } from "./worksheet-helpers.js";
|
|
20
|
+
import Rt from "./worksheet-navigation/worksheet-navigation.js";
|
|
21
|
+
import Dt from "./worksheet-question/worksheet-question.js";
|
|
22
|
+
import Vt from "./worksheet-sidebar/navigator.js";
|
|
23
|
+
import Mt from "./worksheet-sidebar/sidebar.js";
|
|
24
|
+
import { NudgeBannerWrapper as Ht, NudgeBannerIcon as he, WorksheetContainer as xt, NavigationContainer as qt, NavigationWrapper as Pt, BlockerWrapper as Qt, DesmosCalcWrapper as Gt, ActionbarContainer as Lt, ActionbarWrapper as Ft, StudentWorksheetSideBar as jt, QuestionsWrapper as Kt } from "./worksheet-styled.js";
|
|
25
|
+
import Ut from "./worksheet-summary/worksheet-summary.js";
|
|
26
|
+
const Xt = (ge, be) => {
|
|
27
27
|
const {
|
|
28
|
-
userType:
|
|
28
|
+
userType: r,
|
|
29
29
|
studentName: Ie = "Student",
|
|
30
30
|
questionsSignedRequest: Se,
|
|
31
31
|
worksheetName: ee,
|
|
32
32
|
initialResponseId: Ce,
|
|
33
|
-
initialItemIndex:
|
|
33
|
+
initialItemIndex: Te,
|
|
34
34
|
learnosityActivityRef: _,
|
|
35
35
|
learnosityItems: k,
|
|
36
|
-
learnosityResponses:
|
|
36
|
+
learnosityResponses: ye,
|
|
37
37
|
layout: v,
|
|
38
38
|
background: ve,
|
|
39
39
|
behavior: a,
|
|
40
|
-
updatedResponses:
|
|
40
|
+
updatedResponses: L,
|
|
41
41
|
showNudgeBanner: $e,
|
|
42
42
|
markedAsCompleted: te,
|
|
43
43
|
onResponseChange: I,
|
|
44
44
|
onBulkResponsesChange: Ee,
|
|
45
|
-
onResponsesChange:
|
|
46
|
-
onMediaStateChange:
|
|
45
|
+
onResponsesChange: F,
|
|
46
|
+
onMediaStateChange: j,
|
|
47
47
|
onTeacherValidation: ie,
|
|
48
48
|
onOptionalItemAssignment: _e,
|
|
49
49
|
onOptionalItemSkip: ke,
|
|
@@ -61,7 +61,7 @@ const Ut = (ge, be) => {
|
|
|
61
61
|
onHelp: Re,
|
|
62
62
|
onPublishMouseMove: De,
|
|
63
63
|
onSubscribeMouseMove: Ve,
|
|
64
|
-
onActiveQuestionChange:
|
|
64
|
+
onActiveQuestionChange: K,
|
|
65
65
|
openQuestionFeedbackModal: Me,
|
|
66
66
|
summaryDescription: He,
|
|
67
67
|
canSubmitWorksheet: xe,
|
|
@@ -73,7 +73,7 @@ const Ut = (ge, be) => {
|
|
|
73
73
|
studentId: Le,
|
|
74
74
|
subjectiveProps: Fe,
|
|
75
75
|
canShowActionBar: je = !0
|
|
76
|
-
} = ge, { initialQuestion: Ke, navigationMode: p, teacherValidationEnabled:
|
|
76
|
+
} = ge, { initialQuestion: Ke, navigationMode: p, teacherValidationEnabled: U } = a, {
|
|
77
77
|
containerStyle: M,
|
|
78
78
|
containerWidth: Ue,
|
|
79
79
|
minQuestionHeight: re,
|
|
@@ -83,41 +83,44 @@ const Ut = (ge, be) => {
|
|
|
83
83
|
topOffset: x,
|
|
84
84
|
renderSideBar: Je,
|
|
85
85
|
showUserPointer: Ye = !0
|
|
86
|
-
} = v, { actionbarHeight: C, maxQuestionWidth:
|
|
87
|
-
() =>
|
|
86
|
+
} = v, { actionbarHeight: C, maxQuestionWidth: X, questionsContainerWidth: z } = Q(
|
|
87
|
+
() => wt(k, v),
|
|
88
88
|
[v, k]
|
|
89
|
-
), [t] =
|
|
90
|
-
() =>
|
|
91
|
-
sectioned:
|
|
89
|
+
), [t] = T(
|
|
90
|
+
() => Nt(k, {
|
|
91
|
+
sectioned: U && p !== "ADAPTIVE" && p !== "CURRENT",
|
|
92
92
|
adaptive: p === "ADAPTIVE"
|
|
93
93
|
})
|
|
94
|
-
), [c, N] =
|
|
95
|
-
() =>
|
|
96
|
-
), [se, Ze] =
|
|
94
|
+
), [c, N] = T(
|
|
95
|
+
() => ye ?? At(t)
|
|
96
|
+
), [se, Ze] = T(!1), h = Q(
|
|
97
97
|
() => p !== "OPEN" ? fe({
|
|
98
98
|
questions: t,
|
|
99
99
|
responses: c,
|
|
100
100
|
behavior: a,
|
|
101
|
-
userType:
|
|
101
|
+
userType: r
|
|
102
102
|
}) : t.length - 1,
|
|
103
|
-
[a, p, t, c,
|
|
104
|
-
),
|
|
105
|
-
() =>
|
|
103
|
+
[a, p, t, c, r]
|
|
104
|
+
), et = Q(
|
|
105
|
+
() => Bt({ questions: t, lastUnlockedQuestionIndex: h, userType: r }),
|
|
106
|
+
[t, h, r]
|
|
107
|
+
), l = t[h], s = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: tt, label: it } = Ot(r, !!te), [A] = T(
|
|
108
|
+
() => Wt({
|
|
106
109
|
questions: t,
|
|
107
110
|
initialQuestion: Ke,
|
|
108
111
|
lastUnlockedQuestionIndex: fe({
|
|
109
112
|
questions: t,
|
|
110
113
|
responses: c,
|
|
111
114
|
behavior: a,
|
|
112
|
-
userType:
|
|
115
|
+
userType: r
|
|
113
116
|
}),
|
|
114
117
|
initialResponseId: Ce,
|
|
115
|
-
initialItemIndex:
|
|
118
|
+
initialItemIndex: Te
|
|
116
119
|
})
|
|
117
|
-
), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver:
|
|
120
|
+
), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: J } = vt(A), f = Q(
|
|
118
121
|
() => t.findIndex((e) => e.response_id === B),
|
|
119
122
|
[B, t]
|
|
120
|
-
), [g,
|
|
123
|
+
), [g, Y] = T(!1), [ae, W] = T(), [ce, le] = T(!1), de = $t(a, c, B), nt = y(
|
|
121
124
|
(e, i, n) => {
|
|
122
125
|
const d = i === "SIMULATION" ? "simState" : void 0;
|
|
123
126
|
d && (I ? N((u) => {
|
|
@@ -137,10 +140,10 @@ const Ut = (ge, be) => {
|
|
|
137
140
|
...u,
|
|
138
141
|
[m]: E
|
|
139
142
|
};
|
|
140
|
-
}) :
|
|
143
|
+
}) : j && j(e, i, n));
|
|
141
144
|
},
|
|
142
|
-
[
|
|
143
|
-
),
|
|
145
|
+
[j, I, t]
|
|
146
|
+
), ot = y(
|
|
144
147
|
(e, i) => {
|
|
145
148
|
N((n) => {
|
|
146
149
|
const d = pe(t, e);
|
|
@@ -155,32 +158,32 @@ const Ut = (ge, be) => {
|
|
|
155
158
|
});
|
|
156
159
|
},
|
|
157
160
|
[t]
|
|
158
|
-
), O =
|
|
161
|
+
), O = y(() => {
|
|
159
162
|
W((e) => {
|
|
160
163
|
var i;
|
|
161
164
|
if (e) {
|
|
162
165
|
const n = (i = t[h]) == null ? void 0 : i.response_id;
|
|
163
166
|
n && setTimeout(() => {
|
|
164
|
-
|
|
167
|
+
G(n);
|
|
165
168
|
}, 50);
|
|
166
169
|
}
|
|
167
170
|
});
|
|
168
|
-
}, [h, t]), P =
|
|
171
|
+
}, [h, t]), P = y(
|
|
169
172
|
(e) => {
|
|
170
|
-
|
|
173
|
+
Y(!1), H ? requestAnimationFrame(() => G(e)) : q(e);
|
|
171
174
|
},
|
|
172
175
|
[H, q]
|
|
173
|
-
),
|
|
176
|
+
), rt = y(() => {
|
|
174
177
|
le(!1);
|
|
175
|
-
}, []),
|
|
178
|
+
}, []), st = y(() => {
|
|
176
179
|
le(!0);
|
|
177
|
-
}, []),
|
|
178
|
-
|
|
180
|
+
}, []), at = y(() => {
|
|
181
|
+
Y(!0);
|
|
179
182
|
}, []);
|
|
180
183
|
return b(() => {
|
|
181
184
|
const e = t[f];
|
|
182
|
-
e &&
|
|
183
|
-
}, [
|
|
185
|
+
e && K && K(e);
|
|
186
|
+
}, [K, t, f]), yt(be, {
|
|
184
187
|
behavior: a,
|
|
185
188
|
questions: t,
|
|
186
189
|
setResponses: N,
|
|
@@ -188,45 +191,45 @@ const Ut = (ge, be) => {
|
|
|
188
191
|
onBulkResponsesChange: Ee,
|
|
189
192
|
getTimeSpentOnQuestion: de
|
|
190
193
|
}), b(() => () => {
|
|
191
|
-
|
|
192
|
-
}, [
|
|
193
|
-
|
|
194
|
-
}, [
|
|
195
|
-
|
|
196
|
-
}, [
|
|
194
|
+
J.disconnect();
|
|
195
|
+
}, [J]), b(() => {
|
|
196
|
+
F && c && F(c);
|
|
197
|
+
}, [F, c]), b(() => {
|
|
198
|
+
L && N(L);
|
|
199
|
+
}, [L]), mt(() => {
|
|
197
200
|
let e;
|
|
198
|
-
return S && A && (
|
|
199
|
-
|
|
200
|
-
}, 400) :
|
|
201
|
+
return S && A && (ht().browser_name === "Safari" ? e = setTimeout(() => {
|
|
202
|
+
G(A);
|
|
203
|
+
}, 400) : G(A)), () => {
|
|
201
204
|
clearTimeout(e);
|
|
202
205
|
};
|
|
203
206
|
}, [S, A, x]), b(() => {
|
|
204
207
|
if (a.teacherValidationEnabled && l) {
|
|
205
208
|
const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
|
|
206
|
-
|
|
209
|
+
r === "TEACHER" && (e === "exit-ticket" && i !== "SystemIntro" ? s != null && s.submittedByStudent && !(s != null && s.validatedByTeacher) ? W("exit-ticket-review-available") : s != null && s.validatedByTeacher ? O() : W("exit-ticket-teacher-intervention") : n ? s != null && s.assignStatus ? O() : W("optional-items-assignment") : n || O());
|
|
207
210
|
}
|
|
208
211
|
}, [
|
|
209
212
|
a.teacherValidationEnabled,
|
|
210
213
|
O,
|
|
211
214
|
l,
|
|
212
|
-
|
|
213
|
-
|
|
215
|
+
s,
|
|
216
|
+
r
|
|
214
217
|
]), b(() => {
|
|
215
218
|
if (a.teacherValidationEnabled && l) {
|
|
216
219
|
const { item_type: e, instructor_stimulus: i } = l;
|
|
217
|
-
|
|
220
|
+
r === "STUDENT" && e === "exit-ticket" && i !== "SystemIntro" && (s != null && s.submittedByStudent ? V == null || V() : D == null || D());
|
|
218
221
|
}
|
|
219
222
|
}, [
|
|
220
223
|
a.teacherValidationEnabled,
|
|
221
224
|
l,
|
|
222
|
-
|
|
225
|
+
s == null ? void 0 : s.submittedByStudent,
|
|
223
226
|
D,
|
|
224
227
|
V,
|
|
225
|
-
|
|
228
|
+
r
|
|
226
229
|
]), b(() => {
|
|
227
230
|
p === "CURRENT" && k.forEach(({ reference: e, questions: i }) => {
|
|
228
231
|
var n, d, u;
|
|
229
|
-
i.length < 3 ?
|
|
232
|
+
i.length < 3 ? Z(`Diagnostics item has Less than 3 questions: ${e}`, {
|
|
230
233
|
tags: {
|
|
231
234
|
"content-type": "learnosity",
|
|
232
235
|
"activity-reference": _,
|
|
@@ -234,7 +237,7 @@ const Ut = (ge, be) => {
|
|
|
234
237
|
},
|
|
235
238
|
fingerprint: [`diagnostics-item-questions-count-${e}`]
|
|
236
239
|
// Add unique fingerprint
|
|
237
|
-
}) : (((n = i[0]) == null ? void 0 : n.instructor_stimulus) !== "Try" || ((d = i[1]) == null ? void 0 : d.instructor_stimulus) !== "Learn" || ((u = i[2]) == null ? void 0 : u.instructor_stimulus) !== "Apply") &&
|
|
240
|
+
}) : (((n = i[0]) == null ? void 0 : n.instructor_stimulus) !== "Try" || ((d = i[1]) == null ? void 0 : d.instructor_stimulus) !== "Learn" || ((u = i[2]) == null ? void 0 : u.instructor_stimulus) !== "Apply") && Z(
|
|
238
241
|
`Diagnostics questions sequence is incorrect expected [Try, Learn, Apply]: ${e}`,
|
|
239
242
|
{
|
|
240
243
|
tags: {
|
|
@@ -250,9 +253,9 @@ const Ut = (ge, be) => {
|
|
|
250
253
|
}, [_, k, p]), b(() => {
|
|
251
254
|
t.forEach((e) => {
|
|
252
255
|
const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
|
|
253
|
-
if ((
|
|
256
|
+
if ((U ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
|
|
254
257
|
const E = i.valid_response.value ?? [];
|
|
255
|
-
(E == null ? void 0 : E.length) === 0 && ((i.alt_responses ?? []).some((
|
|
258
|
+
(E == null ? void 0 : E.length) === 0 && ((i.alt_responses ?? []).some((ct) => ct.value.length > 0) || (Z(`Question has no valid response: ${m.widget_reference}`, {
|
|
256
259
|
tags: {
|
|
257
260
|
"content-type": "learnosity",
|
|
258
261
|
"activity-reference": _,
|
|
@@ -262,7 +265,7 @@ const Ut = (ge, be) => {
|
|
|
262
265
|
},
|
|
263
266
|
fingerprint: [`no-valid-response-${m.widget_reference}`]
|
|
264
267
|
// Add unique fingerprint
|
|
265
|
-
}), w.current(
|
|
268
|
+
}), w.current(It.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
|
|
266
269
|
item_reference: n,
|
|
267
270
|
widget_reference: m.widget_reference,
|
|
268
271
|
question_type: d,
|
|
@@ -270,9 +273,9 @@ const Ut = (ge, be) => {
|
|
|
270
273
|
})));
|
|
271
274
|
}
|
|
272
275
|
});
|
|
273
|
-
}, [_, w, t,
|
|
276
|
+
}, [_, w, t, U]), S ? /* @__PURE__ */ R(lt, { children: [
|
|
274
277
|
$e && /* @__PURE__ */ R(
|
|
275
|
-
|
|
278
|
+
Ht,
|
|
276
279
|
{
|
|
277
280
|
$flexDirection: "row",
|
|
278
281
|
$justifyContent: "center",
|
|
@@ -283,17 +286,17 @@ const Ut = (ge, be) => {
|
|
|
283
286
|
$gap: 8,
|
|
284
287
|
$gutter: 8,
|
|
285
288
|
$flexGap: 8,
|
|
286
|
-
$background:
|
|
289
|
+
$background: tt,
|
|
287
290
|
$topOffset: v.topOffset - me,
|
|
288
291
|
children: [
|
|
289
|
-
te ? /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(
|
|
290
|
-
/* @__PURE__ */ o(
|
|
292
|
+
te ? /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(ft, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(pt, { width: 16, height: 16 }) }),
|
|
293
|
+
/* @__PURE__ */ o(bt, { $renderAs: "ub3", children: it })
|
|
291
294
|
]
|
|
292
295
|
}
|
|
293
296
|
),
|
|
294
|
-
/* @__PURE__ */ R(
|
|
295
|
-
ze === "top" && /* @__PURE__ */ o(
|
|
296
|
-
|
|
297
|
+
/* @__PURE__ */ R(xt, { $background: "WHITE", $width: Ue, children: [
|
|
298
|
+
ze === "top" && /* @__PURE__ */ o(qt, { $topOffset: x, $height: Ct, children: /* @__PURE__ */ o(Pt, { children: /* @__PURE__ */ o(
|
|
299
|
+
Rt,
|
|
297
300
|
{
|
|
298
301
|
placement: "top",
|
|
299
302
|
questions: t,
|
|
@@ -302,12 +305,12 @@ const Ut = (ge, be) => {
|
|
|
302
305
|
lastUnlockedQuestionIndex: h,
|
|
303
306
|
behavior: a,
|
|
304
307
|
onItemNumberClick: P,
|
|
305
|
-
userType:
|
|
308
|
+
userType: r,
|
|
306
309
|
summaryVisible: g
|
|
307
310
|
}
|
|
308
311
|
) }) }),
|
|
309
|
-
ae && l && /* @__PURE__ */ o(
|
|
310
|
-
|
|
312
|
+
ae && l && /* @__PURE__ */ o(Qt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(ue, { $width: X, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
|
|
313
|
+
kt,
|
|
311
314
|
{
|
|
312
315
|
blocker: ae,
|
|
313
316
|
lastUnlockedQuestion: l,
|
|
@@ -319,38 +322,38 @@ const Ut = (ge, be) => {
|
|
|
319
322
|
}
|
|
320
323
|
) }) }),
|
|
321
324
|
Ye && /* @__PURE__ */ o(
|
|
322
|
-
|
|
325
|
+
St,
|
|
323
326
|
{
|
|
324
327
|
activeQuestionIndex: f,
|
|
325
328
|
onClick: P,
|
|
326
329
|
questions: t,
|
|
327
330
|
bottomOffset: C,
|
|
328
331
|
topOffset: x,
|
|
329
|
-
userType:
|
|
332
|
+
userType: r
|
|
330
333
|
}
|
|
331
334
|
),
|
|
332
|
-
ce && /* @__PURE__ */ o(
|
|
335
|
+
ce && /* @__PURE__ */ o(Gt, { children: /* @__PURE__ */ o(gt, { initialPosition: Tt, onClose: rt }) }),
|
|
333
336
|
/* @__PURE__ */ R(
|
|
334
|
-
|
|
337
|
+
Lt,
|
|
335
338
|
{
|
|
336
|
-
$marginTop:
|
|
339
|
+
$marginTop: r === "TEACHER" && g ? "0" : C,
|
|
337
340
|
$height: C,
|
|
338
341
|
$isCardView: M === "card",
|
|
339
342
|
children: [
|
|
340
343
|
/* @__PURE__ */ o(
|
|
341
|
-
|
|
344
|
+
Et,
|
|
342
345
|
{
|
|
343
|
-
width:
|
|
346
|
+
width: z - 32,
|
|
344
347
|
question: t[f],
|
|
345
348
|
learnosity: S,
|
|
346
|
-
userType:
|
|
349
|
+
userType: r
|
|
347
350
|
}
|
|
348
351
|
),
|
|
349
352
|
je && /* @__PURE__ */ o(
|
|
350
|
-
|
|
353
|
+
Ft,
|
|
351
354
|
{
|
|
352
355
|
$height: C,
|
|
353
|
-
$width: M === "card" ?
|
|
356
|
+
$width: M === "card" ? z - 32 : "100%",
|
|
354
357
|
$isCardView: M === "card",
|
|
355
358
|
children: /* @__PURE__ */ o(
|
|
356
359
|
ue,
|
|
@@ -359,17 +362,17 @@ const Ut = (ge, be) => {
|
|
|
359
362
|
$flexDirection: "row",
|
|
360
363
|
$justifyContent: "space-between",
|
|
361
364
|
$alignItems: "center",
|
|
362
|
-
$width:
|
|
365
|
+
$width: z - 32,
|
|
363
366
|
children: /* @__PURE__ */ o(
|
|
364
|
-
|
|
367
|
+
_t,
|
|
365
368
|
{
|
|
366
|
-
userType:
|
|
369
|
+
userType: r,
|
|
367
370
|
layout: v,
|
|
368
371
|
behavior: a,
|
|
369
372
|
worksheetName: ee,
|
|
370
373
|
questions: t,
|
|
371
374
|
responses: c,
|
|
372
|
-
onCalculatorOpen:
|
|
375
|
+
onCalculatorOpen: st,
|
|
373
376
|
activeQuestionIndex: f,
|
|
374
377
|
lastUnlockedQuestionIndex: h,
|
|
375
378
|
appendedQuestionIds: ne,
|
|
@@ -380,12 +383,12 @@ const Ut = (ge, be) => {
|
|
|
380
383
|
isSummaryVisible: g,
|
|
381
384
|
setResponses: N,
|
|
382
385
|
getTimeSpentOnQuestion: de,
|
|
383
|
-
setSummaryVisible:
|
|
386
|
+
setSummaryVisible: Y,
|
|
384
387
|
setBlocker: W,
|
|
385
388
|
setIsScribblingEnabled: Ze,
|
|
386
389
|
setActiveQuestionId: q,
|
|
387
390
|
onItemNumberClick: P,
|
|
388
|
-
onGoToReview:
|
|
391
|
+
onGoToReview: at,
|
|
389
392
|
onResponseChange: I,
|
|
390
393
|
onHelp: Re,
|
|
391
394
|
onTeacherValidation: ie,
|
|
@@ -400,64 +403,62 @@ const Ut = (ge, be) => {
|
|
|
400
403
|
)
|
|
401
404
|
}
|
|
402
405
|
),
|
|
403
|
-
!g && H &&
|
|
406
|
+
!g && H && r === "STUDENT" && /* @__PURE__ */ o(jt, { children: /* @__PURE__ */ o(Vt, {}) })
|
|
404
407
|
]
|
|
405
408
|
}
|
|
406
409
|
),
|
|
407
410
|
/* @__PURE__ */ R(
|
|
408
|
-
|
|
411
|
+
Kt,
|
|
409
412
|
{
|
|
410
413
|
$actionbarHeight: C,
|
|
411
414
|
$isCardView: M === "card",
|
|
412
415
|
children: [
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
),
|
|
416
|
+
et.map((e, i) => {
|
|
417
|
+
var m, $;
|
|
418
|
+
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
|
419
|
+
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && r === "STUDENT") ? null : /* @__PURE__ */ o(
|
|
420
|
+
Dt,
|
|
421
|
+
{
|
|
422
|
+
signedRequest: Se,
|
|
423
|
+
userType: r,
|
|
424
|
+
worksheetCompleted: Ne,
|
|
425
|
+
question: e,
|
|
426
|
+
response: c[n],
|
|
427
|
+
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
|
428
|
+
maxQuestionWidth: X,
|
|
429
|
+
learnosity: S,
|
|
430
|
+
isActive: n === B,
|
|
431
|
+
isHidden: !H && n !== B || g,
|
|
432
|
+
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
|
433
|
+
background: ve,
|
|
434
|
+
appended: ne.includes(n),
|
|
435
|
+
behavior: a,
|
|
436
|
+
layout: v,
|
|
437
|
+
actionbarHeight: C,
|
|
438
|
+
intersectionObserver: J,
|
|
439
|
+
onMarkForReview: ot,
|
|
440
|
+
onMediaStateChange: nt,
|
|
441
|
+
userId: Ae,
|
|
442
|
+
isScribblingEnabled: se,
|
|
443
|
+
onPublishStrokes: Be,
|
|
444
|
+
onReceiveStrokes: We,
|
|
445
|
+
initialStrokesData: Oe,
|
|
446
|
+
isCanvasEnabled: oe,
|
|
447
|
+
onPublishMouseMove: De,
|
|
448
|
+
onSubscribeMouseMove: Ve,
|
|
449
|
+
setActiveQuestionId: q,
|
|
450
|
+
canResolveDoubt: qe,
|
|
451
|
+
onResolveDoubt: Pe,
|
|
452
|
+
studentId: Le,
|
|
453
|
+
subjectiveProps: Fe,
|
|
454
|
+
responses: c,
|
|
455
|
+
loggerRef: w
|
|
456
|
+
},
|
|
457
|
+
n
|
|
458
|
+
);
|
|
459
|
+
}),
|
|
459
460
|
g && /* @__PURE__ */ o(
|
|
460
|
-
|
|
461
|
+
Ut,
|
|
461
462
|
{
|
|
462
463
|
worksheetName: ee,
|
|
463
464
|
questions: t,
|
|
@@ -475,13 +476,13 @@ const Ut = (ge, be) => {
|
|
|
475
476
|
}
|
|
476
477
|
),
|
|
477
478
|
!g && Je && /* @__PURE__ */ o(
|
|
478
|
-
|
|
479
|
+
Mt,
|
|
479
480
|
{
|
|
480
|
-
questionWidth:
|
|
481
|
+
questionWidth: X,
|
|
481
482
|
questions: t,
|
|
482
483
|
activeQuestionIndex: f,
|
|
483
484
|
learnosity: S,
|
|
484
|
-
userType:
|
|
485
|
+
userType: r,
|
|
485
486
|
height: re,
|
|
486
487
|
actionbarHeight: C,
|
|
487
488
|
openQuestionFeedbackModal: Me,
|
|
@@ -490,8 +491,8 @@ const Ut = (ge, be) => {
|
|
|
490
491
|
)
|
|
491
492
|
] })
|
|
492
493
|
] }) : null;
|
|
493
|
-
},
|
|
494
|
+
}, vi = dt(ut(Xt));
|
|
494
495
|
export {
|
|
495
|
-
|
|
496
|
+
vi as default
|
|
496
497
|
};
|
|
497
498
|
//# sourceMappingURL=worksheet.js.map
|