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