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