@cuemath/leap 3.5.47-gg6 → 3.5.48-link.0
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/bulb.js +10 -10
- package/dist/assets/line-icons/icons/bulb.js.map +1 -1
- package/dist/assets/line-icons/icons/hand.js.map +1 -1
- package/dist/assets/line-icons/icons/scribble.js +36 -13
- package/dist/assets/line-icons/icons/scribble.js.map +1 -1
- package/dist/assets/line-icons/icons/sticker.js +9 -9
- package/dist/assets/line-icons/icons/sticker.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +14 -16
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/circle-games/games/web-view/web-view-analytics-events.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/api/get-puzzles.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +6 -6
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js +2 -2
- package/dist/features/journey/hooks/use-home-page-journey/recent-chapters-mock.js.map +1 -1
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js +29 -64
- package/dist/features/journey/mocks/chapter-page-journey-mock-data.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +9 -9
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +8 -5
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js +35 -32
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +47 -45
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +44 -51
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +39 -46
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js +120 -144
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js.map +1 -1
- package/dist/features/trial-session/helper.js +49 -54
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-slide-config-update.js +65 -62
- package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +45 -48
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/ui/tabs/tabs.js +15 -15
- package/dist/features/ui/tabs/tabs.js.map +1 -1
- package/dist/features/worksheet/learnosity-preloader/learnosity-preloader.js +1 -0
- package/dist/features/worksheet/learnosity-preloader/learnosity-preloader.js.map +1 -1
- package/dist/features/worksheet/worksheet/constants.js +13 -12
- package/dist/features/worksheet/worksheet/constants.js.map +1 -1
- package/dist/features/worksheet/worksheet/question-tips.js +100 -0
- package/dist/features/worksheet/worksheet/question-tips.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +109 -40
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +7 -7
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js +4 -4
- package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-styled.js +22 -17
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +24 -23
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +220 -192
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js +53 -0
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js +103 -73
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +251 -213
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-sidebar/navigator.js +20 -33
- package/dist/features/worksheet/worksheet/worksheet-sidebar/navigator.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js +112 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js +61 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/worksheet-sidebar-styled.js +91 -0
- package/dist/features/worksheet/worksheet/worksheet-sidebar/worksheet-sidebar-styled.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-store.js +132 -138
- package/dist/features/worksheet/worksheet/worksheet-store.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +83 -29
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js +24 -45
- package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js +2 -3
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-view.js +99 -88
- package/dist/features/worksheet/worksheet/worksheet-view.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +95 -96
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +29 -29
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +24 -24
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/index.d.ts +14 -32
- package/dist/index.js +745 -760
- package/dist/index.js.map +1 -1
- package/dist/types/models/worksheet.js +1 -2
- package/dist/types/models/worksheet.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/line-icons/icons/chevron-up.js +0 -28
- package/dist/assets/line-icons/icons/chevron-up.js.map +0 -1
- package/dist/assets/line-icons/icons/close.js +0 -28
- package/dist/assets/line-icons/icons/close.js.map +0 -1
- package/dist/assets/line-icons/icons/cursor2.js +0 -24
- package/dist/assets/line-icons/icons/cursor2.js.map +0 -1
- package/dist/assets/line-icons/icons/hints.js +0 -25
- package/dist/assets/line-icons/icons/hints.js.map +0 -1
- package/dist/assets/line-icons/icons/question-feedback.js +0 -30
- package/dist/assets/line-icons/icons/question-feedback.js.map +0 -1
- package/dist/assets/line-icons/icons/teaching-tools.js +0 -40
- package/dist/assets/line-icons/icons/teaching-tools.js.map +0 -1
- package/dist/assets/line-icons/icons/tval-question.js +0 -32
- package/dist/assets/line-icons/icons/tval-question.js.map +0 -1
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game-analytics-events.js +0 -11
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game-analytics-events.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar-styled.js +0 -49
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar.js +0 -184
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/questions-toolbar/questions-toolbar.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/scribble-switch.js +0 -65
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/scribble-switch.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-styled.js +0 -9
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-tools.js +0 -38
- package/dist/features/worksheet/worksheet/worksheet-questions-tools/worksheet-questions-tools.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools-styled.js +0 -19
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js +0 -66
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js.map +0 -1
|
@@ -1,321 +1,359 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { deepEqual as
|
|
3
|
-
import { memo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as Rt, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { deepEqual as Dt } from "../../../../node_modules/fast-equals/dist/esm/index.js";
|
|
3
|
+
import { memo as zt, useState as Q, useEffect as y, useMemo as Qt } from "react";
|
|
4
|
+
import Ut from "../../../../assets/line-icons/icons/check2.js";
|
|
5
|
+
import Nt from "../../../../assets/line-icons/icons/hand.js";
|
|
6
|
+
import Vt from "../../../../assets/line-icons/icons/question.js";
|
|
7
|
+
import Lt from "../../../../assets/line-icons/icons/skip.js";
|
|
8
|
+
import r from "../../../ui/buttons/button/button.js";
|
|
9
|
+
import x from "../../../ui/buttons/icon-button/icon-button.js";
|
|
10
|
+
import Wt from "../../../ui/layout/flex-view.js";
|
|
11
|
+
import Ht from "./use-handler-callbacks.js";
|
|
12
|
+
import { useWorksheetStore as Mt } from "../hooks/use-worksheet-store.js";
|
|
13
|
+
const ne = zt(
|
|
14
|
+
function(st) {
|
|
15
|
+
var et, nt, it;
|
|
14
16
|
const {
|
|
15
|
-
behavior:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
17
|
+
behavior: C,
|
|
18
|
+
questions: U,
|
|
19
|
+
userType: d,
|
|
20
|
+
responses: N,
|
|
21
|
+
questionIndex: V,
|
|
22
|
+
lastUnlockedQuestionIndex: at,
|
|
23
|
+
learnosity: T,
|
|
24
|
+
onSkip: A,
|
|
25
|
+
canSubmitWorksheet: L,
|
|
26
|
+
actionBarRightElement: W
|
|
27
|
+
} = Mt((e) => ({
|
|
28
|
+
behavior: e.behavior,
|
|
29
|
+
questions: e.questions,
|
|
30
|
+
userType: e.userType,
|
|
31
|
+
responses: e.responses,
|
|
32
|
+
questionIndex: e.activeQuestionIndex,
|
|
33
|
+
lastUnlockedQuestionIndex: e.lastUnlockedQuestionIndex,
|
|
34
|
+
learnosity: e.learnosity,
|
|
35
|
+
onSkip: e.onSkip,
|
|
36
|
+
canSubmitWorksheet: e.canSubmitWorksheet,
|
|
37
|
+
actionBarRightElement: e.actionBarRightElement
|
|
38
|
+
})), H = V <= at, { question: l, isQuestionAppended: m, response: t, getTimeSpentOnQuestion: rt, onSubmit: ut } = st, {
|
|
39
|
+
navigationMode: I,
|
|
40
|
+
canAttempt: o,
|
|
41
|
+
hints: lt,
|
|
42
|
+
checkButtonLabel: ct,
|
|
43
|
+
retryButtonLabel: dt,
|
|
44
|
+
validation: c,
|
|
45
|
+
maximumAttempts: g,
|
|
46
|
+
canExceedAttempts: M,
|
|
47
|
+
teacherValidationEnabled: X,
|
|
48
|
+
canTeacherValidate: u,
|
|
49
|
+
hintsTimer: v,
|
|
50
|
+
skippableTime: $,
|
|
51
|
+
skippable: j
|
|
52
|
+
} = C, { response_id: E, item_type: mt, type: _, instructor_stimulus: Bt, is_optional: P } = l, p = lt ? ((it = (nt = (et = T.question(E)) == null ? void 0 : et.getMetadata()) == null ? void 0 : nt.hints) == null ? void 0 : it.length) ?? 0 : 0, q = Bt === "SystemIntro", w = mt === "exit-ticket", B = o && p - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, [s, F] = Q(!1), [G, O] = Q(!1), [J, f] = Q(!1);
|
|
53
|
+
y(() => {
|
|
54
|
+
if (v && B) {
|
|
55
|
+
const e = setTimeout(() => {
|
|
56
|
+
F(!0);
|
|
57
|
+
}, v * 1e3);
|
|
58
|
+
return () => clearTimeout(e);
|
|
59
|
+
}
|
|
60
|
+
F(B);
|
|
61
|
+
}, [v, B]), y(() => {
|
|
62
|
+
const e = !(t != null && t.response) && !(t != null && t.skipped);
|
|
63
|
+
if (j)
|
|
64
|
+
if (p > 0 && !B)
|
|
65
|
+
f(e);
|
|
66
|
+
else if (p === 0 && e) {
|
|
67
|
+
const S = setTimeout(
|
|
68
|
+
() => {
|
|
69
|
+
f(e);
|
|
70
|
+
},
|
|
71
|
+
($ ?? 0) * 1e3
|
|
72
|
+
);
|
|
73
|
+
return () => clearTimeout(S);
|
|
74
|
+
} else
|
|
75
|
+
f(!1);
|
|
76
|
+
}, [p, B, t, j, $]);
|
|
77
|
+
const {
|
|
78
|
+
checkButton: k,
|
|
79
|
+
checkButtonDisabled: kt,
|
|
80
|
+
hintsButton: K,
|
|
81
|
+
retryButton: b,
|
|
82
|
+
nextButton: ht,
|
|
83
|
+
nextButtonDisabled: pt,
|
|
84
|
+
startButton: ft,
|
|
85
|
+
readyButton: bt,
|
|
86
|
+
validateButton: St,
|
|
87
|
+
skipSectionButton: yt,
|
|
88
|
+
submitAttemptButton: Y,
|
|
89
|
+
skipButton: xt
|
|
90
|
+
} = Qt(() => {
|
|
91
|
+
const e = u && P && (t == null ? void 0 : t.assignStatus) === "assigned", S = () => {
|
|
92
|
+
var ot;
|
|
93
|
+
if (g === -2)
|
|
94
|
+
return d === "STUDENT" && o ? {
|
|
95
|
+
hintsButton: s
|
|
96
|
+
} : {};
|
|
97
|
+
if (!o)
|
|
78
98
|
return {
|
|
79
99
|
nextButton: !0
|
|
80
100
|
};
|
|
81
|
-
if (!
|
|
101
|
+
if (!c && C.navigationMode === "LINEAR")
|
|
82
102
|
return {
|
|
83
103
|
nextButton: !0,
|
|
84
|
-
nextButtonDisabled:
|
|
85
|
-
|
|
104
|
+
nextButtonDisabled: !(t != null && t.response),
|
|
105
|
+
hintsButton: s,
|
|
106
|
+
skipButton: J
|
|
86
107
|
};
|
|
87
|
-
if (!
|
|
108
|
+
if (!c)
|
|
88
109
|
return {
|
|
89
|
-
nextButton: !0
|
|
110
|
+
nextButton: !0,
|
|
111
|
+
hintsButton: s
|
|
90
112
|
};
|
|
91
113
|
if (!t || !t.response || !t.score)
|
|
92
114
|
return {
|
|
93
115
|
checkButton: !0,
|
|
94
|
-
checkButtonDisabled: !0
|
|
116
|
+
checkButtonDisabled: !0,
|
|
117
|
+
hintsButton: s
|
|
95
118
|
};
|
|
96
|
-
const { responseEdited:
|
|
97
|
-
if (
|
|
119
|
+
const { responseEdited: h, score: a, attemptsHistory: n } = t, z = ((n == null ? void 0 : n.length) ?? 0) >= g;
|
|
120
|
+
if (z && !M)
|
|
98
121
|
return {
|
|
99
122
|
nextButton: !0
|
|
100
123
|
};
|
|
101
|
-
if (
|
|
102
|
-
const
|
|
124
|
+
if (h) {
|
|
125
|
+
const wt = (ot = n == null ? void 0 : n.slice(-1)[0]) == null ? void 0 : ot.response;
|
|
103
126
|
return {
|
|
104
|
-
nextButton:
|
|
127
|
+
nextButton: z,
|
|
105
128
|
checkButton: !0,
|
|
106
|
-
checkButtonDisabled:
|
|
129
|
+
checkButtonDisabled: Dt(t.response, wt),
|
|
130
|
+
hintsButton: s
|
|
107
131
|
};
|
|
108
132
|
}
|
|
109
|
-
return (
|
|
110
|
-
nextButton:
|
|
111
|
-
retryButton: !0
|
|
112
|
-
|
|
133
|
+
return (a.score ?? 0) < a.max_score ? {
|
|
134
|
+
nextButton: z,
|
|
135
|
+
retryButton: !0,
|
|
136
|
+
hintsButton: s
|
|
137
|
+
} : (a.score ?? 0) === a.max_score ? {
|
|
113
138
|
nextButton: !0
|
|
114
139
|
} : {};
|
|
115
|
-
},
|
|
116
|
-
const { assignStatus:
|
|
117
|
-
return
|
|
140
|
+
}, qt = () => U.some(({ response_id: h }) => {
|
|
141
|
+
const { assignStatus: a, validatedByTeacher: n } = N[h] ?? {};
|
|
142
|
+
return a === "skipped" ? !1 : n !== !0;
|
|
118
143
|
});
|
|
119
|
-
if (
|
|
120
|
-
const { validatedByTeacher:
|
|
121
|
-
if (
|
|
122
|
-
return
|
|
144
|
+
if (X) {
|
|
145
|
+
const { validatedByTeacher: h } = t ?? {};
|
|
146
|
+
if (I === "ADAPTIVE" || I === "CURRENT")
|
|
147
|
+
return d === "STUDENT" ? {
|
|
148
|
+
hintsButton: s,
|
|
123
149
|
validateButton: !1
|
|
124
150
|
} : {
|
|
125
151
|
validateButton: !1
|
|
126
152
|
};
|
|
127
|
-
if (
|
|
153
|
+
if (h)
|
|
128
154
|
return {
|
|
129
155
|
validateButton: !0,
|
|
130
|
-
submitAttemptButton:
|
|
156
|
+
submitAttemptButton: u && o && d === "STUDENT" && L ? !qt() : !1
|
|
131
157
|
};
|
|
132
|
-
if (!
|
|
158
|
+
if (!H)
|
|
133
159
|
return {};
|
|
134
|
-
if (
|
|
135
|
-
return
|
|
136
|
-
startButton:
|
|
137
|
-
} :
|
|
138
|
-
...
|
|
160
|
+
if (d === "STUDENT")
|
|
161
|
+
return q ? {
|
|
162
|
+
startButton: u && o
|
|
163
|
+
} : _ !== "clozetext" ? {
|
|
164
|
+
...S(),
|
|
139
165
|
nextButton: !1
|
|
140
166
|
} : {
|
|
141
|
-
|
|
167
|
+
hintsButton: s,
|
|
168
|
+
readyButton: u && w && !(t != null && t.submittedByStudent)
|
|
142
169
|
};
|
|
143
|
-
if (
|
|
170
|
+
if (q)
|
|
144
171
|
return {
|
|
145
172
|
skipSectionButton: e
|
|
146
173
|
};
|
|
147
|
-
if (
|
|
148
|
-
const { responseEdited:
|
|
174
|
+
if (_ !== "clozetext") {
|
|
175
|
+
const { responseEdited: a, score: n } = t ?? {};
|
|
149
176
|
return {
|
|
150
177
|
skipSectionButton: e,
|
|
151
|
-
validateButton:
|
|
178
|
+
validateButton: a || !u ? !1 : !!(n != null && n.score && (n != null && n.max_score) && !((n.score ?? 0) < n.max_score))
|
|
152
179
|
};
|
|
153
180
|
}
|
|
154
181
|
return {
|
|
155
182
|
skipSectionButton: e,
|
|
156
|
-
validateButton:
|
|
183
|
+
validateButton: u && (w ? t == null ? void 0 : t.submittedByStudent : !0)
|
|
157
184
|
};
|
|
158
185
|
}
|
|
159
|
-
return
|
|
186
|
+
return S();
|
|
160
187
|
}, [
|
|
161
|
-
|
|
162
|
-
|
|
188
|
+
u,
|
|
189
|
+
P,
|
|
163
190
|
t,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
191
|
+
X,
|
|
192
|
+
o,
|
|
193
|
+
c,
|
|
194
|
+
C.navigationMode,
|
|
195
|
+
g,
|
|
196
|
+
M,
|
|
197
|
+
s,
|
|
198
|
+
J,
|
|
170
199
|
U,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
Q
|
|
200
|
+
N,
|
|
201
|
+
I,
|
|
202
|
+
H,
|
|
203
|
+
d,
|
|
204
|
+
q,
|
|
205
|
+
_,
|
|
206
|
+
w,
|
|
207
|
+
L
|
|
180
208
|
]), {
|
|
181
|
-
handleResponseChange:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
209
|
+
handleResponseChange: R,
|
|
210
|
+
handleHelpButtonClick: Z,
|
|
211
|
+
handleBackButtonClick: tt,
|
|
212
|
+
handleNextButtonClick: D,
|
|
213
|
+
handleCheckButtonClick: Ct,
|
|
214
|
+
handleRetryButtonClick: Tt,
|
|
215
|
+
handleHintButtonClick: At,
|
|
216
|
+
handleValidateButtonClick: It,
|
|
217
|
+
handleStartButtonClick: gt,
|
|
218
|
+
handleSkipSectionButtonClick: vt,
|
|
219
|
+
handleReadyButtonClick: Et,
|
|
220
|
+
handleSkipButtonClick: _t
|
|
221
|
+
} = Ht({
|
|
222
|
+
question: l,
|
|
223
|
+
setSkipped: O,
|
|
224
|
+
getTimeSpentOnQuestion: rt
|
|
195
225
|
});
|
|
196
|
-
return
|
|
197
|
-
|
|
226
|
+
return y(() => {
|
|
227
|
+
G && (O(!1), f(!1), D(), A && A(l.item_display_number, l.question_number));
|
|
198
228
|
}, [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
]),
|
|
205
|
-
const e =
|
|
206
|
-
return e &&
|
|
207
|
-
e &&
|
|
229
|
+
D,
|
|
230
|
+
A,
|
|
231
|
+
l.item_display_number,
|
|
232
|
+
l.question_number,
|
|
233
|
+
G
|
|
234
|
+
]), y(() => {
|
|
235
|
+
const e = m ? T.question(E) : void 0;
|
|
236
|
+
return e && o && (!c || k) && (e.on("changed", R), e.enable()), () => {
|
|
237
|
+
e && o && (!c || k) && (e.off("changed", R), e.disable());
|
|
208
238
|
};
|
|
209
239
|
}, [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
]), /* @__PURE__ */
|
|
218
|
-
|
|
240
|
+
o,
|
|
241
|
+
k,
|
|
242
|
+
R,
|
|
243
|
+
m,
|
|
244
|
+
T,
|
|
245
|
+
E,
|
|
246
|
+
c
|
|
247
|
+
]), /* @__PURE__ */ Rt(
|
|
248
|
+
Wt,
|
|
219
249
|
{
|
|
250
|
+
$background: "WHITE",
|
|
220
251
|
$flexDirection: "row",
|
|
221
252
|
$flexGapX: 0.5,
|
|
222
253
|
$alignItems: "center",
|
|
223
254
|
$justifyContent: "flex-end",
|
|
224
|
-
style: {
|
|
225
|
-
pointerEvents: "all"
|
|
226
|
-
},
|
|
227
255
|
children: [
|
|
228
|
-
|
|
229
|
-
|
|
256
|
+
K && /* @__PURE__ */ i(
|
|
257
|
+
x,
|
|
258
|
+
{
|
|
259
|
+
Icon: Vt,
|
|
260
|
+
analyticsLabel: "Hint",
|
|
261
|
+
renderAs: "secondary",
|
|
262
|
+
disabled: !m,
|
|
263
|
+
onClick: At
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
!K && Z && (k || b) && /* @__PURE__ */ i(
|
|
267
|
+
x,
|
|
268
|
+
{
|
|
269
|
+
Icon: Nt,
|
|
270
|
+
analyticsLabel: "Ask for help",
|
|
271
|
+
renderAs: "secondary",
|
|
272
|
+
onClick: Z
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
tt && /* @__PURE__ */ i(
|
|
276
|
+
r,
|
|
230
277
|
{
|
|
231
278
|
widthX: 6,
|
|
232
279
|
renderAs: "secondary",
|
|
233
280
|
size: "small",
|
|
234
281
|
label: "Back",
|
|
235
|
-
disabled:
|
|
236
|
-
onClick:
|
|
282
|
+
disabled: V === 0,
|
|
283
|
+
onClick: tt
|
|
237
284
|
}
|
|
238
285
|
),
|
|
239
|
-
|
|
240
|
-
|
|
286
|
+
xt && /* @__PURE__ */ i(
|
|
287
|
+
r,
|
|
241
288
|
{
|
|
242
289
|
widthX: 6,
|
|
243
|
-
renderAs:
|
|
290
|
+
renderAs: b ? "secondary" : "primary",
|
|
244
291
|
size: "small",
|
|
245
292
|
label: "Skip",
|
|
246
|
-
onClick:
|
|
293
|
+
onClick: _t
|
|
247
294
|
}
|
|
248
295
|
),
|
|
249
|
-
|
|
250
|
-
|
|
296
|
+
ht && /* @__PURE__ */ i(
|
|
297
|
+
r,
|
|
251
298
|
{
|
|
252
299
|
widthX: 6,
|
|
253
|
-
renderAs:
|
|
300
|
+
renderAs: b ? "secondary" : "primary",
|
|
254
301
|
size: "small",
|
|
255
302
|
label: "Next",
|
|
256
|
-
onClick:
|
|
257
|
-
disabled:
|
|
303
|
+
onClick: D,
|
|
304
|
+
disabled: pt === !0
|
|
258
305
|
}
|
|
259
306
|
),
|
|
260
|
-
|
|
261
|
-
|
|
307
|
+
b && /* @__PURE__ */ i(
|
|
308
|
+
r,
|
|
262
309
|
{
|
|
263
310
|
widthX: 6,
|
|
264
311
|
renderAs: "primary",
|
|
265
312
|
size: "small",
|
|
266
|
-
label:
|
|
267
|
-
disabled: !
|
|
268
|
-
onClick:
|
|
313
|
+
label: dt,
|
|
314
|
+
disabled: !m,
|
|
315
|
+
onClick: Tt
|
|
269
316
|
}
|
|
270
317
|
),
|
|
271
|
-
|
|
272
|
-
|
|
318
|
+
k && /* @__PURE__ */ i(
|
|
319
|
+
r,
|
|
273
320
|
{
|
|
274
321
|
renderAs: "primary",
|
|
275
322
|
size: "small",
|
|
276
|
-
label:
|
|
277
|
-
disabled:
|
|
278
|
-
onClick:
|
|
323
|
+
label: ct,
|
|
324
|
+
disabled: kt === !0 || !m,
|
|
325
|
+
onClick: Ct
|
|
279
326
|
}
|
|
280
327
|
),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
328
|
+
ft && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Start", onClick: gt }),
|
|
329
|
+
bt && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Submit", onClick: Et }),
|
|
330
|
+
yt && /* @__PURE__ */ i(
|
|
331
|
+
x,
|
|
285
332
|
{
|
|
286
333
|
renderAs: "primary",
|
|
287
|
-
Icon:
|
|
334
|
+
Icon: Lt,
|
|
288
335
|
analyticsLabel: "Skip Section",
|
|
289
|
-
onClick:
|
|
336
|
+
onClick: vt
|
|
290
337
|
}
|
|
291
338
|
),
|
|
292
|
-
!
|
|
293
|
-
|
|
339
|
+
!Y && St && /* @__PURE__ */ i(
|
|
340
|
+
x,
|
|
294
341
|
{
|
|
295
342
|
renderAs: "primary",
|
|
296
|
-
Icon:
|
|
343
|
+
Icon: Ut,
|
|
297
344
|
disabled: t == null ? void 0 : t.validatedByTeacher,
|
|
298
345
|
analyticsLabel: "Validate",
|
|
299
|
-
onClick:
|
|
300
|
-
}
|
|
301
|
-
),
|
|
302
|
-
X && /* @__PURE__ */ i(
|
|
303
|
-
s,
|
|
304
|
-
{
|
|
305
|
-
renderAs: "primary",
|
|
306
|
-
size: "small",
|
|
307
|
-
label: "Submit",
|
|
308
|
-
onClick: H
|
|
346
|
+
onClick: It
|
|
309
347
|
}
|
|
310
348
|
),
|
|
311
|
-
|
|
312
|
-
|
|
349
|
+
Y && /* @__PURE__ */ i(r, { renderAs: "primary", size: "small", label: "Submit", onClick: ut }),
|
|
350
|
+
W && W
|
|
313
351
|
]
|
|
314
352
|
}
|
|
315
353
|
);
|
|
316
354
|
}
|
|
317
355
|
);
|
|
318
356
|
export {
|
|
319
|
-
|
|
357
|
+
ne as default
|
|
320
358
|
};
|
|
321
359
|
//# sourceMappingURL=worksheet-questions-controller.js.map
|