@cuemath/leap 3.2.30-aa1 → 3.2.30-aa11

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