@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.
Files changed (51) hide show
  1. package/dist/features/auth/forgot-password/forgot-password-styled.js +14 -14
  2. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  3. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +7 -7
  4. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  5. package/dist/features/auth/login/login-styled.js +9 -9
  6. package/dist/features/auth/login/login-styled.js.map +1 -1
  7. package/dist/features/hooks/use-viewport/use-viewport.js +8 -16
  8. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -1
  9. package/dist/features/ui/theme/constants.js +11 -0
  10. package/dist/features/ui/theme/constants.js.map +1 -0
  11. package/dist/features/ui/theme/get-device.js +6 -0
  12. package/dist/features/ui/theme/get-device.js.map +1 -0
  13. package/dist/features/ui/theme/get-theme.js +23 -21
  14. package/dist/features/ui/theme/get-theme.js.map +1 -1
  15. package/dist/features/ui/theme/layout.js +5 -3
  16. package/dist/features/ui/theme/layout.js.map +1 -1
  17. package/dist/features/ui/theme/media-queries.js +11 -0
  18. package/dist/features/ui/theme/media-queries.js.map +1 -0
  19. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +43 -45
  20. package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
  21. package/dist/features/worksheet/worksheet/worksheet-helpers.js +84 -98
  22. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  23. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +66 -66
  24. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  25. package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js +75 -78
  26. package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js.map +1 -1
  27. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +202 -268
  28. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  29. package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js +20 -21
  30. package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js.map +1 -1
  31. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  32. package/dist/features/worksheet/worksheet/worksheet.js +354 -378
  33. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  34. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +18 -20
  35. package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
  36. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +25 -33
  37. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  38. package/dist/features/worksheet/worksheet-preview/worksheet-preview-styled.js +15 -22
  39. package/dist/features/worksheet/worksheet-preview/worksheet-preview-styled.js.map +1 -1
  40. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +66 -85
  41. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
  42. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +32 -51
  43. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  44. package/dist/index.d.ts +7 -26
  45. package/dist/index.js +32 -34
  46. package/dist/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/features/ui/theme/device.js +0 -5
  49. package/dist/features/ui/theme/device.js.map +0 -1
  50. package/dist/features/utils/media.js +0 -16
  51. package/dist/features/utils/media.js.map +0 -1
@@ -1,191 +1,169 @@
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;
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: dt,
17
- learnosity: k,
15
+ layout: st,
16
+ learnosity: h,
18
17
  question: u,
19
18
  questions: T,
20
- responses: X,
19
+ responses: N,
21
20
  questionIndex: H,
22
- canSubmitWorksheet: M,
23
- isQuestionUnlocked: Q,
21
+ canSubmitWorksheet: Q,
22
+ isQuestionUnlocked: U,
24
23
  isQuestionAppended: d,
25
24
  response: t,
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,
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: P,
44
- canExceedAttempts: W,
45
- teacherValidationEnabled: F,
41
+ maximumAttempts: M,
42
+ canExceedAttempts: X,
43
+ teacherValidationEnabled: $,
46
44
  canTeacherValidate: l,
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) {
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
- Y(!0);
58
- }, w * 1e3);
52
+ F(!0);
53
+ }, v * 1e3);
59
54
  return () => clearTimeout(n);
60
55
  }
61
- Y(B);
62
- }, [w, B]), A(() => {
56
+ F(m);
57
+ }, [v, m]), C(() => {
63
58
  const n = !(t != null && t.response) && !(t != null && t.skipped);
64
- if (G)
65
- if (b > 0 && !B)
66
- y(n);
59
+ if (W)
60
+ if (b > 0 && !m)
61
+ S(n);
67
62
  else if (b === 0 && n) {
68
- const C = setTimeout(
63
+ const x = setTimeout(
69
64
  () => {
70
- y(n);
65
+ S(n);
71
66
  },
72
- (O ?? 0) * 1e3
67
+ (j ?? 0) * 1e3
73
68
  );
74
- return () => clearTimeout(C);
69
+ return () => clearTimeout(x);
75
70
  } else
76
- y(!1);
77
- }, [b, B, t, G, O]);
71
+ S(!1);
72
+ }, [b, m, t, W, j]);
78
73
  const {
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)
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 && f.navigationMode === "LINEAR")
93
+ if (!c && p.navigationMode === "LINEAR")
106
94
  return {
107
95
  nextButton: !0,
108
96
  nextButtonDisabled: !(t != null && t.response),
109
- hintsButton: r,
110
- skipButton: et
97
+ hintsButton: s,
98
+ skipButton: J
111
99
  };
112
100
  if (!c)
113
101
  return {
114
102
  nextButton: !0,
115
- hintsButton: r
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: r
109
+ hintsButton: s
122
110
  };
123
- const { responseEdited: h, score: a, attemptsHistory: e } = t, q = ((e == null ? void 0 : e.length) ?? 0) >= P;
124
- if (q && !W)
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 (h) {
129
- const Wt = (ct = e == null ? void 0 : e.slice(-1)[0]) == null ? void 0 : ct.response;
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: q,
119
+ nextButton: V,
132
120
  checkButton: !0,
133
- checkButtonDisabled: Ot(t.response, Wt),
134
- hintsButton: r
121
+ checkButtonDisabled: Ut(t.response, Ht),
122
+ hintsButton: s
135
123
  };
136
124
  }
137
125
  return (a.score ?? 0) < a.max_score ? {
138
- nextButton: q,
126
+ nextButton: V,
139
127
  retryButton: !0,
140
- hintsButton: r
128
+ hintsButton: s
141
129
  } : (a.score ?? 0) === a.max_score ? {
142
130
  nextButton: !0
143
131
  } : {};
144
- }, Pt = () => T.some(({ response_id: h }) => {
145
- const { assignStatus: a, validatedByTeacher: e } = X[h] ?? {};
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 (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,
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 (h)
145
+ if (k)
168
146
  return {
169
147
  validateButton: !0,
170
- submitAttemptButton: l && s && m === "STUDENT" && M ? !Pt() : !1
148
+ submitAttemptButton: l && o && f === "STUDENT" && Q ? !Nt() : !1
171
149
  };
172
- if (!Q)
150
+ if (!U)
173
151
  return {};
174
- if (m === "STUDENT")
175
- return R ? {
176
- startButton: l && s
177
- } : _ !== "clozetext" ? {
178
- ...C(),
152
+ if (f === "STUDENT")
153
+ return w ? {
154
+ startButton: l && o
155
+ } : E !== "clozetext" ? {
156
+ ...x(),
179
157
  nextButton: !1
180
158
  } : {
181
- hintsButton: r,
182
- readyButton: l && D && !(t != null && t.submittedByStudent)
159
+ hintsButton: s,
160
+ readyButton: l && R && !(t != null && t.submittedByStudent)
183
161
  };
184
- if (R)
162
+ if (w)
185
163
  return {
186
164
  skipSectionButton: n
187
165
  };
188
- if (_ !== "clozetext") {
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 && (D ? t == null ? void 0 : t.submittedByStudent : !0)
175
+ validateButton: l && (R ? t == null ? void 0 : t.submittedByStudent : !0)
198
176
  };
199
177
  }
200
- return C();
178
+ return x();
201
179
  }, [
202
180
  l,
203
- K,
181
+ P,
204
182
  t,
205
- F,
206
- z,
207
- I,
208
- s,
183
+ $,
184
+ o,
209
185
  c,
210
- f.navigationMode,
211
- P,
212
- W,
213
- r,
214
- et,
215
- T,
186
+ p.navigationMode,
187
+ M,
216
188
  X,
189
+ s,
217
190
  J,
218
- v,
219
- Q,
220
- m,
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: 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,
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: k,
217
+ learnosity: h,
244
218
  questionIndex: H,
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
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 A(() => {
259
- Z && (tt(!1), y(!1), V(), g && g(u.item_display_number, u.question_number));
231
+ return C(() => {
232
+ G && (O(!1), S(!1), D(), g && g(u.item_display_number, u.question_number));
260
233
  }, [
261
- V,
234
+ D,
262
235
  g,
263
236
  u.item_display_number,
264
237
  u.question_number,
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());
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
- s,
273
- p,
274
- U,
245
+ o,
246
+ B,
247
+ z,
275
248
  d,
276
- k,
277
- E,
249
+ h,
250
+ _,
278
251
  c
279
- ]), /* @__PURE__ */ Ft(
280
- ne,
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
- nt && /* @__PURE__ */ i(
289
- x,
261
+ K && /* @__PURE__ */ i(
262
+ A,
290
263
  {
291
- Icon: Zt,
264
+ Icon: Wt,
292
265
  analyticsLabel: "Hint",
293
266
  renderAs: "secondary",
294
267
  disabled: !d,
295
- onClick: Xt
268
+ onClick: Rt
296
269
  }
297
270
  ),
298
- !nt && ot && (p || S) && /* @__PURE__ */ i(
299
- x,
271
+ !K && Z && (B || y) && /* @__PURE__ */ i(
272
+ A,
300
273
  {
301
- Icon: Yt,
274
+ Icon: jt,
302
275
  analyticsLabel: "Ask for help",
303
276
  renderAs: "secondary",
304
- onClick: ot
277
+ onClick: Z
305
278
  }
306
279
  ),
307
- st && /* @__PURE__ */ i(
308
- o,
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: st
288
+ onClick: tt
316
289
  }
317
290
  ),
318
- Dt && /* @__PURE__ */ i(
319
- o,
291
+ _t && /* @__PURE__ */ i(
292
+ r,
320
293
  {
321
294
  widthX: 6,
322
- renderAs: S ? "secondary" : "primary",
295
+ renderAs: y ? "secondary" : "primary",
323
296
  size: "small",
324
297
  label: "Skip",
325
- onClick: jt
298
+ onClick: Lt
326
299
  }
327
300
  ),
328
- wt && /* @__PURE__ */ i(
329
- o,
301
+ Ct && /* @__PURE__ */ i(
302
+ r,
330
303
  {
331
304
  widthX: 6,
332
- renderAs: S ? "secondary" : "primary",
305
+ renderAs: y ? "secondary" : "primary",
333
306
  size: "small",
334
307
  label: "Next",
335
- onClick: V,
336
- disabled: It === !0
308
+ onClick: D,
309
+ disabled: At === !0
337
310
  }
338
311
  ),
339
- S && /* @__PURE__ */ i(
340
- o,
312
+ y && /* @__PURE__ */ i(
313
+ r,
341
314
  {
342
315
  widthX: 6,
343
316
  renderAs: "primary",
344
317
  size: "small",
345
- label: xt,
318
+ label: bt,
346
319
  disabled: !d,
347
- onClick: Lt
320
+ onClick: wt
348
321
  }
349
322
  ),
350
- p && /* @__PURE__ */ i(
351
- o,
323
+ B && /* @__PURE__ */ i(
324
+ r,
352
325
  {
353
326
  renderAs: "primary",
354
327
  size: "small",
355
- label: j,
356
- disabled: vt === !0 || !d,
357
- onClick: Nt
328
+ label: ft,
329
+ disabled: xt === !0 || !d,
330
+ onClick: Et
358
331
  }
359
332
  ),
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,
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: te,
339
+ Icon: Pt,
367
340
  analyticsLabel: "Skip Section",
368
- onClick: Qt
341
+ onClick: Vt
369
342
  }
370
343
  ),
371
- !it && _t && /* @__PURE__ */ i(
372
- x,
344
+ !Y && It && /* @__PURE__ */ i(
345
+ A,
373
346
  {
374
347
  renderAs: "primary",
375
- Icon: Kt,
348
+ Icon: $t,
376
349
  disabled: t == null ? void 0 : t.validatedByTeacher,
377
350
  analyticsLabel: "Validate",
378
- onClick: Ht
351
+ onClick: zt
379
352
  }
380
353
  ),
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
- )
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
- ke as default
360
+ ae as default
427
361
  };
428
362
  //# sourceMappingURL=worksheet-questions-controller.js.map