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