@cuemath/leap 3.2.19-beta-0.1 → 3.2.19-link.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 +6 -6
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/line-icons/icons/star3.js +32 -0
- package/dist/assets/line-icons/icons/star3.js.map +1 -0
- package/dist/assets/lottie/lottie.js +0 -5
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/analytics-events/platform-events-student.js +1 -2
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/analytics-events/platform-events-teacher.js +4 -6
- package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +8 -10
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +2 -2
- package/dist/features/chapters-v2/utils/node-card-utils.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 +97 -85
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +42 -44
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +29 -31
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +48 -54
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/utils.js +27 -33
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +11 -17
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.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/journey/journey-id/journey-id-teacher.js +2 -2
- package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
- package/dist/features/puzzles/app/puzzle-app-styled.js +6 -10
- package/dist/features/puzzles/app/puzzle-app-styled.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 -79
- 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 -100
- package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.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/trial-session/comps/student-profile/student-profile.js +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js +7 -50
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro-styled.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +15 -69
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +49 -0
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +1 -0
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +64 -0
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -0
- package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js +28 -0
- package/dist/features/ui/accordion/accordion-items/accordion-items-styled.js.map +1 -0
- package/dist/features/ui/accordion/accordion-items/accordion-items.js +83 -0
- package/dist/features/ui/accordion/accordion-items/accordion-items.js.map +1 -0
- package/dist/features/ui/accordion/accordion.js +62 -0
- package/dist/features/ui/accordion/accordion.js.map +1 -0
- package/dist/features/ui/inputs/base-input/base-input.js +11 -11
- package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
- package/dist/features/ui/inputs/text-input/text-input.js +19 -18
- package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +42 -8
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +37 -27
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/text/text.js +31 -29
- package/dist/features/ui/text/text.js.map +1 -1
- package/dist/features/ui/theme/clrs.js +2 -0
- package/dist/features/ui/theme/clrs.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 +12 -16
- 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 -101
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +146 -149
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +207 -242
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +37 -37
- 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 +313 -307
- 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 +35 -44
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +71 -89
- package/dist/index.js +626 -626
- package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +1 -0
- package/dist/static/puzzle-pattern-green.c9f84bbc.svg +1 -0
- package/dist/static/puzzle-pattern-orange.3da09665.svg +1 -0
- package/dist/static/puzzle-pattern-purple.5fb5a319.svg +1 -0
- package/dist/static/puzzle-pattern-yellow.aadbf457.svg +1 -0
- package/dist/static/stripe-blurple.6abf422f.svg +1 -0
- package/package.json +1 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +0 -72
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +0 -63
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +0 -67
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +0 -70
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +0 -70
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +0 -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-analytics-events.js +0 -11
- package/dist/features/puzzles/puzzle-analytics-events.js.map +0 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -55
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -37
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -110
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -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
- 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-pattern-blue.abff0164.svg +0 -1
- package/dist/static/puzzle-pattern-green.b8ba1840.svg +0 -1
- package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +0 -1
- package/dist/static/puzzle-pattern-purple.14b09759.svg +0 -1
- package/dist/static/puzzle-pattern-yellow.50917fab.svg +0 -1
- package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
- package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
@@ -1,132 +1,133 @@
|
|
1
|
-
import { jsxs as R, Fragment as
|
1
|
+
import { jsxs as R, Fragment as mt, jsx as o } from "react/jsx-runtime";
|
2
2
|
import { captureMessage as Z } 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
|
3
|
+
import { memo as ft, forwardRef as pt, useMemo as Q, useState as y, useCallback as v, useEffect as b, useLayoutEffect as ht } from "react";
|
4
|
+
import gt from "../../../assets/line-icons/icons/check2.js";
|
5
|
+
import bt from "../../../assets/line-icons/icons/info2.js";
|
6
|
+
import It from "../../../helpers/get-device-details.js";
|
7
|
+
import St from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
|
8
|
+
import me from "../../ui/layout/flex-view.js";
|
9
|
+
import Ct from "../../ui/text/text.js";
|
10
|
+
import yt 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 Tt, DESMOS_CALC_POSITION as $t } from "./constants.js";
|
13
|
+
import _t from "./hooks/use-create-imperative-handle.js";
|
14
|
+
import Et from "./hooks/use-get-active-question-id.js";
|
15
|
+
import kt from "./hooks/use-time-on-questions.js";
|
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, getRenderableQuestions as Rt, getInitialQuestionId as Dt, getQuestionMetadata as he, scrollToQuestion as L, 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
23
|
import qt from "./worksheet-sidebar/sidebar.js";
|
24
|
-
import { LearnosityStyleOverrides as
|
25
|
-
import
|
26
|
-
const
|
24
|
+
import { LearnosityStyleOverrides as Pt, NudgeBannerWrapper as Qt, NudgeBannerIcon as ge, WorksheetContainer as Lt, NavigationContainer as Gt, NavigationWrapper as Ft, BlockerWrapper as jt, DesmosCalcWrapper as Ut, ActionbarContainer as Kt, ActionbarWrapper as Xt, StudentWorksheetSideBar as zt, QuestionsWrapper as Jt } from "./worksheet-styled.js";
|
25
|
+
import Yt from "./worksheet-summary/worksheet-summary.js";
|
26
|
+
const Zt = (be, Ie) => {
|
27
27
|
const {
|
28
28
|
userType: r,
|
29
|
-
studentName:
|
30
|
-
questionsSignedRequest:
|
29
|
+
studentName: Se = "Student",
|
30
|
+
questionsSignedRequest: Ce,
|
31
31
|
worksheetName: ee,
|
32
|
-
initialResponseId:
|
33
|
-
initialItemIndex:
|
32
|
+
initialResponseId: ye,
|
33
|
+
initialItemIndex: ve,
|
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:
|
45
|
-
onResponsesChange:
|
46
|
-
onMediaStateChange:
|
44
|
+
onBulkResponsesChange: Ee,
|
45
|
+
onResponsesChange: F,
|
46
|
+
onMediaStateChange: j,
|
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: U,
|
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: Le,
|
72
|
+
onUnassign: Ge,
|
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: K } = 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: X, questionsContainerWidth: z } = Q(
|
90
|
+
() => Bt(k, T),
|
90
91
|
[T, k]
|
91
92
|
), [t] = y(
|
92
|
-
() =>
|
93
|
-
sectioned:
|
93
|
+
() => Wt(k, {
|
94
|
+
sectioned: K && p !== "ADAPTIVE" && p !== "CURRENT",
|
94
95
|
adaptive: p === "ADAPTIVE"
|
95
96
|
})
|
96
97
|
), [c, N] = y(
|
97
|
-
() =>
|
98
|
-
), [
|
99
|
-
() => p !== "OPEN" ?
|
98
|
+
() => Te ?? Ot(t)
|
99
|
+
), [ae, it] = y(!1), h = Q(
|
100
|
+
() => p !== "OPEN" ? pe({
|
100
101
|
questions: t,
|
101
102
|
responses: c,
|
102
103
|
behavior: a,
|
103
104
|
userType: r
|
104
105
|
}) : t.length - 1,
|
105
106
|
[a, p, t, c, r]
|
106
|
-
),
|
107
|
-
() =>
|
107
|
+
), nt = Q(
|
108
|
+
() => Rt({ questions: t, lastUnlockedQuestionIndex: h, userType: r }),
|
108
109
|
[t, h, r]
|
109
|
-
), l = t[h], s = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor:
|
110
|
-
() =>
|
110
|
+
), l = t[h], s = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: ot, label: rt } = Vt(r, !!te), [A] = y(
|
111
|
+
() => Dt({
|
111
112
|
questions: t,
|
112
|
-
initialQuestion:
|
113
|
-
lastUnlockedQuestionIndex:
|
113
|
+
initialQuestion: ze,
|
114
|
+
lastUnlockedQuestionIndex: pe({
|
114
115
|
questions: t,
|
115
116
|
responses: c,
|
116
117
|
behavior: a,
|
117
118
|
userType: r
|
118
119
|
}),
|
119
|
-
initialResponseId:
|
120
|
-
initialItemIndex:
|
120
|
+
initialResponseId: ye,
|
121
|
+
initialItemIndex: ve
|
121
122
|
})
|
122
|
-
), { activeQuestionId: B, setActiveQuestionId:
|
123
|
+
), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: J } = Et(A), f = Q(
|
123
124
|
() => t.findIndex((e) => e.response_id === B),
|
124
125
|
[B, t]
|
125
|
-
), [g, Y] = y(!1), [
|
126
|
+
), [g, Y] = y(!1), [ce, W] = y(), [le, de] = y(!1), ue = kt(a, c, B), st = v(
|
126
127
|
(e, i, n) => {
|
127
128
|
const d = i === "SIMULATION" ? "simState" : void 0;
|
128
129
|
d && (I ? N((u) => {
|
129
|
-
const m = e.response_id, $ =
|
130
|
+
const m = e.response_id, $ = he(t, m);
|
130
131
|
if (!$) return u;
|
131
132
|
const _ = {
|
132
133
|
...$,
|
@@ -142,13 +143,13 @@ const ei = (Ie, Se) => {
|
|
142
143
|
...u,
|
143
144
|
[m]: _
|
144
145
|
};
|
145
|
-
}) :
|
146
|
+
}) : j && j(e, i, n));
|
146
147
|
},
|
147
|
-
[
|
148
|
-
),
|
148
|
+
[j, I, t]
|
149
|
+
), at = v(
|
149
150
|
(e, i) => {
|
150
151
|
N((n) => {
|
151
|
-
const d =
|
152
|
+
const d = he(t, e);
|
152
153
|
return d ? {
|
153
154
|
...n,
|
154
155
|
[e]: {
|
@@ -170,42 +171,42 @@ const ei = (Ie, Se) => {
|
|
170
171
|
}, 50);
|
171
172
|
}
|
172
173
|
});
|
173
|
-
}, [h, t]),
|
174
|
+
}, [h, t]), P = v(
|
174
175
|
(e) => {
|
175
|
-
Y(!1),
|
176
|
+
Y(!1), M ? requestAnimationFrame(() => L(e)) : q(e);
|
176
177
|
},
|
177
|
-
[
|
178
|
-
),
|
179
|
-
|
178
|
+
[M, q]
|
179
|
+
), ct = v(() => {
|
180
|
+
de(!1);
|
181
|
+
}, []), lt = v(() => {
|
182
|
+
de(!0);
|
180
183
|
}, []), dt = v(() => {
|
181
|
-
ue(!0);
|
182
|
-
}, []), ut = v(() => {
|
183
184
|
Y(!0);
|
184
185
|
}, []);
|
185
186
|
return b(() => {
|
186
187
|
const e = t[f];
|
187
|
-
e &&
|
188
|
-
}, [
|
188
|
+
e && U && U(e);
|
189
|
+
}, [U, t, f]), _t(Ie, {
|
189
190
|
behavior: a,
|
190
191
|
questions: t,
|
191
192
|
setResponses: N,
|
192
193
|
onResponseChange: I,
|
193
|
-
onBulkResponsesChange:
|
194
|
-
getTimeSpentOnQuestion:
|
194
|
+
onBulkResponsesChange: Ee,
|
195
|
+
getTimeSpentOnQuestion: ue
|
195
196
|
}), b(() => () => {
|
196
197
|
J.disconnect();
|
197
198
|
}, [J]), b(() => {
|
198
|
-
|
199
|
-
}, [
|
199
|
+
F && c && F(c);
|
200
|
+
}, [F, c]), b(() => {
|
200
201
|
G && N(G);
|
201
|
-
}, [G]),
|
202
|
+
}, [G]), ht(() => {
|
202
203
|
let e;
|
203
|
-
return S && A && (
|
204
|
+
return S && A && (It().browser_name === "Safari" ? e = setTimeout(() => {
|
204
205
|
L(A);
|
205
206
|
}, 400) : L(A)), () => {
|
206
207
|
clearTimeout(e);
|
207
208
|
};
|
208
|
-
}, [S, A,
|
209
|
+
}, [S, A, x]), b(() => {
|
209
210
|
if (a.teacherValidationEnabled && l) {
|
210
211
|
const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
|
211
212
|
r === "TEACHER" && (e === "exit-ticket" && i !== "SystemIntro" ? s != null && s.submittedByStudent && !(s != null && s.validatedByTeacher) ? W("exit-ticket-review-available") : s != null && s.validatedByTeacher ? O() : W("exit-ticket-teacher-intervention") : n ? s != null && s.assignStatus ? O() : W("optional-items-assignment") : n || O());
|
@@ -255,9 +256,9 @@ const ei = (Ie, Se) => {
|
|
255
256
|
}, [E, k, p]), b(() => {
|
256
257
|
t.forEach((e) => {
|
257
258
|
const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
|
258
|
-
if ((
|
259
|
+
if ((K ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
|
259
260
|
const _ = i.valid_response.value ?? [];
|
260
|
-
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((
|
261
|
+
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((ut) => ut.value.length > 0) || (Z(`Question has no valid response: ${m.widget_reference}`, {
|
261
262
|
tags: {
|
262
263
|
"content-type": "learnosity",
|
263
264
|
"activity-reference": E,
|
@@ -267,7 +268,7 @@ const ei = (Ie, Se) => {
|
|
267
268
|
},
|
268
269
|
fingerprint: [`no-valid-response-${m.widget_reference}`]
|
269
270
|
// Add unique fingerprint
|
270
|
-
}), w.current(
|
271
|
+
}), w.current(yt.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
|
271
272
|
item_reference: n,
|
272
273
|
widget_reference: m.widget_reference,
|
273
274
|
question_type: d,
|
@@ -275,231 +276,236 @@ const ei = (Ie, Se) => {
|
|
275
276
|
})));
|
276
277
|
}
|
277
278
|
});
|
278
|
-
}, [E, w, t,
|
279
|
-
/* @__PURE__ */ o(
|
280
|
-
|
281
|
-
|
279
|
+
}, [E, w, t, K]), S ? /* @__PURE__ */ R(mt, { children: [
|
280
|
+
/* @__PURE__ */ o(Pt, {}),
|
281
|
+
_e && /* @__PURE__ */ R(
|
282
|
+
Qt,
|
282
283
|
{
|
283
284
|
$flexDirection: "row",
|
284
285
|
$justifyContent: "center",
|
285
286
|
$alignItems: "center",
|
286
287
|
$width: "100%",
|
287
288
|
$heightX: 1.75,
|
288
|
-
$height:
|
289
|
+
$height: fe,
|
289
290
|
$gap: 8,
|
290
291
|
$gutter: 8,
|
291
292
|
$flexGap: 8,
|
292
|
-
$background:
|
293
|
-
$topOffset: T.topOffset -
|
293
|
+
$background: ot,
|
294
|
+
$topOffset: T.topOffset - fe,
|
294
295
|
children: [
|
295
|
-
te ? /* @__PURE__ */ o(
|
296
|
-
/* @__PURE__ */ o(
|
296
|
+
te ? /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(gt, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(bt, { width: 16, height: 16 }) }),
|
297
|
+
/* @__PURE__ */ o(Ct, { $renderAs: "ub3", children: rt })
|
297
298
|
]
|
298
299
|
}
|
299
300
|
),
|
300
|
-
/* @__PURE__ */ R(
|
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
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
userType: r
|
354
|
-
}
|
355
|
-
),
|
356
|
-
Xe && /* @__PURE__ */ o(
|
357
|
-
Xt,
|
358
|
-
{
|
359
|
-
$height: C,
|
360
|
-
$width: M === "card" ? X - 32 : "100%",
|
361
|
-
$isCardView: M === "card",
|
362
|
-
children: /* @__PURE__ */ o(
|
363
|
-
fe,
|
301
|
+
/* @__PURE__ */ R(
|
302
|
+
Lt,
|
303
|
+
{
|
304
|
+
$background: se ? `${se}_1` : "WHITE",
|
305
|
+
$width: Je,
|
306
|
+
children: [
|
307
|
+
Ze === "top" && /* @__PURE__ */ o(Gt, { $topOffset: x, $height: Tt, children: /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(
|
308
|
+
Ht,
|
309
|
+
{
|
310
|
+
placement: "top",
|
311
|
+
questions: t,
|
312
|
+
responses: c,
|
313
|
+
activeQuestionIndex: f,
|
314
|
+
lastUnlockedQuestionIndex: h,
|
315
|
+
behavior: a,
|
316
|
+
onItemNumberClick: P,
|
317
|
+
userType: r,
|
318
|
+
summaryVisible: g
|
319
|
+
}
|
320
|
+
) }) }),
|
321
|
+
ce && l && /* @__PURE__ */ o(jt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(me, { $width: X, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
|
322
|
+
At,
|
323
|
+
{
|
324
|
+
blocker: ce,
|
325
|
+
lastUnlockedQuestion: l,
|
326
|
+
studentName: Se,
|
327
|
+
onBlockerClose: O,
|
328
|
+
onOptionalItemAssignment: ke,
|
329
|
+
onOptionalItemSkip: we,
|
330
|
+
onTeacherValidation: ie
|
331
|
+
}
|
332
|
+
) }) }),
|
333
|
+
tt && /* @__PURE__ */ o(
|
334
|
+
vt,
|
335
|
+
{
|
336
|
+
activeQuestionIndex: f,
|
337
|
+
onClick: P,
|
338
|
+
questions: t,
|
339
|
+
bottomOffset: C,
|
340
|
+
topOffset: x,
|
341
|
+
userType: r
|
342
|
+
}
|
343
|
+
),
|
344
|
+
le && /* @__PURE__ */ o(Ut, { children: /* @__PURE__ */ o(St, { initialPosition: $t, onClose: ct }) }),
|
345
|
+
/* @__PURE__ */ R(
|
346
|
+
Kt,
|
347
|
+
{
|
348
|
+
$marginTop: r === "TEACHER" && g ? "0" : C,
|
349
|
+
$height: C,
|
350
|
+
$isCardView: H === "card",
|
351
|
+
children: [
|
352
|
+
/* @__PURE__ */ o(
|
353
|
+
wt,
|
364
354
|
{
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
355
|
+
width: z - 32,
|
356
|
+
question: t[f],
|
357
|
+
learnosity: S,
|
358
|
+
userType: r
|
359
|
+
}
|
360
|
+
),
|
361
|
+
Xe && /* @__PURE__ */ o(
|
362
|
+
Xt,
|
363
|
+
{
|
364
|
+
$height: C,
|
365
|
+
$width: H === "card" ? z - 32 : "100%",
|
366
|
+
$isCardView: H === "card",
|
370
367
|
children: /* @__PURE__ */ o(
|
371
|
-
|
368
|
+
me,
|
372
369
|
{
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
370
|
+
$gutterX: 1,
|
371
|
+
$flexDirection: "row",
|
372
|
+
$justifyContent: "space-between",
|
373
|
+
$alignItems: "center",
|
374
|
+
$width: z - 32,
|
375
|
+
children: /* @__PURE__ */ o(
|
376
|
+
Nt,
|
377
|
+
{
|
378
|
+
userType: r,
|
379
|
+
layout: T,
|
380
|
+
behavior: a,
|
381
|
+
worksheetName: ee,
|
382
|
+
questions: t,
|
383
|
+
responses: c,
|
384
|
+
onCalculatorOpen: lt,
|
385
|
+
activeQuestionIndex: f,
|
386
|
+
lastUnlockedQuestionIndex: h,
|
387
|
+
appendedQuestionIds: ne,
|
388
|
+
learnosity: S,
|
389
|
+
isCanvasEnabled: oe,
|
390
|
+
canSubmitWorksheet: qe,
|
391
|
+
isScribblingEnabled: ae,
|
392
|
+
isSummaryVisible: g,
|
393
|
+
setResponses: N,
|
394
|
+
getTimeSpentOnQuestion: ue,
|
395
|
+
setSummaryVisible: Y,
|
396
|
+
setBlocker: W,
|
397
|
+
setIsScribblingEnabled: it,
|
398
|
+
setActiveQuestionId: q,
|
399
|
+
onItemNumberClick: P,
|
400
|
+
onGoToReview: dt,
|
401
|
+
onResponseChange: I,
|
402
|
+
onHelp: De,
|
403
|
+
onTeacherValidation: ie,
|
404
|
+
onSubmit: Ne,
|
405
|
+
showCalculator: le,
|
406
|
+
loggerRef: w,
|
407
|
+
onSkip: Le,
|
408
|
+
onUnassign: Ge,
|
409
|
+
onReview: Fe,
|
410
|
+
canToggleScribbling: je
|
411
|
+
}
|
412
|
+
)
|
406
413
|
}
|
407
414
|
)
|
408
415
|
}
|
416
|
+
),
|
417
|
+
!g && M && r === "STUDENT" && /* @__PURE__ */ o(zt, { children: /* @__PURE__ */ o(xt, {}) })
|
418
|
+
]
|
419
|
+
}
|
420
|
+
),
|
421
|
+
/* @__PURE__ */ R(
|
422
|
+
Jt,
|
423
|
+
{
|
424
|
+
$actionbarHeight: C,
|
425
|
+
$isCardView: H === "card",
|
426
|
+
children: [
|
427
|
+
nt.map((e, i) => {
|
428
|
+
var m, $;
|
429
|
+
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
430
|
+
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && r === "STUDENT") ? null : /* @__PURE__ */ o(
|
431
|
+
Mt,
|
432
|
+
{
|
433
|
+
signedRequest: Ce,
|
434
|
+
userType: r,
|
435
|
+
worksheetCompleted: Ae,
|
436
|
+
question: e,
|
437
|
+
response: c[n],
|
438
|
+
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
439
|
+
maxQuestionWidth: X,
|
440
|
+
learnosity: S,
|
441
|
+
isActive: n === B,
|
442
|
+
isHidden: !M && n !== B || g,
|
443
|
+
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
444
|
+
background: $e,
|
445
|
+
appended: ne.includes(n),
|
446
|
+
behavior: a,
|
447
|
+
layout: T,
|
448
|
+
actionbarHeight: C,
|
449
|
+
intersectionObserver: J,
|
450
|
+
onMarkForReview: at,
|
451
|
+
onMediaStateChange: st,
|
452
|
+
userId: Be,
|
453
|
+
isScribblingEnabled: ae,
|
454
|
+
onPublishStrokes: We,
|
455
|
+
onReceiveStrokes: Oe,
|
456
|
+
initialStrokesData: Re,
|
457
|
+
isCanvasEnabled: oe,
|
458
|
+
onPublishMouseMove: Ve,
|
459
|
+
onSubscribeMouseMove: He,
|
460
|
+
setActiveQuestionId: q,
|
461
|
+
canResolveDoubt: Pe,
|
462
|
+
onResolveDoubt: Qe,
|
463
|
+
studentId: Ue,
|
464
|
+
subjectiveProps: Ke,
|
465
|
+
responses: c,
|
466
|
+
loggerRef: w
|
467
|
+
},
|
468
|
+
n
|
469
|
+
);
|
470
|
+
}),
|
471
|
+
g && /* @__PURE__ */ o(
|
472
|
+
Yt,
|
473
|
+
{
|
474
|
+
worksheetName: ee,
|
475
|
+
questions: t,
|
476
|
+
responses: c,
|
477
|
+
activeQuestionIndex: f,
|
478
|
+
lastUnlockedQuestionIndex: h,
|
479
|
+
onItemNumberClick: P,
|
480
|
+
behavior: a,
|
481
|
+
minHeight: Ye,
|
482
|
+
summaryDescription: xe,
|
483
|
+
summaryVisible: g
|
484
|
+
}
|
409
485
|
)
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
userType: r,
|
431
|
-
worksheetCompleted: Be,
|
432
|
-
question: e,
|
433
|
-
response: c[n],
|
434
|
-
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
435
|
-
maxQuestionWidth: K,
|
436
|
-
learnosity: S,
|
437
|
-
isActive: n === B,
|
438
|
-
isHidden: !x && n !== B || g,
|
439
|
-
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
440
|
-
background: _e,
|
441
|
-
appended: ne.includes(n),
|
442
|
-
behavior: a,
|
443
|
-
layout: T,
|
444
|
-
actionbarHeight: C,
|
445
|
-
intersectionObserver: J,
|
446
|
-
onMarkForReview: ct,
|
447
|
-
onMediaStateChange: at,
|
448
|
-
userId: We,
|
449
|
-
isScribblingEnabled: ce,
|
450
|
-
onPublishStrokes: Oe,
|
451
|
-
onReceiveStrokes: Re,
|
452
|
-
initialStrokesData: De,
|
453
|
-
isCanvasEnabled: oe,
|
454
|
-
onPublishMouseMove: Me,
|
455
|
-
onSubscribeMouseMove: xe,
|
456
|
-
setActiveQuestionId: P,
|
457
|
-
canResolveDoubt: Qe,
|
458
|
-
onResolveDoubt: Le,
|
459
|
-
studentId: Ue,
|
460
|
-
subjectiveProps: Ke,
|
461
|
-
responses: c,
|
462
|
-
loggerRef: w
|
463
|
-
},
|
464
|
-
n
|
465
|
-
);
|
466
|
-
}),
|
467
|
-
g && /* @__PURE__ */ o(
|
468
|
-
Zt,
|
469
|
-
{
|
470
|
-
worksheetName: ee,
|
471
|
-
questions: t,
|
472
|
-
responses: c,
|
473
|
-
activeQuestionIndex: f,
|
474
|
-
lastUnlockedQuestionIndex: h,
|
475
|
-
onItemNumberClick: q,
|
476
|
-
behavior: a,
|
477
|
-
minHeight: Ze,
|
478
|
-
summaryDescription: Pe,
|
479
|
-
summaryVisible: g
|
480
|
-
}
|
481
|
-
)
|
482
|
-
]
|
483
|
-
}
|
484
|
-
),
|
485
|
-
!g && tt && /* @__PURE__ */ o(
|
486
|
-
qt,
|
487
|
-
{
|
488
|
-
questionWidth: K,
|
489
|
-
questions: t,
|
490
|
-
activeQuestionIndex: f,
|
491
|
-
learnosity: S,
|
492
|
-
userType: r,
|
493
|
-
height: se,
|
494
|
-
actionbarHeight: C,
|
495
|
-
openQuestionFeedbackModal: He,
|
496
|
-
loggerRef: w
|
497
|
-
}
|
498
|
-
)
|
499
|
-
] })
|
486
|
+
]
|
487
|
+
}
|
488
|
+
),
|
489
|
+
!g && et && /* @__PURE__ */ o(
|
490
|
+
qt,
|
491
|
+
{
|
492
|
+
questionWidth: X,
|
493
|
+
questions: t,
|
494
|
+
activeQuestionIndex: f,
|
495
|
+
learnosity: S,
|
496
|
+
userType: r,
|
497
|
+
height: re,
|
498
|
+
actionbarHeight: C,
|
499
|
+
openQuestionFeedbackModal: Me,
|
500
|
+
loggerRef: w
|
501
|
+
}
|
502
|
+
)
|
503
|
+
]
|
504
|
+
}
|
505
|
+
)
|
500
506
|
] }) : null;
|
501
|
-
},
|
507
|
+
}, ki = ft(pt(Zt));
|
502
508
|
export {
|
503
|
-
|
509
|
+
ki as default
|
504
510
|
};
|
505
511
|
//# sourceMappingURL=worksheet.js.map
|