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