@cuemath/leap 3.1.44-beta-0.1 → 3.1.44-beta-0.2
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-helpers.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js +21 -20
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +106 -104
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +14 -13
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +40 -40
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as D, Fragment as
|
|
1
|
+
import { jsxs as D, Fragment as ft, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { captureMessage as ee } from "@sentry/browser";
|
|
3
|
-
import { memo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import { memo as ht, forwardRef as pt, useMemo as te, useState as $, useCallback as y, useEffect as b, useLayoutEffect as gt } from "react";
|
|
4
|
+
import bt from "../../../assets/line-icons/icons/check2.js";
|
|
5
|
+
import It from "../../../assets/line-icons/icons/info2.js";
|
|
6
|
+
import St from "../../../helpers/get-device-details.js";
|
|
7
|
+
import Ct from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
|
|
8
8
|
import ie from "../../ui/layout/flex-view.js";
|
|
9
9
|
import fe from "../../ui/text/text.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { WORKSHEET_NUDGE_BANNER_HEIGHT as he, TOP_NAVIGATION_HEIGHT as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
10
|
+
import $t from "../constants/events.js";
|
|
11
|
+
import yt from "../user-pointer-pin/user-pin.js";
|
|
12
|
+
import { WORKSHEET_NUDGE_BANNER_HEIGHT as he, TOP_NAVIGATION_HEIGHT as Tt, DESMOS_CALC_POSITION as _t } from "./constants.js";
|
|
13
|
+
import vt from "./hooks/use-create-imperative-handle.js";
|
|
14
|
+
import kt from "./hooks/use-get-active-question-id.js";
|
|
15
15
|
import Et from "./hooks/use-time-on-questions.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { getWorksheetDimensions as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { NudgeBannerWrapper as
|
|
25
|
-
import
|
|
26
|
-
const
|
|
16
|
+
import wt from "./question-tips.js";
|
|
17
|
+
import Nt from "./worksheet-action-bar/worksheet-action-bar.js";
|
|
18
|
+
import At from "./worksheet-blocker/worksheet-blocker.js";
|
|
19
|
+
import { getWorksheetDimensions as Bt, getQuestionsFromItems as Wt, getInitialResponses as Ot, getLastUnlockedQuestionIndex as pe, getInitialQuestionId as Rt, getQuestionMetadata as ge, scrollToQuestion as G, getRenderableQuestions as Dt, getWorksheetNudgeBannerInfo as Vt } from "./worksheet-helpers.js";
|
|
20
|
+
import Ht from "./worksheet-navigation/worksheet-navigation.js";
|
|
21
|
+
import Mt from "./worksheet-question/worksheet-question.js";
|
|
22
|
+
import xt from "./worksheet-sidebar/navigator.js";
|
|
23
|
+
import qt from "./worksheet-sidebar/sidebar.js";
|
|
24
|
+
import { NudgeBannerWrapper as Qt, NudgeBannerIcon as be, WorksheetContainer as Pt, NavigationContainer as Gt, NavigationWrapper as Lt, BlockerWrapper as Ft, DesmosCalcWrapper as jt, ActionbarContainer as Ut, ActionbarWrapper as Xt, StudentWorksheetSideBar as Kt, QuestionsWrapper as zt } from "./worksheet-styled.js";
|
|
25
|
+
import Jt from "./worksheet-summary/worksheet-summary.js";
|
|
26
|
+
const Yt = (Ie, Se) => {
|
|
27
27
|
const {
|
|
28
28
|
userType: s,
|
|
29
29
|
studentName: Ce = "Student",
|
|
@@ -31,18 +31,18 @@ const Jt = (Ie, Se) => {
|
|
|
31
31
|
worksheetName: L,
|
|
32
32
|
initialResponseId: ye,
|
|
33
33
|
initialItemIndex: Te,
|
|
34
|
-
learnosityActivityRef:
|
|
34
|
+
learnosityActivityRef: E,
|
|
35
35
|
learnosityItems: w,
|
|
36
36
|
learnosityResponses: _e,
|
|
37
37
|
layout: T,
|
|
38
38
|
background: ve,
|
|
39
39
|
behavior: a,
|
|
40
|
-
updatedResponses:
|
|
41
|
-
showNudgeBanner:
|
|
40
|
+
updatedResponses: F,
|
|
41
|
+
showNudgeBanner: ke,
|
|
42
42
|
markedAsCompleted: ne,
|
|
43
43
|
onResponseChange: I,
|
|
44
|
-
onBulkResponsesChange:
|
|
45
|
-
onResponsesChange:
|
|
44
|
+
onBulkResponsesChange: Ee,
|
|
45
|
+
onResponsesChange: j,
|
|
46
46
|
onMediaStateChange: U,
|
|
47
47
|
onTeacherValidation: re,
|
|
48
48
|
onOptionalItemAssignment: we,
|
|
@@ -64,13 +64,13 @@ const Jt = (Ie, Se) => {
|
|
|
64
64
|
onActiveQuestionChange: X,
|
|
65
65
|
openQuestionFeedbackModal: xe,
|
|
66
66
|
summaryDescription: qe,
|
|
67
|
-
canSubmitWorksheet:
|
|
67
|
+
canSubmitWorksheet: Qe,
|
|
68
68
|
loggerRef: N,
|
|
69
|
-
canResolveDoubt:
|
|
69
|
+
canResolveDoubt: Pe,
|
|
70
70
|
onResolveDoubt: Ge,
|
|
71
71
|
onSkip: Le,
|
|
72
|
-
onUnassign:
|
|
73
|
-
canToggleScribbling:
|
|
72
|
+
onUnassign: Fe,
|
|
73
|
+
canToggleScribbling: je = !0,
|
|
74
74
|
studentId: Ue,
|
|
75
75
|
subjectiveProps: Xe,
|
|
76
76
|
canShowActionBar: Ke = !0
|
|
@@ -85,18 +85,19 @@ const Jt = (Ie, Se) => {
|
|
|
85
85
|
renderSideBar: et,
|
|
86
86
|
showUserPointer: tt = !0,
|
|
87
87
|
imageHue: _,
|
|
88
|
-
renderSheetHeader: it
|
|
88
|
+
renderSheetHeader: it,
|
|
89
|
+
renderQuestionFeedback: nt
|
|
89
90
|
} = T, { actionbarHeight: C, maxQuestionWidth: z, questionsContainerWidth: J } = te(
|
|
90
|
-
() =>
|
|
91
|
+
() => Bt(w, T),
|
|
91
92
|
[T, w]
|
|
92
93
|
), [t] = $(
|
|
93
|
-
() =>
|
|
94
|
+
() => Wt(w, {
|
|
94
95
|
sectioned: K && h !== "ADAPTIVE" && h !== "CURRENT",
|
|
95
96
|
adaptive: h === "ADAPTIVE"
|
|
96
97
|
})
|
|
97
98
|
), [c, A] = $(
|
|
98
|
-
() => _e ??
|
|
99
|
-
), [ce,
|
|
99
|
+
() => _e ?? Ot(t)
|
|
100
|
+
), [ce, rt] = $(!1), p = te(
|
|
100
101
|
() => h !== "OPEN" ? pe({
|
|
101
102
|
questions: t,
|
|
102
103
|
responses: c,
|
|
@@ -104,8 +105,8 @@ const Jt = (Ie, Se) => {
|
|
|
104
105
|
userType: s
|
|
105
106
|
}) : t.length - 1,
|
|
106
107
|
[a, h, t, c, s]
|
|
107
|
-
), l = t[p], o = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor:
|
|
108
|
-
() =>
|
|
108
|
+
), l = t[p], o = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: ot, label: st } = Vt(s, !!ne), [B] = $(
|
|
109
|
+
() => Rt({
|
|
109
110
|
questions: t,
|
|
110
111
|
initialQuestion: ze,
|
|
111
112
|
lastUnlockedQuestionIndex: pe({
|
|
@@ -117,33 +118,33 @@ const Jt = (Ie, Se) => {
|
|
|
117
118
|
initialResponseId: ye,
|
|
118
119
|
initialItemIndex: Te
|
|
119
120
|
})
|
|
120
|
-
), { activeQuestionId: W, setActiveQuestionId:
|
|
121
|
+
), { activeQuestionId: W, setActiveQuestionId: Q, intersectionObserver: Y } = kt(B), f = te(
|
|
121
122
|
() => t.findIndex((e) => e.response_id === W),
|
|
122
123
|
[W, t]
|
|
123
|
-
), [g, Z] = $(!1), [le, O] = $(), [de, ue] = $(!1), me = Et(a, c, W),
|
|
124
|
+
), [g, Z] = $(!1), [le, O] = $(), [de, ue] = $(!1), me = Et(a, c, W), at = y(
|
|
124
125
|
(e, i, n) => {
|
|
125
126
|
const d = i === "SIMULATION" ? "simState" : void 0;
|
|
126
127
|
d && (I ? A((u) => {
|
|
127
128
|
const m = e.response_id, v = ge(t, m);
|
|
128
129
|
if (!v) return u;
|
|
129
|
-
const
|
|
130
|
+
const k = {
|
|
130
131
|
...v,
|
|
131
132
|
...u[m],
|
|
132
133
|
[d]: n
|
|
133
134
|
};
|
|
134
135
|
return I == null || I({
|
|
135
136
|
responseId: m,
|
|
136
|
-
response:
|
|
137
|
+
response: k,
|
|
137
138
|
isNewAttempt: !1,
|
|
138
139
|
question: e
|
|
139
140
|
}), {
|
|
140
141
|
...u,
|
|
141
|
-
[m]:
|
|
142
|
+
[m]: k
|
|
142
143
|
};
|
|
143
144
|
}) : U && U(e, i, n));
|
|
144
145
|
},
|
|
145
146
|
[U, I, t]
|
|
146
|
-
),
|
|
147
|
+
), ct = y(
|
|
147
148
|
(e, i) => {
|
|
148
149
|
A((n) => {
|
|
149
150
|
const d = ge(t, e);
|
|
@@ -168,37 +169,37 @@ const Jt = (Ie, Se) => {
|
|
|
168
169
|
}, 50);
|
|
169
170
|
}
|
|
170
171
|
});
|
|
171
|
-
}, [p, t]),
|
|
172
|
+
}, [p, t]), P = y(
|
|
172
173
|
(e) => {
|
|
173
|
-
Z(!1), x ? requestAnimationFrame(() => G(e)) :
|
|
174
|
+
Z(!1), x ? requestAnimationFrame(() => G(e)) : Q(e);
|
|
174
175
|
},
|
|
175
|
-
[x,
|
|
176
|
-
),
|
|
176
|
+
[x, Q]
|
|
177
|
+
), lt = y(() => {
|
|
177
178
|
ue(!1);
|
|
178
|
-
}, []), lt = y(() => {
|
|
179
|
-
ue(!0);
|
|
180
179
|
}, []), dt = y(() => {
|
|
180
|
+
ue(!0);
|
|
181
|
+
}, []), ut = y(() => {
|
|
181
182
|
Z(!0);
|
|
182
183
|
}, []);
|
|
183
184
|
return b(() => {
|
|
184
185
|
const e = t[f];
|
|
185
186
|
e && X && X(e);
|
|
186
|
-
}, [X, t, f]),
|
|
187
|
+
}, [X, t, f]), vt(Se, {
|
|
187
188
|
behavior: a,
|
|
188
189
|
questions: t,
|
|
189
190
|
setResponses: A,
|
|
190
191
|
onResponseChange: I,
|
|
191
|
-
onBulkResponsesChange:
|
|
192
|
+
onBulkResponsesChange: Ee,
|
|
192
193
|
getTimeSpentOnQuestion: me
|
|
193
194
|
}), b(() => () => {
|
|
194
195
|
Y.disconnect();
|
|
195
196
|
}, [Y]), b(() => {
|
|
196
|
-
|
|
197
|
-
}, [
|
|
198
|
-
|
|
199
|
-
}, [
|
|
197
|
+
j && c && j(c);
|
|
198
|
+
}, [j, c]), b(() => {
|
|
199
|
+
F && A(F);
|
|
200
|
+
}, [F]), gt(() => {
|
|
200
201
|
let e;
|
|
201
|
-
return S && B && (
|
|
202
|
+
return S && B && (St().browser_name === "Safari" ? e = setTimeout(() => {
|
|
202
203
|
G(B);
|
|
203
204
|
}, 400) : G(B)), () => {
|
|
204
205
|
clearTimeout(e);
|
|
@@ -232,7 +233,7 @@ const Jt = (Ie, Se) => {
|
|
|
232
233
|
i.length < 3 ? ee(`Diagnostics item has Less than 3 questions: ${e}`, {
|
|
233
234
|
tags: {
|
|
234
235
|
"content-type": "learnosity",
|
|
235
|
-
"activity-reference":
|
|
236
|
+
"activity-reference": E,
|
|
236
237
|
"item-reference": e
|
|
237
238
|
},
|
|
238
239
|
fingerprint: [`diagnostics-item-questions-count-${e}`]
|
|
@@ -242,7 +243,7 @@ const Jt = (Ie, Se) => {
|
|
|
242
243
|
{
|
|
243
244
|
tags: {
|
|
244
245
|
"content-type": "learnosity",
|
|
245
|
-
"activity-reference":
|
|
246
|
+
"activity-reference": E,
|
|
246
247
|
"item-reference": e
|
|
247
248
|
},
|
|
248
249
|
fingerprint: [`diagnostics-item-questions-sequence-${e}`]
|
|
@@ -250,22 +251,22 @@ const Jt = (Ie, Se) => {
|
|
|
250
251
|
}
|
|
251
252
|
);
|
|
252
253
|
});
|
|
253
|
-
}, [
|
|
254
|
+
}, [E, w, h]), b(() => {
|
|
254
255
|
t.forEach((e) => {
|
|
255
256
|
const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
|
|
256
257
|
if ((K ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
|
|
257
|
-
const
|
|
258
|
-
(
|
|
258
|
+
const k = i.valid_response.value ?? [];
|
|
259
|
+
(k == null ? void 0 : k.length) === 0 && ((i.alt_responses ?? []).some((mt) => mt.value.length > 0) || (ee(`Question has no valid response: ${m.widget_reference}`, {
|
|
259
260
|
tags: {
|
|
260
261
|
"content-type": "learnosity",
|
|
261
|
-
"activity-reference":
|
|
262
|
+
"activity-reference": E,
|
|
262
263
|
"item-reference": n,
|
|
263
264
|
"question-number": u,
|
|
264
265
|
"widget-reference": m.widget_reference
|
|
265
266
|
},
|
|
266
267
|
fingerprint: [`no-valid-response-${m.widget_reference}`]
|
|
267
268
|
// Add unique fingerprint
|
|
268
|
-
}), N.current(
|
|
269
|
+
}), N.current($t.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
|
|
269
270
|
item_reference: n,
|
|
270
271
|
widget_reference: m.widget_reference,
|
|
271
272
|
question_type: d,
|
|
@@ -273,9 +274,9 @@ const Jt = (Ie, Se) => {
|
|
|
273
274
|
})));
|
|
274
275
|
}
|
|
275
276
|
});
|
|
276
|
-
}, [
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
}, [E, N, t, K]), S ? /* @__PURE__ */ D(ft, { children: [
|
|
278
|
+
ke && /* @__PURE__ */ D(
|
|
279
|
+
Qt,
|
|
279
280
|
{
|
|
280
281
|
$flexDirection: "row",
|
|
281
282
|
$justifyContent: "center",
|
|
@@ -286,11 +287,11 @@ const Jt = (Ie, Se) => {
|
|
|
286
287
|
$gap: 8,
|
|
287
288
|
$gutter: 8,
|
|
288
289
|
$flexGap: 8,
|
|
289
|
-
$background:
|
|
290
|
+
$background: ot,
|
|
290
291
|
$topOffset: T.topOffset - he,
|
|
291
292
|
children: [
|
|
292
|
-
ne ? /* @__PURE__ */ r(be, { children: /* @__PURE__ */ r(
|
|
293
|
-
/* @__PURE__ */ r(fe, { $renderAs: "ub3", children:
|
|
293
|
+
ne ? /* @__PURE__ */ r(be, { children: /* @__PURE__ */ r(bt, { width: 16, height: 16 }) }) : /* @__PURE__ */ r(be, { children: /* @__PURE__ */ r(It, { width: 16, height: 16 }) }),
|
|
294
|
+
/* @__PURE__ */ r(fe, { $renderAs: "ub3", children: st })
|
|
294
295
|
]
|
|
295
296
|
}
|
|
296
297
|
),
|
|
@@ -311,8 +312,8 @@ const Jt = (Ie, Se) => {
|
|
|
311
312
|
children: /* @__PURE__ */ r(fe, { $renderAs: "ab2", children: L })
|
|
312
313
|
}
|
|
313
314
|
),
|
|
314
|
-
Ze === "top" && /* @__PURE__ */ r(
|
|
315
|
-
|
|
315
|
+
Ze === "top" && /* @__PURE__ */ r(Gt, { $topOffset: q, $height: Tt, children: /* @__PURE__ */ r(Lt, { children: /* @__PURE__ */ r(
|
|
316
|
+
Ht,
|
|
316
317
|
{
|
|
317
318
|
placement: "top",
|
|
318
319
|
questions: t,
|
|
@@ -320,13 +321,13 @@ const Jt = (Ie, Se) => {
|
|
|
320
321
|
activeQuestionIndex: f,
|
|
321
322
|
lastUnlockedQuestionIndex: p,
|
|
322
323
|
behavior: a,
|
|
323
|
-
onItemNumberClick:
|
|
324
|
+
onItemNumberClick: P,
|
|
324
325
|
userType: s,
|
|
325
326
|
summaryVisible: g
|
|
326
327
|
}
|
|
327
328
|
) }) }),
|
|
328
|
-
le && l && /* @__PURE__ */ r(
|
|
329
|
-
|
|
329
|
+
le && l && /* @__PURE__ */ r(Ft, { $minHeight: ae, $topOffset: q, children: /* @__PURE__ */ r(ie, { $width: z, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ r(
|
|
330
|
+
At,
|
|
330
331
|
{
|
|
331
332
|
blocker: le,
|
|
332
333
|
lastUnlockedQuestion: l,
|
|
@@ -338,26 +339,26 @@ const Jt = (Ie, Se) => {
|
|
|
338
339
|
}
|
|
339
340
|
) }) }),
|
|
340
341
|
tt && /* @__PURE__ */ r(
|
|
341
|
-
|
|
342
|
+
yt,
|
|
342
343
|
{
|
|
343
344
|
activeQuestionIndex: f,
|
|
344
|
-
onClick:
|
|
345
|
+
onClick: P,
|
|
345
346
|
questions: t,
|
|
346
347
|
bottomOffset: C,
|
|
347
348
|
topOffset: q,
|
|
348
349
|
userType: s
|
|
349
350
|
}
|
|
350
351
|
),
|
|
351
|
-
de && /* @__PURE__ */ r(jt, { children: /* @__PURE__ */ r(
|
|
352
|
+
de && /* @__PURE__ */ r(jt, { children: /* @__PURE__ */ r(Ct, { initialPosition: _t, onClose: lt }) }),
|
|
352
353
|
/* @__PURE__ */ D(
|
|
353
|
-
|
|
354
|
+
Ut,
|
|
354
355
|
{
|
|
355
356
|
$marginTop: s === "TEACHER" && g ? "0" : C,
|
|
356
357
|
$height: C,
|
|
357
358
|
$isCardView: M === "card",
|
|
358
359
|
children: [
|
|
359
360
|
/* @__PURE__ */ r(
|
|
360
|
-
|
|
361
|
+
wt,
|
|
361
362
|
{
|
|
362
363
|
width: J - 32,
|
|
363
364
|
question: t[f],
|
|
@@ -366,7 +367,7 @@ const Jt = (Ie, Se) => {
|
|
|
366
367
|
}
|
|
367
368
|
),
|
|
368
369
|
Ke && /* @__PURE__ */ r(
|
|
369
|
-
|
|
370
|
+
Xt,
|
|
370
371
|
{
|
|
371
372
|
$height: C,
|
|
372
373
|
$width: M === "card" ? J - 32 : "100%",
|
|
@@ -380,7 +381,7 @@ const Jt = (Ie, Se) => {
|
|
|
380
381
|
$alignItems: "center",
|
|
381
382
|
$width: J - 32,
|
|
382
383
|
children: /* @__PURE__ */ r(
|
|
383
|
-
|
|
384
|
+
Nt,
|
|
384
385
|
{
|
|
385
386
|
userType: s,
|
|
386
387
|
layout: T,
|
|
@@ -388,23 +389,23 @@ const Jt = (Ie, Se) => {
|
|
|
388
389
|
worksheetName: L,
|
|
389
390
|
questions: t,
|
|
390
391
|
responses: c,
|
|
391
|
-
onCalculatorOpen:
|
|
392
|
+
onCalculatorOpen: dt,
|
|
392
393
|
activeQuestionIndex: f,
|
|
393
394
|
lastUnlockedQuestionIndex: p,
|
|
394
395
|
appendedQuestionIds: oe,
|
|
395
396
|
learnosity: S,
|
|
396
397
|
isCanvasEnabled: se,
|
|
397
|
-
canSubmitWorksheet:
|
|
398
|
+
canSubmitWorksheet: Qe,
|
|
398
399
|
isScribblingEnabled: ce,
|
|
399
400
|
isSummaryVisible: g,
|
|
400
401
|
setResponses: A,
|
|
401
402
|
getTimeSpentOnQuestion: me,
|
|
402
403
|
setSummaryVisible: Z,
|
|
403
404
|
setBlocker: O,
|
|
404
|
-
setIsScribblingEnabled:
|
|
405
|
-
setActiveQuestionId:
|
|
406
|
-
onItemNumberClick:
|
|
407
|
-
onGoToReview:
|
|
405
|
+
setIsScribblingEnabled: rt,
|
|
406
|
+
setActiveQuestionId: Q,
|
|
407
|
+
onItemNumberClick: P,
|
|
408
|
+
onGoToReview: ut,
|
|
408
409
|
onResponseChange: I,
|
|
409
410
|
onHelp: Ve,
|
|
410
411
|
onTeacherValidation: re,
|
|
@@ -412,30 +413,30 @@ const Jt = (Ie, Se) => {
|
|
|
412
413
|
showCalculator: de,
|
|
413
414
|
loggerRef: N,
|
|
414
415
|
onSkip: Le,
|
|
415
|
-
onUnassign:
|
|
416
|
-
canToggleScribbling:
|
|
416
|
+
onUnassign: Fe,
|
|
417
|
+
canToggleScribbling: je
|
|
417
418
|
}
|
|
418
419
|
)
|
|
419
420
|
}
|
|
420
421
|
)
|
|
421
422
|
}
|
|
422
423
|
),
|
|
423
|
-
!g && x && s === "STUDENT" && /* @__PURE__ */ r(
|
|
424
|
+
!g && x && s === "STUDENT" && /* @__PURE__ */ r(Kt, { children: /* @__PURE__ */ r(xt, {}) })
|
|
424
425
|
]
|
|
425
426
|
}
|
|
426
427
|
),
|
|
427
428
|
/* @__PURE__ */ D(
|
|
428
|
-
|
|
429
|
+
zt,
|
|
429
430
|
{
|
|
430
431
|
$actionbarHeight: C,
|
|
431
432
|
$isCardView: M === "card",
|
|
432
433
|
children: [
|
|
433
|
-
|
|
434
|
+
Dt({ questions: t, lastUnlockedQuestionIndex: p, userType: s }).map(
|
|
434
435
|
(e, i) => {
|
|
435
436
|
var m, v;
|
|
436
437
|
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
|
437
438
|
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ r(
|
|
438
|
-
|
|
439
|
+
Mt,
|
|
439
440
|
{
|
|
440
441
|
signedRequest: $e,
|
|
441
442
|
userType: s,
|
|
@@ -454,8 +455,8 @@ const Jt = (Ie, Se) => {
|
|
|
454
455
|
layout: T,
|
|
455
456
|
actionbarHeight: C,
|
|
456
457
|
intersectionObserver: Y,
|
|
457
|
-
onMarkForReview:
|
|
458
|
-
onMediaStateChange:
|
|
458
|
+
onMarkForReview: ct,
|
|
459
|
+
onMediaStateChange: at,
|
|
459
460
|
userId: We,
|
|
460
461
|
isScribblingEnabled: ce,
|
|
461
462
|
onPublishStrokes: Oe,
|
|
@@ -464,8 +465,8 @@ const Jt = (Ie, Se) => {
|
|
|
464
465
|
isCanvasEnabled: se,
|
|
465
466
|
onPublishMouseMove: He,
|
|
466
467
|
onSubscribeMouseMove: Me,
|
|
467
|
-
setActiveQuestionId:
|
|
468
|
-
canResolveDoubt:
|
|
468
|
+
setActiveQuestionId: Q,
|
|
469
|
+
canResolveDoubt: Pe,
|
|
469
470
|
onResolveDoubt: Ge,
|
|
470
471
|
studentId: Ue,
|
|
471
472
|
subjectiveProps: Xe,
|
|
@@ -477,14 +478,14 @@ const Jt = (Ie, Se) => {
|
|
|
477
478
|
}
|
|
478
479
|
),
|
|
479
480
|
g && /* @__PURE__ */ r(
|
|
480
|
-
|
|
481
|
+
Jt,
|
|
481
482
|
{
|
|
482
483
|
worksheetName: L,
|
|
483
484
|
questions: t,
|
|
484
485
|
responses: c,
|
|
485
486
|
activeQuestionIndex: f,
|
|
486
487
|
lastUnlockedQuestionIndex: p,
|
|
487
|
-
onItemNumberClick:
|
|
488
|
+
onItemNumberClick: P,
|
|
488
489
|
behavior: a,
|
|
489
490
|
minHeight: Ye,
|
|
490
491
|
summaryDescription: qe,
|
|
@@ -495,7 +496,7 @@ const Jt = (Ie, Se) => {
|
|
|
495
496
|
}
|
|
496
497
|
),
|
|
497
498
|
!g && et && /* @__PURE__ */ r(
|
|
498
|
-
|
|
499
|
+
qt,
|
|
499
500
|
{
|
|
500
501
|
questionWidth: z,
|
|
501
502
|
questions: t,
|
|
@@ -505,15 +506,16 @@ const Jt = (Ie, Se) => {
|
|
|
505
506
|
height: ae,
|
|
506
507
|
actionbarHeight: C,
|
|
507
508
|
openQuestionFeedbackModal: xe,
|
|
508
|
-
loggerRef: N
|
|
509
|
+
loggerRef: N,
|
|
510
|
+
renderQuestionFeedback: nt
|
|
509
511
|
}
|
|
510
512
|
)
|
|
511
513
|
]
|
|
512
514
|
}
|
|
513
515
|
)
|
|
514
516
|
] }) : null;
|
|
515
|
-
},
|
|
517
|
+
}, ki = ht(pt(Yt));
|
|
516
518
|
export {
|
|
517
|
-
|
|
519
|
+
ki as default
|
|
518
520
|
};
|
|
519
521
|
//# sourceMappingURL=worksheet.js.map
|