@cuemath/leap 3.1.44-as3 → 3.1.44-beta-0.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/features/cue-canvas/cue-canvas-core.js +27 -31
- package/dist/features/cue-canvas/cue-canvas-core.js.map +1 -1
- package/dist/features/cue-canvas/cue-canvas-helpers.js +51 -61
- package/dist/features/cue-canvas/cue-canvas-helpers.js.map +1 -1
- package/dist/features/hooks/use-audio-player.js +19 -50
- package/dist/features/hooks/use-audio-player.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +45 -43
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +98 -84
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +66 -66
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js +78 -75
- 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 +268 -202
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +374 -352
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +20 -18
- 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 +33 -26
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-styled.js +22 -15
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +85 -66
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +51 -32
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,169 +1,191 @@
|
|
|
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 Ft, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { deepEqual as Ot } from "../../../../node_modules/fast-equals/dist/esm/index.js";
|
|
3
|
+
import { memo as Gt, useState as N, useEffect as A, useMemo as Jt } from "react";
|
|
4
|
+
import Kt from "../../../../assets/line-icons/icons/check2.js";
|
|
5
|
+
import Yt from "../../../../assets/line-icons/icons/hand.js";
|
|
6
|
+
import Zt from "../../../../assets/line-icons/icons/question.js";
|
|
7
|
+
import te from "../../../../assets/line-icons/icons/skip.js";
|
|
8
|
+
import ee from "../../../ui/arrow-tooltip/arrow-tooltip.js";
|
|
9
|
+
import o from "../../../ui/buttons/button/button.js";
|
|
10
|
+
import x from "../../../ui/buttons/icon-button/icon-button.js";
|
|
11
|
+
import ne from "../../../ui/layout/flex-view.js";
|
|
12
|
+
import ie from "./use-handler-callbacks.js";
|
|
13
|
+
const ke = Gt((L) => {
|
|
14
|
+
var at, lt, ut;
|
|
14
15
|
const {
|
|
15
|
-
layout:
|
|
16
|
-
learnosity:
|
|
16
|
+
layout: dt,
|
|
17
|
+
learnosity: k,
|
|
17
18
|
question: u,
|
|
18
19
|
questions: T,
|
|
19
|
-
responses:
|
|
20
|
+
responses: X,
|
|
20
21
|
questionIndex: H,
|
|
21
|
-
canSubmitWorksheet:
|
|
22
|
-
isQuestionUnlocked:
|
|
22
|
+
canSubmitWorksheet: M,
|
|
23
|
+
isQuestionUnlocked: Q,
|
|
23
24
|
isQuestionAppended: d,
|
|
24
25
|
response: t,
|
|
25
|
-
behavior:
|
|
26
|
-
userType:
|
|
27
|
-
setActiveQuestionId:
|
|
28
|
-
setSummaryVisible:
|
|
29
|
-
setBlocker:
|
|
30
|
-
setResponses:
|
|
31
|
-
getTimeSpentOnQuestion:
|
|
32
|
-
onSubmit:
|
|
33
|
-
onSkip: g
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
behavior: f,
|
|
27
|
+
userType: m,
|
|
28
|
+
setActiveQuestionId: mt,
|
|
29
|
+
setSummaryVisible: Bt,
|
|
30
|
+
setBlocker: pt,
|
|
31
|
+
setResponses: ht,
|
|
32
|
+
getTimeSpentOnQuestion: kt,
|
|
33
|
+
onSubmit: $,
|
|
34
|
+
onSkip: g,
|
|
35
|
+
onUnassign: ft
|
|
36
|
+
} = L, { onHelp: bt, onResponseChange: yt, onTeacherValidation: St, loggerRef: Ct } = L, {
|
|
37
|
+
navigationMode: v,
|
|
38
|
+
canAttempt: s,
|
|
39
|
+
hints: At,
|
|
40
|
+
checkButtonLabel: j,
|
|
41
|
+
retryButtonLabel: xt,
|
|
40
42
|
validation: c,
|
|
41
|
-
maximumAttempts:
|
|
42
|
-
canExceedAttempts:
|
|
43
|
-
teacherValidationEnabled:
|
|
43
|
+
maximumAttempts: P,
|
|
44
|
+
canExceedAttempts: W,
|
|
45
|
+
teacherValidationEnabled: F,
|
|
44
46
|
canTeacherValidate: l,
|
|
45
|
-
hintsTimer:
|
|
46
|
-
skippableTime:
|
|
47
|
-
skippable:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
hintsTimer: w,
|
|
48
|
+
skippableTime: O,
|
|
49
|
+
skippable: G,
|
|
50
|
+
canMarkForReview: I,
|
|
51
|
+
canUnAssign: J,
|
|
52
|
+
showPuzzleCta: z
|
|
53
|
+
} = f, { response_id: E, item_type: Tt, type: _, instructor_stimulus: gt, is_optional: K } = u, b = At ? ((ut = (lt = (at = k.question(E)) == null ? void 0 : at.getMetadata()) == null ? void 0 : lt.hints) == null ? void 0 : ut.length) ?? 0 : 0, R = gt === "SystemIntro", D = Tt === "exit-ticket", B = s && b - ((t == null ? void 0 : t.hintsUsed) ?? 0) > 0, [r, Y] = N(!1), [Z, tt] = N(!1), [et, y] = N(!1);
|
|
54
|
+
A(() => {
|
|
55
|
+
if (w && B) {
|
|
51
56
|
const n = setTimeout(() => {
|
|
52
|
-
|
|
53
|
-
},
|
|
57
|
+
Y(!0);
|
|
58
|
+
}, w * 1e3);
|
|
54
59
|
return () => clearTimeout(n);
|
|
55
60
|
}
|
|
56
|
-
|
|
57
|
-
}, [
|
|
61
|
+
Y(B);
|
|
62
|
+
}, [w, B]), A(() => {
|
|
58
63
|
const n = !(t != null && t.response) && !(t != null && t.skipped);
|
|
59
|
-
if (
|
|
60
|
-
if (b > 0 && !
|
|
61
|
-
|
|
64
|
+
if (G)
|
|
65
|
+
if (b > 0 && !B)
|
|
66
|
+
y(n);
|
|
62
67
|
else if (b === 0 && n) {
|
|
63
|
-
const
|
|
68
|
+
const C = setTimeout(
|
|
64
69
|
() => {
|
|
65
|
-
|
|
70
|
+
y(n);
|
|
66
71
|
},
|
|
67
|
-
(
|
|
72
|
+
(O ?? 0) * 1e3
|
|
68
73
|
);
|
|
69
|
-
return () => clearTimeout(
|
|
74
|
+
return () => clearTimeout(C);
|
|
70
75
|
} else
|
|
71
|
-
|
|
72
|
-
}, [b,
|
|
76
|
+
y(!1);
|
|
77
|
+
}, [b, B, t, G, O]);
|
|
73
78
|
const {
|
|
74
|
-
checkButton:
|
|
75
|
-
checkButtonDisabled:
|
|
76
|
-
hintsButton:
|
|
77
|
-
retryButton:
|
|
78
|
-
nextButton:
|
|
79
|
-
nextButtonDisabled:
|
|
80
|
-
startButton:
|
|
81
|
-
readyButton:
|
|
82
|
-
validateButton:
|
|
83
|
-
skipSectionButton:
|
|
84
|
-
submitAttemptButton:
|
|
85
|
-
skipButton:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
checkButton: p,
|
|
80
|
+
checkButtonDisabled: vt,
|
|
81
|
+
hintsButton: nt,
|
|
82
|
+
retryButton: S,
|
|
83
|
+
nextButton: wt,
|
|
84
|
+
nextButtonDisabled: It,
|
|
85
|
+
startButton: zt,
|
|
86
|
+
readyButton: Et,
|
|
87
|
+
validateButton: _t,
|
|
88
|
+
skipSectionButton: Rt,
|
|
89
|
+
submitAttemptButton: it,
|
|
90
|
+
skipButton: Dt,
|
|
91
|
+
solvedButton: Ut,
|
|
92
|
+
unassignButton: Vt,
|
|
93
|
+
reviewButton: qt
|
|
94
|
+
} = Jt(() => {
|
|
95
|
+
const n = l && K && (t == null ? void 0 : t.assignStatus) === "assigned", C = () => {
|
|
96
|
+
var ct;
|
|
97
|
+
if (z)
|
|
98
|
+
return {
|
|
99
|
+
solvedButton: !0
|
|
100
|
+
};
|
|
101
|
+
if (!s)
|
|
90
102
|
return {
|
|
91
103
|
nextButton: !0
|
|
92
104
|
};
|
|
93
|
-
if (!c &&
|
|
105
|
+
if (!c && f.navigationMode === "LINEAR")
|
|
94
106
|
return {
|
|
95
107
|
nextButton: !0,
|
|
96
108
|
nextButtonDisabled: !(t != null && t.response),
|
|
97
|
-
hintsButton:
|
|
98
|
-
skipButton:
|
|
109
|
+
hintsButton: r,
|
|
110
|
+
skipButton: et
|
|
99
111
|
};
|
|
100
112
|
if (!c)
|
|
101
113
|
return {
|
|
102
114
|
nextButton: !0,
|
|
103
|
-
hintsButton:
|
|
115
|
+
hintsButton: r
|
|
104
116
|
};
|
|
105
117
|
if (!t || !t.response || !t.score)
|
|
106
118
|
return {
|
|
107
119
|
checkButton: !0,
|
|
108
120
|
checkButtonDisabled: !0,
|
|
109
|
-
hintsButton:
|
|
121
|
+
hintsButton: r
|
|
110
122
|
};
|
|
111
|
-
const { responseEdited:
|
|
112
|
-
if (
|
|
123
|
+
const { responseEdited: h, score: a, attemptsHistory: e } = t, q = ((e == null ? void 0 : e.length) ?? 0) >= P;
|
|
124
|
+
if (q && !W)
|
|
113
125
|
return {
|
|
114
126
|
nextButton: !0
|
|
115
127
|
};
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
128
|
+
if (h) {
|
|
129
|
+
const Wt = (ct = e == null ? void 0 : e.slice(-1)[0]) == null ? void 0 : ct.response;
|
|
118
130
|
return {
|
|
119
|
-
nextButton:
|
|
131
|
+
nextButton: q,
|
|
120
132
|
checkButton: !0,
|
|
121
|
-
checkButtonDisabled:
|
|
122
|
-
hintsButton:
|
|
133
|
+
checkButtonDisabled: Ot(t.response, Wt),
|
|
134
|
+
hintsButton: r
|
|
123
135
|
};
|
|
124
136
|
}
|
|
125
137
|
return (a.score ?? 0) < a.max_score ? {
|
|
126
|
-
nextButton:
|
|
138
|
+
nextButton: q,
|
|
127
139
|
retryButton: !0,
|
|
128
|
-
hintsButton:
|
|
140
|
+
hintsButton: r
|
|
129
141
|
} : (a.score ?? 0) === a.max_score ? {
|
|
130
142
|
nextButton: !0
|
|
131
143
|
} : {};
|
|
132
|
-
},
|
|
133
|
-
const { assignStatus: a, validatedByTeacher: e } =
|
|
144
|
+
}, Pt = () => T.some(({ response_id: h }) => {
|
|
145
|
+
const { assignStatus: a, validatedByTeacher: e } = X[h] ?? {};
|
|
134
146
|
return a === "skipped" ? !1 : e !== !0;
|
|
135
147
|
});
|
|
136
|
-
if (
|
|
137
|
-
const { validatedByTeacher:
|
|
138
|
-
if (
|
|
139
|
-
return
|
|
140
|
-
|
|
148
|
+
if (F) {
|
|
149
|
+
const { validatedByTeacher: h } = t ?? {};
|
|
150
|
+
if (J)
|
|
151
|
+
return {
|
|
152
|
+
unassignButton: !0
|
|
153
|
+
};
|
|
154
|
+
if (z)
|
|
155
|
+
return m === "STUDENT" ? {
|
|
156
|
+
solvedButton: !0
|
|
157
|
+
} : {
|
|
158
|
+
reviewButton: I
|
|
159
|
+
};
|
|
160
|
+
if (v === "ADAPTIVE" || v === "CURRENT")
|
|
161
|
+
return m === "STUDENT" ? {
|
|
162
|
+
hintsButton: r,
|
|
141
163
|
validateButton: !1
|
|
142
164
|
} : {
|
|
143
165
|
validateButton: !1
|
|
144
166
|
};
|
|
145
|
-
if (
|
|
167
|
+
if (h)
|
|
146
168
|
return {
|
|
147
169
|
validateButton: !0,
|
|
148
|
-
submitAttemptButton: l &&
|
|
170
|
+
submitAttemptButton: l && s && m === "STUDENT" && M ? !Pt() : !1
|
|
149
171
|
};
|
|
150
|
-
if (!
|
|
172
|
+
if (!Q)
|
|
151
173
|
return {};
|
|
152
|
-
if (
|
|
153
|
-
return
|
|
154
|
-
startButton: l &&
|
|
155
|
-
} :
|
|
156
|
-
...
|
|
174
|
+
if (m === "STUDENT")
|
|
175
|
+
return R ? {
|
|
176
|
+
startButton: l && s
|
|
177
|
+
} : _ !== "clozetext" ? {
|
|
178
|
+
...C(),
|
|
157
179
|
nextButton: !1
|
|
158
180
|
} : {
|
|
159
|
-
hintsButton:
|
|
160
|
-
readyButton: l &&
|
|
181
|
+
hintsButton: r,
|
|
182
|
+
readyButton: l && D && !(t != null && t.submittedByStudent)
|
|
161
183
|
};
|
|
162
|
-
if (
|
|
184
|
+
if (R)
|
|
163
185
|
return {
|
|
164
186
|
skipSectionButton: n
|
|
165
187
|
};
|
|
166
|
-
if (
|
|
188
|
+
if (_ !== "clozetext") {
|
|
167
189
|
const { responseEdited: a, score: e } = t ?? {};
|
|
168
190
|
return {
|
|
169
191
|
skipSectionButton: n,
|
|
@@ -172,85 +194,90 @@ const ae = Mt((L) => {
|
|
|
172
194
|
}
|
|
173
195
|
return {
|
|
174
196
|
skipSectionButton: n,
|
|
175
|
-
validateButton: l && (
|
|
197
|
+
validateButton: l && (D ? t == null ? void 0 : t.submittedByStudent : !0)
|
|
176
198
|
};
|
|
177
199
|
}
|
|
178
|
-
return
|
|
200
|
+
return C();
|
|
179
201
|
}, [
|
|
180
202
|
l,
|
|
181
|
-
|
|
203
|
+
K,
|
|
182
204
|
t,
|
|
183
|
-
|
|
184
|
-
|
|
205
|
+
F,
|
|
206
|
+
z,
|
|
207
|
+
I,
|
|
208
|
+
s,
|
|
185
209
|
c,
|
|
186
|
-
|
|
187
|
-
|
|
210
|
+
f.navigationMode,
|
|
211
|
+
P,
|
|
212
|
+
W,
|
|
213
|
+
r,
|
|
214
|
+
et,
|
|
215
|
+
T,
|
|
188
216
|
X,
|
|
189
|
-
s,
|
|
190
217
|
J,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
U,
|
|
195
|
-
f,
|
|
196
|
-
w,
|
|
197
|
-
E,
|
|
218
|
+
v,
|
|
219
|
+
Q,
|
|
220
|
+
m,
|
|
198
221
|
R,
|
|
199
|
-
|
|
222
|
+
_,
|
|
223
|
+
D,
|
|
224
|
+
M
|
|
200
225
|
]), {
|
|
201
|
-
handleResponseChange:
|
|
202
|
-
handleHelpButtonClick:
|
|
203
|
-
handleBackButtonClick:
|
|
204
|
-
handleNextButtonClick:
|
|
205
|
-
handleCheckButtonClick:
|
|
206
|
-
handleRetryButtonClick:
|
|
207
|
-
handleHintButtonClick:
|
|
208
|
-
handleValidateButtonClick:
|
|
209
|
-
handleStartButtonClick:
|
|
210
|
-
handleSkipSectionButtonClick:
|
|
211
|
-
handleReadyButtonClick:
|
|
212
|
-
handleSkipButtonClick:
|
|
213
|
-
|
|
214
|
-
|
|
226
|
+
handleResponseChange: U,
|
|
227
|
+
handleHelpButtonClick: ot,
|
|
228
|
+
handleBackButtonClick: st,
|
|
229
|
+
handleNextButtonClick: V,
|
|
230
|
+
handleCheckButtonClick: Nt,
|
|
231
|
+
handleRetryButtonClick: Lt,
|
|
232
|
+
handleHintButtonClick: Xt,
|
|
233
|
+
handleValidateButtonClick: Ht,
|
|
234
|
+
handleStartButtonClick: Mt,
|
|
235
|
+
handleSkipSectionButtonClick: Qt,
|
|
236
|
+
handleReadyButtonClick: $t,
|
|
237
|
+
handleSkipButtonClick: jt,
|
|
238
|
+
handleOnUnassign: rt
|
|
239
|
+
} = ie({
|
|
240
|
+
layout: dt,
|
|
215
241
|
question: u,
|
|
216
242
|
questions: T,
|
|
217
|
-
learnosity:
|
|
243
|
+
learnosity: k,
|
|
218
244
|
questionIndex: H,
|
|
219
|
-
setActiveQuestionId:
|
|
220
|
-
setSummaryVisible:
|
|
221
|
-
setBlocker:
|
|
222
|
-
setResponses:
|
|
223
|
-
onResponseChange:
|
|
224
|
-
onTeacherValidation:
|
|
225
|
-
onHelp:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
245
|
+
setActiveQuestionId: mt,
|
|
246
|
+
setSummaryVisible: Bt,
|
|
247
|
+
setBlocker: pt,
|
|
248
|
+
setResponses: ht,
|
|
249
|
+
onResponseChange: yt,
|
|
250
|
+
onTeacherValidation: St,
|
|
251
|
+
onHelp: bt,
|
|
252
|
+
onUnassign: ft,
|
|
253
|
+
behavior: f,
|
|
254
|
+
loggerRef: Ct,
|
|
255
|
+
setSkipped: tt,
|
|
256
|
+
getTimeSpentOnQuestion: kt
|
|
230
257
|
});
|
|
231
|
-
return
|
|
232
|
-
|
|
258
|
+
return A(() => {
|
|
259
|
+
Z && (tt(!1), y(!1), V(), g && g(u.item_display_number, u.question_number));
|
|
233
260
|
}, [
|
|
234
|
-
|
|
261
|
+
V,
|
|
235
262
|
g,
|
|
236
263
|
u.item_display_number,
|
|
237
264
|
u.question_number,
|
|
238
|
-
|
|
239
|
-
]),
|
|
240
|
-
const n = d ?
|
|
241
|
-
return n &&
|
|
242
|
-
n &&
|
|
265
|
+
Z
|
|
266
|
+
]), A(() => {
|
|
267
|
+
const n = d ? k.question(E) : void 0;
|
|
268
|
+
return n && s && (!c || p) && (n.on("changed", U), n.enable()), () => {
|
|
269
|
+
n && s && (!c || p) && (n.off("changed", U), n.disable());
|
|
243
270
|
};
|
|
244
271
|
}, [
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
272
|
+
s,
|
|
273
|
+
p,
|
|
274
|
+
U,
|
|
248
275
|
d,
|
|
249
|
-
|
|
250
|
-
|
|
276
|
+
k,
|
|
277
|
+
E,
|
|
251
278
|
c
|
|
252
|
-
]), /* @__PURE__ */
|
|
253
|
-
|
|
279
|
+
]), /* @__PURE__ */ Ft(
|
|
280
|
+
ne,
|
|
254
281
|
{
|
|
255
282
|
$background: "WHITE",
|
|
256
283
|
$flexDirection: "row",
|
|
@@ -258,105 +285,144 @@ const ae = Mt((L) => {
|
|
|
258
285
|
$alignItems: "center",
|
|
259
286
|
$justifyContent: "flex-end",
|
|
260
287
|
children: [
|
|
261
|
-
|
|
262
|
-
|
|
288
|
+
nt && /* @__PURE__ */ i(
|
|
289
|
+
x,
|
|
263
290
|
{
|
|
264
|
-
Icon:
|
|
291
|
+
Icon: Zt,
|
|
265
292
|
analyticsLabel: "Hint",
|
|
266
293
|
renderAs: "secondary",
|
|
267
294
|
disabled: !d,
|
|
268
|
-
onClick:
|
|
295
|
+
onClick: Xt
|
|
269
296
|
}
|
|
270
297
|
),
|
|
271
|
-
!
|
|
272
|
-
|
|
298
|
+
!nt && ot && (p || S) && /* @__PURE__ */ i(
|
|
299
|
+
x,
|
|
273
300
|
{
|
|
274
|
-
Icon:
|
|
301
|
+
Icon: Yt,
|
|
275
302
|
analyticsLabel: "Ask for help",
|
|
276
303
|
renderAs: "secondary",
|
|
277
|
-
onClick:
|
|
304
|
+
onClick: ot
|
|
278
305
|
}
|
|
279
306
|
),
|
|
280
|
-
|
|
281
|
-
|
|
307
|
+
st && /* @__PURE__ */ i(
|
|
308
|
+
o,
|
|
282
309
|
{
|
|
283
310
|
widthX: 6,
|
|
284
311
|
renderAs: "secondary",
|
|
285
312
|
size: "small",
|
|
286
313
|
label: "Back",
|
|
287
314
|
disabled: H === 0,
|
|
288
|
-
onClick:
|
|
315
|
+
onClick: st
|
|
289
316
|
}
|
|
290
317
|
),
|
|
291
|
-
|
|
292
|
-
|
|
318
|
+
Dt && /* @__PURE__ */ i(
|
|
319
|
+
o,
|
|
293
320
|
{
|
|
294
321
|
widthX: 6,
|
|
295
|
-
renderAs:
|
|
322
|
+
renderAs: S ? "secondary" : "primary",
|
|
296
323
|
size: "small",
|
|
297
324
|
label: "Skip",
|
|
298
|
-
onClick:
|
|
325
|
+
onClick: jt
|
|
299
326
|
}
|
|
300
327
|
),
|
|
301
|
-
|
|
302
|
-
|
|
328
|
+
wt && /* @__PURE__ */ i(
|
|
329
|
+
o,
|
|
303
330
|
{
|
|
304
331
|
widthX: 6,
|
|
305
|
-
renderAs:
|
|
332
|
+
renderAs: S ? "secondary" : "primary",
|
|
306
333
|
size: "small",
|
|
307
334
|
label: "Next",
|
|
308
|
-
onClick:
|
|
309
|
-
disabled:
|
|
335
|
+
onClick: V,
|
|
336
|
+
disabled: It === !0
|
|
310
337
|
}
|
|
311
338
|
),
|
|
312
|
-
|
|
313
|
-
|
|
339
|
+
S && /* @__PURE__ */ i(
|
|
340
|
+
o,
|
|
314
341
|
{
|
|
315
342
|
widthX: 6,
|
|
316
343
|
renderAs: "primary",
|
|
317
344
|
size: "small",
|
|
318
|
-
label:
|
|
345
|
+
label: xt,
|
|
319
346
|
disabled: !d,
|
|
320
|
-
onClick:
|
|
347
|
+
onClick: Lt
|
|
321
348
|
}
|
|
322
349
|
),
|
|
323
|
-
|
|
324
|
-
|
|
350
|
+
p && /* @__PURE__ */ i(
|
|
351
|
+
o,
|
|
325
352
|
{
|
|
326
353
|
renderAs: "primary",
|
|
327
354
|
size: "small",
|
|
328
|
-
label:
|
|
329
|
-
disabled:
|
|
330
|
-
onClick:
|
|
355
|
+
label: j,
|
|
356
|
+
disabled: vt === !0 || !d,
|
|
357
|
+
onClick: Nt
|
|
331
358
|
}
|
|
332
359
|
),
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
360
|
+
zt && /* @__PURE__ */ i(o, { renderAs: "primary", size: "small", label: "Start", onClick: Mt }),
|
|
361
|
+
Et && /* @__PURE__ */ i(o, { renderAs: "primary", size: "small", label: "Submit", onClick: $t }),
|
|
362
|
+
Rt && /* @__PURE__ */ i(
|
|
363
|
+
x,
|
|
337
364
|
{
|
|
338
365
|
renderAs: "primary",
|
|
339
|
-
Icon:
|
|
366
|
+
Icon: te,
|
|
340
367
|
analyticsLabel: "Skip Section",
|
|
341
|
-
onClick:
|
|
368
|
+
onClick: Qt
|
|
342
369
|
}
|
|
343
370
|
),
|
|
344
|
-
!
|
|
345
|
-
|
|
371
|
+
!it && _t && /* @__PURE__ */ i(
|
|
372
|
+
x,
|
|
346
373
|
{
|
|
347
374
|
renderAs: "primary",
|
|
348
|
-
Icon:
|
|
375
|
+
Icon: Kt,
|
|
349
376
|
disabled: t == null ? void 0 : t.validatedByTeacher,
|
|
350
377
|
analyticsLabel: "Validate",
|
|
351
|
-
onClick:
|
|
378
|
+
onClick: Ht
|
|
352
379
|
}
|
|
353
380
|
),
|
|
354
|
-
|
|
381
|
+
it && /* @__PURE__ */ i(o, { renderAs: "primary", size: "small", label: "Submit", onClick: $ }),
|
|
382
|
+
Vt && /* @__PURE__ */ i(
|
|
383
|
+
o,
|
|
384
|
+
{
|
|
385
|
+
widthX: 6,
|
|
386
|
+
renderAs: "primary",
|
|
387
|
+
size: "small",
|
|
388
|
+
label: "Unassign",
|
|
389
|
+
onClick: rt
|
|
390
|
+
}
|
|
391
|
+
),
|
|
392
|
+
qt && /* @__PURE__ */ i(
|
|
393
|
+
o,
|
|
394
|
+
{
|
|
395
|
+
widthX: 6,
|
|
396
|
+
renderAs: "primary",
|
|
397
|
+
size: "small",
|
|
398
|
+
label: "Review",
|
|
399
|
+
onClick: rt
|
|
400
|
+
}
|
|
401
|
+
),
|
|
402
|
+
Ut && /* @__PURE__ */ i(
|
|
403
|
+
ee,
|
|
404
|
+
{
|
|
405
|
+
position: "top",
|
|
406
|
+
renderAs: "primary",
|
|
407
|
+
tooltipItem: I ? "To be discussed with tutor" : "Already solved",
|
|
408
|
+
hidden: s,
|
|
409
|
+
children: /* @__PURE__ */ i(
|
|
410
|
+
o,
|
|
411
|
+
{
|
|
412
|
+
renderAs: "primary",
|
|
413
|
+
size: "small",
|
|
414
|
+
label: j,
|
|
415
|
+
onClick: $,
|
|
416
|
+
disabled: !s
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
}
|
|
420
|
+
)
|
|
355
421
|
]
|
|
356
422
|
}
|
|
357
423
|
);
|
|
358
424
|
});
|
|
359
425
|
export {
|
|
360
|
-
|
|
426
|
+
ke as default
|
|
361
427
|
};
|
|
362
428
|
//# sourceMappingURL=worksheet-questions-controller.js.map
|