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