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