@cuemath/leap 3.2.1-pd-1 → 3.2.1
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/illustrations/illustrations.js +0 -1
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +0 -6
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js +56 -59
- package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js.map +1 -1
- package/dist/features/circle-games/game-launcher/game-launcher.js +84 -82
- package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +204 -157
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/communication/pub-sub/constants.js +4 -7
- package/dist/features/communication/pub-sub/constants.js.map +1 -1
- package/dist/features/homework/homework-card-view.js +100 -87
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card-styled.js +69 -24
- package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card.js +30 -53
- package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +25 -55
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container.js +107 -89
- package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
- package/dist/features/puzzles/utils/puzzle-pattern.js +13 -28
- package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +19 -20
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +25 -29
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +47 -97
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +163 -166
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.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.js +309 -303
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +16 -17
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +6 -38
- package/dist/index.js +27 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/features/puzzles/api/puzzle-dashboard.js +0 -10
- package/dist/features/puzzles/api/puzzle-dashboard.js.map +0 -1
- package/dist/features/puzzles/constants/puzzle-container.js +0 -8
- package/dist/features/puzzles/constants/puzzle-container.js.map +0 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -45
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -30
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -84
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -1
- package/dist/static/arm-mechanical.7561628e.json +0 -4428
- package/dist/static/cent-emoji.3a07ef13.json +0 -5576
- package/dist/static/clap-emoji.aa0b824b.json +0 -12684
- package/dist/static/gem-stone.8c91431a.json +0 -6716
- package/dist/static/partyball.e19caed6.json +0 -11578
- package/dist/static/partypopper.9f7992e8.json +0 -6416
- package/dist/static/puzzle-blue-lottie.7017e2e8.json +0 -1
- package/dist/static/puzzle-blue-lottie.bf64ebc5.json +0 -12760
- package/dist/static/puzzle-dashboard-banner.b7956519.svg +0 -1
- package/dist/static/puzzle-green-lottie.1da90698.json +0 -1
- package/dist/static/puzzle-orange-lottie.cfcf3724.json +0 -1
- package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
- package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
- package/dist/static/slotmachine.ba8014dd.json +0 -7779
- package/dist/static/super-emoji.7fad19f6.json +0 -3720
- package/dist/static/victory-emoji.2ca41d92.json +0 -9959
|
@@ -1,129 +1,130 @@
|
|
|
1
|
-
import { jsxs as R, Fragment as
|
|
1
|
+
import { jsxs as R, Fragment as ut, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { captureMessage as Y } from "@sentry/browser";
|
|
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
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { NudgeBannerWrapper as qt, NudgeBannerIcon as
|
|
25
|
-
import
|
|
26
|
-
const
|
|
3
|
+
import { memo as mt, forwardRef as ft, useMemo as Z, useState as v, useCallback as y, useEffect as b, useLayoutEffect as pt } from "react";
|
|
4
|
+
import ht from "../../../assets/line-icons/icons/check2.js";
|
|
5
|
+
import gt from "../../../assets/line-icons/icons/info2.js";
|
|
6
|
+
import bt from "../../../helpers/get-device-details.js";
|
|
7
|
+
import It from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
|
|
8
|
+
import me from "../../ui/layout/flex-view.js";
|
|
9
|
+
import St from "../../ui/text/text.js";
|
|
10
|
+
import Ct from "../constants/events.js";
|
|
11
|
+
import vt from "../user-pointer-pin/user-pin.js";
|
|
12
|
+
import { WORKSHEET_NUDGE_BANNER_HEIGHT as fe, TOP_NAVIGATION_HEIGHT as yt, DESMOS_CALC_POSITION as Tt } from "./constants.js";
|
|
13
|
+
import $t from "./hooks/use-create-imperative-handle.js";
|
|
14
|
+
import _t from "./hooks/use-get-active-question-id.js";
|
|
15
|
+
import Et from "./hooks/use-time-on-questions.js";
|
|
16
|
+
import kt from "./question-tips.js";
|
|
17
|
+
import wt from "./worksheet-action-bar/worksheet-action-bar.js";
|
|
18
|
+
import Nt from "./worksheet-blocker/worksheet-blocker.js";
|
|
19
|
+
import { getWorksheetDimensions as At, getQuestionsFromItems as Bt, getInitialResponses as Wt, getLastUnlockedQuestionIndex as pe, getInitialQuestionId as Ot, getQuestionMetadata as he, scrollToQuestion as Q, getRenderableQuestions as Rt, getWorksheetNudgeBannerInfo as Dt } from "./worksheet-helpers.js";
|
|
20
|
+
import Vt from "./worksheet-navigation/worksheet-navigation.js";
|
|
21
|
+
import Ht from "./worksheet-question/worksheet-question.js";
|
|
22
|
+
import Mt from "./worksheet-sidebar/navigator.js";
|
|
23
|
+
import xt from "./worksheet-sidebar/sidebar.js";
|
|
24
|
+
import { NudgeBannerWrapper as qt, NudgeBannerIcon as ge, WorksheetContainer as Pt, NavigationContainer as Qt, NavigationWrapper as Gt, BlockerWrapper as Lt, DesmosCalcWrapper as Ft, ActionbarContainer as jt, ActionbarWrapper as Ut, StudentWorksheetSideBar as Kt, QuestionsWrapper as Xt } from "./worksheet-styled.js";
|
|
25
|
+
import zt from "./worksheet-summary/worksheet-summary.js";
|
|
26
|
+
const Jt = (be, Ie) => {
|
|
27
27
|
const {
|
|
28
28
|
userType: s,
|
|
29
|
-
studentName:
|
|
30
|
-
questionsSignedRequest:
|
|
29
|
+
studentName: Se = "Student",
|
|
30
|
+
questionsSignedRequest: Ce,
|
|
31
31
|
worksheetName: ee,
|
|
32
|
-
initialResponseId:
|
|
33
|
-
initialItemIndex:
|
|
32
|
+
initialResponseId: ve,
|
|
33
|
+
initialItemIndex: ye,
|
|
34
34
|
learnosityActivityRef: E,
|
|
35
35
|
learnosityItems: k,
|
|
36
|
-
learnosityResponses:
|
|
36
|
+
learnosityResponses: Te,
|
|
37
37
|
layout: T,
|
|
38
|
-
background:
|
|
38
|
+
background: $e,
|
|
39
39
|
behavior: a,
|
|
40
40
|
updatedResponses: G,
|
|
41
|
-
showNudgeBanner:
|
|
41
|
+
showNudgeBanner: _e,
|
|
42
42
|
markedAsCompleted: te,
|
|
43
43
|
onResponseChange: I,
|
|
44
|
-
onBulkResponsesChange:
|
|
44
|
+
onBulkResponsesChange: Ee,
|
|
45
45
|
onResponsesChange: L,
|
|
46
|
-
onMediaStateChange:
|
|
46
|
+
onMediaStateChange: F,
|
|
47
47
|
onTeacherValidation: ie,
|
|
48
|
-
onOptionalItemAssignment:
|
|
49
|
-
onOptionalItemSkip:
|
|
48
|
+
onOptionalItemAssignment: ke,
|
|
49
|
+
onOptionalItemSkip: we,
|
|
50
50
|
onExitTicketStart: D,
|
|
51
51
|
onExitTicketSubmit: V,
|
|
52
|
-
onSubmit:
|
|
52
|
+
onSubmit: Ne,
|
|
53
53
|
learnosity: S,
|
|
54
54
|
appendedQuestionIds: ne,
|
|
55
|
-
worksheetCompleted:
|
|
56
|
-
userId:
|
|
57
|
-
onPublishStrokes:
|
|
58
|
-
onReceiveStrokes:
|
|
59
|
-
initialStrokesData:
|
|
55
|
+
worksheetCompleted: Ae,
|
|
56
|
+
userId: Be,
|
|
57
|
+
onPublishStrokes: We,
|
|
58
|
+
onReceiveStrokes: Oe,
|
|
59
|
+
initialStrokesData: Re,
|
|
60
60
|
isCanvasEnabled: oe,
|
|
61
|
-
onHelp:
|
|
62
|
-
onPublishMouseMove:
|
|
63
|
-
onSubscribeMouseMove:
|
|
64
|
-
onActiveQuestionChange:
|
|
65
|
-
openQuestionFeedbackModal:
|
|
66
|
-
summaryDescription:
|
|
61
|
+
onHelp: De,
|
|
62
|
+
onPublishMouseMove: Ve,
|
|
63
|
+
onSubscribeMouseMove: He,
|
|
64
|
+
onActiveQuestionChange: j,
|
|
65
|
+
openQuestionFeedbackModal: Me,
|
|
66
|
+
summaryDescription: xe,
|
|
67
67
|
canSubmitWorksheet: qe,
|
|
68
68
|
loggerRef: w,
|
|
69
|
-
canResolveDoubt:
|
|
70
|
-
onResolveDoubt:
|
|
71
|
-
onSkip:
|
|
72
|
-
onUnassign:
|
|
69
|
+
canResolveDoubt: Pe,
|
|
70
|
+
onResolveDoubt: Qe,
|
|
71
|
+
onSkip: Ge,
|
|
72
|
+
onUnassign: Le,
|
|
73
73
|
onReview: Fe,
|
|
74
74
|
canToggleScribbling: je = !0,
|
|
75
75
|
studentId: Ue,
|
|
76
76
|
subjectiveProps: Ke,
|
|
77
77
|
canShowActionBar: Xe = !0
|
|
78
|
-
} =
|
|
79
|
-
containerStyle:
|
|
80
|
-
containerWidth:
|
|
81
|
-
minQuestionHeight:
|
|
82
|
-
minSummaryHeight:
|
|
83
|
-
questionsScrollable:
|
|
84
|
-
navigationBar:
|
|
85
|
-
topOffset:
|
|
86
|
-
renderSideBar:
|
|
87
|
-
showUserPointer:
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
} = be, { initialQuestion: ze, navigationMode: p, teacherValidationEnabled: U } = a, {
|
|
79
|
+
containerStyle: H,
|
|
80
|
+
containerWidth: Je,
|
|
81
|
+
minQuestionHeight: re,
|
|
82
|
+
minSummaryHeight: Ye,
|
|
83
|
+
questionsScrollable: M,
|
|
84
|
+
navigationBar: Ze,
|
|
85
|
+
topOffset: x,
|
|
86
|
+
renderSideBar: et,
|
|
87
|
+
showUserPointer: tt = !0,
|
|
88
|
+
imageHue: se
|
|
89
|
+
} = T, { actionbarHeight: C, maxQuestionWidth: K, questionsContainerWidth: X } = Z(
|
|
90
|
+
() => At(k, T),
|
|
90
91
|
[T, k]
|
|
91
92
|
), [t] = v(
|
|
92
|
-
() =>
|
|
93
|
-
sectioned:
|
|
93
|
+
() => Bt(k, {
|
|
94
|
+
sectioned: U && p !== "ADAPTIVE" && p !== "CURRENT",
|
|
94
95
|
adaptive: p === "ADAPTIVE"
|
|
95
96
|
})
|
|
96
97
|
), [c, N] = v(
|
|
97
|
-
() =>
|
|
98
|
-
), [
|
|
99
|
-
() => p !== "OPEN" ?
|
|
98
|
+
() => Te ?? Wt(t)
|
|
99
|
+
), [ae, it] = v(!1), h = Z(
|
|
100
|
+
() => p !== "OPEN" ? pe({
|
|
100
101
|
questions: t,
|
|
101
102
|
responses: c,
|
|
102
103
|
behavior: a,
|
|
103
104
|
userType: s
|
|
104
105
|
}) : t.length - 1,
|
|
105
106
|
[a, p, t, c, s]
|
|
106
|
-
), l = t[h], r = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor:
|
|
107
|
-
() =>
|
|
107
|
+
), l = t[h], r = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: nt, label: ot } = Dt(s, !!te), [A] = v(
|
|
108
|
+
() => Ot({
|
|
108
109
|
questions: t,
|
|
109
|
-
initialQuestion:
|
|
110
|
-
lastUnlockedQuestionIndex:
|
|
110
|
+
initialQuestion: ze,
|
|
111
|
+
lastUnlockedQuestionIndex: pe({
|
|
111
112
|
questions: t,
|
|
112
113
|
responses: c,
|
|
113
114
|
behavior: a,
|
|
114
115
|
userType: s
|
|
115
116
|
}),
|
|
116
|
-
initialResponseId:
|
|
117
|
-
initialItemIndex:
|
|
117
|
+
initialResponseId: ve,
|
|
118
|
+
initialItemIndex: ye
|
|
118
119
|
})
|
|
119
|
-
), { activeQuestionId: B, setActiveQuestionId:
|
|
120
|
+
), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: z } = _t(A), f = Z(
|
|
120
121
|
() => t.findIndex((e) => e.response_id === B),
|
|
121
122
|
[B, t]
|
|
122
|
-
), [g, J] = v(!1), [
|
|
123
|
+
), [g, J] = v(!1), [ce, W] = v(), [le, de] = v(!1), ue = Et(a, c, B), rt = y(
|
|
123
124
|
(e, i, n) => {
|
|
124
125
|
const d = i === "SIMULATION" ? "simState" : void 0;
|
|
125
126
|
d && (I ? N((u) => {
|
|
126
|
-
const m = e.response_id, $ =
|
|
127
|
+
const m = e.response_id, $ = he(t, m);
|
|
127
128
|
if (!$) return u;
|
|
128
129
|
const _ = {
|
|
129
130
|
...$,
|
|
@@ -139,13 +140,13 @@ const Yt = (Ie, Se) => {
|
|
|
139
140
|
...u,
|
|
140
141
|
[m]: _
|
|
141
142
|
};
|
|
142
|
-
}) :
|
|
143
|
+
}) : F && F(e, i, n));
|
|
143
144
|
},
|
|
144
|
-
[
|
|
145
|
-
),
|
|
145
|
+
[F, I, t]
|
|
146
|
+
), st = y(
|
|
146
147
|
(e, i) => {
|
|
147
148
|
N((n) => {
|
|
148
|
-
const d =
|
|
149
|
+
const d = he(t, e);
|
|
149
150
|
return d ? {
|
|
150
151
|
...n,
|
|
151
152
|
[e]: {
|
|
@@ -167,42 +168,42 @@ const Yt = (Ie, Se) => {
|
|
|
167
168
|
}, 50);
|
|
168
169
|
}
|
|
169
170
|
});
|
|
170
|
-
}, [h, t]),
|
|
171
|
+
}, [h, t]), P = y(
|
|
171
172
|
(e) => {
|
|
172
|
-
J(!1),
|
|
173
|
+
J(!1), M ? requestAnimationFrame(() => Q(e)) : q(e);
|
|
173
174
|
},
|
|
174
|
-
[
|
|
175
|
-
),
|
|
176
|
-
|
|
175
|
+
[M, q]
|
|
176
|
+
), at = y(() => {
|
|
177
|
+
de(!1);
|
|
178
|
+
}, []), ct = y(() => {
|
|
179
|
+
de(!0);
|
|
177
180
|
}, []), lt = y(() => {
|
|
178
|
-
ue(!0);
|
|
179
|
-
}, []), dt = y(() => {
|
|
180
181
|
J(!0);
|
|
181
182
|
}, []);
|
|
182
183
|
return b(() => {
|
|
183
184
|
const e = t[f];
|
|
184
|
-
e &&
|
|
185
|
-
}, [
|
|
185
|
+
e && j && j(e);
|
|
186
|
+
}, [j, t, f]), $t(Ie, {
|
|
186
187
|
behavior: a,
|
|
187
188
|
questions: t,
|
|
188
189
|
setResponses: N,
|
|
189
190
|
onResponseChange: I,
|
|
190
|
-
onBulkResponsesChange:
|
|
191
|
-
getTimeSpentOnQuestion:
|
|
191
|
+
onBulkResponsesChange: Ee,
|
|
192
|
+
getTimeSpentOnQuestion: ue
|
|
192
193
|
}), b(() => () => {
|
|
193
|
-
|
|
194
|
-
}, [
|
|
194
|
+
z.disconnect();
|
|
195
|
+
}, [z]), b(() => {
|
|
195
196
|
L && c && L(c);
|
|
196
197
|
}, [L, c]), b(() => {
|
|
197
198
|
G && N(G);
|
|
198
|
-
}, [G]),
|
|
199
|
+
}, [G]), pt(() => {
|
|
199
200
|
let e;
|
|
200
|
-
return S && A && (
|
|
201
|
+
return S && A && (bt().browser_name === "Safari" ? e = setTimeout(() => {
|
|
201
202
|
Q(A);
|
|
202
203
|
}, 400) : Q(A)), () => {
|
|
203
204
|
clearTimeout(e);
|
|
204
205
|
};
|
|
205
|
-
}, [S, A,
|
|
206
|
+
}, [S, A, x]), b(() => {
|
|
206
207
|
if (a.teacherValidationEnabled && l) {
|
|
207
208
|
const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
|
|
208
209
|
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());
|
|
@@ -252,9 +253,9 @@ const Yt = (Ie, Se) => {
|
|
|
252
253
|
}, [E, k, p]), b(() => {
|
|
253
254
|
t.forEach((e) => {
|
|
254
255
|
const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
|
|
255
|
-
if ((
|
|
256
|
+
if ((U ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
|
|
256
257
|
const _ = i.valid_response.value ?? [];
|
|
257
|
-
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((
|
|
258
|
+
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((dt) => dt.value.length > 0) || (Y(`Question has no valid response: ${m.widget_reference}`, {
|
|
258
259
|
tags: {
|
|
259
260
|
"content-type": "learnosity",
|
|
260
261
|
"activity-reference": E,
|
|
@@ -264,7 +265,7 @@ const Yt = (Ie, Se) => {
|
|
|
264
265
|
},
|
|
265
266
|
fingerprint: [`no-valid-response-${m.widget_reference}`]
|
|
266
267
|
// Add unique fingerprint
|
|
267
|
-
}), w.current(
|
|
268
|
+
}), w.current(Ct.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
|
|
268
269
|
item_reference: n,
|
|
269
270
|
widget_reference: m.widget_reference,
|
|
270
271
|
question_type: d,
|
|
@@ -272,8 +273,8 @@ const Yt = (Ie, Se) => {
|
|
|
272
273
|
})));
|
|
273
274
|
}
|
|
274
275
|
});
|
|
275
|
-
}, [E, w, t,
|
|
276
|
-
|
|
276
|
+
}, [E, w, t, U]), S ? /* @__PURE__ */ R(ut, { children: [
|
|
277
|
+
_e && /* @__PURE__ */ R(
|
|
277
278
|
qt,
|
|
278
279
|
{
|
|
279
280
|
$flexDirection: "row",
|
|
@@ -281,223 +282,228 @@ const Yt = (Ie, Se) => {
|
|
|
281
282
|
$alignItems: "center",
|
|
282
283
|
$width: "100%",
|
|
283
284
|
$heightX: 1.75,
|
|
284
|
-
$height:
|
|
285
|
+
$height: fe,
|
|
285
286
|
$gap: 8,
|
|
286
287
|
$gutter: 8,
|
|
287
288
|
$flexGap: 8,
|
|
288
|
-
$background:
|
|
289
|
-
$topOffset: T.topOffset -
|
|
289
|
+
$background: nt,
|
|
290
|
+
$topOffset: T.topOffset - fe,
|
|
290
291
|
children: [
|
|
291
|
-
te ? /* @__PURE__ */ o(
|
|
292
|
-
/* @__PURE__ */ o(
|
|
292
|
+
te ? /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(ht, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(gt, { width: 16, height: 16 }) }),
|
|
293
|
+
/* @__PURE__ */ o(St, { $renderAs: "ub3", children: ot })
|
|
293
294
|
]
|
|
294
295
|
}
|
|
295
296
|
),
|
|
296
|
-
/* @__PURE__ */ R(
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
{
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
userType: s
|
|
350
|
-
}
|
|
351
|
-
),
|
|
352
|
-
Xe && /* @__PURE__ */ o(
|
|
353
|
-
Ut,
|
|
354
|
-
{
|
|
355
|
-
$height: C,
|
|
356
|
-
$width: M === "card" ? K - 32 : "100%",
|
|
357
|
-
$isCardView: M === "card",
|
|
358
|
-
children: /* @__PURE__ */ o(
|
|
359
|
-
fe,
|
|
297
|
+
/* @__PURE__ */ R(
|
|
298
|
+
Pt,
|
|
299
|
+
{
|
|
300
|
+
$background: se ? `${se}_1` : "WHITE",
|
|
301
|
+
$width: Je,
|
|
302
|
+
children: [
|
|
303
|
+
Ze === "top" && /* @__PURE__ */ o(Qt, { $topOffset: x, $height: yt, children: /* @__PURE__ */ o(Gt, { children: /* @__PURE__ */ o(
|
|
304
|
+
Vt,
|
|
305
|
+
{
|
|
306
|
+
placement: "top",
|
|
307
|
+
questions: t,
|
|
308
|
+
responses: c,
|
|
309
|
+
activeQuestionIndex: f,
|
|
310
|
+
lastUnlockedQuestionIndex: h,
|
|
311
|
+
behavior: a,
|
|
312
|
+
onItemNumberClick: P,
|
|
313
|
+
userType: s,
|
|
314
|
+
summaryVisible: g
|
|
315
|
+
}
|
|
316
|
+
) }) }),
|
|
317
|
+
ce && l && /* @__PURE__ */ o(Lt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(me, { $width: K, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
|
|
318
|
+
Nt,
|
|
319
|
+
{
|
|
320
|
+
blocker: ce,
|
|
321
|
+
lastUnlockedQuestion: l,
|
|
322
|
+
studentName: Se,
|
|
323
|
+
onBlockerClose: O,
|
|
324
|
+
onOptionalItemAssignment: ke,
|
|
325
|
+
onOptionalItemSkip: we,
|
|
326
|
+
onTeacherValidation: ie
|
|
327
|
+
}
|
|
328
|
+
) }) }),
|
|
329
|
+
tt && /* @__PURE__ */ o(
|
|
330
|
+
vt,
|
|
331
|
+
{
|
|
332
|
+
activeQuestionIndex: f,
|
|
333
|
+
onClick: P,
|
|
334
|
+
questions: t,
|
|
335
|
+
bottomOffset: C,
|
|
336
|
+
topOffset: x,
|
|
337
|
+
userType: s
|
|
338
|
+
}
|
|
339
|
+
),
|
|
340
|
+
le && /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(It, { initialPosition: Tt, onClose: at }) }),
|
|
341
|
+
/* @__PURE__ */ R(
|
|
342
|
+
jt,
|
|
343
|
+
{
|
|
344
|
+
$marginTop: s === "TEACHER" && g ? "0" : C,
|
|
345
|
+
$height: C,
|
|
346
|
+
$isCardView: H === "card",
|
|
347
|
+
children: [
|
|
348
|
+
/* @__PURE__ */ o(
|
|
349
|
+
kt,
|
|
360
350
|
{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
351
|
+
width: X - 32,
|
|
352
|
+
question: t[f],
|
|
353
|
+
learnosity: S,
|
|
354
|
+
userType: s
|
|
355
|
+
}
|
|
356
|
+
),
|
|
357
|
+
Xe && /* @__PURE__ */ o(
|
|
358
|
+
Ut,
|
|
359
|
+
{
|
|
360
|
+
$height: C,
|
|
361
|
+
$width: H === "card" ? X - 32 : "100%",
|
|
362
|
+
$isCardView: H === "card",
|
|
366
363
|
children: /* @__PURE__ */ o(
|
|
367
|
-
|
|
364
|
+
me,
|
|
368
365
|
{
|
|
366
|
+
$gutterX: 1,
|
|
367
|
+
$flexDirection: "row",
|
|
368
|
+
$justifyContent: "space-between",
|
|
369
|
+
$alignItems: "center",
|
|
370
|
+
$width: X - 32,
|
|
371
|
+
children: /* @__PURE__ */ o(
|
|
372
|
+
wt,
|
|
373
|
+
{
|
|
374
|
+
userType: s,
|
|
375
|
+
layout: T,
|
|
376
|
+
behavior: a,
|
|
377
|
+
worksheetName: ee,
|
|
378
|
+
questions: t,
|
|
379
|
+
responses: c,
|
|
380
|
+
onCalculatorOpen: ct,
|
|
381
|
+
activeQuestionIndex: f,
|
|
382
|
+
lastUnlockedQuestionIndex: h,
|
|
383
|
+
appendedQuestionIds: ne,
|
|
384
|
+
learnosity: S,
|
|
385
|
+
isCanvasEnabled: oe,
|
|
386
|
+
canSubmitWorksheet: qe,
|
|
387
|
+
isScribblingEnabled: ae,
|
|
388
|
+
isSummaryVisible: g,
|
|
389
|
+
setResponses: N,
|
|
390
|
+
getTimeSpentOnQuestion: ue,
|
|
391
|
+
setSummaryVisible: J,
|
|
392
|
+
setBlocker: W,
|
|
393
|
+
setIsScribblingEnabled: it,
|
|
394
|
+
setActiveQuestionId: q,
|
|
395
|
+
onItemNumberClick: P,
|
|
396
|
+
onGoToReview: lt,
|
|
397
|
+
onResponseChange: I,
|
|
398
|
+
onHelp: De,
|
|
399
|
+
onTeacherValidation: ie,
|
|
400
|
+
onSubmit: Ne,
|
|
401
|
+
showCalculator: le,
|
|
402
|
+
loggerRef: w,
|
|
403
|
+
onSkip: Ge,
|
|
404
|
+
onUnassign: Le,
|
|
405
|
+
onReview: Fe,
|
|
406
|
+
canToggleScribbling: je
|
|
407
|
+
}
|
|
408
|
+
)
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
}
|
|
412
|
+
),
|
|
413
|
+
!g && M && s === "STUDENT" && /* @__PURE__ */ o(Kt, { children: /* @__PURE__ */ o(Mt, {}) })
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
),
|
|
417
|
+
/* @__PURE__ */ R(
|
|
418
|
+
Xt,
|
|
419
|
+
{
|
|
420
|
+
$actionbarHeight: C,
|
|
421
|
+
$isCardView: H === "card",
|
|
422
|
+
children: [
|
|
423
|
+
Rt({ questions: t, lastUnlockedQuestionIndex: h, userType: s }).map(
|
|
424
|
+
(e, i) => {
|
|
425
|
+
var m, $;
|
|
426
|
+
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
|
427
|
+
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ o(
|
|
428
|
+
Ht,
|
|
429
|
+
{
|
|
430
|
+
signedRequest: Ce,
|
|
369
431
|
userType: s,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
onCalculatorOpen: lt,
|
|
376
|
-
activeQuestionIndex: f,
|
|
377
|
-
lastUnlockedQuestionIndex: h,
|
|
378
|
-
appendedQuestionIds: ne,
|
|
432
|
+
worksheetCompleted: Ae,
|
|
433
|
+
question: e,
|
|
434
|
+
response: c[n],
|
|
435
|
+
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
|
436
|
+
maxQuestionWidth: K,
|
|
379
437
|
learnosity: S,
|
|
438
|
+
isActive: n === B,
|
|
439
|
+
isHidden: !M && n !== B || g,
|
|
440
|
+
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
|
441
|
+
background: $e,
|
|
442
|
+
appended: ne.includes(n),
|
|
443
|
+
behavior: a,
|
|
444
|
+
layout: T,
|
|
445
|
+
actionbarHeight: C,
|
|
446
|
+
intersectionObserver: z,
|
|
447
|
+
onMarkForReview: st,
|
|
448
|
+
onMediaStateChange: rt,
|
|
449
|
+
userId: Be,
|
|
450
|
+
isScribblingEnabled: ae,
|
|
451
|
+
onPublishStrokes: We,
|
|
452
|
+
onReceiveStrokes: Oe,
|
|
453
|
+
initialStrokesData: Re,
|
|
380
454
|
isCanvasEnabled: oe,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
onHelp: Ve,
|
|
394
|
-
onTeacherValidation: ie,
|
|
395
|
-
onSubmit: Ae,
|
|
396
|
-
showCalculator: de,
|
|
397
|
-
loggerRef: w,
|
|
398
|
-
onSkip: Le,
|
|
399
|
-
onUnassign: ze,
|
|
400
|
-
onReview: Fe,
|
|
401
|
-
canToggleScribbling: je
|
|
402
|
-
}
|
|
403
|
-
)
|
|
455
|
+
onPublishMouseMove: Ve,
|
|
456
|
+
onSubscribeMouseMove: He,
|
|
457
|
+
setActiveQuestionId: q,
|
|
458
|
+
canResolveDoubt: Pe,
|
|
459
|
+
onResolveDoubt: Qe,
|
|
460
|
+
studentId: Ue,
|
|
461
|
+
subjectiveProps: Ke,
|
|
462
|
+
responses: c,
|
|
463
|
+
loggerRef: w
|
|
464
|
+
},
|
|
465
|
+
n
|
|
466
|
+
);
|
|
404
467
|
}
|
|
405
|
-
)
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
!g && x && s === "STUDENT" && /* @__PURE__ */ o(Kt, { children: /* @__PURE__ */ o(Ht, {}) })
|
|
409
|
-
]
|
|
410
|
-
}
|
|
411
|
-
),
|
|
412
|
-
/* @__PURE__ */ R(
|
|
413
|
-
Xt,
|
|
414
|
-
{
|
|
415
|
-
$actionbarHeight: C,
|
|
416
|
-
$isCardView: M === "card",
|
|
417
|
-
$isPuzzleCard: ae,
|
|
418
|
-
children: [
|
|
419
|
-
Dt({ questions: t, lastUnlockedQuestionIndex: h, userType: s }).map(
|
|
420
|
-
(e, i) => {
|
|
421
|
-
var m, $;
|
|
422
|
-
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
|
423
|
-
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ o(
|
|
424
|
-
xt,
|
|
468
|
+
),
|
|
469
|
+
g && /* @__PURE__ */ o(
|
|
470
|
+
zt,
|
|
425
471
|
{
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
worksheetCompleted: Be,
|
|
429
|
-
question: e,
|
|
430
|
-
response: c[n],
|
|
431
|
-
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
|
432
|
-
maxQuestionWidth: U,
|
|
433
|
-
learnosity: S,
|
|
434
|
-
isActive: n === B,
|
|
435
|
-
isHidden: !x && n !== B || g,
|
|
436
|
-
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
|
437
|
-
background: _e,
|
|
438
|
-
appended: ne.includes(n),
|
|
439
|
-
behavior: a,
|
|
440
|
-
layout: T,
|
|
441
|
-
actionbarHeight: C,
|
|
442
|
-
intersectionObserver: X,
|
|
443
|
-
onMarkForReview: at,
|
|
444
|
-
onMediaStateChange: st,
|
|
445
|
-
userId: We,
|
|
446
|
-
isScribblingEnabled: ce,
|
|
447
|
-
onPublishStrokes: Oe,
|
|
448
|
-
onReceiveStrokes: Re,
|
|
449
|
-
initialStrokesData: De,
|
|
450
|
-
isCanvasEnabled: oe,
|
|
451
|
-
onPublishMouseMove: Me,
|
|
452
|
-
onSubscribeMouseMove: xe,
|
|
453
|
-
setActiveQuestionId: P,
|
|
454
|
-
canResolveDoubt: Qe,
|
|
455
|
-
onResolveDoubt: Ge,
|
|
456
|
-
studentId: Ue,
|
|
457
|
-
subjectiveProps: Ke,
|
|
472
|
+
worksheetName: ee,
|
|
473
|
+
questions: t,
|
|
458
474
|
responses: c,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
activeQuestionIndex: f,
|
|
489
|
-
learnosity: S,
|
|
490
|
-
userType: s,
|
|
491
|
-
height: se,
|
|
492
|
-
actionbarHeight: C,
|
|
493
|
-
openQuestionFeedbackModal: He,
|
|
494
|
-
loggerRef: w
|
|
495
|
-
}
|
|
496
|
-
)
|
|
497
|
-
] })
|
|
475
|
+
activeQuestionIndex: f,
|
|
476
|
+
lastUnlockedQuestionIndex: h,
|
|
477
|
+
onItemNumberClick: P,
|
|
478
|
+
behavior: a,
|
|
479
|
+
minHeight: Ye,
|
|
480
|
+
summaryDescription: xe,
|
|
481
|
+
summaryVisible: g
|
|
482
|
+
}
|
|
483
|
+
)
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
),
|
|
487
|
+
!g && et && /* @__PURE__ */ o(
|
|
488
|
+
xt,
|
|
489
|
+
{
|
|
490
|
+
questionWidth: K,
|
|
491
|
+
questions: t,
|
|
492
|
+
activeQuestionIndex: f,
|
|
493
|
+
learnosity: S,
|
|
494
|
+
userType: s,
|
|
495
|
+
height: re,
|
|
496
|
+
actionbarHeight: C,
|
|
497
|
+
openQuestionFeedbackModal: Me,
|
|
498
|
+
loggerRef: w
|
|
499
|
+
}
|
|
500
|
+
)
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
)
|
|
498
504
|
] }) : null;
|
|
499
|
-
},
|
|
505
|
+
}, _i = mt(ft(Jt));
|
|
500
506
|
export {
|
|
501
|
-
|
|
507
|
+
_i as default
|
|
502
508
|
};
|
|
503
509
|
//# sourceMappingURL=worksheet.js.map
|