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