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