@instructure/platform-rubrics 3.0.0 → 3.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.
- package/dist/_internal/RubricForm/utils.d.ts +1 -0
- package/dist/_internal/RubricForm/utils.d.ts.map +1 -1
- package/dist/canvas/RubricForm/components/RubricAssignmentSettings.d.ts.map +1 -1
- package/dist/canvas.js +566 -565
- package/dist/chunks/{ErrorShip-DnpTf4ze.js → ErrorShip-COgM3wMV.js} +76 -72
- package/dist/foundation/RubricBuilder/RubricBuilder.d.ts +2 -2
- package/dist/foundation/RubricBuilder/RubricBuilder.d.ts.map +1 -1
- package/dist/foundation/RubricBuilder/components/AssignmentSettings.d.ts +8 -0
- package/dist/foundation/RubricBuilder/components/AssignmentSettings.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/RubricDetailsCard.d.ts +4 -1
- package/dist/foundation/RubricBuilder/components/RubricDetailsCard.d.ts.map +1 -1
- package/dist/foundation.js +489 -435
- package/package.json +1 -1
package/dist/canvas.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { g as Yr, u as S, f as Be, R as $e, h as Qe, j as ct, r as jr, i as ua, b as Zr } from "./chunks/errorPage-CYyehhNJ.js";
|
|
2
|
-
import { D as
|
|
2
|
+
import { D as nh, a as ah, d as rh } from "./chunks/errorPage-CYyehhNJ.js";
|
|
3
3
|
import { usePlatformUi as Kr } from "@instructure/platform-provider";
|
|
4
4
|
import * as Vt from "react";
|
|
5
5
|
import Ge, { useMemo as De, useState as x, useRef as ue, useEffect as le, useLayoutEffect as Qr, useCallback as Re, forwardRef as Xr, version as Jr, memo as es } from "react";
|
|
6
6
|
import { jsx as e, jsxs as h, Fragment as ne } from "react/jsx-runtime";
|
|
7
7
|
import { Heading as Y } from "@instructure/ui-heading";
|
|
8
8
|
import { View as f } from "@instructure/ui-view";
|
|
9
|
-
import { u as ge, f as Ct,
|
|
9
|
+
import { u as ge, f as Ct, F as ma, G as Ii, H as Ci, I as ts, J as ha, L as pa, M as yi, N as ga, O as is, R as Dt, Q as ns, T as as, t as rs, z as ss, U as Yi, V as os, r as fi, m as ls, j as ds, k as cs, h as us, l as ms, p as hs, o as ps, W as fa, X as va, i as gs, b as fs, c as ji, a as ba, C as Ia, d as Ca, e as kt, s as ya, K as La, P as Ta, D as wa, S as Aa, v as Sa, g as vs, Y as bs, q as Is, x as Cs, A as ys, y as Ls, B as Ts, Z as Zi, _ as ws, $ as xa, a0 as As } from "./chunks/ErrorShip-COgM3wMV.js";
|
|
10
10
|
import { Flex as p } from "@instructure/ui-flex";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as Ss } from "./chunks/useLocalStorage-BoUaI48x.js";
|
|
12
12
|
import { Button as $, CloseButton as he, IconButton as fe } from "@instructure/ui-buttons";
|
|
13
|
-
import { IconCheckMarkLine as
|
|
13
|
+
import { IconCheckMarkLine as xs, IconAiColoredSolid as ot, IconCommentLine as Ra, IconAiSolid as Li, IconLikeSolid as Ki, IconLikeLine as Qi, IconPlusLine as Rs, IconArrowUpLine as Da, IconArrowDownLine as Pa, IconTrashLine as yt, IconMoreLine as Ti, IconDragHandleLine as wi, IconEditLine as Et, IconOutcomesLine as Ai, IconDuplicateLine as Fa, IconLockLine as Ds, IconEyeLine as ka, IconAddLine as Si, IconArrowOpenEndLine as Ps, IconSearchLine as It, IconInfoLine as Fs, IconRubricLine as ks, IconDownloadLine as _a, IconImportLine as _s } from "@instructure/ui-icons";
|
|
14
14
|
import { Pill as Mt } from "@instructure/ui-pill";
|
|
15
15
|
import { Checkbox as Me } from "@instructure/ui-checkbox";
|
|
16
16
|
import { Text as P } from "@instructure/ui-text";
|
|
@@ -19,58 +19,58 @@ import { Tooltip as Pe } from "@instructure/ui-tooltip";
|
|
|
19
19
|
import { TruncateText as Nt } from "@instructure/ui-truncate-text";
|
|
20
20
|
import { SimpleSelect as ye, SimpleSelectOption as Fe } from "@instructure/ui-simple-select";
|
|
21
21
|
import { sanitizeHtml as Ot } from "@instructure/platform-sanitize";
|
|
22
|
-
import { AccessibleContent as
|
|
22
|
+
import { AccessibleContent as Es, ScreenReaderContent as de } from "@instructure/ui-a11y-content";
|
|
23
23
|
import { TextArea as Ne } from "@instructure/ui-text-area";
|
|
24
24
|
import { TextInput as ke } from "@instructure/ui-text-input";
|
|
25
|
-
import { useQuery as ut, useMutation as Xe, useQueryClient as xi, useInfiniteQuery as
|
|
25
|
+
import { useQuery as ut, useMutation as Xe, useQueryClient as xi, useInfiniteQuery as Ms, keepPreviousData as Ns } from "@tanstack/react-query";
|
|
26
26
|
import qe from "graphql-tag";
|
|
27
|
-
import { Tag as
|
|
27
|
+
import { Tag as Os } from "@instructure/ui-tag";
|
|
28
28
|
import { LoadingIndicator as We } from "@instructure/platform-loading-indicator";
|
|
29
29
|
import { Popover as mt } from "@instructure/ui-popover";
|
|
30
|
-
import { CalculationMethodContent as
|
|
30
|
+
import { CalculationMethodContent as Bs, OutcomeContextTag as $s } from "@instructure/platform-outcomes";
|
|
31
31
|
import { Responsive as Je } from "@instructure/ui-responsive";
|
|
32
|
-
import { Avatar as
|
|
32
|
+
import { Avatar as zs } from "@instructure/ui-avatar";
|
|
33
33
|
import { Table as oe } from "@instructure/ui-table";
|
|
34
34
|
import { Link as Ke } from "@instructure/ui-link";
|
|
35
35
|
import { Modal as E } from "@instructure/ui-modal";
|
|
36
36
|
import { Tray as Ri } from "@instructure/ui-tray";
|
|
37
37
|
import { z as k } from "zod";
|
|
38
38
|
import { canvasFetch as _e } from "@instructure/platform-canvas-fetch";
|
|
39
|
-
import { AiInformation as
|
|
39
|
+
import { AiInformation as Hs } from "@instructure/ui-instructure";
|
|
40
40
|
import { Spinner as Di } from "@instructure/ui-spinner";
|
|
41
41
|
import { Menu as ve } from "@instructure/ui-menu";
|
|
42
|
-
import { NumberInput as
|
|
43
|
-
import { ToggleDetails as
|
|
42
|
+
import { NumberInput as Ws } from "@instructure/ui-number-input";
|
|
43
|
+
import { ToggleDetails as Vs } from "@instructure/ui-toggle-details";
|
|
44
44
|
import { Alert as He } from "@instructure/ui-alerts";
|
|
45
45
|
import { Pagination as Ea } from "@instructure/ui-pagination";
|
|
46
|
-
import { RadioInput as
|
|
46
|
+
import { RadioInput as Us } from "@instructure/ui-radio-input";
|
|
47
47
|
import { Tabs as Ut } from "@instructure/ui-tabs";
|
|
48
48
|
import { List as at } from "@instructure/ui-list";
|
|
49
|
-
import { FileDrop as
|
|
50
|
-
import { ProgressBar as
|
|
51
|
-
import
|
|
49
|
+
import { FileDrop as Gs } from "@instructure/ui-file-drop";
|
|
50
|
+
import { ProgressBar as qs } from "@instructure/ui-progress";
|
|
51
|
+
import Ys from "react-dom";
|
|
52
52
|
import { Select as je } from "@instructure/ui-select";
|
|
53
53
|
import { matchComponentTypes as tt } from "@instructure/ui-react-utils";
|
|
54
54
|
import "@instructure/ui-tooltip/v11_7";
|
|
55
55
|
import "@instructure/ui-truncate-text/v11_7";
|
|
56
|
-
import './canvas.css';function
|
|
56
|
+
import './canvas.css';function js() {
|
|
57
57
|
const { permissions: t } = Kr();
|
|
58
58
|
return De(
|
|
59
59
|
() => ({ manageRubrics: t.manage_rubrics ?? !1 }),
|
|
60
60
|
[t.manage_rubrics]
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const Zm = () => /* @__PURE__ */ e(f, { as: "div", padding: "small", children: /* @__PURE__ */ e(Y, { level: "h2", children: Yr("canvas") }) }), Zs = (t) => `_${t}_eg_rubric_view_mode`, Ks = "traditional";
|
|
64
64
|
function Xi(t) {
|
|
65
65
|
return arguments.length === 0 ? [] : Array.isArray(t) ? t : [t];
|
|
66
66
|
}
|
|
67
|
-
function Ks(t) {
|
|
68
|
-
return Number.isSafeInteger(t) && t >= 0;
|
|
69
|
-
}
|
|
70
67
|
function Qs(t) {
|
|
71
|
-
return t
|
|
68
|
+
return Number.isSafeInteger(t) && t >= 0;
|
|
72
69
|
}
|
|
73
70
|
function Xs(t) {
|
|
71
|
+
return t != null && typeof t != "function" && Qs(t.length);
|
|
72
|
+
}
|
|
73
|
+
function Js(t) {
|
|
74
74
|
const i = [];
|
|
75
75
|
for (let n = 0; n < t.length; n++) {
|
|
76
76
|
const a = t[n];
|
|
@@ -78,13 +78,13 @@ function Xs(t) {
|
|
|
78
78
|
}
|
|
79
79
|
return i;
|
|
80
80
|
}
|
|
81
|
-
function Js(t) {
|
|
82
|
-
return Qs(t) ? Xs(Array.from(t)) : [];
|
|
83
|
-
}
|
|
84
81
|
function eo(t) {
|
|
82
|
+
return Xs(t) ? Js(Array.from(t)) : [];
|
|
83
|
+
}
|
|
84
|
+
function to(t) {
|
|
85
85
|
return [...new Set(t)];
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const io = (t, i, n = !1) => {
|
|
88
88
|
if (i == null)
|
|
89
89
|
return -1;
|
|
90
90
|
if (!n)
|
|
@@ -97,7 +97,7 @@ const to = (t, i, n = !1) => {
|
|
|
97
97
|
const { id: a, points: r } = n || {};
|
|
98
98
|
if (r != null)
|
|
99
99
|
return (s = t.find((o) => o.id === a && (i || o.points === r))) == null ? void 0 : s.id;
|
|
100
|
-
}, Ma = (t, i, n) => t && i ? n("assessmentRatingSelectedAndSelfAssessment") : t ? n("assessmentRatingSelected") : i ? n("assessmentRatingSelfAssessment") : "",
|
|
100
|
+
}, Ma = (t, i, n) => t && i ? n("assessmentRatingSelectedAndSelfAssessment") : t ? n("assessmentRatingSelected") : i ? n("assessmentRatingSelfAssessment") : "", no = ({
|
|
101
101
|
criteria: t,
|
|
102
102
|
isFreeFormCriterionComments: i,
|
|
103
103
|
hidePoints: n,
|
|
@@ -115,7 +115,7 @@ const to = (t, i, n = !1) => {
|
|
|
115
115
|
if (a === "" || a == null) return !1;
|
|
116
116
|
const r = Number(a);
|
|
117
117
|
return !Number.isNaN(r) && r > t.points;
|
|
118
|
-
},
|
|
118
|
+
}, ao = (t, i, n) => t.map((a) => {
|
|
119
119
|
const r = i.find((s) => s.id === a.criterionId);
|
|
120
120
|
return r && Pi(r, a.points, n) ? { ...a, points: r.points } : a;
|
|
121
121
|
}), Na = (t) => Math.round(t * 100) / 100, Oa = (t) => Na(
|
|
@@ -123,12 +123,12 @@ const to = (t, i, n = !1) => {
|
|
|
123
123
|
(i, n) => i + (!n.ignoreForScoring && n.points ? n.points : 0),
|
|
124
124
|
0
|
|
125
125
|
)
|
|
126
|
-
),
|
|
126
|
+
), ro = (t) => Na(
|
|
127
127
|
t.reduce(
|
|
128
128
|
(i, n) => n.ignoreForScoring ? i : i + n.points,
|
|
129
129
|
0
|
|
130
130
|
)
|
|
131
|
-
),
|
|
131
|
+
), so = (t, i) => t && !!(i != null && i.length), oo = (t, i, n) => {
|
|
132
132
|
var l, d;
|
|
133
133
|
const a = [...n].sort((c, u) => c.points - u.points).reverse(), r = ((l = a[0]) == null ? void 0 : l.points) ?? 0, s = i > 0 ? t * (r / i) : t, o = a.find((c) => s >= c.points);
|
|
134
134
|
return o ? `#${o.color}` : `#${(d = a[a.length - 1]) == null ? void 0 : d.color}`;
|
|
@@ -140,14 +140,14 @@ const to = (t, i, n = !1) => {
|
|
|
140
140
|
ratingId: i == null ? void 0 : i.id,
|
|
141
141
|
...n,
|
|
142
142
|
criterionId: t
|
|
143
|
-
}),
|
|
143
|
+
}), lo = (t, i) => t.map((n) => {
|
|
144
144
|
var a;
|
|
145
145
|
return {
|
|
146
146
|
...n,
|
|
147
147
|
ignoreForScoring: ((a = i == null ? void 0 : i.find((r) => r.id === n.criterionId)) == null ? void 0 : a.ignoreForScoring) || !1
|
|
148
148
|
};
|
|
149
|
-
}),
|
|
150
|
-
const { criterionId: a, points: r, comments: s = "", saveCommentsForLater: o, ratingId: l } = n, d = t.findIndex((y) => y.criterionId === a), c = i == null ? void 0 : i.find((y) => y.id === a), u = (c == null ? void 0 : c.ignoreForScoring) || !1, m = (c == null ? void 0 : c.ratings) ?? [], v = l ? m.find((y) => y.id === l) : m[
|
|
149
|
+
}), co = (t, i, n) => {
|
|
150
|
+
const { criterionId: a, points: r, comments: s = "", saveCommentsForLater: o, ratingId: l } = n, d = t.findIndex((y) => y.criterionId === a), c = i == null ? void 0 : i.find((y) => y.id === a), u = (c == null ? void 0 : c.ignoreForScoring) || !1, m = (c == null ? void 0 : c.ratings) ?? [], v = l ? m.find((y) => y.id === l) : m[io(
|
|
151
151
|
(c == null ? void 0 : c.ratings) ?? [],
|
|
152
152
|
r,
|
|
153
153
|
c == null ? void 0 : c.criterionUseRange
|
|
@@ -175,7 +175,7 @@ const to = (t, i, n = !1) => {
|
|
|
175
175
|
saveCommentsForLater: o
|
|
176
176
|
} : y
|
|
177
177
|
);
|
|
178
|
-
},
|
|
178
|
+
}, uo = ({
|
|
179
179
|
criteria: t,
|
|
180
180
|
rubricAssessment: i,
|
|
181
181
|
isFreeFormCriterionComments: n,
|
|
@@ -186,7 +186,7 @@ const to = (t, i, n = !1) => {
|
|
|
186
186
|
const l = i.find((d) => d.criterionId === o.id);
|
|
187
187
|
return r && !(l != null && l.comments) && s.push(o.id), !r && typeof (l == null ? void 0 : l.points) != "number" && s.push(o.id), s;
|
|
188
188
|
}, []);
|
|
189
|
-
},
|
|
189
|
+
}, mo = (t, i) => t && i ? "assessmentValidationLeaveComment" : t ? "assessmentValidationSelectScore" : i ? "assessmentValidationSelectRating" : "assessmentValidationSelectRatingOrScore", ho = (t, i) => (t == null ? void 0 : t.map((n) => ({
|
|
190
190
|
id: n.id,
|
|
191
191
|
points: n.points,
|
|
192
192
|
criterionId: n.criterionId,
|
|
@@ -194,7 +194,7 @@ const to = (t, i, n = !1) => {
|
|
|
194
194
|
commentsEnabled: n.commentsEnabled,
|
|
195
195
|
description: n.description,
|
|
196
196
|
updatedAt: i
|
|
197
|
-
}))) ?? [], Ha = (t, i, n, a) => a && t.points != null ? t.points.toString() : (n - (i + 1)).toString(), Wa = (t, i) => [t.description, t.longDescription, i].filter(Boolean).join(" "),
|
|
197
|
+
}))) ?? [], Ha = (t, i, n, a) => a && t.points != null ? t.points.toString() : (n - (i + 1)).toString(), Wa = (t, i) => [t.description, t.longDescription, i].filter(Boolean).join(" "), po = ({
|
|
198
198
|
criteria: t,
|
|
199
199
|
rubricAssessmentData: i,
|
|
200
200
|
hidePoints: n,
|
|
@@ -205,10 +205,10 @@ const to = (t, i, n = !1) => {
|
|
|
205
205
|
}) => {
|
|
206
206
|
const [l, d] = x([]), [c, u] = x([]), m = ue(!1), [v, g] = x(!1);
|
|
207
207
|
le(() => {
|
|
208
|
-
d(
|
|
208
|
+
d(lo(i, t)), m.current = !1, g(!1);
|
|
209
209
|
}, [i, t]);
|
|
210
210
|
const I = () => {
|
|
211
|
-
const C =
|
|
211
|
+
const C = uo({
|
|
212
212
|
criteria: t,
|
|
213
213
|
rubricAssessment: l,
|
|
214
214
|
isFreeFormCriterionComments: a,
|
|
@@ -217,16 +217,16 @@ const to = (t, i, n = !1) => {
|
|
|
217
217
|
return u(C), C;
|
|
218
218
|
}, y = () => {
|
|
219
219
|
m.current || r && I().length > 0 || (m.current = !0, g(!0), o == null || o(
|
|
220
|
-
|
|
220
|
+
ao(l, t, s)
|
|
221
221
|
));
|
|
222
222
|
};
|
|
223
223
|
return {
|
|
224
224
|
rubricAssessmentDraftData: l,
|
|
225
225
|
updateAssessment: (C) => {
|
|
226
|
-
d(
|
|
226
|
+
d(co(l, t, C));
|
|
227
227
|
},
|
|
228
228
|
instructorPoints: Oa(l),
|
|
229
|
-
isComplete:
|
|
229
|
+
isComplete: no({
|
|
230
230
|
criteria: t,
|
|
231
231
|
isFreeFormCriterionComments: a,
|
|
232
232
|
hidePoints: n,
|
|
@@ -242,24 +242,24 @@ const to = (t, i, n = !1) => {
|
|
|
242
242
|
viewModeOverride: i,
|
|
243
243
|
isSelfAssessment: n = !1
|
|
244
244
|
}) => {
|
|
245
|
-
const [a, r] =
|
|
246
|
-
|
|
247
|
-
i ??
|
|
245
|
+
const [a, r] = Ss(
|
|
246
|
+
Zs(t),
|
|
247
|
+
i ?? Ks
|
|
248
248
|
), s = (c) => n && c === "traditional" ? "horizontal" : c, o = s(a), l = s(i ?? a);
|
|
249
249
|
return { viewMode: l, isTraditionalView: l === "traditional", storedViewMode: o, setViewMode: r };
|
|
250
|
-
},
|
|
250
|
+
}, go = ({ isRubricComplete: t }) => {
|
|
251
251
|
const { translations: i } = S();
|
|
252
252
|
return /* @__PURE__ */ e(
|
|
253
253
|
Mt,
|
|
254
254
|
{
|
|
255
|
-
renderIcon: t ? /* @__PURE__ */ e(
|
|
255
|
+
renderIcon: t ? /* @__PURE__ */ e(xs, {}) : void 0,
|
|
256
256
|
color: t ? "success" : "warning",
|
|
257
257
|
margin: "x-small",
|
|
258
258
|
"data-testid": "rubric-assessment-status-pill",
|
|
259
259
|
children: t ? i.assessmentStatusComplete : i.assessmentStatusIncomplete
|
|
260
260
|
}
|
|
261
261
|
);
|
|
262
|
-
},
|
|
262
|
+
}, fo = ({
|
|
263
263
|
isPreviewMode: t,
|
|
264
264
|
isRubricComplete: i,
|
|
265
265
|
isSubmitting: n = !1,
|
|
@@ -270,7 +270,7 @@ const to = (t, i, n = !1) => {
|
|
|
270
270
|
}) => {
|
|
271
271
|
const { translations: l } = S();
|
|
272
272
|
return /* @__PURE__ */ e(f, { as: "div", "data-testid": "rubric-assessment-footer", overflowX: "hidden", overflowY: "hidden", children: /* @__PURE__ */ h(p, { justifyItems: "end", margin: "small 0", wrap: "wrap", gap: "small", children: [
|
|
273
|
-
s && !t && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
273
|
+
s && !t && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(go, { isRubricComplete: i }) }),
|
|
274
274
|
a && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
275
275
|
$,
|
|
276
276
|
{
|
|
@@ -362,7 +362,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
362
362
|
}
|
|
363
363
|
) })
|
|
364
364
|
] });
|
|
365
|
-
},
|
|
365
|
+
}, vo = () => {
|
|
366
366
|
const { translations: t } = S();
|
|
367
367
|
return /* @__PURE__ */ e(p, { "data-testid": "rubric-self-assessment-instructions", children: /* @__PURE__ */ e(p.Item, { shouldGrow: !0, padding: "medium small", children: /* @__PURE__ */ h(
|
|
368
368
|
"div",
|
|
@@ -400,7 +400,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
400
400
|
]
|
|
401
401
|
}
|
|
402
402
|
) }) });
|
|
403
|
-
},
|
|
403
|
+
}, bo = ({
|
|
404
404
|
instructorPoints: t,
|
|
405
405
|
pointsPossible: i = 0
|
|
406
406
|
}) => {
|
|
@@ -426,7 +426,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
426
426
|
}
|
|
427
427
|
) })
|
|
428
428
|
] });
|
|
429
|
-
},
|
|
429
|
+
}, Io = ({ selectedViewMode: t, onViewModeChange: i }) => {
|
|
430
430
|
const { translations: n } = S(), a = (r) => {
|
|
431
431
|
i(r);
|
|
432
432
|
};
|
|
@@ -454,7 +454,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
454
454
|
]
|
|
455
455
|
}
|
|
456
456
|
);
|
|
457
|
-
},
|
|
457
|
+
}, Co = ({
|
|
458
458
|
hidePoints: t,
|
|
459
459
|
instructorPoints: i,
|
|
460
460
|
isPreviewMode: n,
|
|
@@ -503,7 +503,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
503
503
|
/* @__PURE__ */ e(f, { as: "hr", margin: "x-small 0 small", "aria-hidden": !0 }),
|
|
504
504
|
/* @__PURE__ */ h(p, { wrap: "wrap", gap: "medium 0", children: [
|
|
505
505
|
!r && /* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ e(
|
|
506
|
-
|
|
506
|
+
Io,
|
|
507
507
|
{
|
|
508
508
|
selectedViewMode: m,
|
|
509
509
|
onViewModeChange: c
|
|
@@ -518,10 +518,10 @@ const { colors: Ji } = ze, en = ({
|
|
|
518
518
|
}
|
|
519
519
|
) }) }) })
|
|
520
520
|
] }),
|
|
521
|
-
r && /* @__PURE__ */ e(
|
|
521
|
+
r && /* @__PURE__ */ e(vo, {}),
|
|
522
522
|
!y() && /* @__PURE__ */ h(ne, { children: [
|
|
523
523
|
!t && /* @__PURE__ */ e(ne, { children: r ? /* @__PURE__ */ e(
|
|
524
|
-
|
|
524
|
+
bo,
|
|
525
525
|
{
|
|
526
526
|
instructorPoints: i,
|
|
527
527
|
pointsPossible: s
|
|
@@ -549,7 +549,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
549
549
|
]
|
|
550
550
|
}
|
|
551
551
|
);
|
|
552
|
-
},
|
|
552
|
+
}, yo = qe`
|
|
553
553
|
query GetRubricOutcome($learningOutcomeId: ID!) {
|
|
554
554
|
learningOutcome(id: $learningOutcomeId) {
|
|
555
555
|
id: _id
|
|
@@ -569,7 +569,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
569
569
|
queryKey: ["rubric_outcome_", t ?? ""],
|
|
570
570
|
queryFn: async () => {
|
|
571
571
|
const { learningOutcome: n } = await i(
|
|
572
|
-
|
|
572
|
+
yo,
|
|
573
573
|
{ learningOutcomeId: t }
|
|
574
574
|
);
|
|
575
575
|
return n;
|
|
@@ -673,15 +673,15 @@ const { colors: Ji } = ze, en = ({
|
|
|
673
673
|
},
|
|
674
674
|
children: [
|
|
675
675
|
/* @__PURE__ */ e(P, { size: "medium", "data-testid": "rubric-rating-button-label", children: i }),
|
|
676
|
-
r && /* @__PURE__ */ e(
|
|
676
|
+
r && /* @__PURE__ */ e(To, { buttonLabel: i })
|
|
677
677
|
]
|
|
678
678
|
}
|
|
679
679
|
),
|
|
680
|
-
a && /* @__PURE__ */ e(
|
|
680
|
+
a && /* @__PURE__ */ e(Lo, { direction: s })
|
|
681
681
|
] })
|
|
682
682
|
}
|
|
683
683
|
);
|
|
684
|
-
},
|
|
684
|
+
}, Lo = ({ direction: t }) => {
|
|
685
685
|
const i = {
|
|
686
686
|
position: "absolute",
|
|
687
687
|
width: "0",
|
|
@@ -695,7 +695,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
695
695
|
/* @__PURE__ */ e("div", { style: i, "data-testid": "rubric-rating-button-selected" }),
|
|
696
696
|
/* @__PURE__ */ e("div", { style: n })
|
|
697
697
|
] });
|
|
698
|
-
},
|
|
698
|
+
}, To = ({ buttonLabel: t }) => /* @__PURE__ */ e(
|
|
699
699
|
"div",
|
|
700
700
|
{
|
|
701
701
|
"data-testid": `rubric-rating-button-self-assessment-selected-${t}`,
|
|
@@ -708,7 +708,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
708
708
|
pointerEvents: "none"
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
), { colors:
|
|
711
|
+
), { colors: wo } = ze, Ya = ({
|
|
712
712
|
ariaLabel: t,
|
|
713
713
|
buttonLabel: i,
|
|
714
714
|
isPreviewMode: n,
|
|
@@ -744,7 +744,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
744
744
|
height: "30px",
|
|
745
745
|
width: "30px",
|
|
746
746
|
backgroundColor: "#F3F9F6",
|
|
747
|
-
color:
|
|
747
|
+
color: wo.contrasts.green4570,
|
|
748
748
|
border: "2px dashed #03893D",
|
|
749
749
|
borderRadius: "4px",
|
|
750
750
|
display: "flex",
|
|
@@ -763,7 +763,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
763
763
|
) })
|
|
764
764
|
}
|
|
765
765
|
);
|
|
766
|
-
}, { colors:
|
|
766
|
+
}, { colors: Ao } = ze, So = ({
|
|
767
767
|
buttonDisplay: t,
|
|
768
768
|
criterionId: i,
|
|
769
769
|
hidePoints: n,
|
|
@@ -805,7 +805,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
805
805
|
margin: "0 xx-small small xx-small",
|
|
806
806
|
"data-testid": `rating-details-${R == null ? void 0 : R.id}`,
|
|
807
807
|
themeOverride: {
|
|
808
|
-
borderColorBrand:
|
|
808
|
+
borderColorBrand: Ao.contrasts.green4570,
|
|
809
809
|
borderWidthMedium: "0.188rem"
|
|
810
810
|
},
|
|
811
811
|
children: [
|
|
@@ -857,7 +857,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
857
857
|
]
|
|
858
858
|
}
|
|
859
859
|
);
|
|
860
|
-
},
|
|
860
|
+
}, xo = {
|
|
861
861
|
"# of times": "calculationMethodNumberOfTimes",
|
|
862
862
|
"% weighting for last item": "calculationMethodWeightingForLastItem",
|
|
863
863
|
"% weighting of most recent item": "calculationMethodWeightingOfMostRecentItem",
|
|
@@ -889,34 +889,34 @@ const { colors: Ji } = ze, en = ({
|
|
|
889
889
|
"n Number of Times": "calculationMethodNMastery",
|
|
890
890
|
"{{recentInt}}/{{remainderInt}} Decaying Average": "calculationMethodDecayingAverageRatio",
|
|
891
891
|
"{{recentInt}}/{{remainderInt}} Weighted Average": "calculationMethodWeightedAverageRatio"
|
|
892
|
-
},
|
|
893
|
-
const a =
|
|
892
|
+
}, Ro = (t) => (i, n) => {
|
|
893
|
+
const a = xo[i];
|
|
894
894
|
return a ? t(a, n) : i.replace(
|
|
895
895
|
/\{\{\s*(\w+)\s*\}\}/g,
|
|
896
896
|
(r, s) => n && s in n ? String(n[s]) : r
|
|
897
897
|
);
|
|
898
|
-
},
|
|
898
|
+
}, Do = (t) => (i) => new Intl.NumberFormat(t, { maximumFractionDigits: 2 }).format(i), Po = (t) => (i, n) => {
|
|
899
899
|
const a = new Intl.NumberFormat(t, { maximumFractionDigits: 5 }).format(i);
|
|
900
900
|
return n != null && n.percentage ? `${a}%` : a;
|
|
901
|
-
},
|
|
901
|
+
}, Fo = (t) => {
|
|
902
902
|
const { locale: i } = ge(), { translate: n } = S();
|
|
903
903
|
return De(
|
|
904
904
|
() => ({
|
|
905
|
-
translate:
|
|
906
|
-
formatOutcomeScore:
|
|
907
|
-
localizeNumber:
|
|
905
|
+
translate: Ro(n),
|
|
906
|
+
formatOutcomeScore: Do(i),
|
|
907
|
+
localizeNumber: Po(i),
|
|
908
908
|
newDecayingAverageEnabled: t
|
|
909
909
|
}),
|
|
910
910
|
[i, n, t]
|
|
911
911
|
);
|
|
912
|
-
},
|
|
912
|
+
}, ko = ({
|
|
913
913
|
outcome: t,
|
|
914
914
|
newDecayingAverageEnabled: i = !1
|
|
915
915
|
}) => {
|
|
916
|
-
const { translations: n } = S(), a =
|
|
916
|
+
const { translations: n } = S(), a = Fo(i);
|
|
917
917
|
if (!t)
|
|
918
918
|
return null;
|
|
919
|
-
const r = t.displayName && t.displayName.length > 0, s = r ? t.displayName : t.title, o = new
|
|
919
|
+
const r = t.displayName && t.displayName.length > 0, s = r ? t.displayName : t.title, o = new Bs(
|
|
920
920
|
{
|
|
921
921
|
calculation_method: t.calculationMethod,
|
|
922
922
|
calculation_int: t.calculationInt,
|
|
@@ -956,7 +956,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
956
956
|
}
|
|
957
957
|
),
|
|
958
958
|
/* @__PURE__ */ e(
|
|
959
|
-
|
|
959
|
+
$s,
|
|
960
960
|
{
|
|
961
961
|
outcomeContextType: t.contextType ?? void 0,
|
|
962
962
|
outcomeContextId: t.contextId ?? void 0,
|
|
@@ -993,7 +993,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
);
|
|
996
|
-
},
|
|
996
|
+
}, _o = ({
|
|
997
997
|
outcome: t,
|
|
998
998
|
newDecayingAverageEnabled: i = !1,
|
|
999
999
|
renderTrigger: n
|
|
@@ -1023,7 +1023,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1023
1023
|
}
|
|
1024
1024
|
),
|
|
1025
1025
|
t ? /* @__PURE__ */ e(
|
|
1026
|
-
|
|
1026
|
+
ko,
|
|
1027
1027
|
{
|
|
1028
1028
|
outcome: t,
|
|
1029
1029
|
newDecayingAverageEnabled: i
|
|
@@ -1041,12 +1041,12 @@ const { colors: Ji } = ze, en = ({
|
|
|
1041
1041
|
}) => {
|
|
1042
1042
|
const { translate: s } = S();
|
|
1043
1043
|
return /* @__PURE__ */ e(
|
|
1044
|
-
|
|
1044
|
+
_o,
|
|
1045
1045
|
{
|
|
1046
1046
|
renderTrigger: /* @__PURE__ */ e(
|
|
1047
|
-
|
|
1047
|
+
Os,
|
|
1048
1048
|
{
|
|
1049
|
-
text: /* @__PURE__ */ e(
|
|
1049
|
+
text: /* @__PURE__ */ e(Es, { alt: s("assessmentOutcomeTagLabel", { displayName: t }), children: /* @__PURE__ */ e(P, { children: t }) }),
|
|
1050
1050
|
size: "small",
|
|
1051
1051
|
themeOverride: {
|
|
1052
1052
|
defaultBackground: "white",
|
|
@@ -1062,14 +1062,14 @@ const { colors: Ji } = ze, en = ({
|
|
|
1062
1062
|
newDecayingAverageEnabled: a
|
|
1063
1063
|
}
|
|
1064
1064
|
);
|
|
1065
|
-
},
|
|
1065
|
+
}, Eo = (t, i) => {
|
|
1066
1066
|
const n = new Date(t), a = {
|
|
1067
1067
|
hour: "numeric",
|
|
1068
1068
|
minute: "2-digit",
|
|
1069
1069
|
hour12: !0
|
|
1070
1070
|
};
|
|
1071
1071
|
return new Intl.DateTimeFormat(i, a).format(n);
|
|
1072
|
-
},
|
|
1072
|
+
}, Mo = (t, i) => {
|
|
1073
1073
|
const n = new Date(t), a = /* @__PURE__ */ new Date(), r = n.getFullYear() !== a.getFullYear(), s = {
|
|
1074
1074
|
month: "short",
|
|
1075
1075
|
day: "numeric"
|
|
@@ -1087,11 +1087,11 @@ const { colors: Ji } = ze, en = ({
|
|
|
1087
1087
|
if (!n || !o || !r)
|
|
1088
1088
|
return null;
|
|
1089
1089
|
const { name: l = "", avatarUrl: d } = r, c = () => n.updatedAt ? s("assessmentSelfAssessmentCommentedAt", {
|
|
1090
|
-
dueDate:
|
|
1091
|
-
time:
|
|
1090
|
+
dueDate: Mo(n.updatedAt, t),
|
|
1091
|
+
time: Eo(n.updatedAt, t)
|
|
1092
1092
|
}) : "";
|
|
1093
1093
|
return /* @__PURE__ */ h(p, { margin: i, children: [
|
|
1094
|
-
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
1094
|
+
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(zs, { size: "x-small", src: d || "", name: l }) }),
|
|
1095
1095
|
/* @__PURE__ */ h(p.Item, { margin: "0 0 0 small", shouldGrow: !0, children: [
|
|
1096
1096
|
/* @__PURE__ */ e(f, { as: "div", children: /* @__PURE__ */ e(P, { size: "small", children: n.comments }) }),
|
|
1097
1097
|
/* @__PURE__ */ e(f, { as: "div", textAlign: a, width: "100%", children: /* @__PURE__ */ h(P, { size: "small", "data-testid": `self-assessment-comment-${n.id}`, children: [
|
|
@@ -1100,7 +1100,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1100
1100
|
] }) })
|
|
1101
1101
|
] })
|
|
1102
1102
|
] });
|
|
1103
|
-
}, { colors:
|
|
1103
|
+
}, { colors: No } = ze, Oo = ({
|
|
1104
1104
|
buttonDisplay: t,
|
|
1105
1105
|
criterionId: i,
|
|
1106
1106
|
hidePoints: n,
|
|
@@ -1181,7 +1181,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1181
1181
|
margin: "0 0 x-small xx-small",
|
|
1182
1182
|
"data-testid": `rating-details-${b.id}`,
|
|
1183
1183
|
themeOverride: {
|
|
1184
|
-
borderColorBrand:
|
|
1184
|
+
borderColorBrand: No.contrasts.green4570,
|
|
1185
1185
|
borderWidthMedium: "0.188rem"
|
|
1186
1186
|
},
|
|
1187
1187
|
children: [
|
|
@@ -1205,7 +1205,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1205
1205
|
})
|
|
1206
1206
|
}
|
|
1207
1207
|
);
|
|
1208
|
-
},
|
|
1208
|
+
}, Bo = ({
|
|
1209
1209
|
buttonDisplay: t,
|
|
1210
1210
|
criteria: i,
|
|
1211
1211
|
hidePoints: n,
|
|
@@ -1232,7 +1232,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1232
1232
|
(M) => M.criterionId === L.id
|
|
1233
1233
|
);
|
|
1234
1234
|
return /* @__PURE__ */ e(
|
|
1235
|
-
|
|
1235
|
+
$o,
|
|
1236
1236
|
{
|
|
1237
1237
|
buttonDisplay: t,
|
|
1238
1238
|
criterion: L,
|
|
@@ -1259,7 +1259,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1259
1259
|
L.id
|
|
1260
1260
|
);
|
|
1261
1261
|
}) });
|
|
1262
|
-
},
|
|
1262
|
+
}, $o = ({
|
|
1263
1263
|
buttonDisplay: t,
|
|
1264
1264
|
criterion: i,
|
|
1265
1265
|
displayHr: n,
|
|
@@ -1307,7 +1307,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1307
1307
|
const pe = $a(D);
|
|
1308
1308
|
re({ points: pe, ratingId: void 0 }), B(pe === void 0 ? "" : pe.toString());
|
|
1309
1309
|
}, ae = () => I === "horizontal" && N.length <= 5 ? /* @__PURE__ */ e(
|
|
1310
|
-
|
|
1310
|
+
So,
|
|
1311
1311
|
{
|
|
1312
1312
|
buttonDisplay: t,
|
|
1313
1313
|
criterionId: i.id,
|
|
@@ -1323,7 +1323,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1323
1323
|
shouldFocusFirstRating: H && (A == null ? void 0 : A[0]) === i.id
|
|
1324
1324
|
}
|
|
1325
1325
|
) : /* @__PURE__ */ e(
|
|
1326
|
-
|
|
1326
|
+
Oo,
|
|
1327
1327
|
{
|
|
1328
1328
|
buttonDisplay: t,
|
|
1329
1329
|
criterionId: i.id,
|
|
@@ -1341,7 +1341,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1341
1341
|
), te = (z == null ? void 0 : z.toString()) ?? "", O = i.points.toString(), G = R(
|
|
1342
1342
|
l ? "assessmentSelfAssessmentPointsLabel" : "assessmentInstructorPointsLabel",
|
|
1343
1343
|
{ points: te, total: O }
|
|
1344
|
-
), J = () => T[
|
|
1344
|
+
), J = () => T[mo(d, a)];
|
|
1345
1345
|
return /* @__PURE__ */ h(ne, { children: [
|
|
1346
1346
|
/* @__PURE__ */ h(
|
|
1347
1347
|
f,
|
|
@@ -1503,7 +1503,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1503
1503
|
) }) }),
|
|
1504
1504
|
n && /* @__PURE__ */ e(f, { as: "hr", margin: "medium 0", "aria-hidden": !0 })
|
|
1505
1505
|
] });
|
|
1506
|
-
},
|
|
1506
|
+
}, zo = () => {
|
|
1507
1507
|
const { translations: t } = S(), [i, n] = x(!1);
|
|
1508
1508
|
return /* @__PURE__ */ e(
|
|
1509
1509
|
mt,
|
|
@@ -1553,7 +1553,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1553
1553
|
] })
|
|
1554
1554
|
}
|
|
1555
1555
|
);
|
|
1556
|
-
},
|
|
1556
|
+
}, Ho = ({
|
|
1557
1557
|
open: t,
|
|
1558
1558
|
onClose: i,
|
|
1559
1559
|
longDescription: n
|
|
@@ -1594,7 +1594,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1594
1594
|
]
|
|
1595
1595
|
}
|
|
1596
1596
|
);
|
|
1597
|
-
}, { colors:
|
|
1597
|
+
}, { colors: Wo } = ze, Vo = ({
|
|
1598
1598
|
colCount: t,
|
|
1599
1599
|
commentText: i,
|
|
1600
1600
|
criterion: n,
|
|
@@ -1620,7 +1620,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1620
1620
|
colSpan: t,
|
|
1621
1621
|
padding: "x-small small",
|
|
1622
1622
|
borderWidth: `small 0 ${s ? 0 : "small"} 0`,
|
|
1623
|
-
borderColor:
|
|
1623
|
+
borderColor: Wo.primitives.grey14,
|
|
1624
1624
|
"aria-label": g("assessmentCriterionCommentsFor", {
|
|
1625
1625
|
description: n.description
|
|
1626
1626
|
}),
|
|
@@ -1666,7 +1666,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1666
1666
|
] })
|
|
1667
1667
|
}
|
|
1668
1668
|
) });
|
|
1669
|
-
},
|
|
1669
|
+
}, Uo = ({
|
|
1670
1670
|
criterion: t,
|
|
1671
1671
|
hidePoints: i = !1,
|
|
1672
1672
|
isPreviewMode: n,
|
|
@@ -1716,9 +1716,9 @@ const { colors: Ji } = ze, en = ({
|
|
|
1716
1716
|
}
|
|
1717
1717
|
) })
|
|
1718
1718
|
] }) }) });
|
|
1719
|
-
}, { colors: Ue } = ze,
|
|
1719
|
+
}, { colors: Ue } = ze, Go = (t) => {
|
|
1720
1720
|
t instanceof HTMLElement && (t.style.userSelect = "text");
|
|
1721
|
-
},
|
|
1721
|
+
}, qo = ({
|
|
1722
1722
|
criterionId: t,
|
|
1723
1723
|
criterionPointsPossible: i,
|
|
1724
1724
|
customRatings: n,
|
|
@@ -1737,7 +1737,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1737
1737
|
onClickRating: y,
|
|
1738
1738
|
setHoveredRatingIndex: b
|
|
1739
1739
|
}) => {
|
|
1740
|
-
const { translate: C } = S(), { possibleString: w, possibleStringRange: L } = xe(), A = De(() =>
|
|
1740
|
+
const { translate: C } = S(), { possibleString: w, possibleStringRange: L } = xe(), A = De(() => so(l, n) && oo(v.points, i, n) || Ue.contrasts.green4570, [l, n, v.points, i]), T = () => {
|
|
1741
1741
|
var N;
|
|
1742
1742
|
(N = window.getSelection()) != null && N.toString() || y(v.id);
|
|
1743
1743
|
}, R = s || c ? "brand" : "primary", M = `${Ue.contrasts.grey1214} ${o ? Ue.contrasts.grey1214 : Ue.primitives.grey14} ${Ue.contrasts.grey1214} ${Ue.contrasts.grey1214}`, F = Ma(c, u, C);
|
|
@@ -1777,7 +1777,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1777
1777
|
onMouseOver: () => b(d ? -1 : r),
|
|
1778
1778
|
onMouseOut: () => b(void 0),
|
|
1779
1779
|
onClick: T,
|
|
1780
|
-
elementRef:
|
|
1780
|
+
elementRef: Go,
|
|
1781
1781
|
themeOverride: {
|
|
1782
1782
|
borderWidthSmall: "0.125rem",
|
|
1783
1783
|
borderColorBrand: A,
|
|
@@ -1866,7 +1866,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1866
1866
|
)
|
|
1867
1867
|
}
|
|
1868
1868
|
) });
|
|
1869
|
-
},
|
|
1869
|
+
}, Yo = ({
|
|
1870
1870
|
criterion: t,
|
|
1871
1871
|
criterionAssessment: i,
|
|
1872
1872
|
criterionSelfAssessment: n,
|
|
@@ -1928,7 +1928,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1928
1928
|
);
|
|
1929
1929
|
}, _ = t.criterionUseRange ? Ct(t.ratings, A) : void 0, U = `${d / t.ratings.length}rem`;
|
|
1930
1930
|
return /* @__PURE__ */ e(
|
|
1931
|
-
|
|
1931
|
+
qo,
|
|
1932
1932
|
{
|
|
1933
1933
|
criterionId: t.id,
|
|
1934
1934
|
criterionPointsPossible: t.points,
|
|
@@ -1961,7 +1961,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
1961
1961
|
]
|
|
1962
1962
|
}
|
|
1963
1963
|
);
|
|
1964
|
-
},
|
|
1964
|
+
}, jo = ({
|
|
1965
1965
|
commentText: t,
|
|
1966
1966
|
criterion: i,
|
|
1967
1967
|
criterionSelfAssessment: n,
|
|
@@ -2037,7 +2037,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2037
2037
|
] }) })
|
|
2038
2038
|
}
|
|
2039
2039
|
);
|
|
2040
|
-
}, { colors:
|
|
2040
|
+
}, { colors: Zo, borders: Ko } = ze, Qo = ({
|
|
2041
2041
|
colCount: t,
|
|
2042
2042
|
criterion: i,
|
|
2043
2043
|
criterionAssessment: n,
|
|
@@ -2079,8 +2079,8 @@ const { colors: Ji } = ze, en = ({
|
|
|
2079
2079
|
"tr",
|
|
2080
2080
|
{
|
|
2081
2081
|
style: {
|
|
2082
|
-
borderWidth: d ? "0" : `${
|
|
2083
|
-
borderBottomColor:
|
|
2082
|
+
borderWidth: d ? "0" : `${Ko.widthSmall} 0`,
|
|
2083
|
+
borderBottomColor: Zo.primitives.grey14,
|
|
2084
2084
|
borderBottomStyle: "solid"
|
|
2085
2085
|
},
|
|
2086
2086
|
children: [
|
|
@@ -2107,7 +2107,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2107
2107
|
/* @__PURE__ */ e(f, { as: "div", margin: "small 0 0 0", children: ((te = i.longDescription) == null ? void 0 : te.trim()) && /* @__PURE__ */ h(ne, { children: [
|
|
2108
2108
|
/* @__PURE__ */ e(Ke, { onClick: () => H(!0), display: "block", children: /* @__PURE__ */ e(P, { size: "x-small", children: R.assessmentViewLongerDescription }) }),
|
|
2109
2109
|
/* @__PURE__ */ e(
|
|
2110
|
-
|
|
2110
|
+
Ho,
|
|
2111
2111
|
{
|
|
2112
2112
|
longDescription: i.longDescription,
|
|
2113
2113
|
onClose: () => H(!1),
|
|
@@ -2122,7 +2122,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2122
2122
|
}
|
|
2123
2123
|
),
|
|
2124
2124
|
l ? /* @__PURE__ */ e(
|
|
2125
|
-
|
|
2125
|
+
jo,
|
|
2126
2126
|
{
|
|
2127
2127
|
commentText: N,
|
|
2128
2128
|
criterion: i,
|
|
@@ -2139,7 +2139,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2139
2139
|
updateAssessmentData: j
|
|
2140
2140
|
}
|
|
2141
2141
|
) : /* @__PURE__ */ e(
|
|
2142
|
-
|
|
2142
|
+
Yo,
|
|
2143
2143
|
{
|
|
2144
2144
|
criterion: i,
|
|
2145
2145
|
criterionAssessment: n,
|
|
@@ -2155,7 +2155,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2155
2155
|
}
|
|
2156
2156
|
),
|
|
2157
2157
|
u && /* @__PURE__ */ e(
|
|
2158
|
-
|
|
2158
|
+
Uo,
|
|
2159
2159
|
{
|
|
2160
2160
|
criterion: i,
|
|
2161
2161
|
hidePoints: s,
|
|
@@ -2173,7 +2173,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2173
2173
|
}
|
|
2174
2174
|
),
|
|
2175
2175
|
!re && /* @__PURE__ */ e(
|
|
2176
|
-
|
|
2176
|
+
Vo,
|
|
2177
2177
|
{
|
|
2178
2178
|
colCount: t,
|
|
2179
2179
|
commentText: N,
|
|
@@ -2193,7 +2193,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2193
2193
|
background: vi.primitives.grey11,
|
|
2194
2194
|
borderTop: `1px solid ${vi.primitives.grey14}`,
|
|
2195
2195
|
padding: "0.438rem 0.75rem"
|
|
2196
|
-
},
|
|
2196
|
+
}, Xo = ({
|
|
2197
2197
|
colCount: t,
|
|
2198
2198
|
pointsAssigned: i,
|
|
2199
2199
|
pointsPossible: n
|
|
@@ -2222,7 +2222,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2222
2222
|
}
|
|
2223
2223
|
) })
|
|
2224
2224
|
] }) });
|
|
2225
|
-
}, { colors: Gt } = ze,
|
|
2225
|
+
}, { colors: Gt } = ze, Jo = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(Qe, { featureFlags: t.featureFlags, children: /* @__PURE__ */ e(el, { ...t }) }) }), el = ({
|
|
2226
2226
|
criteria: t,
|
|
2227
2227
|
customRatings: i,
|
|
2228
2228
|
hidePoints: n,
|
|
@@ -2261,7 +2261,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2261
2261
|
}, [r, A, C]), U = De(
|
|
2262
2262
|
() => Oa(u),
|
|
2263
2263
|
[u]
|
|
2264
|
-
), H = De(() =>
|
|
2264
|
+
), H = De(() => ro(t), [t]);
|
|
2265
2265
|
return /* @__PURE__ */ h(
|
|
2266
2266
|
f,
|
|
2267
2267
|
{
|
|
@@ -2282,7 +2282,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2282
2282
|
themeOverride: { paddingXSmall: "0.438rem" },
|
|
2283
2283
|
children: /* @__PURE__ */ h(p, { justifyItems: "space-between", alignItems: "center", padding: "0", children: [
|
|
2284
2284
|
/* @__PURE__ */ e(P, { weight: "bold", children: v }),
|
|
2285
|
-
l && /* @__PURE__ */ e(
|
|
2285
|
+
l && /* @__PURE__ */ e(zo, {})
|
|
2286
2286
|
] })
|
|
2287
2287
|
}
|
|
2288
2288
|
),
|
|
@@ -2320,7 +2320,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2320
2320
|
(K) => K.criterionId === z.id
|
|
2321
2321
|
), Z = t.length - 1 === B;
|
|
2322
2322
|
return /* @__PURE__ */ e(
|
|
2323
|
-
|
|
2323
|
+
Qo,
|
|
2324
2324
|
{
|
|
2325
2325
|
colCount: _.length,
|
|
2326
2326
|
criterion: z,
|
|
@@ -2349,7 +2349,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2349
2349
|
);
|
|
2350
2350
|
}) }),
|
|
2351
2351
|
!n && /* @__PURE__ */ e(
|
|
2352
|
-
|
|
2352
|
+
Xo,
|
|
2353
2353
|
{
|
|
2354
2354
|
colCount: _.length,
|
|
2355
2355
|
pointsAssigned: U,
|
|
@@ -2362,7 +2362,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2362
2362
|
]
|
|
2363
2363
|
}
|
|
2364
2364
|
);
|
|
2365
|
-
},
|
|
2365
|
+
}, tl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(Qe, { featureFlags: t.featureFlags, children: /* @__PURE__ */ e(il, { ...t }) }) }), il = ({
|
|
2366
2366
|
buttonDisplay: t,
|
|
2367
2367
|
criteria: i,
|
|
2368
2368
|
currentUserId: n,
|
|
@@ -2401,7 +2401,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2401
2401
|
validate: Q,
|
|
2402
2402
|
submit: se,
|
|
2403
2403
|
isSubmitting: X
|
|
2404
|
-
} =
|
|
2404
|
+
} = po({
|
|
2405
2405
|
criteria: i,
|
|
2406
2406
|
rubricAssessmentData: I,
|
|
2407
2407
|
hidePoints: a,
|
|
@@ -2410,7 +2410,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2410
2410
|
outcomeExtraCreditEnabled: _,
|
|
2411
2411
|
onSubmit: T
|
|
2412
2412
|
}), [j, re] = x(!1), me = ue(null), V = ue(null), ae = ue(0), te = De(
|
|
2413
|
-
() => j ?
|
|
2413
|
+
() => j ? ho(b, C) : [],
|
|
2414
2414
|
[b, j, C]
|
|
2415
2415
|
);
|
|
2416
2416
|
le(() => {
|
|
@@ -2451,7 +2451,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2451
2451
|
a
|
|
2452
2452
|
]);
|
|
2453
2453
|
const O = () => H && !l ? /* @__PURE__ */ e(
|
|
2454
|
-
|
|
2454
|
+
Jo,
|
|
2455
2455
|
{
|
|
2456
2456
|
translations: N,
|
|
2457
2457
|
criteria: i,
|
|
@@ -2471,7 +2471,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2471
2471
|
validationErrors: K
|
|
2472
2472
|
}
|
|
2473
2473
|
) : /* @__PURE__ */ e(
|
|
2474
|
-
|
|
2474
|
+
Bo,
|
|
2475
2475
|
{
|
|
2476
2476
|
buttonDisplay: t,
|
|
2477
2477
|
criteria: i,
|
|
@@ -2504,7 +2504,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2504
2504
|
},
|
|
2505
2505
|
children: /* @__PURE__ */ h(p, { as: "div", direction: "column", children: [
|
|
2506
2506
|
/* @__PURE__ */ e(p.Item, { as: "header", children: /* @__PURE__ */ e(
|
|
2507
|
-
|
|
2507
|
+
Co,
|
|
2508
2508
|
{
|
|
2509
2509
|
hidePoints: a,
|
|
2510
2510
|
instructorPoints: q,
|
|
@@ -2524,7 +2524,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2524
2524
|
) }),
|
|
2525
2525
|
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, as: "div", id: "rubric-assessment-view-container", children: /* @__PURE__ */ e(f, { as: "div", overflowY: "auto", children: O() }) }),
|
|
2526
2526
|
Le && /* @__PURE__ */ e(p.Item, { as: "footer", children: /* @__PURE__ */ e(
|
|
2527
|
-
|
|
2527
|
+
fo,
|
|
2528
2528
|
{
|
|
2529
2529
|
isPreviewMode: s,
|
|
2530
2530
|
showCancelButton: u && !o,
|
|
@@ -2540,7 +2540,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2540
2540
|
] })
|
|
2541
2541
|
}
|
|
2542
2542
|
);
|
|
2543
|
-
},
|
|
2543
|
+
}, nl = (t) => /* @__PURE__ */ e(tl, { ...t }), Ei = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(al, { ...t }) }), al = ({
|
|
2544
2544
|
currentUserId: t,
|
|
2545
2545
|
featureFlags: i,
|
|
2546
2546
|
hidePoints: n = !1,
|
|
@@ -2576,7 +2576,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2576
2576
|
id: "enhanced-rubric-assessment-tray",
|
|
2577
2577
|
"data-testid": "enhanced-rubric-assessment-tray",
|
|
2578
2578
|
children: s || !u ? /* @__PURE__ */ e(We, {}) : /* @__PURE__ */ e(f, { as: "div", padding: "medium medium 0 medium", themeOverride: { paddingMedium: "1rem" }, children: /* @__PURE__ */ e(
|
|
2579
|
-
|
|
2579
|
+
nl,
|
|
2580
2580
|
{
|
|
2581
2581
|
translations: w,
|
|
2582
2582
|
buttonDisplay: u.buttonDisplay ?? "level",
|
|
@@ -2603,7 +2603,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2603
2603
|
) })
|
|
2604
2604
|
}
|
|
2605
2605
|
);
|
|
2606
|
-
},
|
|
2606
|
+
}, rl = qe`
|
|
2607
2607
|
mutation SetRubricSelfAssessment($assignmentId: ID!, $enabled: Boolean!) {
|
|
2608
2608
|
setRubricSelfAssessment(
|
|
2609
2609
|
input: { assignmentId: $assignmentId, rubricSelfAssessmentEnabled: $enabled }
|
|
@@ -2614,14 +2614,14 @@ const { colors: Ji } = ze, en = ({
|
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
2616
2616
|
}
|
|
2617
|
-
`,
|
|
2617
|
+
`, sl = qe`
|
|
2618
2618
|
query GetAssignmentRubricSelfAssessmentSettings($assignmentId: ID!) {
|
|
2619
2619
|
assignment(id: $assignmentId) {
|
|
2620
2620
|
canUpdateRubricSelfAssessment
|
|
2621
2621
|
rubricSelfAssessmentEnabled
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
|
-
`,
|
|
2624
|
+
`, ol = async ({
|
|
2625
2625
|
courseId: t,
|
|
2626
2626
|
assignmentId: i,
|
|
2627
2627
|
rubricId: n,
|
|
@@ -2661,7 +2661,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2661
2661
|
associationCount: u.rubric_association.association_count ?? 0
|
|
2662
2662
|
}
|
|
2663
2663
|
};
|
|
2664
|
-
},
|
|
2664
|
+
}, ll = async ({
|
|
2665
2665
|
courseId: t,
|
|
2666
2666
|
rubricAssociationId: i
|
|
2667
2667
|
}) => {
|
|
@@ -2673,23 +2673,23 @@ const { colors: Ji } = ze, en = ({
|
|
|
2673
2673
|
},
|
|
2674
2674
|
k.unknown()
|
|
2675
2675
|
);
|
|
2676
|
-
},
|
|
2676
|
+
}, dl = async (t, i, n) => {
|
|
2677
2677
|
var r, s;
|
|
2678
|
-
if ((s = (r = (await t(
|
|
2678
|
+
if ((s = (r = (await t(rl, {
|
|
2679
2679
|
assignmentId: i,
|
|
2680
2680
|
enabled: n
|
|
2681
2681
|
})).setRubricSelfAssessment) == null ? void 0 : r.errors) != null && s.length)
|
|
2682
2682
|
throw new Error("Failed to set rubric self assessment on assignment");
|
|
2683
|
-
},
|
|
2683
|
+
}, cl = async (t, i) => {
|
|
2684
2684
|
const { assignment: n } = await t(
|
|
2685
|
-
|
|
2685
|
+
sl,
|
|
2686
2686
|
{ assignmentId: i }
|
|
2687
2687
|
);
|
|
2688
2688
|
return {
|
|
2689
2689
|
canUpdateRubricSelfAssessment: (n == null ? void 0 : n.canUpdateRubricSelfAssessment) ?? !1,
|
|
2690
2690
|
rubricSelfAssessmentEnabled: (n == null ? void 0 : n.rubricSelfAssessmentEnabled) ?? !1
|
|
2691
2691
|
};
|
|
2692
|
-
},
|
|
2692
|
+
}, ul = async ({
|
|
2693
2693
|
courseId: t
|
|
2694
2694
|
}) => {
|
|
2695
2695
|
const { data: i } = await _e(
|
|
@@ -2701,7 +2701,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2701
2701
|
contextCode: n.context_code,
|
|
2702
2702
|
name: n.name
|
|
2703
2703
|
}));
|
|
2704
|
-
}, ja = 100,
|
|
2704
|
+
}, ja = 100, ml = async ({
|
|
2705
2705
|
courseId: t,
|
|
2706
2706
|
contextCode: i,
|
|
2707
2707
|
page: n,
|
|
@@ -2718,7 +2718,7 @@ const { colors: Ji } = ze, en = ({
|
|
|
2718
2718
|
rubricAssociation: Ci(u.rubric_association),
|
|
2719
2719
|
rubric: Ii(u.rubric_association.rubric)
|
|
2720
2720
|
})), totalPages: l };
|
|
2721
|
-
},
|
|
2721
|
+
}, hl = async (t, i) => {
|
|
2722
2722
|
const { data: n } = await _e(
|
|
2723
2723
|
{ path: `/courses/${t}/assignments/${i}/rubric_data`, method: "GET" },
|
|
2724
2724
|
k.custom()
|
|
@@ -2733,15 +2733,15 @@ const { colors: Ji } = ze, en = ({
|
|
|
2733
2733
|
} : void 0
|
|
2734
2734
|
};
|
|
2735
2735
|
};
|
|
2736
|
-
function
|
|
2736
|
+
function pl(t, i) {
|
|
2737
2737
|
return ut({
|
|
2738
2738
|
queryKey: ["assignment-rubric", t, i],
|
|
2739
|
-
queryFn: () =>
|
|
2739
|
+
queryFn: () => hl(t, i),
|
|
2740
2740
|
enabled: !!t && !!i,
|
|
2741
2741
|
staleTime: 5 * 60 * 1e3
|
|
2742
2742
|
});
|
|
2743
2743
|
}
|
|
2744
|
-
const
|
|
2744
|
+
const gl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(fl, { ...t }) }), fl = ({
|
|
2745
2745
|
shouldUnlink: t,
|
|
2746
2746
|
isOpen: i,
|
|
2747
2747
|
onConfirm: n,
|
|
@@ -2786,7 +2786,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
2786
2786
|
additionalPromptInfo: "",
|
|
2787
2787
|
gradeLevel: "higher-ed",
|
|
2788
2788
|
standard: ""
|
|
2789
|
-
}, vt = 1e3, nn = 1e3, an = 2, rn = (t) => Array.from({ length: Math.max(t - an + 1, 0) }, (i, n) => an + n),
|
|
2789
|
+
}, vt = 1e3, nn = 1e3, an = 2, rn = (t) => Array.from({ length: Math.max(t - an + 1, 0) }, (i, n) => an + n), vl = [
|
|
2790
2790
|
"higher-ed",
|
|
2791
2791
|
"twelfth",
|
|
2792
2792
|
"eleventh",
|
|
@@ -2801,7 +2801,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
2801
2801
|
"second",
|
|
2802
2802
|
"first",
|
|
2803
2803
|
"kindergarten"
|
|
2804
|
-
],
|
|
2804
|
+
], bl = {
|
|
2805
2805
|
"higher-ed": "gradeLevelHigherEd",
|
|
2806
2806
|
twelfth: "gradeLevelTwelfth",
|
|
2807
2807
|
eleventh: "gradeLevelEleventh",
|
|
@@ -2816,7 +2816,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
2816
2816
|
second: "gradeLevelSecond",
|
|
2817
2817
|
first: "gradeLevelFirst",
|
|
2818
2818
|
kindergarten: "gradeLevelKindergarten"
|
|
2819
|
-
},
|
|
2819
|
+
}, Il = ({
|
|
2820
2820
|
maxCriterionCount: t,
|
|
2821
2821
|
maxRatingCount: i,
|
|
2822
2822
|
assignmentPointsPossible: n
|
|
@@ -2825,10 +2825,10 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
2825
2825
|
criteriaCount: Math.min(St.criteriaCount, t),
|
|
2826
2826
|
ratingCount: Math.min(St.ratingCount, i),
|
|
2827
2827
|
totalPoints: n ? n.toString() : St.totalPoints
|
|
2828
|
-
}),
|
|
2828
|
+
}), Cl = (t) => {
|
|
2829
2829
|
const i = Number.parseFloat(t);
|
|
2830
2830
|
return !(Number.isNaN(i) || i < 0);
|
|
2831
|
-
},
|
|
2831
|
+
}, yl = ({
|
|
2832
2832
|
courseId: t,
|
|
2833
2833
|
assignmentId: i,
|
|
2834
2834
|
generateOptions: n,
|
|
@@ -2870,7 +2870,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
2870
2870
|
generateCriteriaMutation: g,
|
|
2871
2871
|
generateResponseId: c
|
|
2872
2872
|
};
|
|
2873
|
-
},
|
|
2873
|
+
}, Ll = ({ criteriaRef: t, setRubricFormField: i }) => {
|
|
2874
2874
|
const { translations: n } = S(), { notify: a } = ge(), [r, s] = x(!1), o = () => {
|
|
2875
2875
|
s(!0);
|
|
2876
2876
|
}, l = () => {
|
|
@@ -2906,7 +2906,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
2906
2906
|
) ? a({ type: "error", message: n.outcomeDialogDuplicateWarning }) : (v.push(m), i("pointsPossible", yi(v)), i("criteria", v)), l();
|
|
2907
2907
|
}
|
|
2908
2908
|
};
|
|
2909
|
-
},
|
|
2909
|
+
}, Tl = ({
|
|
2910
2910
|
courseId: t,
|
|
2911
2911
|
assignmentId: i,
|
|
2912
2912
|
criteriaRef: n,
|
|
@@ -2985,7 +2985,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
2985
2985
|
regenerateResponseId: c.id,
|
|
2986
2986
|
regenerateResponseType: c.type
|
|
2987
2987
|
};
|
|
2988
|
-
},
|
|
2988
|
+
}, wl = ({ isOpen: t, onConfirm: i, onDismiss: n }) => {
|
|
2989
2989
|
const { translations: a } = S();
|
|
2990
2990
|
return /* @__PURE__ */ h(
|
|
2991
2991
|
E,
|
|
@@ -3123,7 +3123,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
3123
3123
|
}
|
|
3124
3124
|
]
|
|
3125
3125
|
}
|
|
3126
|
-
],
|
|
3126
|
+
], Al = {
|
|
3127
3127
|
aiInformation: {
|
|
3128
3128
|
data: [
|
|
3129
3129
|
{
|
|
@@ -3285,7 +3285,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
3285
3285
|
}
|
|
3286
3286
|
]
|
|
3287
3287
|
}
|
|
3288
|
-
],
|
|
3288
|
+
], Sl = {
|
|
3289
3289
|
aiInformation: {
|
|
3290
3290
|
data: [
|
|
3291
3291
|
{
|
|
@@ -3448,7 +3448,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
3448
3448
|
}
|
|
3449
3449
|
]
|
|
3450
3450
|
}
|
|
3451
|
-
],
|
|
3451
|
+
], xl = {
|
|
3452
3452
|
aiInformation: {
|
|
3453
3453
|
data: [
|
|
3454
3454
|
{
|
|
@@ -3611,7 +3611,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
3611
3611
|
}
|
|
3612
3612
|
]
|
|
3613
3613
|
}
|
|
3614
|
-
],
|
|
3614
|
+
], Rl = {
|
|
3615
3615
|
aiInformation: {
|
|
3616
3616
|
data: [
|
|
3617
3617
|
{
|
|
@@ -3773,7 +3773,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
3773
3773
|
}
|
|
3774
3774
|
]
|
|
3775
3775
|
}
|
|
3776
|
-
],
|
|
3776
|
+
], Dl = {
|
|
3777
3777
|
aiInformation: {
|
|
3778
3778
|
data: [
|
|
3779
3779
|
{
|
|
@@ -3935,7 +3935,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
3935
3935
|
}
|
|
3936
3936
|
]
|
|
3937
3937
|
}
|
|
3938
|
-
],
|
|
3938
|
+
], Pl = {
|
|
3939
3939
|
aiInformation: {
|
|
3940
3940
|
data: [
|
|
3941
3941
|
{
|
|
@@ -4097,7 +4097,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
4097
4097
|
}
|
|
4098
4098
|
]
|
|
4099
4099
|
}
|
|
4100
|
-
],
|
|
4100
|
+
], Fl = {
|
|
4101
4101
|
aiInformation: {
|
|
4102
4102
|
data: [
|
|
4103
4103
|
{
|
|
@@ -4259,7 +4259,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
4259
4259
|
}
|
|
4260
4260
|
]
|
|
4261
4261
|
}
|
|
4262
|
-
],
|
|
4262
|
+
], kl = {
|
|
4263
4263
|
aiInformation: {
|
|
4264
4264
|
data: [
|
|
4265
4265
|
{
|
|
@@ -4421,7 +4421,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
4421
4421
|
}
|
|
4422
4422
|
]
|
|
4423
4423
|
}
|
|
4424
|
-
],
|
|
4424
|
+
], _l = {
|
|
4425
4425
|
aiInformation: {
|
|
4426
4426
|
data: [
|
|
4427
4427
|
{
|
|
@@ -4583,7 +4583,7 @@ const pl = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children
|
|
|
4583
4583
|
}
|
|
4584
4584
|
]
|
|
4585
4585
|
}
|
|
4586
|
-
],
|
|
4586
|
+
], El = {
|
|
4587
4587
|
aiInformation: {
|
|
4588
4588
|
data: [
|
|
4589
4589
|
{
|
|
@@ -4746,7 +4746,7 @@ model.`
|
|
|
4746
4746
|
}
|
|
4747
4747
|
]
|
|
4748
4748
|
}
|
|
4749
|
-
],
|
|
4749
|
+
], Ml = {
|
|
4750
4750
|
aiInformation: {
|
|
4751
4751
|
data: [
|
|
4752
4752
|
{
|
|
@@ -4908,7 +4908,7 @@ model.`
|
|
|
4908
4908
|
}
|
|
4909
4909
|
]
|
|
4910
4910
|
}
|
|
4911
|
-
],
|
|
4911
|
+
], Nl = {
|
|
4912
4912
|
aiInformation: {
|
|
4913
4913
|
data: [
|
|
4914
4914
|
{
|
|
@@ -5070,7 +5070,7 @@ model.`
|
|
|
5070
5070
|
}
|
|
5071
5071
|
]
|
|
5072
5072
|
}
|
|
5073
|
-
],
|
|
5073
|
+
], Ol = {
|
|
5074
5074
|
aiInformation: {
|
|
5075
5075
|
data: [
|
|
5076
5076
|
{
|
|
@@ -5233,7 +5233,7 @@ model.`
|
|
|
5233
5233
|
}
|
|
5234
5234
|
]
|
|
5235
5235
|
}
|
|
5236
|
-
],
|
|
5236
|
+
], Bl = {
|
|
5237
5237
|
aiInformation: {
|
|
5238
5238
|
data: [
|
|
5239
5239
|
{
|
|
@@ -5396,7 +5396,7 @@ model.`
|
|
|
5396
5396
|
}
|
|
5397
5397
|
]
|
|
5398
5398
|
}
|
|
5399
|
-
],
|
|
5399
|
+
], $l = {
|
|
5400
5400
|
aiInformation: {
|
|
5401
5401
|
data: [
|
|
5402
5402
|
{
|
|
@@ -5558,7 +5558,7 @@ model.`
|
|
|
5558
5558
|
}
|
|
5559
5559
|
]
|
|
5560
5560
|
}
|
|
5561
|
-
],
|
|
5561
|
+
], zl = {
|
|
5562
5562
|
aiInformation: {
|
|
5563
5563
|
data: [
|
|
5564
5564
|
{
|
|
@@ -5720,7 +5720,7 @@ model.`
|
|
|
5720
5720
|
}
|
|
5721
5721
|
]
|
|
5722
5722
|
}
|
|
5723
|
-
],
|
|
5723
|
+
], Hl = {
|
|
5724
5724
|
aiInformation: {
|
|
5725
5725
|
data: [
|
|
5726
5726
|
{
|
|
@@ -5882,7 +5882,7 @@ model.`
|
|
|
5882
5882
|
}
|
|
5883
5883
|
]
|
|
5884
5884
|
}
|
|
5885
|
-
],
|
|
5885
|
+
], Wl = {
|
|
5886
5886
|
aiInformation: {
|
|
5887
5887
|
data: [
|
|
5888
5888
|
{
|
|
@@ -6044,7 +6044,7 @@ model.`
|
|
|
6044
6044
|
}
|
|
6045
6045
|
]
|
|
6046
6046
|
}
|
|
6047
|
-
],
|
|
6047
|
+
], Vl = {
|
|
6048
6048
|
aiInformation: {
|
|
6049
6049
|
data: [
|
|
6050
6050
|
{
|
|
@@ -6207,7 +6207,7 @@ model.`
|
|
|
6207
6207
|
}
|
|
6208
6208
|
]
|
|
6209
6209
|
}
|
|
6210
|
-
],
|
|
6210
|
+
], Ul = {
|
|
6211
6211
|
aiInformation: {
|
|
6212
6212
|
data: [
|
|
6213
6213
|
{
|
|
@@ -6268,39 +6268,39 @@ model.`
|
|
|
6268
6268
|
for (let a in t) n[a] = t[a][i];
|
|
6269
6269
|
return n;
|
|
6270
6270
|
}, Bt = {
|
|
6271
|
-
aiexperiences:
|
|
6272
|
-
askyourdata:
|
|
6273
|
-
assessmentauthoringassistance:
|
|
6274
|
-
canvasa11ycheckeralttextgenerator:
|
|
6275
|
-
canvasa11ycheckertablecaptions:
|
|
6276
|
-
canvascoursetranslation:
|
|
6277
|
-
canvasdiscussionsummaries:
|
|
6278
|
-
canvasgradingassistance:
|
|
6279
|
-
canvasinboxtranslation:
|
|
6280
|
-
careerassistant:
|
|
6281
|
-
conversionalignment:
|
|
6282
|
-
discussioninsights:
|
|
6283
|
-
igniteagent:
|
|
6284
|
-
itemauthoringassistance:
|
|
6285
|
-
portfolios:
|
|
6286
|
-
quickreassess:
|
|
6287
|
-
rubricgenerator:
|
|
6288
|
-
smartsearch:
|
|
6289
|
-
studytools:
|
|
6290
|
-
supportpandabot:
|
|
6271
|
+
aiexperiences: Al,
|
|
6272
|
+
askyourdata: Sl,
|
|
6273
|
+
assessmentauthoringassistance: xl,
|
|
6274
|
+
canvasa11ycheckeralttextgenerator: Rl,
|
|
6275
|
+
canvasa11ycheckertablecaptions: Dl,
|
|
6276
|
+
canvascoursetranslation: Pl,
|
|
6277
|
+
canvasdiscussionsummaries: Fl,
|
|
6278
|
+
canvasgradingassistance: kl,
|
|
6279
|
+
canvasinboxtranslation: _l,
|
|
6280
|
+
careerassistant: El,
|
|
6281
|
+
conversionalignment: Ml,
|
|
6282
|
+
discussioninsights: Nl,
|
|
6283
|
+
igniteagent: Ol,
|
|
6284
|
+
itemauthoringassistance: Bl,
|
|
6285
|
+
portfolios: $l,
|
|
6286
|
+
quickreassess: zl,
|
|
6287
|
+
rubricgenerator: Hl,
|
|
6288
|
+
smartsearch: Wl,
|
|
6289
|
+
studytools: Vl,
|
|
6290
|
+
supportpandabot: Ul
|
|
6291
6291
|
};
|
|
6292
6292
|
Mi(Bt, "nutritionFacts");
|
|
6293
6293
|
Mi(Bt, "dataPermissionLevels");
|
|
6294
6294
|
Mi(Bt, "aiInformation");
|
|
6295
|
-
const
|
|
6295
|
+
const Gl = {
|
|
6296
6296
|
primary: "#273540",
|
|
6297
6297
|
secondary: "#FFFFFF"
|
|
6298
6298
|
};
|
|
6299
|
-
function
|
|
6299
|
+
function ql({
|
|
6300
6300
|
color: t = "primary",
|
|
6301
6301
|
size: i = 18
|
|
6302
6302
|
}) {
|
|
6303
|
-
const n =
|
|
6303
|
+
const n = Gl[t];
|
|
6304
6304
|
return /* @__PURE__ */ h(
|
|
6305
6305
|
"svg",
|
|
6306
6306
|
{
|
|
@@ -6327,7 +6327,7 @@ function Gl({
|
|
|
6327
6327
|
}
|
|
6328
6328
|
);
|
|
6329
6329
|
}
|
|
6330
|
-
function
|
|
6330
|
+
function Yl({
|
|
6331
6331
|
aiInformation: t,
|
|
6332
6332
|
dataPermissionLevels: i,
|
|
6333
6333
|
nutritionFacts: n,
|
|
@@ -6340,7 +6340,7 @@ function ql({
|
|
|
6340
6340
|
trigger: c
|
|
6341
6341
|
}) {
|
|
6342
6342
|
return /* @__PURE__ */ e(
|
|
6343
|
-
|
|
6343
|
+
Hs,
|
|
6344
6344
|
{
|
|
6345
6345
|
fullscreenModals: s,
|
|
6346
6346
|
trigger: c ?? /* @__PURE__ */ e(
|
|
@@ -6353,7 +6353,7 @@ function ql({
|
|
|
6353
6353
|
withBorder: !1,
|
|
6354
6354
|
shape: "circle",
|
|
6355
6355
|
color: l,
|
|
6356
|
-
children: /* @__PURE__ */ e(
|
|
6356
|
+
children: /* @__PURE__ */ e(ql, { size: r, color: o })
|
|
6357
6357
|
}
|
|
6358
6358
|
),
|
|
6359
6359
|
title: a.title,
|
|
@@ -6377,7 +6377,7 @@ function ql({
|
|
|
6377
6377
|
const Ni = ({ enabled: t }) => {
|
|
6378
6378
|
const { translations: i } = S(), n = Bt.rubricgenerator;
|
|
6379
6379
|
return !t || !n ? null : /* @__PURE__ */ e(
|
|
6380
|
-
|
|
6380
|
+
Yl,
|
|
6381
6381
|
{
|
|
6382
6382
|
aiInformation: n.aiInformation.data,
|
|
6383
6383
|
dataPermissionLevels: n.dataPermissionLevels.data,
|
|
@@ -6402,11 +6402,11 @@ const Ni = ({ enabled: t }) => {
|
|
|
6402
6402
|
withBackground: !1
|
|
6403
6403
|
}
|
|
6404
6404
|
);
|
|
6405
|
-
},
|
|
6405
|
+
}, jl = {
|
|
6406
6406
|
small: { maxWidth: 479 },
|
|
6407
6407
|
medium: { minWidth: 480, maxWidth: 767 },
|
|
6408
6408
|
large: { minWidth: 768 }
|
|
6409
|
-
},
|
|
6409
|
+
}, Zl = ({
|
|
6410
6410
|
formOptions: t,
|
|
6411
6411
|
criterionUseRangeEnabled: i,
|
|
6412
6412
|
criteriaBeingGenerated: n,
|
|
@@ -6416,7 +6416,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6416
6416
|
onFormOptionsChange: o
|
|
6417
6417
|
}) => {
|
|
6418
6418
|
const { translations: l } = S(), { notify: d } = ge(), c = rn(a), u = rn(r), m = () => {
|
|
6419
|
-
if (!
|
|
6419
|
+
if (!Cl(t.totalPoints)) {
|
|
6420
6420
|
d({ type: "error", message: l.generateCriteriaTotalPointsError });
|
|
6421
6421
|
return;
|
|
6422
6422
|
}
|
|
@@ -6437,7 +6437,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6437
6437
|
/* @__PURE__ */ e(P, { children: l.generateFormHeading }),
|
|
6438
6438
|
/* @__PURE__ */ e(Ni, { enabled: !0 })
|
|
6439
6439
|
] }) }),
|
|
6440
|
-
/* @__PURE__ */ e(Je, { match: "element", query:
|
|
6440
|
+
/* @__PURE__ */ e(Je, { match: "element", query: jl, children: (v, g) => {
|
|
6441
6441
|
const I = (g == null ? void 0 : g.includes("large")) ?? !1, y = (g == null ? void 0 : g.includes("medium")) ?? !1, b = (g == null ? void 0 : g.includes("small")) ?? !1, C = b ? "100%" : y ? "45%" : void 0;
|
|
6442
6442
|
return /* @__PURE__ */ h(ne, { children: [
|
|
6443
6443
|
/* @__PURE__ */ h(
|
|
@@ -6460,7 +6460,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6460
6460
|
gradeLevel: L.toString()
|
|
6461
6461
|
});
|
|
6462
6462
|
},
|
|
6463
|
-
children:
|
|
6463
|
+
children: vl.map((w) => /* @__PURE__ */ e(Fe, { id: `grade-level-${w}`, value: w, children: l[bl[w]] }, w))
|
|
6464
6464
|
}
|
|
6465
6465
|
) }),
|
|
6466
6466
|
/* @__PURE__ */ e(p.Item, { size: C, shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ e(
|
|
@@ -6598,7 +6598,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6598
6598
|
]
|
|
6599
6599
|
}
|
|
6600
6600
|
);
|
|
6601
|
-
},
|
|
6601
|
+
}, Kl = ({
|
|
6602
6602
|
courseId: t,
|
|
6603
6603
|
responseId: i,
|
|
6604
6604
|
responseType: n,
|
|
@@ -6622,7 +6622,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6622
6622
|
}
|
|
6623
6623
|
});
|
|
6624
6624
|
return { submitFeedback: l, isPending: d };
|
|
6625
|
-
},
|
|
6625
|
+
}, Ql = ({
|
|
6626
6626
|
courseId: t,
|
|
6627
6627
|
feedbackType: i,
|
|
6628
6628
|
isOpen: n,
|
|
@@ -6631,7 +6631,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6631
6631
|
onSuccess: s,
|
|
6632
6632
|
onCancel: o
|
|
6633
6633
|
}) => {
|
|
6634
|
-
const { translations: l, translate: d } = S(), { locale: c } = ge(), [u, m] = x(""), { submitFeedback: v, isPending: g } =
|
|
6634
|
+
const { translations: l, translate: d } = S(), { locale: c } = ge(), [u, m] = x(""), { submitFeedback: v, isPending: g } = Kl({
|
|
6635
6635
|
courseId: t,
|
|
6636
6636
|
responseId: a,
|
|
6637
6637
|
responseType: r,
|
|
@@ -6710,7 +6710,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6710
6710
|
]
|
|
6711
6711
|
}
|
|
6712
6712
|
);
|
|
6713
|
-
},
|
|
6713
|
+
}, Xl = ({
|
|
6714
6714
|
courseId: t,
|
|
6715
6715
|
responseId: i,
|
|
6716
6716
|
responseType: n
|
|
@@ -6769,7 +6769,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6769
6769
|
);
|
|
6770
6770
|
} }),
|
|
6771
6771
|
/* @__PURE__ */ e(
|
|
6772
|
-
|
|
6772
|
+
Ql,
|
|
6773
6773
|
{
|
|
6774
6774
|
courseId: t,
|
|
6775
6775
|
feedbackType: o,
|
|
@@ -6781,7 +6781,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6781
6781
|
}
|
|
6782
6782
|
)
|
|
6783
6783
|
] });
|
|
6784
|
-
},
|
|
6784
|
+
}, Jl = ({
|
|
6785
6785
|
open: t,
|
|
6786
6786
|
isCriterion: i = !1,
|
|
6787
6787
|
additionalPrompt: n,
|
|
@@ -6852,7 +6852,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6852
6852
|
};
|
|
6853
6853
|
return /* @__PURE__ */ h(ne, { children: [
|
|
6854
6854
|
/* @__PURE__ */ e(
|
|
6855
|
-
|
|
6855
|
+
Jl,
|
|
6856
6856
|
{
|
|
6857
6857
|
open: o,
|
|
6858
6858
|
isCriterion: n,
|
|
@@ -6884,7 +6884,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6884
6884
|
}
|
|
6885
6885
|
)
|
|
6886
6886
|
] });
|
|
6887
|
-
},
|
|
6887
|
+
}, ed = ({
|
|
6888
6888
|
canRegenerate: t = !1,
|
|
6889
6889
|
courseId: i,
|
|
6890
6890
|
isGenerating: n = !1,
|
|
@@ -6919,7 +6919,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6919
6919
|
alignItems: "center",
|
|
6920
6920
|
children: [
|
|
6921
6921
|
i && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
6922
|
-
|
|
6922
|
+
Xl,
|
|
6923
6923
|
{
|
|
6924
6924
|
courseId: i,
|
|
6925
6925
|
responseId: a,
|
|
@@ -6942,7 +6942,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6942
6942
|
}
|
|
6943
6943
|
);
|
|
6944
6944
|
} });
|
|
6945
|
-
},
|
|
6945
|
+
}, td = ({
|
|
6946
6946
|
isOpen: t,
|
|
6947
6947
|
onChange: i,
|
|
6948
6948
|
onLeaveDifferent: n,
|
|
@@ -6990,7 +6990,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6990
6990
|
]
|
|
6991
6991
|
}
|
|
6992
6992
|
);
|
|
6993
|
-
},
|
|
6993
|
+
}, id = ({
|
|
6994
6994
|
headingLevel: t = "h3",
|
|
6995
6995
|
hidePoints: i,
|
|
6996
6996
|
hideScoreTotal: n,
|
|
@@ -7023,7 +7023,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
7023
7023
|
}
|
|
7024
7024
|
) })
|
|
7025
7025
|
] }) });
|
|
7026
|
-
},
|
|
7026
|
+
}, nd = ({ criterion: t, isOpen: i }) => {
|
|
7027
7027
|
const n = ss(), [a, r] = x([]), [s, o] = x(""), [l, d] = x(""), [c, u] = x(!1), [m, v] = x(!1), [g, I] = x(!1), [y, b] = x(0);
|
|
7028
7028
|
le(() => {
|
|
7029
7029
|
b(Yi(a));
|
|
@@ -7143,7 +7143,7 @@ function Ka({ isOpen: t, onCancel: i, onDismiss: n }) {
|
|
|
7143
7143
|
}
|
|
7144
7144
|
);
|
|
7145
7145
|
}
|
|
7146
|
-
const
|
|
7146
|
+
const ad = ({
|
|
7147
7147
|
criterionLongDescription: t,
|
|
7148
7148
|
setCriterionLongDescription: i
|
|
7149
7149
|
}) => {
|
|
@@ -7160,7 +7160,7 @@ const nd = ({
|
|
|
7160
7160
|
"data-testid": "rubric-criterion-description-input"
|
|
7161
7161
|
}
|
|
7162
7162
|
) });
|
|
7163
|
-
},
|
|
7163
|
+
}, rd = ({
|
|
7164
7164
|
savingCriterion: t,
|
|
7165
7165
|
handleDismiss: i,
|
|
7166
7166
|
saveChanges: n
|
|
@@ -7188,7 +7188,7 @@ const nd = ({
|
|
|
7188
7188
|
}
|
|
7189
7189
|
) })
|
|
7190
7190
|
] });
|
|
7191
|
-
},
|
|
7191
|
+
}, sd = ({
|
|
7192
7192
|
isFullWidth: t,
|
|
7193
7193
|
criterionDescription: i,
|
|
7194
7194
|
criterionDescriptionErrorMessage: n,
|
|
@@ -7239,7 +7239,7 @@ const nd = ({
|
|
|
7239
7239
|
size: "small",
|
|
7240
7240
|
color: "primary",
|
|
7241
7241
|
themeOverride: { smallHeight: "1.5rem" },
|
|
7242
|
-
children: /* @__PURE__ */ e(
|
|
7242
|
+
children: /* @__PURE__ */ e(Rs, {})
|
|
7243
7243
|
}
|
|
7244
7244
|
),
|
|
7245
7245
|
/* @__PURE__ */ e(
|
|
@@ -7257,7 +7257,7 @@ const nd = ({
|
|
|
7257
7257
|
] })
|
|
7258
7258
|
}
|
|
7259
7259
|
);
|
|
7260
|
-
},
|
|
7260
|
+
}, od = ({ criterionUseRange: t }) => /* @__PURE__ */ e(
|
|
7261
7261
|
"div",
|
|
7262
7262
|
{
|
|
7263
7263
|
style: {
|
|
@@ -7270,7 +7270,7 @@ const nd = ({
|
|
|
7270
7270
|
bottom: "1.688rem"
|
|
7271
7271
|
}
|
|
7272
7272
|
}
|
|
7273
|
-
),
|
|
7273
|
+
), ld = ({
|
|
7274
7274
|
isFirstIndex: t,
|
|
7275
7275
|
isLastIndex: i,
|
|
7276
7276
|
onMoveUp: n,
|
|
@@ -7389,7 +7389,7 @@ const nd = ({
|
|
|
7389
7389
|
}) => {
|
|
7390
7390
|
const { translations: d } = S(), c = i ? d.pointRangeLabel : d.pointsLabel;
|
|
7391
7391
|
return /* @__PURE__ */ e(
|
|
7392
|
-
|
|
7392
|
+
Ws,
|
|
7393
7393
|
{
|
|
7394
7394
|
inputRef: (m) => {
|
|
7395
7395
|
l && l.current && m && (l.current[t] = m);
|
|
@@ -7418,7 +7418,7 @@ const nd = ({
|
|
|
7418
7418
|
}
|
|
7419
7419
|
}
|
|
7420
7420
|
);
|
|
7421
|
-
},
|
|
7421
|
+
}, dd = ({
|
|
7422
7422
|
criterionUseRange: t,
|
|
7423
7423
|
errorMessage: i,
|
|
7424
7424
|
hidePoints: n,
|
|
@@ -7480,7 +7480,7 @@ const nd = ({
|
|
|
7480
7480
|
)
|
|
7481
7481
|
] }) }),
|
|
7482
7482
|
/* @__PURE__ */ e(p.Item, { align: "end", children: /* @__PURE__ */ e(
|
|
7483
|
-
|
|
7483
|
+
ld,
|
|
7484
7484
|
{
|
|
7485
7485
|
isFirstIndex: a === 0,
|
|
7486
7486
|
isLastIndex: I,
|
|
@@ -7511,7 +7511,7 @@ const nd = ({
|
|
|
7511
7511
|
) }),
|
|
7512
7512
|
/* @__PURE__ */ e(f, { as: "hr" })
|
|
7513
7513
|
] });
|
|
7514
|
-
},
|
|
7514
|
+
}, cd = ({
|
|
7515
7515
|
criterionUseRange: t,
|
|
7516
7516
|
errorMessage: i,
|
|
7517
7517
|
hidePoints: n,
|
|
@@ -7608,7 +7608,7 @@ const nd = ({
|
|
|
7608
7608
|
) }) })
|
|
7609
7609
|
] }) }) })
|
|
7610
7610
|
] });
|
|
7611
|
-
},
|
|
7611
|
+
}, ud = ({
|
|
7612
7612
|
checkValidation: t,
|
|
7613
7613
|
criterionUseRange: i,
|
|
7614
7614
|
rangeStart: n,
|
|
@@ -7647,15 +7647,15 @@ const nd = ({
|
|
|
7647
7647
|
pointsInputText: b,
|
|
7648
7648
|
onRemove: v
|
|
7649
7649
|
};
|
|
7650
|
-
return s ? /* @__PURE__ */ e(
|
|
7651
|
-
|
|
7650
|
+
return s ? /* @__PURE__ */ e(cd, { ...A }) : /* @__PURE__ */ e(
|
|
7651
|
+
dd,
|
|
7652
7652
|
{
|
|
7653
7653
|
...A,
|
|
7654
7654
|
isLastIndex: o,
|
|
7655
7655
|
handleMoveRating: I
|
|
7656
7656
|
}
|
|
7657
7657
|
);
|
|
7658
|
-
},
|
|
7658
|
+
}, md = ({
|
|
7659
7659
|
ratings: t,
|
|
7660
7660
|
isFullWidth: i,
|
|
7661
7661
|
handleDragStart: n,
|
|
@@ -7676,14 +7676,14 @@ const nd = ({
|
|
|
7676
7676
|
kt(La, { coordinateGetter: ya })
|
|
7677
7677
|
), b = t.map(fi);
|
|
7678
7678
|
return /* @__PURE__ */ h(f, { as: "div", position: "relative", children: [
|
|
7679
|
-
!v && i && /* @__PURE__ */ e(
|
|
7679
|
+
!v && i && /* @__PURE__ */ e(od, { criterionUseRange: u }),
|
|
7680
7680
|
/* @__PURE__ */ e(wa, { sensors: y, onDragStart: n, onDragEnd: a, children: /* @__PURE__ */ h(Aa, { items: b, strategy: Sa, children: [
|
|
7681
7681
|
t.map((C, w) => {
|
|
7682
7682
|
const L = t.length - (w + 1), A = Ct(t, w);
|
|
7683
7683
|
return /* @__PURE__ */ h(f, { as: "div", children: [
|
|
7684
7684
|
i && /* @__PURE__ */ e(qn, { onClick: () => s(w), isDragging: m }),
|
|
7685
7685
|
/* @__PURE__ */ e(
|
|
7686
|
-
|
|
7686
|
+
ud,
|
|
7687
7687
|
{
|
|
7688
7688
|
handleMoveRating: r,
|
|
7689
7689
|
index: w,
|
|
@@ -7708,7 +7708,7 @@ const nd = ({
|
|
|
7708
7708
|
!i && /* @__PURE__ */ e(f, { as: "div", margin: "large 0", children: /* @__PURE__ */ e($, { "data-testid": "add-rating-button", onClick: () => s(t.length), children: I.addRatingButtonLabel }) })
|
|
7709
7709
|
] }) })
|
|
7710
7710
|
] });
|
|
7711
|
-
},
|
|
7711
|
+
}, hd = ({ criterionUseRange: t, hidePoints: i }) => {
|
|
7712
7712
|
const { translations: n } = S();
|
|
7713
7713
|
return /* @__PURE__ */ e(f, { as: "div", margin: "medium 0 0 0", themeOverride: { marginMedium: "1.25rem" }, children: /* @__PURE__ */ h(p, { children: [
|
|
7714
7714
|
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(f, { as: "div", width: "4.125rem", children: n.ratingsHeaderDisplay }) }),
|
|
@@ -7716,7 +7716,7 @@ const nd = ({
|
|
|
7716
7716
|
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(f, { as: "div", width: "8.875rem", margin: i ? "0 0 0 x-large" : "0", children: n.ratingNameLabel }) }),
|
|
7717
7717
|
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(f, { as: "div", margin: "0 0 0 small", themeOverride: { marginSmall: "1rem" }, children: n.ratingDescriptionLabel }) })
|
|
7718
7718
|
] }) });
|
|
7719
|
-
},
|
|
7719
|
+
}, pd = ({
|
|
7720
7720
|
criterion: t,
|
|
7721
7721
|
criterionUseRangeEnabled: i,
|
|
7722
7722
|
hidePoints: n,
|
|
@@ -7749,7 +7749,7 @@ const nd = ({
|
|
|
7749
7749
|
showNameRequired: H,
|
|
7750
7750
|
hasChanges: z,
|
|
7751
7751
|
submit: B
|
|
7752
|
-
} =
|
|
7752
|
+
} = nd({ criterion: t, isOpen: r }), [W, q] = x(!1), [Z, K] = x(!1), Q = ue([]), se = (O) => {
|
|
7753
7753
|
A(O), requestAnimationFrame(() => {
|
|
7754
7754
|
var G;
|
|
7755
7755
|
n || (G = Q.current[O]) == null || G.focus();
|
|
@@ -7802,7 +7802,7 @@ const nd = ({
|
|
|
7802
7802
|
/* @__PURE__ */ h(E.Body, { children: [
|
|
7803
7803
|
/* @__PURE__ */ e(f, { as: "div", margin: "0", width: "66.5rem", children: /* @__PURE__ */ h(p, { alignItems: "start", gap: "small", wrap: "wrap", width: "100%", children: [
|
|
7804
7804
|
/* @__PURE__ */ e(p.Item, { shouldGrow: !a, children: /* @__PURE__ */ e(
|
|
7805
|
-
|
|
7805
|
+
sd,
|
|
7806
7806
|
{
|
|
7807
7807
|
isFullWidth: a,
|
|
7808
7808
|
criterionDescription: m,
|
|
@@ -7811,7 +7811,7 @@ const nd = ({
|
|
|
7811
7811
|
}
|
|
7812
7812
|
) }),
|
|
7813
7813
|
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ e(
|
|
7814
|
-
|
|
7814
|
+
ad,
|
|
7815
7815
|
{
|
|
7816
7816
|
criterionLongDescription: g,
|
|
7817
7817
|
setCriterionLongDescription: I
|
|
@@ -7874,13 +7874,13 @@ const nd = ({
|
|
|
7874
7874
|
] }) })
|
|
7875
7875
|
] }) }),
|
|
7876
7876
|
!s && /* @__PURE__ */ h(ne, { children: [
|
|
7877
|
-
a && /* @__PURE__ */ e(
|
|
7877
|
+
a && /* @__PURE__ */ e(hd, { criterionUseRange: y, hidePoints: n }),
|
|
7878
7878
|
!a && /* @__PURE__ */ h(f, { as: "div", margin: "medium 0 small", children: [
|
|
7879
7879
|
/* @__PURE__ */ e(Y, { level: "h2", as: "h2", margin: "auto auto 0", children: d.criterionModalRatingScaleHeading }),
|
|
7880
7880
|
/* @__PURE__ */ e(f, { as: "hr", margin: "xx-small 0 medium" })
|
|
7881
7881
|
] }),
|
|
7882
7882
|
/* @__PURE__ */ e(
|
|
7883
|
-
|
|
7883
|
+
md,
|
|
7884
7884
|
{
|
|
7885
7885
|
ratings: u,
|
|
7886
7886
|
isFullWidth: a ?? !1,
|
|
@@ -7901,7 +7901,7 @@ const nd = ({
|
|
|
7901
7901
|
] })
|
|
7902
7902
|
] }),
|
|
7903
7903
|
/* @__PURE__ */ e(E.Footer, { children: /* @__PURE__ */ e(
|
|
7904
|
-
|
|
7904
|
+
rd,
|
|
7905
7905
|
{
|
|
7906
7906
|
savingCriterion: _,
|
|
7907
7907
|
handleDismiss: j,
|
|
@@ -7912,7 +7912,7 @@ const nd = ({
|
|
|
7912
7912
|
}
|
|
7913
7913
|
)
|
|
7914
7914
|
] });
|
|
7915
|
-
},
|
|
7915
|
+
}, gd = ({
|
|
7916
7916
|
criterion: t,
|
|
7917
7917
|
isOpen: i,
|
|
7918
7918
|
onDismiss: n
|
|
@@ -7979,7 +7979,7 @@ const nd = ({
|
|
|
7979
7979
|
]
|
|
7980
7980
|
}
|
|
7981
7981
|
);
|
|
7982
|
-
},
|
|
7982
|
+
}, fd = ({
|
|
7983
7983
|
hideOutcomeResults: t,
|
|
7984
7984
|
hidePoints: i,
|
|
7985
7985
|
useForGrading: n,
|
|
@@ -8005,7 +8005,8 @@ const nd = ({
|
|
|
8005
8005
|
label: o.useForGradingLabel,
|
|
8006
8006
|
checked: n,
|
|
8007
8007
|
onChange: (l) => {
|
|
8008
|
-
|
|
8008
|
+
const { useForGrading: d, hideScoreTotal: c } = vs(l.target.checked);
|
|
8009
|
+
s("useForGrading", d), s("hideScoreTotal", c);
|
|
8009
8010
|
},
|
|
8010
8011
|
"data-testid": "use-for-grading-checkbox"
|
|
8011
8012
|
}
|
|
@@ -8021,9 +8022,9 @@ const nd = ({
|
|
|
8021
8022
|
) })
|
|
8022
8023
|
] })
|
|
8023
8024
|
] });
|
|
8024
|
-
},
|
|
8025
|
-
draggable:
|
|
8026
|
-
dragging:
|
|
8025
|
+
}, vd = "_draggable_zewvz_19", bd = "_dragging_zewvz_19", ce = {
|
|
8026
|
+
draggable: vd,
|
|
8027
|
+
dragging: bd,
|
|
8027
8028
|
"generated-criterion-row": "_generated-criterion-row_zewvz_27",
|
|
8028
8029
|
"criterion-row": "_criterion-row_zewvz_46",
|
|
8029
8030
|
"divided-criterion-row": "_divided-criterion-row_zewvz_51",
|
|
@@ -8033,7 +8034,7 @@ const nd = ({
|
|
|
8033
8034
|
"criterion-cell--ratings": "_criterion-cell--ratings_zewvz_70",
|
|
8034
8035
|
"criterion-cell--description": "_criterion-cell--description_zewvz_74",
|
|
8035
8036
|
"rating-scale-table": "_rating-scale-table_zewvz_82"
|
|
8036
|
-
},
|
|
8037
|
+
}, Id = ({
|
|
8037
8038
|
isCompact: t,
|
|
8038
8039
|
rowIndex: i,
|
|
8039
8040
|
onEditCriterion: n,
|
|
@@ -8195,7 +8196,7 @@ const nd = ({
|
|
|
8195
8196
|
}
|
|
8196
8197
|
);
|
|
8197
8198
|
er.displayName = "CriterionRowPopover";
|
|
8198
|
-
const
|
|
8199
|
+
const Cd = ({ disabled: t, onClick: i }) => {
|
|
8199
8200
|
const { translations: n } = S(), a = n.deleteCriterionLabel;
|
|
8200
8201
|
return /* @__PURE__ */ e(Pe, { renderTip: a, children: /* @__PURE__ */ e(
|
|
8201
8202
|
fe,
|
|
@@ -8211,7 +8212,7 @@ const Id = ({ disabled: t, onClick: i }) => {
|
|
|
8211
8212
|
children: /* @__PURE__ */ e(yt, {})
|
|
8212
8213
|
}
|
|
8213
8214
|
) });
|
|
8214
|
-
},
|
|
8215
|
+
}, yd = ({ disabled: t, onClick: i }) => {
|
|
8215
8216
|
const { translations: n } = S(), a = n.duplicateCriterionLabel;
|
|
8216
8217
|
return /* @__PURE__ */ e(Pe, { renderTip: a, children: /* @__PURE__ */ e(
|
|
8217
8218
|
fe,
|
|
@@ -8227,7 +8228,7 @@ const Id = ({ disabled: t, onClick: i }) => {
|
|
|
8227
8228
|
children: /* @__PURE__ */ e(Fa, {})
|
|
8228
8229
|
}
|
|
8229
8230
|
) });
|
|
8230
|
-
},
|
|
8231
|
+
}, Ld = ({
|
|
8231
8232
|
isLearningOutcome: t,
|
|
8232
8233
|
disabled: i,
|
|
8233
8234
|
onClick: n
|
|
@@ -8247,7 +8248,7 @@ const Id = ({ disabled: t, onClick: i }) => {
|
|
|
8247
8248
|
children: t ? /* @__PURE__ */ e(Ai, {}) : /* @__PURE__ */ e(Et, {})
|
|
8248
8249
|
}
|
|
8249
8250
|
) });
|
|
8250
|
-
},
|
|
8251
|
+
}, Td = ({
|
|
8251
8252
|
hidePoints: t,
|
|
8252
8253
|
ratings: i,
|
|
8253
8254
|
criterionUseRange: n,
|
|
@@ -8256,7 +8257,7 @@ const Id = ({ disabled: t, onClick: i }) => {
|
|
|
8256
8257
|
}) => {
|
|
8257
8258
|
const { translations: s, translate: o } = S(), { possibleString: l, possibleStringRange: d } = xe();
|
|
8258
8259
|
return /* @__PURE__ */ e(f, { as: "div", margin: `small 0 ${r ? "small" : "0"} 0`, children: /* @__PURE__ */ e(
|
|
8259
|
-
|
|
8260
|
+
Vs,
|
|
8260
8261
|
{
|
|
8261
8262
|
"data-testid": "criterion-row-rating-accordion",
|
|
8262
8263
|
defaultExpanded: a,
|
|
@@ -8290,7 +8291,7 @@ const Id = ({ disabled: t, onClick: i }) => {
|
|
|
8290
8291
|
}
|
|
8291
8292
|
) });
|
|
8292
8293
|
};
|
|
8293
|
-
function
|
|
8294
|
+
function wd(t) {
|
|
8294
8295
|
return [
|
|
8295
8296
|
ce.draggable,
|
|
8296
8297
|
ce["criterion-row"],
|
|
@@ -8299,7 +8300,7 @@ function Td(t) {
|
|
|
8299
8300
|
t.isDivided && ce["divided-criterion-row"]
|
|
8300
8301
|
].filter(Boolean).join(" ");
|
|
8301
8302
|
}
|
|
8302
|
-
const
|
|
8303
|
+
const Ad = ({
|
|
8303
8304
|
criterion: t,
|
|
8304
8305
|
criterionHeadingLevel: i = "h4",
|
|
8305
8306
|
freeFormCriterionComments: n,
|
|
@@ -8345,7 +8346,7 @@ const wd = ({
|
|
|
8345
8346
|
"section",
|
|
8346
8347
|
{
|
|
8347
8348
|
ref: q,
|
|
8348
|
-
className:
|
|
8349
|
+
className: wd({
|
|
8349
8350
|
isDragging: Q,
|
|
8350
8351
|
isGenerated: c,
|
|
8351
8352
|
isDivided: !c && !u
|
|
@@ -8395,7 +8396,7 @@ const wd = ({
|
|
|
8395
8396
|
renderTip: F.outcomeCannotEditTooltip,
|
|
8396
8397
|
"data-testid": `outcome-tooltip-${t.id}`,
|
|
8397
8398
|
children: /* @__PURE__ */ e(
|
|
8398
|
-
|
|
8399
|
+
Ds,
|
|
8399
8400
|
{
|
|
8400
8401
|
style: { marginLeft: 12 },
|
|
8401
8402
|
"data-testid": `outcome-lock-icon-${t.id}`
|
|
@@ -8433,7 +8434,7 @@ const wd = ({
|
|
|
8433
8434
|
/* @__PURE__ */ e(f, { as: "div", "data-testid": "rubric-criteria-row-long-description", children: /* @__PURE__ */ e(
|
|
8434
8435
|
P,
|
|
8435
8436
|
{
|
|
8436
|
-
dangerouslySetInnerHTML:
|
|
8437
|
+
dangerouslySetInnerHTML: bs(
|
|
8437
8438
|
va(fa(X ?? ""))
|
|
8438
8439
|
)
|
|
8439
8440
|
}
|
|
@@ -8488,16 +8489,16 @@ const wd = ({
|
|
|
8488
8489
|
) }),
|
|
8489
8490
|
!r && /* @__PURE__ */ h(ne, { children: [
|
|
8490
8491
|
/* @__PURE__ */ e(f, { as: "span", margin: "0 0 0 medium", children: /* @__PURE__ */ e(
|
|
8491
|
-
|
|
8492
|
+
Ld,
|
|
8492
8493
|
{
|
|
8493
8494
|
isLearningOutcome: !!re,
|
|
8494
8495
|
disabled: l,
|
|
8495
8496
|
onClick: g
|
|
8496
8497
|
}
|
|
8497
8498
|
) }),
|
|
8498
|
-
/* @__PURE__ */ e(f, { as: "span", margin: "0 0 0 medium", children: /* @__PURE__ */ e(
|
|
8499
|
+
/* @__PURE__ */ e(f, { as: "span", margin: "0 0 0 medium", children: /* @__PURE__ */ e(Cd, { disabled: l, onClick: m }) }),
|
|
8499
8500
|
/* @__PURE__ */ e(f, { as: "span", margin: "0 0 0 medium", children: /* @__PURE__ */ e(
|
|
8500
|
-
|
|
8501
|
+
yd,
|
|
8501
8502
|
{
|
|
8502
8503
|
disabled: l,
|
|
8503
8504
|
onClick: v
|
|
@@ -8525,7 +8526,7 @@ const wd = ({
|
|
|
8525
8526
|
position: "relative",
|
|
8526
8527
|
className: `${ce["criterion-cell"]} ${ce["criterion-cell--ratings"]}`,
|
|
8527
8528
|
children: /* @__PURE__ */ e(
|
|
8528
|
-
|
|
8529
|
+
Td,
|
|
8529
8530
|
{
|
|
8530
8531
|
hidePoints: a,
|
|
8531
8532
|
ratings: t.ratings,
|
|
@@ -8539,7 +8540,7 @@ const wd = ({
|
|
|
8539
8540
|
]
|
|
8540
8541
|
}
|
|
8541
8542
|
);
|
|
8542
|
-
},
|
|
8543
|
+
}, Sd = ({
|
|
8543
8544
|
rubricForm: t,
|
|
8544
8545
|
criterionHeadingLevel: i = "h4",
|
|
8545
8546
|
isCompact: n,
|
|
@@ -8561,7 +8562,7 @@ const wd = ({
|
|
|
8561
8562
|
srAnnouncement: b,
|
|
8562
8563
|
moveCriterion: C,
|
|
8563
8564
|
moveCriterionBySortableId: w
|
|
8564
|
-
} =
|
|
8565
|
+
} = Is({ criteria: t.criteria, onReorderCriteria: l }), [L, A] = x(), T = Ca(
|
|
8565
8566
|
kt(Ta, { activationConstraint: { distance: 8 } }),
|
|
8566
8567
|
kt(La, { coordinateGetter: ya })
|
|
8567
8568
|
), R = (M) => {
|
|
@@ -8574,7 +8575,7 @@ const wd = ({
|
|
|
8574
8575
|
/* @__PURE__ */ e(wa, { sensors: T, onDragEnd: R, children: /* @__PURE__ */ e(Aa, { items: g, strategy: Sa, children: /* @__PURE__ */ e("div", { "data-testid": "rubric-criteria-container", children: t.criteria.map((M, F) => {
|
|
8575
8576
|
var N;
|
|
8576
8577
|
return /* @__PURE__ */ e(
|
|
8577
|
-
|
|
8578
|
+
Ad,
|
|
8578
8579
|
{
|
|
8579
8580
|
criterion: M,
|
|
8580
8581
|
criterionHeadingLevel: i,
|
|
@@ -8605,7 +8606,7 @@ const wd = ({
|
|
|
8605
8606
|
);
|
|
8606
8607
|
}) }) }) }),
|
|
8607
8608
|
/* @__PURE__ */ e(
|
|
8608
|
-
|
|
8609
|
+
Id,
|
|
8609
8610
|
{
|
|
8610
8611
|
isCompact: n,
|
|
8611
8612
|
rowIndex: t.criteria.length + 1,
|
|
@@ -8615,7 +8616,7 @@ const wd = ({
|
|
|
8615
8616
|
)
|
|
8616
8617
|
] })
|
|
8617
8618
|
] });
|
|
8618
|
-
},
|
|
8619
|
+
}, xd = ({
|
|
8619
8620
|
assignmentId: t,
|
|
8620
8621
|
hasRubricAssociations: i,
|
|
8621
8622
|
rubricId: n,
|
|
@@ -8715,7 +8716,7 @@ const wd = ({
|
|
|
8715
8716
|
)
|
|
8716
8717
|
}
|
|
8717
8718
|
);
|
|
8718
|
-
},
|
|
8719
|
+
}, Rd = ({
|
|
8719
8720
|
header: t,
|
|
8720
8721
|
hideHeader: i,
|
|
8721
8722
|
isUnassessed: n,
|
|
@@ -8738,7 +8739,7 @@ const wd = ({
|
|
|
8738
8739
|
!a && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(He, { variant: "info", margin: "medium 0 0 0", "data-testid": "rubric-cannot-update-alert", children: s.rubricFormCannotUpdate }) }),
|
|
8739
8740
|
!n && a && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(He, { variant: "info", margin: "medium 0 0 0", "data-testid": "rubric-limited-edit-mode-alert", children: s.rubricFormLimitedEdit }) })
|
|
8740
8741
|
] });
|
|
8741
|
-
},
|
|
8742
|
+
}, Dd = ({
|
|
8742
8743
|
freeFormCriterionComments: t,
|
|
8743
8744
|
onChange: i
|
|
8744
8745
|
}) => {
|
|
@@ -8758,7 +8759,7 @@ const wd = ({
|
|
|
8758
8759
|
]
|
|
8759
8760
|
}
|
|
8760
8761
|
);
|
|
8761
|
-
},
|
|
8762
|
+
}, Pd = ({ buttonDisplay: t, onChange: i }) => {
|
|
8762
8763
|
const { translations: n } = S(), a = (r) => {
|
|
8763
8764
|
i(r);
|
|
8764
8765
|
};
|
|
@@ -8775,7 +8776,7 @@ const wd = ({
|
|
|
8775
8776
|
]
|
|
8776
8777
|
}
|
|
8777
8778
|
);
|
|
8778
|
-
},
|
|
8779
|
+
}, Fd = ({
|
|
8779
8780
|
ratingOrder: t,
|
|
8780
8781
|
onChangeOrder: i
|
|
8781
8782
|
}) => {
|
|
@@ -8811,7 +8812,7 @@ const wd = ({
|
|
|
8811
8812
|
]
|
|
8812
8813
|
}
|
|
8813
8814
|
);
|
|
8814
|
-
},
|
|
8815
|
+
}, kd = ({ hidePoints: t, onChange: i }) => {
|
|
8815
8816
|
const { translations: n } = S(), a = (s) => {
|
|
8816
8817
|
i(s === "unscored");
|
|
8817
8818
|
}, r = t ? "unscored" : "scored";
|
|
@@ -8828,7 +8829,7 @@ const wd = ({
|
|
|
8828
8829
|
]
|
|
8829
8830
|
}
|
|
8830
8831
|
);
|
|
8831
|
-
},
|
|
8832
|
+
}, _d = ({
|
|
8832
8833
|
showAdditionalOptions: t,
|
|
8833
8834
|
rubricForm: i,
|
|
8834
8835
|
setRubricFormField: n
|
|
@@ -8840,7 +8841,7 @@ const wd = ({
|
|
|
8840
8841
|
shouldGrow: !0,
|
|
8841
8842
|
shouldShrink: !0,
|
|
8842
8843
|
children: /* @__PURE__ */ e(
|
|
8843
|
-
|
|
8844
|
+
Dd,
|
|
8844
8845
|
{
|
|
8845
8846
|
onChange: (a) => {
|
|
8846
8847
|
n("freeFormCriterionComments", a);
|
|
@@ -8851,37 +8852,37 @@ const wd = ({
|
|
|
8851
8852
|
}
|
|
8852
8853
|
),
|
|
8853
8854
|
!i.freeFormCriterionComments && !i.hidePoints && /* @__PURE__ */ e(p.Item, { size: "10.563rem", shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ e(
|
|
8854
|
-
|
|
8855
|
+
Pd,
|
|
8855
8856
|
{
|
|
8856
8857
|
buttonDisplay: i.buttonDisplay,
|
|
8857
8858
|
onChange: (a) => n("buttonDisplay", a)
|
|
8858
8859
|
}
|
|
8859
8860
|
) }),
|
|
8860
8861
|
!i.freeFormCriterionComments && /* @__PURE__ */ e(p.Item, { size: "10.563rem", shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ e(
|
|
8861
|
-
|
|
8862
|
+
Fd,
|
|
8862
8863
|
{
|
|
8863
8864
|
ratingOrder: i.ratingOrder,
|
|
8864
8865
|
onChangeOrder: (a) => n("ratingOrder", a)
|
|
8865
8866
|
}
|
|
8866
8867
|
) }),
|
|
8867
8868
|
t && /* @__PURE__ */ e(p.Item, { size: "10.563rem", shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ e(
|
|
8868
|
-
|
|
8869
|
+
kd,
|
|
8869
8870
|
{
|
|
8870
8871
|
hidePoints: i.hidePoints,
|
|
8871
8872
|
onChange: () => {
|
|
8872
|
-
const { hidePoints: a, hideScoreTotal: r, useForGrading: s, buttonDisplay: o } =
|
|
8873
|
+
const { hidePoints: a, hideScoreTotal: r, useForGrading: s, buttonDisplay: o } = Cs(i.hidePoints);
|
|
8873
8874
|
n("hidePoints", a), n("hideScoreTotal", r), n("useForGrading", s), o && n("buttonDisplay", o);
|
|
8874
8875
|
}
|
|
8875
8876
|
}
|
|
8876
8877
|
) })
|
|
8877
|
-
] }),
|
|
8878
|
+
] }), Ed = () => {
|
|
8878
8879
|
const { translations: t } = S();
|
|
8879
8880
|
return jr({
|
|
8880
|
-
errorImageUrl:
|
|
8881
|
+
errorImageUrl: ys,
|
|
8881
8882
|
errorCategory: t.rubricErrorPageCategory,
|
|
8882
8883
|
translations: ua(t)
|
|
8883
8884
|
});
|
|
8884
|
-
},
|
|
8885
|
+
}, Md = ({
|
|
8885
8886
|
isOpen: t,
|
|
8886
8887
|
onConfirm: i,
|
|
8887
8888
|
onDismiss: n
|
|
@@ -8917,16 +8918,16 @@ const wd = ({
|
|
|
8917
8918
|
]
|
|
8918
8919
|
}
|
|
8919
8920
|
);
|
|
8920
|
-
},
|
|
8921
|
+
}, Nd = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(
|
|
8921
8922
|
Qe,
|
|
8922
8923
|
{
|
|
8923
8924
|
courseId: t.courseId,
|
|
8924
8925
|
accountId: t.accountId,
|
|
8925
8926
|
featureFlags: t.featureFlags,
|
|
8926
8927
|
aiLimits: t.aiLimits,
|
|
8927
|
-
children: /* @__PURE__ */ e(
|
|
8928
|
+
children: /* @__PURE__ */ e(Od, { ...t })
|
|
8928
8929
|
}
|
|
8929
|
-
) }),
|
|
8930
|
+
) }), Od = ({
|
|
8930
8931
|
rubricId: t,
|
|
8931
8932
|
assignmentId: i,
|
|
8932
8933
|
assignmentPointsPossible: n,
|
|
@@ -8965,7 +8966,7 @@ const wd = ({
|
|
|
8965
8966
|
saveAsDraft: G,
|
|
8966
8967
|
isPristine: J,
|
|
8967
8968
|
saveAction: Le
|
|
8968
|
-
} =
|
|
8969
|
+
} = Ls({
|
|
8969
8970
|
rubricId: t,
|
|
8970
8971
|
accountId: a,
|
|
8971
8972
|
assignmentId: i,
|
|
@@ -8977,7 +8978,7 @@ const wd = ({
|
|
|
8977
8978
|
onLoadRubric: I,
|
|
8978
8979
|
onSaveRubric: y
|
|
8979
8980
|
}), [D, pe] = x(), [Te, we] = x(!1), [Ce, be] = x(!1), [Ee, Ye] = x(!1), [ht, Ve] = x(!1), [gr, Ui] = x(!1), [fr, zt] = x(!1), [vr, Tt] = x(!1), [Ht, br] = x(
|
|
8980
|
-
|
|
8981
|
+
Il({
|
|
8981
8982
|
maxCriterionCount: F,
|
|
8982
8983
|
maxRatingCount: N,
|
|
8983
8984
|
assignmentPointsPossible: n
|
|
@@ -8990,7 +8991,7 @@ const wd = ({
|
|
|
8990
8991
|
generateCriteriaIsSuccess: Gi,
|
|
8991
8992
|
generateCriteriaMutation: yr,
|
|
8992
8993
|
generateResponseId: Lr
|
|
8993
|
-
} =
|
|
8994
|
+
} = yl({
|
|
8994
8995
|
assignmentId: i,
|
|
8995
8996
|
criteriaRef: W,
|
|
8996
8997
|
courseId: r,
|
|
@@ -9002,7 +9003,7 @@ const wd = ({
|
|
|
9002
9003
|
regenerateCriteriaIsPending: xr,
|
|
9003
9004
|
regenerateResponseId: Rr,
|
|
9004
9005
|
regenerateResponseType: Dr
|
|
9005
|
-
} =
|
|
9006
|
+
} = Tl({
|
|
9006
9007
|
assignmentId: i,
|
|
9007
9008
|
courseId: r,
|
|
9008
9009
|
criteriaRef: W,
|
|
@@ -9016,7 +9017,7 @@ const wd = ({
|
|
|
9016
9017
|
disabled: wt,
|
|
9017
9018
|
onRegenerate: (Ie) => Sr(Ae, Ie)
|
|
9018
9019
|
}
|
|
9019
|
-
) : void 0, _r = q ? w.createNewRubricTitle : w.editRubricTitle, { isOutcomeDialogOpen: Er, openOutcomeDialog: Mr, closeOutcomeDialog: Nr, handleOutcomeSelected: Or } =
|
|
9020
|
+
) : void 0, _r = q ? w.createNewRubricTitle : w.editRubricTitle, { isOutcomeDialogOpen: Er, openOutcomeDialog: Mr, closeOutcomeDialog: Nr, handleOutcomeSelected: Or } = Ll({
|
|
9020
9021
|
criteriaRef: W,
|
|
9021
9022
|
setRubricFormField: U
|
|
9022
9023
|
}), Br = () => {
|
|
@@ -9028,13 +9029,13 @@ const wd = ({
|
|
|
9028
9029
|
}, $r = (Ae) => {
|
|
9029
9030
|
pe(Ae), Ae != null && Ae.learningOutcomeId ? Ye(!0) : we(!0);
|
|
9030
9031
|
}, zr = (Ae) => {
|
|
9031
|
-
pe(
|
|
9032
|
+
pe(Ts(Ae)), we(!0);
|
|
9032
9033
|
}, Hr = (Ae) => {
|
|
9033
9034
|
V(Ae), we(!1), Ye(!1);
|
|
9034
9035
|
}, Wr = () => {
|
|
9035
9036
|
J ? b() : Ui(!0);
|
|
9036
9037
|
};
|
|
9037
|
-
return Q && t ? /* @__PURE__ */ e(We, {}) : !Q && se && X && t ? /* @__PURE__ */ e(
|
|
9038
|
+
return Q && t ? /* @__PURE__ */ e(We, {}) : !Q && se && X && t ? /* @__PURE__ */ e(Ed, {}) : j && !K && t ? Zr({ translations: ua(w) }) : /* @__PURE__ */ e(
|
|
9038
9039
|
Je,
|
|
9039
9040
|
{
|
|
9040
9041
|
match: "media",
|
|
@@ -9059,7 +9060,7 @@ const wd = ({
|
|
|
9059
9060
|
children: [
|
|
9060
9061
|
/* @__PURE__ */ h(p, { as: "div", direction: "column", style: { minHeight: "100%" }, children: [
|
|
9061
9062
|
/* @__PURE__ */ e(
|
|
9062
|
-
|
|
9063
|
+
Rd,
|
|
9063
9064
|
{
|
|
9064
9065
|
canUpdateRubric: q || _.canUpdateRubric,
|
|
9065
9066
|
header: _r,
|
|
@@ -9085,7 +9086,7 @@ const wd = ({
|
|
|
9085
9086
|
}
|
|
9086
9087
|
) }),
|
|
9087
9088
|
/* @__PURE__ */ e(
|
|
9088
|
-
|
|
9089
|
+
_d,
|
|
9089
9090
|
{
|
|
9090
9091
|
showAdditionalOptions: u,
|
|
9091
9092
|
rubricForm: _,
|
|
@@ -9094,7 +9095,7 @@ const wd = ({
|
|
|
9094
9095
|
)
|
|
9095
9096
|
] }),
|
|
9096
9097
|
u && Z && /* @__PURE__ */ e(
|
|
9097
|
-
|
|
9098
|
+
fd,
|
|
9098
9099
|
{
|
|
9099
9100
|
hideOutcomeResults: _.hideOutcomeResults,
|
|
9100
9101
|
hidePoints: _.hidePoints,
|
|
@@ -9105,7 +9106,7 @@ const wd = ({
|
|
|
9105
9106
|
}
|
|
9106
9107
|
),
|
|
9107
9108
|
/* @__PURE__ */ e(
|
|
9108
|
-
|
|
9109
|
+
id,
|
|
9109
9110
|
{
|
|
9110
9111
|
headingLevel: l ? "h3" : "h2",
|
|
9111
9112
|
hidePoints: _.hidePoints,
|
|
@@ -9116,7 +9117,7 @@ const wd = ({
|
|
|
9116
9117
|
}
|
|
9117
9118
|
),
|
|
9118
9119
|
Tr && /* @__PURE__ */ e(
|
|
9119
|
-
|
|
9120
|
+
Zl,
|
|
9120
9121
|
{
|
|
9121
9122
|
formOptions: Ht,
|
|
9122
9123
|
criterionUseRangeEnabled: o,
|
|
@@ -9128,7 +9129,7 @@ const wd = ({
|
|
|
9128
9129
|
}
|
|
9129
9130
|
),
|
|
9130
9131
|
wr && r && /* @__PURE__ */ e(
|
|
9131
|
-
|
|
9132
|
+
ed,
|
|
9132
9133
|
{
|
|
9133
9134
|
courseId: r,
|
|
9134
9135
|
onRegenerateAll: Ar,
|
|
@@ -9141,7 +9142,7 @@ const wd = ({
|
|
|
9141
9142
|
] }),
|
|
9142
9143
|
wt && /* @__PURE__ */ e(p.Item, { shouldGrow: !0, children: /* @__PURE__ */ e(We, {}) }),
|
|
9143
9144
|
/* @__PURE__ */ e(
|
|
9144
|
-
|
|
9145
|
+
Sd,
|
|
9145
9146
|
{
|
|
9146
9147
|
rubricForm: _,
|
|
9147
9148
|
criterionHeadingLevel: l ? "h4" : "h3",
|
|
@@ -9158,7 +9159,7 @@ const wd = ({
|
|
|
9158
9159
|
)
|
|
9159
9160
|
] }),
|
|
9160
9161
|
/* @__PURE__ */ e(
|
|
9161
|
-
|
|
9162
|
+
xd,
|
|
9162
9163
|
{
|
|
9163
9164
|
assignmentId: i,
|
|
9164
9165
|
insetInlineStart: v,
|
|
@@ -9197,7 +9198,7 @@ const wd = ({
|
|
|
9197
9198
|
}
|
|
9198
9199
|
),
|
|
9199
9200
|
/* @__PURE__ */ e(
|
|
9200
|
-
|
|
9201
|
+
pd,
|
|
9201
9202
|
{
|
|
9202
9203
|
criterion: D,
|
|
9203
9204
|
criterionUseRangeEnabled: o,
|
|
@@ -9210,7 +9211,7 @@ const wd = ({
|
|
|
9210
9211
|
}
|
|
9211
9212
|
),
|
|
9212
9213
|
/* @__PURE__ */ e(
|
|
9213
|
-
|
|
9214
|
+
gd,
|
|
9214
9215
|
{
|
|
9215
9216
|
criterion: D,
|
|
9216
9217
|
isOpen: Ee,
|
|
@@ -9239,7 +9240,7 @@ const wd = ({
|
|
|
9239
9240
|
}
|
|
9240
9241
|
),
|
|
9241
9242
|
/* @__PURE__ */ e(
|
|
9242
|
-
|
|
9243
|
+
wl,
|
|
9243
9244
|
{
|
|
9244
9245
|
isOpen: Ce,
|
|
9245
9246
|
onConfirm: () => {
|
|
@@ -9249,7 +9250,7 @@ const wd = ({
|
|
|
9249
9250
|
}
|
|
9250
9251
|
),
|
|
9251
9252
|
/* @__PURE__ */ e(
|
|
9252
|
-
|
|
9253
|
+
Md,
|
|
9253
9254
|
{
|
|
9254
9255
|
isOpen: fr,
|
|
9255
9256
|
onConfirm: () => {
|
|
@@ -9259,7 +9260,7 @@ const wd = ({
|
|
|
9259
9260
|
}
|
|
9260
9261
|
),
|
|
9261
9262
|
/* @__PURE__ */ e(
|
|
9262
|
-
|
|
9263
|
+
td,
|
|
9263
9264
|
{
|
|
9264
9265
|
assignmentPoints: n ?? 0,
|
|
9265
9266
|
rubricPoints: _.pointsPossible,
|
|
@@ -9281,15 +9282,15 @@ const wd = ({
|
|
|
9281
9282
|
}
|
|
9282
9283
|
}
|
|
9283
9284
|
);
|
|
9284
|
-
},
|
|
9285
|
+
}, Bd = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(
|
|
9285
9286
|
Qe,
|
|
9286
9287
|
{
|
|
9287
9288
|
courseId: t.courseId,
|
|
9288
9289
|
featureFlags: t.featureFlags,
|
|
9289
9290
|
aiLimits: t.aiLimits,
|
|
9290
|
-
children: /* @__PURE__ */ e(
|
|
9291
|
+
children: /* @__PURE__ */ e($d, { ...t })
|
|
9291
9292
|
}
|
|
9292
|
-
) }),
|
|
9293
|
+
) }), $d = ({
|
|
9293
9294
|
assignmentId: t,
|
|
9294
9295
|
assignmentPointsPossible: i,
|
|
9295
9296
|
courseId: n,
|
|
@@ -9300,7 +9301,7 @@ const wd = ({
|
|
|
9300
9301
|
onDismiss: l,
|
|
9301
9302
|
onSaveRubric: d
|
|
9302
9303
|
}) => {
|
|
9303
|
-
const { translations: c } = S(), u = ct(), { rubricCriterionRange: m, aiRubricsEnabled: v } = Be(), { manageRubrics: g } =
|
|
9304
|
+
const { translations: c } = S(), u = ct(), { rubricCriterionRange: m, aiRubricsEnabled: v } = Be(), { manageRubrics: g } = js(), I = s ? c.rubricCreateModalEditHeader : c.rubricCreateModalCreateHeader;
|
|
9304
9305
|
return /* @__PURE__ */ h(
|
|
9305
9306
|
E,
|
|
9306
9307
|
{
|
|
@@ -9337,7 +9338,7 @@ const wd = ({
|
|
|
9337
9338
|
children: (y, b) => {
|
|
9338
9339
|
const C = (b == null ? void 0 : b.includes("compact")) ?? !1;
|
|
9339
9340
|
return /* @__PURE__ */ e(f, { as: "div", width: C ? "100%" : "80%", margin: "0 auto", children: /* @__PURE__ */ e(
|
|
9340
|
-
|
|
9341
|
+
Nd,
|
|
9341
9342
|
{
|
|
9342
9343
|
translations: u,
|
|
9343
9344
|
assignmentPointsPossible: i,
|
|
@@ -9368,7 +9369,7 @@ function tr(t, i) {
|
|
|
9368
9369
|
return () => clearTimeout(r);
|
|
9369
9370
|
}, [t, i]), n;
|
|
9370
9371
|
}
|
|
9371
|
-
const
|
|
9372
|
+
const zd = ({ isOpen: t }) => {
|
|
9372
9373
|
const { gradingRubricsPagination: i } = Be(), [n, a] = x(""), r = tr(n, 300), [s, o] = x(), [l, d] = x(0), [c, u] = x(), [m, v] = x(), g = i && l > ja;
|
|
9373
9374
|
return le(() => {
|
|
9374
9375
|
t && (a(""), u(void 0), v(void 0));
|
|
@@ -9389,26 +9390,26 @@ const $d = ({ isOpen: t }) => {
|
|
|
9389
9390
|
},
|
|
9390
9391
|
paginationEnabled: g
|
|
9391
9392
|
};
|
|
9392
|
-
},
|
|
9393
|
+
}, Hd = (t) => ut({
|
|
9393
9394
|
queryKey: ["fetchGradingRubricContexts", t],
|
|
9394
|
-
queryFn: () =>
|
|
9395
|
-
}),
|
|
9395
|
+
queryFn: () => ul({ courseId: t })
|
|
9396
|
+
}), Wd = (t, i) => t.find((n) => n.contextCode === `course_${i}`) ?? t[0], Vd = (t) => {
|
|
9396
9397
|
if (t.startsWith("account_")) return "account";
|
|
9397
9398
|
if (t.startsWith("course_")) return "course";
|
|
9398
|
-
},
|
|
9399
|
+
}, Ud = (t, i) => i ? t.filter(({ rubric: n }) => n.title.toLowerCase().includes(i.toLowerCase())) : t, Gd = ({
|
|
9399
9400
|
courseId: t,
|
|
9400
9401
|
selectedContext: i,
|
|
9401
9402
|
handleChangeContext: n,
|
|
9402
9403
|
setSelectedContext: a,
|
|
9403
9404
|
setSelectedRubricCount: r
|
|
9404
9405
|
}) => {
|
|
9405
|
-
const { translations: s } = S(), { data: o = [], isLoading: l, isSuccess: d } =
|
|
9406
|
+
const { translations: s } = S(), { data: o = [], isLoading: l, isSuccess: d } = Hd(t);
|
|
9406
9407
|
le(() => {
|
|
9407
|
-
const m =
|
|
9408
|
+
const m = Wd(o, t);
|
|
9408
9409
|
m && (a(m.contextCode), r(m.rubrics || 0));
|
|
9409
9410
|
}, [o, t, a, r]);
|
|
9410
9411
|
const c = (m) => {
|
|
9411
|
-
const v =
|
|
9412
|
+
const v = Vd(m);
|
|
9412
9413
|
return v === "account" ? s.rubricContextSelectAccountPrefix : v === "course" ? s.rubricContextSelectCoursePrefix : "";
|
|
9413
9414
|
}, u = (m) => `${m.name} (${c(m.contextCode)})`;
|
|
9414
9415
|
return d && o.length === 0 ? /* @__PURE__ */ e(f, { as: "div", children: /* @__PURE__ */ e(Y, { level: "h3", children: s.rubricContextSelectEmptyHeading }) }) : l ? /* @__PURE__ */ e(We, {}) : /* @__PURE__ */ e(
|
|
@@ -9432,7 +9433,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9432
9433
|
))
|
|
9433
9434
|
}
|
|
9434
9435
|
);
|
|
9435
|
-
},
|
|
9436
|
+
}, qd = ({ disabled: t, onSubmit: i, onCancel: n }) => {
|
|
9436
9437
|
const { translations: a } = S();
|
|
9437
9438
|
return /* @__PURE__ */ e(
|
|
9438
9439
|
f,
|
|
@@ -9467,7 +9468,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9467
9468
|
] })
|
|
9468
9469
|
}
|
|
9469
9470
|
);
|
|
9470
|
-
},
|
|
9471
|
+
}, Yd = ({
|
|
9471
9472
|
courseId: t,
|
|
9472
9473
|
contextCode: i,
|
|
9473
9474
|
search: n,
|
|
@@ -9477,7 +9478,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9477
9478
|
a && (n !== o || i !== d) && (l(n), c(i), s(1));
|
|
9478
9479
|
const u = a ? ["fetchGradingRubricsForContext", t, i, r, n] : ["fetchGradingRubricsForContext", t, i], { data: m, isLoading: v } = ut({
|
|
9479
9480
|
queryKey: u,
|
|
9480
|
-
queryFn: () =>
|
|
9481
|
+
queryFn: () => ml({
|
|
9481
9482
|
courseId: t,
|
|
9482
9483
|
contextCode: i,
|
|
9483
9484
|
page: a ? r : void 0,
|
|
@@ -9485,20 +9486,20 @@ const $d = ({ isOpen: t }) => {
|
|
|
9485
9486
|
})
|
|
9486
9487
|
}), g = (m == null ? void 0 : m.rubrics) ?? [];
|
|
9487
9488
|
return {
|
|
9488
|
-
rubrics: a ? g :
|
|
9489
|
+
rubrics: a ? g : Ud(g, n),
|
|
9489
9490
|
totalPages: (m == null ? void 0 : m.totalPages) ?? 1,
|
|
9490
9491
|
currentPage: r,
|
|
9491
9492
|
setCurrentPage: s,
|
|
9492
9493
|
isLoading: v
|
|
9493
9494
|
};
|
|
9494
|
-
},
|
|
9495
|
+
}, jd = ({ checked: t, rubric: i, onPreview: n, onSelect: a }) => {
|
|
9495
9496
|
const { translations: r, translate: s } = S(), { possibleString: o } = xe(), [l, d] = x(!1), c = () => i.hidePoints ? r.rubricSearchRowUnscored : o(i.pointsPossible), u = (v) => {
|
|
9496
9497
|
l !== v && d(v);
|
|
9497
9498
|
}, m = () => /* @__PURE__ */ e(Nt, { onUpdate: u, children: /* @__PURE__ */ e(P, { "data-testid": "rubric-search-row-title", children: i.title }) });
|
|
9498
9499
|
return /* @__PURE__ */ h(f, { as: "div", margin: "medium 0 0", children: [
|
|
9499
9500
|
/* @__PURE__ */ h(p, { children: [
|
|
9500
9501
|
/* @__PURE__ */ e(p.Item, { align: "start", margin: "xxx-small 0 0", children: /* @__PURE__ */ e(
|
|
9501
|
-
|
|
9502
|
+
Us,
|
|
9502
9503
|
{
|
|
9503
9504
|
label: /* @__PURE__ */ e(de, { children: s("rubricSearchRowSelectLabel", { title: i.title }) }),
|
|
9504
9505
|
onChange: a,
|
|
@@ -9523,13 +9524,13 @@ const $d = ({ isOpen: t }) => {
|
|
|
9523
9524
|
onClick: () => n(i),
|
|
9524
9525
|
withBackground: !1,
|
|
9525
9526
|
withBorder: !1,
|
|
9526
|
-
children: /* @__PURE__ */ e(
|
|
9527
|
+
children: /* @__PURE__ */ e(Ps, {})
|
|
9527
9528
|
}
|
|
9528
9529
|
) })
|
|
9529
9530
|
] }),
|
|
9530
9531
|
/* @__PURE__ */ e(f, { as: "hr", margin: "medium 0 0" })
|
|
9531
9532
|
] });
|
|
9532
|
-
},
|
|
9533
|
+
}, Zd = ({
|
|
9533
9534
|
courseId: t,
|
|
9534
9535
|
selectedAssociation: i,
|
|
9535
9536
|
selectedContext: n,
|
|
@@ -9538,7 +9539,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9538
9539
|
onPreview: s,
|
|
9539
9540
|
onSelect: o
|
|
9540
9541
|
}) => {
|
|
9541
|
-
const { translations: l } = S(), { rubrics: d, totalPages: c, currentPage: u, setCurrentPage: m, isLoading: v } =
|
|
9542
|
+
const { translations: l } = S(), { rubrics: d, totalPages: c, currentPage: u, setCurrentPage: m, isLoading: v } = Yd({
|
|
9542
9543
|
courseId: t,
|
|
9543
9544
|
contextCode: n,
|
|
9544
9545
|
search: a,
|
|
@@ -9546,7 +9547,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9546
9547
|
});
|
|
9547
9548
|
return v ? /* @__PURE__ */ e(We, {}) : /* @__PURE__ */ h(ne, { children: [
|
|
9548
9549
|
d.map(({ rubricAssociation: g, rubric: I }) => /* @__PURE__ */ e(
|
|
9549
|
-
|
|
9550
|
+
jd,
|
|
9550
9551
|
{
|
|
9551
9552
|
rubric: I,
|
|
9552
9553
|
checked: (i == null ? void 0 : i.id) === g.id,
|
|
@@ -9572,7 +9573,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9572
9573
|
}
|
|
9573
9574
|
)
|
|
9574
9575
|
] });
|
|
9575
|
-
},
|
|
9576
|
+
}, Kd = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(Qe, { courseId: t.courseId, featureFlags: t.featureFlags, children: /* @__PURE__ */ e(Qd, { ...t }) }) }), Qd = ({
|
|
9576
9577
|
courseId: t,
|
|
9577
9578
|
isOpen: i,
|
|
9578
9579
|
onPreview: n,
|
|
@@ -9591,7 +9592,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9591
9592
|
selectedRubricId: I,
|
|
9592
9593
|
selectRubric: y,
|
|
9593
9594
|
paginationEnabled: b
|
|
9594
|
-
} =
|
|
9595
|
+
} = zd({ isOpen: i });
|
|
9595
9596
|
return /* @__PURE__ */ h(
|
|
9596
9597
|
Ri,
|
|
9597
9598
|
{
|
|
@@ -9629,7 +9630,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9629
9630
|
) }),
|
|
9630
9631
|
i && /* @__PURE__ */ h(f, { as: "div", margin: "medium 0 0", padding: "0 small", children: [
|
|
9631
9632
|
/* @__PURE__ */ e(
|
|
9632
|
-
|
|
9633
|
+
Gd,
|
|
9633
9634
|
{
|
|
9634
9635
|
courseId: t,
|
|
9635
9636
|
selectedContext: c,
|
|
@@ -9648,7 +9649,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9648
9649
|
padding: "small 0",
|
|
9649
9650
|
overflowY: "auto",
|
|
9650
9651
|
children: c && /* @__PURE__ */ e(
|
|
9651
|
-
|
|
9652
|
+
Zd,
|
|
9652
9653
|
{
|
|
9653
9654
|
courseId: t,
|
|
9654
9655
|
selectedAssociation: g,
|
|
@@ -9665,7 +9666,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9665
9666
|
/* @__PURE__ */ h(f, { as: "footer", margin: "small 0 0", height: "62px", id: "rubric-search-footer-container", children: [
|
|
9666
9667
|
/* @__PURE__ */ e(f, { as: "hr", margin: "0" }),
|
|
9667
9668
|
/* @__PURE__ */ e(
|
|
9668
|
-
|
|
9669
|
+
qd,
|
|
9669
9670
|
{
|
|
9670
9671
|
disabled: !I,
|
|
9671
9672
|
onSubmit: () => {
|
|
@@ -9678,14 +9679,14 @@ const $d = ({ isOpen: t }) => {
|
|
|
9678
9679
|
]
|
|
9679
9680
|
}
|
|
9680
9681
|
);
|
|
9681
|
-
},
|
|
9682
|
+
}, Xd = ({
|
|
9682
9683
|
courseId: t,
|
|
9683
9684
|
assignmentId: i,
|
|
9684
9685
|
canUseForGrading: n,
|
|
9685
9686
|
onAssignmentPointsPossibleChange: a,
|
|
9686
9687
|
onRubricChange: r
|
|
9687
9688
|
}) => {
|
|
9688
|
-
const { translations: s } = S(), { notify: o } = ge(), { data: l, isLoading: d, error: c } =
|
|
9689
|
+
const { translations: s } = S(), { notify: o } = ge(), { data: l, isLoading: d, error: c } = pl(t, i), [u, m] = x(null), v = u ? u.rubric : l == null ? void 0 : l.rubric, g = u ? u.rubricAssociation : l == null ? void 0 : l.rubricAssociation, I = (((v == null ? void 0 : v.associationCount) ?? 0) > 1 || (v == null ? void 0 : v.public)) ?? !1;
|
|
9689
9690
|
return {
|
|
9690
9691
|
rubric: v,
|
|
9691
9692
|
rubricAssociation: g,
|
|
@@ -9700,11 +9701,11 @@ const $d = ({ isOpen: t }) => {
|
|
|
9700
9701
|
}), A == null || A(), (T = w.rubricAssociation) != null && T.useForGrading && L && (a == null || a(((R = w.rubric) == null ? void 0 : R.pointsPossible) ?? 0)), r == null || r(w.rubric, w.rubricAssociation);
|
|
9701
9702
|
},
|
|
9702
9703
|
removeRubric: async (w) => {
|
|
9703
|
-
g && (await
|
|
9704
|
+
g && (await ll({ courseId: t, rubricAssociationId: g.id }), m({ rubric: void 0, rubricAssociation: void 0 }), w == null || w(), r == null || r(void 0, void 0));
|
|
9704
9705
|
},
|
|
9705
9706
|
addRubric: async (w, L, A) => {
|
|
9706
9707
|
try {
|
|
9707
|
-
const T = await
|
|
9708
|
+
const T = await ol({
|
|
9708
9709
|
courseId: t,
|
|
9709
9710
|
assignmentId: i,
|
|
9710
9711
|
rubricId: w,
|
|
@@ -9717,22 +9718,22 @@ const $d = ({ isOpen: t }) => {
|
|
|
9717
9718
|
}
|
|
9718
9719
|
}
|
|
9719
9720
|
};
|
|
9720
|
-
},
|
|
9721
|
+
}, Jd = (t, i) => {
|
|
9721
9722
|
const { translations: n } = S(), { executeQuery: a, notify: r } = ge(), s = xi(), o = ["assignment-self-assessment-settings", t, i ?? ""], { isPending: l, mutateAsync: d } = Xe({
|
|
9722
|
-
mutationFn: (m) =>
|
|
9723
|
+
mutationFn: (m) => dl(a, t, m),
|
|
9723
9724
|
mutationKey: ["set-rubric-self-assessment", t, i],
|
|
9724
9725
|
onError: () => {
|
|
9725
9726
|
r({ type: "error", message: n.rubricAssignmentSelfAssessmentUpdateError });
|
|
9726
9727
|
}
|
|
9727
9728
|
}), { data: c } = ut({
|
|
9728
9729
|
queryKey: o,
|
|
9729
|
-
queryFn: () =>
|
|
9730
|
+
queryFn: () => cl(a, t),
|
|
9730
9731
|
enabled: !!i
|
|
9731
9732
|
});
|
|
9732
9733
|
return { settings: c, isUpdating: l, setEnabled: async (m) => {
|
|
9733
9734
|
await d(m), s.invalidateQueries({ queryKey: o });
|
|
9734
9735
|
} };
|
|
9735
|
-
},
|
|
9736
|
+
}, ec = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(tc, { ...t }) }), tc = ({
|
|
9736
9737
|
assignmentId: t,
|
|
9737
9738
|
rubricId: i
|
|
9738
9739
|
}) => {
|
|
@@ -9740,7 +9741,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9740
9741
|
settings: a,
|
|
9741
9742
|
isUpdating: r,
|
|
9742
9743
|
setEnabled: s
|
|
9743
|
-
} =
|
|
9744
|
+
} = Jd(t, i);
|
|
9744
9745
|
if (!i || !a)
|
|
9745
9746
|
return null;
|
|
9746
9747
|
const { canUpdateRubricSelfAssessment: o, rubricSelfAssessmentEnabled: l } = a;
|
|
@@ -9767,7 +9768,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9767
9768
|
withBackground: !1,
|
|
9768
9769
|
withBorder: !1,
|
|
9769
9770
|
"data-testid": "self-assessment-info-button",
|
|
9770
|
-
children: /* @__PURE__ */ e(
|
|
9771
|
+
children: /* @__PURE__ */ e(Fs, {})
|
|
9771
9772
|
}
|
|
9772
9773
|
),
|
|
9773
9774
|
on: ["click", "hover", "focus"],
|
|
@@ -9777,15 +9778,15 @@ const $d = ({ isOpen: t }) => {
|
|
|
9777
9778
|
}
|
|
9778
9779
|
) })
|
|
9779
9780
|
] }) }) });
|
|
9780
|
-
},
|
|
9781
|
+
}, Km = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(
|
|
9781
9782
|
Qe,
|
|
9782
9783
|
{
|
|
9783
9784
|
courseId: t.courseId,
|
|
9784
9785
|
featureFlags: t.featureFlags,
|
|
9785
9786
|
aiLimits: t.aiLimits,
|
|
9786
|
-
children: /* @__PURE__ */ e(
|
|
9787
|
+
children: /* @__PURE__ */ e(ic, { ...t })
|
|
9787
9788
|
}
|
|
9788
|
-
) }),
|
|
9789
|
+
) }), ic = ({
|
|
9789
9790
|
assignmentId: t,
|
|
9790
9791
|
assignmentPointsPossible: i,
|
|
9791
9792
|
canManageRubrics: n,
|
|
@@ -9806,7 +9807,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9806
9807
|
applySavedRubric: w,
|
|
9807
9808
|
removeRubric: L,
|
|
9808
9809
|
addRubric: A
|
|
9809
|
-
} =
|
|
9810
|
+
} = Xd({
|
|
9810
9811
|
courseId: r,
|
|
9811
9812
|
assignmentId: t,
|
|
9812
9813
|
canUseForGrading: a,
|
|
@@ -9830,7 +9831,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9830
9831
|
g && I ? /* @__PURE__ */ h(ne, { children: [
|
|
9831
9832
|
/* @__PURE__ */ h(p, { as: "div", justifyItems: "space-between", alignItems: "center", wrap: "wrap", gap: "x-small", children: [
|
|
9832
9833
|
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, overflowX: "hidden", size: "250px", children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ h(Nt, { truncate: "word", ellipsis: "...", children: [
|
|
9833
|
-
/* @__PURE__ */ e(
|
|
9834
|
+
/* @__PURE__ */ e(ks, {}),
|
|
9834
9835
|
" ",
|
|
9835
9836
|
g.title
|
|
9836
9837
|
] }) }) }),
|
|
@@ -9877,7 +9878,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9877
9878
|
/* @__PURE__ */ e(f, { children: v && I.canUpdate && /* @__PURE__ */ h(ne, { children: [
|
|
9878
9879
|
/* @__PURE__ */ e(f, { as: "hr" }),
|
|
9879
9880
|
/* @__PURE__ */ e(
|
|
9880
|
-
|
|
9881
|
+
ec,
|
|
9881
9882
|
{
|
|
9882
9883
|
translations: m,
|
|
9883
9884
|
assignmentId: t,
|
|
@@ -9907,7 +9908,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9907
9908
|
) })
|
|
9908
9909
|
] }),
|
|
9909
9910
|
g && I && /* @__PURE__ */ e(
|
|
9910
|
-
|
|
9911
|
+
gl,
|
|
9911
9912
|
{
|
|
9912
9913
|
translations: m,
|
|
9913
9914
|
isOpen: z,
|
|
@@ -9917,7 +9918,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9917
9918
|
}
|
|
9918
9919
|
),
|
|
9919
9920
|
/* @__PURE__ */ e(
|
|
9920
|
-
|
|
9921
|
+
Bd,
|
|
9921
9922
|
{
|
|
9922
9923
|
translations: m,
|
|
9923
9924
|
assignmentId: t,
|
|
@@ -9947,7 +9948,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9947
9948
|
}
|
|
9948
9949
|
),
|
|
9949
9950
|
/* @__PURE__ */ e(
|
|
9950
|
-
|
|
9951
|
+
Kd,
|
|
9951
9952
|
{
|
|
9952
9953
|
translations: m,
|
|
9953
9954
|
courseId: r,
|
|
@@ -9966,18 +9967,18 @@ const $d = ({ isOpen: t }) => {
|
|
|
9966
9967
|
saved: "Saved",
|
|
9967
9968
|
archived: "Archived"
|
|
9968
9969
|
};
|
|
9969
|
-
function
|
|
9970
|
+
function nc(t) {
|
|
9970
9971
|
if (typeof document > "u")
|
|
9971
9972
|
return;
|
|
9972
9973
|
const i = document.cookie.split("; ").find((n) => n.startsWith(`${t}=`));
|
|
9973
9974
|
return i ? decodeURIComponent(i.slice(t.length + 1)) : void 0;
|
|
9974
9975
|
}
|
|
9975
|
-
const
|
|
9976
|
+
const ac = k.object({
|
|
9976
9977
|
description: k.string(),
|
|
9977
9978
|
long_description: k.string(),
|
|
9978
9979
|
points: k.number(),
|
|
9979
9980
|
id: k.coerce.string()
|
|
9980
|
-
}),
|
|
9981
|
+
}), rc = k.object({
|
|
9981
9982
|
criterion_use_range: k.boolean(),
|
|
9982
9983
|
description: k.string(),
|
|
9983
9984
|
id: k.coerce.string(),
|
|
@@ -9985,15 +9986,15 @@ const nc = k.object({
|
|
|
9985
9986
|
long_description: k.string(),
|
|
9986
9987
|
ignore_for_scoring: k.boolean().optional(),
|
|
9987
9988
|
points: k.number(),
|
|
9988
|
-
ratings: k.array(
|
|
9989
|
-
}),
|
|
9989
|
+
ratings: k.array(ac)
|
|
9990
|
+
}), sc = k.object({
|
|
9990
9991
|
id: k.coerce.string(),
|
|
9991
9992
|
title: k.string(),
|
|
9992
|
-
criteria: k.array(
|
|
9993
|
+
criteria: k.array(rc).optional(),
|
|
9993
9994
|
hide_points: k.boolean(),
|
|
9994
9995
|
points_possible: k.number()
|
|
9995
9996
|
}), ir = k.object({
|
|
9996
|
-
rubric:
|
|
9997
|
+
rubric: sc,
|
|
9997
9998
|
error: k.unknown().optional()
|
|
9998
9999
|
}), nr = (t) => {
|
|
9999
10000
|
var i;
|
|
@@ -10018,7 +10019,7 @@ const nc = k.object({
|
|
|
10018
10019
|
}))
|
|
10019
10020
|
}))
|
|
10020
10021
|
};
|
|
10021
|
-
},
|
|
10022
|
+
}, oc = async ({
|
|
10022
10023
|
id: t,
|
|
10023
10024
|
accountId: i,
|
|
10024
10025
|
courseId: n
|
|
@@ -10034,7 +10035,7 @@ const nc = k.object({
|
|
|
10034
10035
|
if (s.error)
|
|
10035
10036
|
throw new Error("Failed to delete rubric");
|
|
10036
10037
|
return nr(s.rubric);
|
|
10037
|
-
},
|
|
10038
|
+
}, lc = async ({
|
|
10038
10039
|
title: t,
|
|
10039
10040
|
hidePoints: i,
|
|
10040
10041
|
freeFormCriterionComments: n,
|
|
@@ -10049,7 +10050,7 @@ const nc = k.object({
|
|
|
10049
10050
|
s.map((g) => ({
|
|
10050
10051
|
id: g.id,
|
|
10051
10052
|
description: g.description,
|
|
10052
|
-
long_description:
|
|
10053
|
+
long_description: ws(g),
|
|
10053
10054
|
points: g.points,
|
|
10054
10055
|
learning_outcome_id: g.learningOutcomeId,
|
|
10055
10056
|
criterion_use_range: g.criterionUseRange,
|
|
@@ -10092,7 +10093,7 @@ const nc = k.object({
|
|
|
10092
10093
|
if (v.error)
|
|
10093
10094
|
throw new Error("Failed to duplicate rubric");
|
|
10094
10095
|
return nr(v.rubric);
|
|
10095
|
-
},
|
|
10096
|
+
}, dc = k.object({
|
|
10096
10097
|
id: k.coerce.string(),
|
|
10097
10098
|
name: k.string(),
|
|
10098
10099
|
"concluded?": k.boolean().optional(),
|
|
@@ -10105,7 +10106,7 @@ const nc = k.object({
|
|
|
10105
10106
|
with_assignments: k.boolean().optional(),
|
|
10106
10107
|
assignments_next_page: k.string().optional(),
|
|
10107
10108
|
assignments_last_page: k.boolean().optional()
|
|
10108
|
-
}),
|
|
10109
|
+
}), cc = async ({
|
|
10109
10110
|
accountId: t,
|
|
10110
10111
|
courseId: i,
|
|
10111
10112
|
id: n,
|
|
@@ -10116,7 +10117,7 @@ const nc = k.object({
|
|
|
10116
10117
|
return { usedLocations: [], isLastPage: !0, nextPage: void 0 };
|
|
10117
10118
|
const r = t ? `accounts/${t}` : `courses/${i}`, s = a ?? `/api/v1/${r}/rubrics/${n}/used_locations`, { data: o, link: l } = await _e(
|
|
10118
10119
|
{ path: s, method: "GET" },
|
|
10119
|
-
k.array(
|
|
10120
|
+
k.array(dc)
|
|
10120
10121
|
);
|
|
10121
10122
|
return {
|
|
10122
10123
|
usedLocations: o.map((u) => ({
|
|
@@ -10151,17 +10152,17 @@ const nc = k.object({
|
|
|
10151
10152
|
errorData: t.error_data,
|
|
10152
10153
|
progress: t.progress,
|
|
10153
10154
|
workflowState: t.workflow_state
|
|
10154
|
-
}),
|
|
10155
|
+
}), uc = async (t, i, n) => {
|
|
10155
10156
|
if (!t)
|
|
10156
10157
|
throw new Error("No file to import");
|
|
10157
10158
|
const r = `/api/v1/${i ? `accounts/${i}` : `courses/${n}`}/rubrics/upload`, s = new FormData();
|
|
10158
10159
|
s.append("attachment", t);
|
|
10159
10160
|
const { data: o } = await _e({ path: r, method: "POST", body: s }, ar);
|
|
10160
10161
|
return rr(o);
|
|
10161
|
-
},
|
|
10162
|
+
}, mc = async (t, i, n) => {
|
|
10162
10163
|
const r = `/api/v1/${i ? `accounts/${i}` : `courses/${n}`}/rubrics/upload/${t ?? "latest"}`, { data: s } = await _e({ path: r, method: "GET" }, ar);
|
|
10163
10164
|
return rr(s);
|
|
10164
|
-
},
|
|
10165
|
+
}, hc = k.object({
|
|
10165
10166
|
id: k.coerce.string(),
|
|
10166
10167
|
title: k.string(),
|
|
10167
10168
|
points_possible: k.number(),
|
|
@@ -10182,7 +10183,7 @@ const nc = k.object({
|
|
|
10182
10183
|
})
|
|
10183
10184
|
)
|
|
10184
10185
|
}), Yn = async (t, i, n) => {
|
|
10185
|
-
const r = `/api/v1/${i ? `accounts/${i}` : `courses/${n}`}/rubrics/upload/${t}/rubrics`, { data: s } = await _e({ path: r, method: "GET" }, k.array(
|
|
10186
|
+
const r = `/api/v1/${i ? `accounts/${i}` : `courses/${n}`}/rubrics/upload/${t}/rubrics`, { data: s } = await _e({ path: r, method: "GET" }, k.array(hc));
|
|
10186
10187
|
return s.map((o) => ({
|
|
10187
10188
|
id: o.id,
|
|
10188
10189
|
title: o.title,
|
|
@@ -10204,7 +10205,7 @@ const nc = k.object({
|
|
|
10204
10205
|
}))
|
|
10205
10206
|
}))
|
|
10206
10207
|
}));
|
|
10207
|
-
},
|
|
10208
|
+
}, pc = async (t, i, n) => {
|
|
10208
10209
|
var d;
|
|
10209
10210
|
let a = "";
|
|
10210
10211
|
if (t)
|
|
@@ -10217,7 +10218,7 @@ const nc = k.object({
|
|
|
10217
10218
|
method: "POST",
|
|
10218
10219
|
headers: {
|
|
10219
10220
|
"Content-Type": "application/json",
|
|
10220
|
-
"X-CSRF-Token":
|
|
10221
|
+
"X-CSRF-Token": nc("_csrf_token") ?? ""
|
|
10221
10222
|
},
|
|
10222
10223
|
body: JSON.stringify({ rubric_ids: n })
|
|
10223
10224
|
});
|
|
@@ -10260,7 +10261,7 @@ const nc = k.object({
|
|
|
10260
10261
|
totalCount
|
|
10261
10262
|
}
|
|
10262
10263
|
}
|
|
10263
|
-
`,
|
|
10264
|
+
`, gc = qe`
|
|
10264
10265
|
query ViewRubricsCourseRubricsQuery(
|
|
10265
10266
|
$courseId: ID!
|
|
10266
10267
|
$first: Int!
|
|
@@ -10282,7 +10283,7 @@ const nc = k.object({
|
|
|
10282
10283
|
}
|
|
10283
10284
|
}
|
|
10284
10285
|
${sr}
|
|
10285
|
-
`,
|
|
10286
|
+
`, fc = qe`
|
|
10286
10287
|
query ViewRubricsAccountRubricsQuery(
|
|
10287
10288
|
$accountId: ID!
|
|
10288
10289
|
$first: Int!
|
|
@@ -10304,7 +10305,7 @@ const nc = k.object({
|
|
|
10304
10305
|
}
|
|
10305
10306
|
}
|
|
10306
10307
|
${sr}
|
|
10307
|
-
`,
|
|
10308
|
+
`, vc = qe`
|
|
10308
10309
|
query ViewRubricsPreviewQuery($id: ID!) {
|
|
10309
10310
|
rubric(id: $id) {
|
|
10310
10311
|
buttonDisplay
|
|
@@ -10348,7 +10349,7 @@ const nc = k.object({
|
|
|
10348
10349
|
}
|
|
10349
10350
|
}
|
|
10350
10351
|
}
|
|
10351
|
-
`,
|
|
10352
|
+
`, bc = 50, Ic = (t) => ({
|
|
10352
10353
|
id: t.id,
|
|
10353
10354
|
title: t.title ?? "",
|
|
10354
10355
|
buttonDisplay: t.buttonDisplay,
|
|
@@ -10374,37 +10375,37 @@ const nc = k.object({
|
|
|
10374
10375
|
points: n.points
|
|
10375
10376
|
}))
|
|
10376
10377
|
}))
|
|
10377
|
-
}),
|
|
10378
|
+
}), Cc = async (t, i, n) => {
|
|
10378
10379
|
const { course: a } = await t(
|
|
10379
|
-
|
|
10380
|
+
gc,
|
|
10380
10381
|
{ courseId: i, ...n }
|
|
10381
10382
|
);
|
|
10382
10383
|
return (a == null ? void 0 : a.rubricsConnection) ?? null;
|
|
10383
|
-
},
|
|
10384
|
+
}, yc = async (t, i, n) => {
|
|
10384
10385
|
const { account: a } = await t(
|
|
10385
|
-
|
|
10386
|
+
fc,
|
|
10386
10387
|
{ accountId: i, ...n }
|
|
10387
10388
|
);
|
|
10388
10389
|
return (a == null ? void 0 : a.rubricsConnection) ?? null;
|
|
10389
|
-
},
|
|
10390
|
+
}, Lc = async (t, i) => {
|
|
10390
10391
|
if (!i) return null;
|
|
10391
|
-
const { rubric: n } = await t(
|
|
10392
|
+
const { rubric: n } = await t(vc, {
|
|
10392
10393
|
id: i
|
|
10393
10394
|
});
|
|
10394
10395
|
return n ?? null;
|
|
10395
|
-
},
|
|
10396
|
+
}, Tc = async (t, i) => {
|
|
10396
10397
|
const { updateRubricArchivedState: n } = await t(
|
|
10397
10398
|
or,
|
|
10398
10399
|
{ id: i, archived: !0 }
|
|
10399
10400
|
);
|
|
10400
10401
|
return (n == null ? void 0 : n.rubric) ?? null;
|
|
10401
|
-
},
|
|
10402
|
+
}, wc = async (t, i) => {
|
|
10402
10403
|
const { updateRubricArchivedState: n } = await t(
|
|
10403
10404
|
or,
|
|
10404
10405
|
{ id: i, archived: !1 }
|
|
10405
10406
|
);
|
|
10406
10407
|
return (n == null ? void 0 : n.rubric) ?? null;
|
|
10407
|
-
},
|
|
10408
|
+
}, Ac = ({
|
|
10408
10409
|
selectedTab: t,
|
|
10409
10410
|
searchTerm: i,
|
|
10410
10411
|
sort: n,
|
|
@@ -10414,18 +10415,18 @@ const nc = k.object({
|
|
|
10414
10415
|
const { executeQuery: r } = ge(), { accountId: s, courseId: o } = Be(), l = xi(), d = !!s, c = !!o, u = De(
|
|
10415
10416
|
() => xa({ accountId: s, courseId: o }),
|
|
10416
10417
|
[s, o]
|
|
10417
|
-
), m =
|
|
10418
|
+
), m = Ms({
|
|
10418
10419
|
queryKey: [...u, t, i, n],
|
|
10419
10420
|
queryFn: async ({ pageParam: w }) => {
|
|
10420
10421
|
const L = {
|
|
10421
|
-
first:
|
|
10422
|
+
first: bc,
|
|
10422
10423
|
after: w ?? null,
|
|
10423
10424
|
searchTerm: i || void 0,
|
|
10424
10425
|
sort: n,
|
|
10425
10426
|
workflowStates: a
|
|
10426
10427
|
};
|
|
10427
|
-
if (d) return
|
|
10428
|
-
if (c) return
|
|
10428
|
+
if (d) return yc(r, s, L);
|
|
10429
|
+
if (c) return Cc(r, o, L);
|
|
10429
10430
|
throw new Error("No account or course id provided");
|
|
10430
10431
|
},
|
|
10431
10432
|
initialPageParam: null,
|
|
@@ -10433,11 +10434,11 @@ const nc = k.object({
|
|
|
10433
10434
|
enabled: d || c,
|
|
10434
10435
|
// Keep previously loaded pages visible while a filter/sort change refetches
|
|
10435
10436
|
// from scratch so the table doesn't blink on every keystroke or sort click.
|
|
10436
|
-
placeholderData:
|
|
10437
|
+
placeholderData: Ns
|
|
10437
10438
|
}), v = De(
|
|
10438
10439
|
() => {
|
|
10439
10440
|
var w;
|
|
10440
|
-
return ((w = m.data) == null ? void 0 : w.pages.flatMap((L) => (L == null ? void 0 : L.nodes) ?? []).filter((L) => L != null).map(
|
|
10441
|
+
return ((w = m.data) == null ? void 0 : w.pages.flatMap((L) => (L == null ? void 0 : L.nodes) ?? []).filter((L) => L != null).map(Ic)) ?? [];
|
|
10441
10442
|
},
|
|
10442
10443
|
[(y = m.data) == null ? void 0 : y.pages]
|
|
10443
10444
|
), g = ((C = (b = m.data) == null ? void 0 : b.pages[0]) == null ? void 0 : C.pageInfo.totalCount) ?? 0, I = Re(
|
|
@@ -10453,14 +10454,14 @@ const nc = k.object({
|
|
|
10453
10454
|
fetchNextPage: m.fetchNextPage,
|
|
10454
10455
|
invalidate: I
|
|
10455
10456
|
};
|
|
10456
|
-
},
|
|
10457
|
+
}, Sc = ["active", "draft"], xc = ["archived"], Rc = {
|
|
10457
10458
|
Title: "title",
|
|
10458
10459
|
TotalPoints: "points_possible",
|
|
10459
10460
|
Criterion: "criteria_count",
|
|
10460
10461
|
LocationUsed: "has_rubric_associations"
|
|
10461
|
-
},
|
|
10462
|
-
const { translations: t } = S(), { executeQuery: i, notify: n } = ge(), { accountId: a, courseId: r } = Be(), [s, o] = x(rt.saved), [l, d] = x(!1), [c, u] = x(void 0), [m, v] = x(""), [g, I] = x("Title"), [y, b] = x("ascending"), [C, w] = x(), [L, A] = x(!1), [T, R] = x([]), M = s === rt.saved ?
|
|
10463
|
-
() => ({ field:
|
|
10462
|
+
}, Dc = () => {
|
|
10463
|
+
const { translations: t } = S(), { executeQuery: i, notify: n } = ge(), { accountId: a, courseId: r } = Be(), [s, o] = x(rt.saved), [l, d] = x(!1), [c, u] = x(void 0), [m, v] = x(""), [g, I] = x("Title"), [y, b] = x("ascending"), [C, w] = x(), [L, A] = x(!1), [T, R] = x([]), M = s === rt.saved ? Sc : xc, F = De(
|
|
10464
|
+
() => ({ field: Rc[g], direction: y }),
|
|
10464
10465
|
[g, y]
|
|
10465
10466
|
), N = Re((V) => {
|
|
10466
10467
|
I((ae) => ae === V ? (b((te) => te === "ascending" ? "descending" : "ascending"), ae) : (b("ascending"), V));
|
|
@@ -10470,11 +10471,11 @@ const nc = k.object({
|
|
|
10470
10471
|
);
|
|
10471
10472
|
}, []), U = () => R([]), H = async () => {
|
|
10472
10473
|
try {
|
|
10473
|
-
await
|
|
10474
|
+
await pc(r, a, T);
|
|
10474
10475
|
} catch {
|
|
10475
10476
|
n({ type: "error", message: t.viewRubricsDownloadError });
|
|
10476
10477
|
}
|
|
10477
|
-
}, z =
|
|
10478
|
+
}, z = Ac({
|
|
10478
10479
|
selectedTab: s,
|
|
10479
10480
|
searchTerm: m,
|
|
10480
10481
|
sort: F,
|
|
@@ -10482,7 +10483,7 @@ const nc = k.object({
|
|
|
10482
10483
|
}), { invalidate: B } = z, W = Re(
|
|
10483
10484
|
async (V) => {
|
|
10484
10485
|
try {
|
|
10485
|
-
await
|
|
10486
|
+
await Tc(i, V), await B(), n({ type: "success", message: t.viewRubricsArchiveSuccess });
|
|
10486
10487
|
} catch {
|
|
10487
10488
|
n({ type: "error", message: t.viewRubricsArchiveError });
|
|
10488
10489
|
}
|
|
@@ -10497,7 +10498,7 @@ const nc = k.object({
|
|
|
10497
10498
|
), q = Re(
|
|
10498
10499
|
async (V) => {
|
|
10499
10500
|
try {
|
|
10500
|
-
await
|
|
10501
|
+
await wc(i, V), await B(), n({ type: "success", message: t.viewRubricsUnarchiveSuccess });
|
|
10501
10502
|
} catch {
|
|
10502
10503
|
n({ type: "error", message: t.viewRubricsUnarchiveError });
|
|
10503
10504
|
}
|
|
@@ -10511,7 +10512,7 @@ const nc = k.object({
|
|
|
10511
10512
|
]
|
|
10512
10513
|
), { data: Z, isLoading: K } = ut({
|
|
10513
10514
|
queryKey: [`rubric-preview-${c}`],
|
|
10514
|
-
queryFn: async () =>
|
|
10515
|
+
queryFn: async () => Lc(i, c),
|
|
10515
10516
|
enabled: !!c
|
|
10516
10517
|
}), Q = Re((V) => {
|
|
10517
10518
|
u((ae) => {
|
|
@@ -10556,7 +10557,7 @@ const nc = k.object({
|
|
|
10556
10557
|
fetchUsedLocations: async () => {
|
|
10557
10558
|
A(!0);
|
|
10558
10559
|
try {
|
|
10559
|
-
const V = await
|
|
10560
|
+
const V = await cc({
|
|
10560
10561
|
accountId: a,
|
|
10561
10562
|
courseId: r,
|
|
10562
10563
|
id: C,
|
|
@@ -10568,7 +10569,7 @@ const nc = k.object({
|
|
|
10568
10569
|
}
|
|
10569
10570
|
}
|
|
10570
10571
|
};
|
|
10571
|
-
},
|
|
10572
|
+
}, Pc = ["succeeded", "succeeded_with_errors", "failed"], Fc = ["failed", "succeeded_with_errors"], kc = (t) => Fc.includes(t.workflowState), _c = ({
|
|
10572
10573
|
accountId: t,
|
|
10573
10574
|
courseId: i,
|
|
10574
10575
|
importFetchInterval: n = 1e3,
|
|
@@ -10589,7 +10590,7 @@ const nc = k.object({
|
|
|
10589
10590
|
const C = setInterval(async () => {
|
|
10590
10591
|
var w;
|
|
10591
10592
|
try {
|
|
10592
|
-
const L = await
|
|
10593
|
+
const L = await mc(b, t, i);
|
|
10593
10594
|
if (!(L != null && L.id)) {
|
|
10594
10595
|
g(C);
|
|
10595
10596
|
return;
|
|
@@ -10600,7 +10601,7 @@ const nc = k.object({
|
|
|
10600
10601
|
)
|
|
10601
10602
|
);
|
|
10602
10603
|
const { workflowState: A } = L;
|
|
10603
|
-
if (!
|
|
10604
|
+
if (!Pc.includes(A)) return;
|
|
10604
10605
|
if (g(C), A === "succeeded") {
|
|
10605
10606
|
const T = await Yn(L.id, t, i);
|
|
10606
10607
|
await a(T);
|
|
@@ -10622,7 +10623,7 @@ const nc = k.object({
|
|
|
10622
10623
|
}, n);
|
|
10623
10624
|
v.current.add(C);
|
|
10624
10625
|
}, { mutate: y } = Xe({
|
|
10625
|
-
mutationFn: (b) =>
|
|
10626
|
+
mutationFn: (b) => uc(b, t, i),
|
|
10626
10627
|
mutationKey: ["import-rubric"],
|
|
10627
10628
|
onSuccess: (b) => {
|
|
10628
10629
|
l({ type: "success", message: s.importRubricStarted }), c((C) => [...C, b]), I(b.id);
|
|
@@ -10632,7 +10633,7 @@ const nc = k.object({
|
|
|
10632
10633
|
}
|
|
10633
10634
|
});
|
|
10634
10635
|
return { currentImports: d, failedImports: u, startImport: y };
|
|
10635
|
-
},
|
|
10636
|
+
}, Ec = ({
|
|
10636
10637
|
isOpen: t,
|
|
10637
10638
|
onDismiss: i,
|
|
10638
10639
|
rubricImports: n
|
|
@@ -10666,16 +10667,16 @@ const nc = k.object({
|
|
|
10666
10667
|
/* @__PURE__ */ e(f, { as: "div", "data-testid": "import-rubric-failure-header", children: a.importFailuresModalFileListHeader }),
|
|
10667
10668
|
r.map((o, l) => /* @__PURE__ */ e(f, { as: "div", margin: "x-small 0 0", children: /* @__PURE__ */ e(P, { weight: "bold", children: o }) }, `${o}-${l}`)),
|
|
10668
10669
|
/* @__PURE__ */ e(f, { as: "div", margin: "large 0 0", children: a.importFailuresModalReasonHeader }),
|
|
10669
|
-
/* @__PURE__ */ e(f, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ e(at, { margin: "0 0 medium", children:
|
|
10670
|
+
/* @__PURE__ */ e(f, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ e(at, { margin: "0 0 medium", children: to(s).map((o) => /* @__PURE__ */ e(at.Item, { "data-testid": "import-failure-message", children: o }, o)) }) })
|
|
10670
10671
|
] }),
|
|
10671
10672
|
/* @__PURE__ */ e(E.Footer, { children: /* @__PURE__ */ e($, { onClick: i, margin: "0 x-small 0 0", children: a.close }) })
|
|
10672
10673
|
]
|
|
10673
10674
|
}
|
|
10674
10675
|
);
|
|
10675
|
-
}, Ec = "data:image/svg+xml,%3csvg%20width='84'%20height='80'%20viewBox='0%200%2084%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.0098%2060.4653H69.0331V19.0699H56.0098V60.4653ZM55.0796%2061.3955H69.9633V18.1396H55.0796V61.3955Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M69.2684%2032.9859L55.2158%2018.9333L55.8735%2018.2756L69.9261%2032.3282L69.2684%2032.9859Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.8735%2032.9859L55.2158%2032.3282L69.2684%2018.2756L69.9261%2018.9333L55.8735%2032.9859Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M69.2684%2047.4522L55.2158%2033.3996L55.8735%2032.7419L69.9261%2046.7945L69.2684%2047.4522Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.8735%2047.4522L55.2158%2046.7945L69.2684%2032.7419L69.9261%2033.3996L55.8735%2047.4522Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M69.2684%2061.1255L55.2158%2047.073L55.8735%2046.4153L69.9261%2060.4678L69.2684%2061.1255Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.8735%2061.1255L55.2158%2060.4678L69.2684%2046.4153L69.9261%2047.073L55.8735%2061.1255Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.5447%2033.5377H69.4982V32.6074H55.5447V33.5377Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.5447%2047.4913H69.4982V46.561H55.5447V47.4913Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.8158%2021.4446H55.5446V20.5144H39.8158V21.4446Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.1483%2023.721H55.5446V22.7908H40.1483V23.721Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.2662%2042.2559C14.3104%2042.2559%209.32344%2046.4014%208.03274%2051.9642C7.6946%2053.421%208.80669%2054.814%2010.3025%2054.814H30.2299C31.7253%2054.814%2032.8374%2053.421%2032.4997%2051.9642C31.2085%2046.4014%2026.2216%2042.2559%2020.2662%2042.2559Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.2663%2042.7213C14.6072%2042.7213%209.76305%2046.5655%208.4863%2052.0692C8.35747%2052.6231%208.48723%2053.1966%208.84212%2053.6431C9.19793%2054.092%209.73096%2054.3492%2010.3026%2054.3492H30.23C30.8016%2054.3492%2031.3342%2054.092%2031.6905%2053.6431C32.0449%2053.1966%2032.1751%2052.6231%2032.0463%2052.0692C30.7691%2046.5655%2025.9249%2042.7213%2020.2663%2042.7213ZM30.23%2055.2794H10.3026C9.44491%2055.2794%208.6477%2054.8938%208.11329%2054.2222C7.58119%2053.5519%207.38677%2052.691%207.58026%2051.8589C8.95515%2045.931%2014.1719%2041.791%2020.2663%2041.791C26.3603%2041.791%2031.577%2045.931%2032.9524%2051.8589C33.1454%2052.691%2032.951%2053.5519%2032.4189%2054.2226C31.8845%2054.8943%2031.0872%2055.2794%2030.23%2055.2794Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M35.6151%2042.2559C29.6593%2042.2559%2024.6723%2046.4014%2023.3816%2051.9642C23.0435%2053.421%2024.1556%2054.814%2025.6514%2054.814H45.5788C47.0742%2054.814%2048.1863%2053.421%2047.8486%2051.9642C46.5574%2046.4014%2041.5705%2042.2559%2035.6151%2042.2559Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M35.6151%2042.7213C29.956%2042.7213%2025.1118%2046.5655%2023.8351%2052.0692C23.7062%2052.6231%2023.836%2053.1966%2024.1909%2053.6431C24.5467%2054.092%2025.0797%2054.3492%2025.6513%2054.3492H45.5788C46.1504%2054.3492%2046.683%2054.092%2047.0392%2053.6431C47.3937%2053.1966%2047.5239%2052.6231%2047.3951%2052.0692C46.1179%2046.5655%2041.2737%2042.7213%2035.6151%2042.7213ZM45.5788%2055.2794H25.6513C24.7937%2055.2794%2023.9965%2054.8938%2023.462%2054.2222C22.9299%2053.5519%2022.7355%2052.691%2022.929%2051.8589C24.3039%2045.931%2029.5206%2041.791%2035.6151%2041.791C41.709%2041.791%2046.9258%2045.931%2048.3011%2051.8589C48.4941%2052.691%2048.2997%2053.5519%2047.7676%2054.2226C47.2332%2054.8943%2046.436%2055.2794%2045.5788%2055.2794Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.4099%2054.8142C39.955%2049.157%2040.8694%2042.1751%2040.8694%2034.6165C40.8694%2015.7551%2035.1862%200.465332%2028.175%200.465332C21.1643%200.465332%2015.4806%2015.7551%2015.4806%2034.6165C15.4806%2042.1751%2016.3955%2049.157%2017.9406%2054.8142H38.4099Z'%20fill='%23E5E7E9'/%3e%3cmask%20id='mask0'%20mask-type='alpha'%20maskUnits='userSpaceOnUse'%20x='15'%20y='0'%20width='27'%20height='56'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.0154%200H41.3344V55.2793H15.0154V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.2968%2054.3491H38.054C39.5917%2048.57%2040.4042%2041.7565%2040.4042%2034.6165C40.4042%2016.0421%2034.9182%200.930015%2028.1749%200.930015C21.4317%200.930015%2015.9456%2016.0421%2015.9456%2034.6165C15.9456%2041.7556%2016.7582%2048.5691%2018.2968%2054.3491ZM38.7651%2055.2793H17.5856L17.4921%2054.937C15.8717%2049.0053%2015.0154%2041.9788%2015.0154%2034.6165C15.0154%2015.2053%2020.7958%20-0.000244141%2028.1749%20-0.000244141C35.5544%20-0.000244141%2041.3344%2015.2053%2041.3344%2034.6165C41.3344%2041.9798%2040.4782%2049.0067%2038.8586%2054.937L38.7651%2055.2793Z'%20fill='%23243038'/%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M34.2239%2060.6593H22.1267L20.2662%2054.8142H36.0844L34.2239%2060.6593Z'%20fill='%23D0D4D8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.467%2060.194H33.8837L35.4479%2055.2796H20.9028L22.467%2060.194ZM34.5642%2061.1243H21.7865L19.6298%2054.3494H36.7209L34.5642%2061.1243Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M35.5007%2033.6859C35.5007%2037.732%2032.2211%2041.0115%2028.1751%2041.0115C24.1295%2041.0115%2020.8495%2037.732%2020.8495%2033.6859C20.8495%2029.6404%2024.1295%2026.3604%2028.1751%2026.3604C32.2211%2026.3604%2035.5007%2029.6404%2035.5007%2033.6859Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.1751%2026.8258C24.3923%2026.8258%2021.3146%2029.9034%2021.3146%2033.6862C21.3146%2037.469%2024.3923%2040.5467%2028.1751%2040.5467C31.9579%2040.5467%2035.0356%2037.469%2035.0356%2033.6862C35.0356%2029.9034%2031.9579%2026.8258%2028.1751%2026.8258ZM28.1751%2041.4769C23.8793%2041.4769%2020.3844%2037.982%2020.3844%2033.6862C20.3844%2029.3904%2023.8793%2025.8955%2028.1751%2025.8955C32.4709%2025.8955%2035.9658%2029.3904%2035.9658%2033.6862C35.9658%2037.982%2032.4709%2041.4769%2028.1751%2041.4769Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.2914%2033.6861C33.2914%2036.5117%2031.0007%2038.8024%2028.1751%2038.8024C25.3495%2038.8024%2023.0588%2036.5117%2023.0588%2033.6861C23.0588%2030.8605%2025.3495%2028.5698%2028.1751%2028.5698C31.0007%2028.5698%2033.2914%2030.8605%2033.2914%2033.6861Z'%20fill='%239AD6F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.175%2029.0352C25.6104%2029.0352%2023.5239%2031.1217%2023.5239%2033.6864C23.5239%2036.251%2025.6104%2038.3376%2028.175%2038.3376C30.7397%2038.3376%2032.8262%2036.251%2032.8262%2033.6864C32.8262%2031.1217%2030.7397%2029.0352%2028.175%2029.0352ZM28.175%2039.2678C25.0973%2039.2678%2022.5936%2036.764%2022.5936%2033.6864C22.5936%2030.6087%2025.0973%2028.105%2028.175%2028.105C31.2527%2028.105%2033.7564%2030.6087%2033.7564%2033.6864C33.7564%2036.764%2031.2527%2039.2678%2028.175%2039.2678Z'%20fill='%23243038'/%3e%3cmask%20id='mask1'%20mask-type='alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='83'%20height='80'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2080H82.9865V0H0V80Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.8153%2015.3414H38.5353V14.4111H17.8153V15.3414Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M78.8004%2065.5816H4.38184L6.12556%2061.2225C6.19579%2061.0462%206.36742%2060.9304%206.55718%2060.9304H76.6251C76.8149%2060.9304%2076.9865%2061.0462%2077.0567%2061.2225L78.8004%2065.5816Z'%20fill='%23D0D4D8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.06865%2065.1163H78.1133L76.6249%2061.3953H6.55702L5.06865%2065.1163ZM79.4877%2066.0465H3.6947L5.69377%2061.0502C5.83517%2060.6949%206.17424%2060.4651%206.55703%2060.4651H76.6254C77.0082%2060.4651%2077.3468%2060.6949%2077.4887%2061.0507L79.4877%2066.0465Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.38184%2070.6976H78.8004V65.5813H4.38184V70.6976Z'%20fill='%23E5E7E9'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.84698%2070.2325H78.3354V66.0465H4.84698V70.2325ZM3.91675%2071.1627H79.2656V65.1162H3.91675V71.1627Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.24235%2079.535H0.930717C0.589322%2079.535%200.364206%2079.1791%200.510717%2078.8708L4.38188%2070.6978H18.3354L6.24235%2079.535Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.67622%2071.1627L0.930635%2079.0697H6.09064L16.9106%2071.1627H4.67622ZM6.39389%2079.9999H0.930639C0.610174%2079.9999%200.31622%2079.838%200.144592%2079.5668C-0.0265705%2079.2957%20-0.0470356%2078.9613%200.0906388%2078.6715L4.08738%2070.2324H19.7604L6.39389%2079.9999Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.7443%2079.535H82.0559C82.3968%2079.535%2082.6224%2079.1791%2082.4759%2078.8708L78.6047%2070.6978H64.6512L76.7443%2079.535Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.896%2079.0697H82.056L78.3104%2071.1627H66.076L76.896%2079.0697ZM82.056%2079.9999H76.5927L63.2262%2070.2324H78.8992L82.896%2078.672C83.0336%2078.9613%2083.0132%2079.2957%2082.8415%2079.5668C82.6704%2079.838%2082.3764%2079.9999%2082.056%2079.9999Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.9304%2079.3457C39.0179%2079.4647%2039.157%2079.535%2039.3049%2079.535H44.3816C44.7225%2079.535%2051.6281%2070.6978%2051.6281%2070.6978H32.5583L38.9304%2079.3457Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.3047%2079.0697H44.2321C44.9149%2078.4213%2048.2824%2074.2083%2050.6726%2071.1627H33.4786L39.3047%2079.0697ZM39.3047%2079.0701L38.9303%2079.3459L39.3047%2079.0701ZM44.3814%2079.9999H39.3047C39.0103%2079.9999%2038.7307%2079.8585%2038.5563%2079.6217L31.6382%2070.2324H52.5819L51.9945%2070.9836C44.9493%2079.9999%2044.661%2079.9999%2044.3814%2079.9999Z'%20fill='%23243038'/%3e%3c/g%3e%3c/svg%3e", Mc = ["created", "importing", "failed"], Nc = (t) => {
|
|
10676
|
+
}, Mc = "data:image/svg+xml,%3csvg%20width='84'%20height='80'%20viewBox='0%200%2084%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.0098%2060.4653H69.0331V19.0699H56.0098V60.4653ZM55.0796%2061.3955H69.9633V18.1396H55.0796V61.3955Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M69.2684%2032.9859L55.2158%2018.9333L55.8735%2018.2756L69.9261%2032.3282L69.2684%2032.9859Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.8735%2032.9859L55.2158%2032.3282L69.2684%2018.2756L69.9261%2018.9333L55.8735%2032.9859Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M69.2684%2047.4522L55.2158%2033.3996L55.8735%2032.7419L69.9261%2046.7945L69.2684%2047.4522Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.8735%2047.4522L55.2158%2046.7945L69.2684%2032.7419L69.9261%2033.3996L55.8735%2047.4522Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M69.2684%2061.1255L55.2158%2047.073L55.8735%2046.4153L69.9261%2060.4678L69.2684%2061.1255Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.8735%2061.1255L55.2158%2060.4678L69.2684%2046.4153L69.9261%2047.073L55.8735%2061.1255Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.5447%2033.5377H69.4982V32.6074H55.5447V33.5377Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.5447%2047.4913H69.4982V46.561H55.5447V47.4913Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.8158%2021.4446H55.5446V20.5144H39.8158V21.4446Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.1483%2023.721H55.5446V22.7908H40.1483V23.721Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.2662%2042.2559C14.3104%2042.2559%209.32344%2046.4014%208.03274%2051.9642C7.6946%2053.421%208.80669%2054.814%2010.3025%2054.814H30.2299C31.7253%2054.814%2032.8374%2053.421%2032.4997%2051.9642C31.2085%2046.4014%2026.2216%2042.2559%2020.2662%2042.2559Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.2663%2042.7213C14.6072%2042.7213%209.76305%2046.5655%208.4863%2052.0692C8.35747%2052.6231%208.48723%2053.1966%208.84212%2053.6431C9.19793%2054.092%209.73096%2054.3492%2010.3026%2054.3492H30.23C30.8016%2054.3492%2031.3342%2054.092%2031.6905%2053.6431C32.0449%2053.1966%2032.1751%2052.6231%2032.0463%2052.0692C30.7691%2046.5655%2025.9249%2042.7213%2020.2663%2042.7213ZM30.23%2055.2794H10.3026C9.44491%2055.2794%208.6477%2054.8938%208.11329%2054.2222C7.58119%2053.5519%207.38677%2052.691%207.58026%2051.8589C8.95515%2045.931%2014.1719%2041.791%2020.2663%2041.791C26.3603%2041.791%2031.577%2045.931%2032.9524%2051.8589C33.1454%2052.691%2032.951%2053.5519%2032.4189%2054.2226C31.8845%2054.8943%2031.0872%2055.2794%2030.23%2055.2794Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M35.6151%2042.2559C29.6593%2042.2559%2024.6723%2046.4014%2023.3816%2051.9642C23.0435%2053.421%2024.1556%2054.814%2025.6514%2054.814H45.5788C47.0742%2054.814%2048.1863%2053.421%2047.8486%2051.9642C46.5574%2046.4014%2041.5705%2042.2559%2035.6151%2042.2559Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M35.6151%2042.7213C29.956%2042.7213%2025.1118%2046.5655%2023.8351%2052.0692C23.7062%2052.6231%2023.836%2053.1966%2024.1909%2053.6431C24.5467%2054.092%2025.0797%2054.3492%2025.6513%2054.3492H45.5788C46.1504%2054.3492%2046.683%2054.092%2047.0392%2053.6431C47.3937%2053.1966%2047.5239%2052.6231%2047.3951%2052.0692C46.1179%2046.5655%2041.2737%2042.7213%2035.6151%2042.7213ZM45.5788%2055.2794H25.6513C24.7937%2055.2794%2023.9965%2054.8938%2023.462%2054.2222C22.9299%2053.5519%2022.7355%2052.691%2022.929%2051.8589C24.3039%2045.931%2029.5206%2041.791%2035.6151%2041.791C41.709%2041.791%2046.9258%2045.931%2048.3011%2051.8589C48.4941%2052.691%2048.2997%2053.5519%2047.7676%2054.2226C47.2332%2054.8943%2046.436%2055.2794%2045.5788%2055.2794Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.4099%2054.8142C39.955%2049.157%2040.8694%2042.1751%2040.8694%2034.6165C40.8694%2015.7551%2035.1862%200.465332%2028.175%200.465332C21.1643%200.465332%2015.4806%2015.7551%2015.4806%2034.6165C15.4806%2042.1751%2016.3955%2049.157%2017.9406%2054.8142H38.4099Z'%20fill='%23E5E7E9'/%3e%3cmask%20id='mask0'%20mask-type='alpha'%20maskUnits='userSpaceOnUse'%20x='15'%20y='0'%20width='27'%20height='56'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.0154%200H41.3344V55.2793H15.0154V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.2968%2054.3491H38.054C39.5917%2048.57%2040.4042%2041.7565%2040.4042%2034.6165C40.4042%2016.0421%2034.9182%200.930015%2028.1749%200.930015C21.4317%200.930015%2015.9456%2016.0421%2015.9456%2034.6165C15.9456%2041.7556%2016.7582%2048.5691%2018.2968%2054.3491ZM38.7651%2055.2793H17.5856L17.4921%2054.937C15.8717%2049.0053%2015.0154%2041.9788%2015.0154%2034.6165C15.0154%2015.2053%2020.7958%20-0.000244141%2028.1749%20-0.000244141C35.5544%20-0.000244141%2041.3344%2015.2053%2041.3344%2034.6165C41.3344%2041.9798%2040.4782%2049.0067%2038.8586%2054.937L38.7651%2055.2793Z'%20fill='%23243038'/%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M34.2239%2060.6593H22.1267L20.2662%2054.8142H36.0844L34.2239%2060.6593Z'%20fill='%23D0D4D8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.467%2060.194H33.8837L35.4479%2055.2796H20.9028L22.467%2060.194ZM34.5642%2061.1243H21.7865L19.6298%2054.3494H36.7209L34.5642%2061.1243Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M35.5007%2033.6859C35.5007%2037.732%2032.2211%2041.0115%2028.1751%2041.0115C24.1295%2041.0115%2020.8495%2037.732%2020.8495%2033.6859C20.8495%2029.6404%2024.1295%2026.3604%2028.1751%2026.3604C32.2211%2026.3604%2035.5007%2029.6404%2035.5007%2033.6859Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.1751%2026.8258C24.3923%2026.8258%2021.3146%2029.9034%2021.3146%2033.6862C21.3146%2037.469%2024.3923%2040.5467%2028.1751%2040.5467C31.9579%2040.5467%2035.0356%2037.469%2035.0356%2033.6862C35.0356%2029.9034%2031.9579%2026.8258%2028.1751%2026.8258ZM28.1751%2041.4769C23.8793%2041.4769%2020.3844%2037.982%2020.3844%2033.6862C20.3844%2029.3904%2023.8793%2025.8955%2028.1751%2025.8955C32.4709%2025.8955%2035.9658%2029.3904%2035.9658%2033.6862C35.9658%2037.982%2032.4709%2041.4769%2028.1751%2041.4769Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.2914%2033.6861C33.2914%2036.5117%2031.0007%2038.8024%2028.1751%2038.8024C25.3495%2038.8024%2023.0588%2036.5117%2023.0588%2033.6861C23.0588%2030.8605%2025.3495%2028.5698%2028.1751%2028.5698C31.0007%2028.5698%2033.2914%2030.8605%2033.2914%2033.6861Z'%20fill='%239AD6F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.175%2029.0352C25.6104%2029.0352%2023.5239%2031.1217%2023.5239%2033.6864C23.5239%2036.251%2025.6104%2038.3376%2028.175%2038.3376C30.7397%2038.3376%2032.8262%2036.251%2032.8262%2033.6864C32.8262%2031.1217%2030.7397%2029.0352%2028.175%2029.0352ZM28.175%2039.2678C25.0973%2039.2678%2022.5936%2036.764%2022.5936%2033.6864C22.5936%2030.6087%2025.0973%2028.105%2028.175%2028.105C31.2527%2028.105%2033.7564%2030.6087%2033.7564%2033.6864C33.7564%2036.764%2031.2527%2039.2678%2028.175%2039.2678Z'%20fill='%23243038'/%3e%3cmask%20id='mask1'%20mask-type='alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='83'%20height='80'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2080H82.9865V0H0V80Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.8153%2015.3414H38.5353V14.4111H17.8153V15.3414Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M78.8004%2065.5816H4.38184L6.12556%2061.2225C6.19579%2061.0462%206.36742%2060.9304%206.55718%2060.9304H76.6251C76.8149%2060.9304%2076.9865%2061.0462%2077.0567%2061.2225L78.8004%2065.5816Z'%20fill='%23D0D4D8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.06865%2065.1163H78.1133L76.6249%2061.3953H6.55702L5.06865%2065.1163ZM79.4877%2066.0465H3.6947L5.69377%2061.0502C5.83517%2060.6949%206.17424%2060.4651%206.55703%2060.4651H76.6254C77.0082%2060.4651%2077.3468%2060.6949%2077.4887%2061.0507L79.4877%2066.0465Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.38184%2070.6976H78.8004V65.5813H4.38184V70.6976Z'%20fill='%23E5E7E9'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.84698%2070.2325H78.3354V66.0465H4.84698V70.2325ZM3.91675%2071.1627H79.2656V65.1162H3.91675V71.1627Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.24235%2079.535H0.930717C0.589322%2079.535%200.364206%2079.1791%200.510717%2078.8708L4.38188%2070.6978H18.3354L6.24235%2079.535Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.67622%2071.1627L0.930635%2079.0697H6.09064L16.9106%2071.1627H4.67622ZM6.39389%2079.9999H0.930639C0.610174%2079.9999%200.31622%2079.838%200.144592%2079.5668C-0.0265705%2079.2957%20-0.0470356%2078.9613%200.0906388%2078.6715L4.08738%2070.2324H19.7604L6.39389%2079.9999Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.7443%2079.535H82.0559C82.3968%2079.535%2082.6224%2079.1791%2082.4759%2078.8708L78.6047%2070.6978H64.6512L76.7443%2079.535Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.896%2079.0697H82.056L78.3104%2071.1627H66.076L76.896%2079.0697ZM82.056%2079.9999H76.5927L63.2262%2070.2324H78.8992L82.896%2078.672C83.0336%2078.9613%2083.0132%2079.2957%2082.8415%2079.5668C82.6704%2079.838%2082.3764%2079.9999%2082.056%2079.9999Z'%20fill='%23243038'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.9304%2079.3457C39.0179%2079.4647%2039.157%2079.535%2039.3049%2079.535H44.3816C44.7225%2079.535%2051.6281%2070.6978%2051.6281%2070.6978H32.5583L38.9304%2079.3457Z'%20fill='%23C0C6CB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.3047%2079.0697H44.2321C44.9149%2078.4213%2048.2824%2074.2083%2050.6726%2071.1627H33.4786L39.3047%2079.0697ZM39.3047%2079.0701L38.9303%2079.3459L39.3047%2079.0701ZM44.3814%2079.9999H39.3047C39.0103%2079.9999%2038.7307%2079.8585%2038.5563%2079.6217L31.6382%2070.2324H52.5819L51.9945%2070.9836C44.9493%2079.9999%2044.661%2079.9999%2044.3814%2079.9999Z'%20fill='%23243038'/%3e%3c/g%3e%3c/svg%3e", Nc = ["created", "importing", "failed"], Oc = (t) => {
|
|
10676
10677
|
const i = Number(t);
|
|
10677
10678
|
return i < 1024 ? `${i} bytes` : i < 1024 * 1024 ? `${Math.round(i / 1024 * 10) / 10} KB` : `${Math.round(i / (1024 * 1024) * 10) / 10} MB`;
|
|
10678
|
-
},
|
|
10679
|
+
}, Bc = ({ importsInProgress: t, onClickImport: i }) => {
|
|
10679
10680
|
const { translations: n } = S(), a = (r) => {
|
|
10680
10681
|
const { filename: s } = r.attachment;
|
|
10681
10682
|
return /* @__PURE__ */ e(Pe, { renderTip: s, children: /* @__PURE__ */ e(Ke, { as: "button", isWithinText: !1, onClick: () => i(r), children: /* @__PURE__ */ e(Nt, { children: s }) }) });
|
|
@@ -10689,8 +10690,8 @@ const nc = k.object({
|
|
|
10689
10690
|
const { workflowState: s } = r, o = s === "failed" ? 100 : r.progress, l = s === "failed" ? "danger" : "info";
|
|
10690
10691
|
return /* @__PURE__ */ h(oe.Row, { children: [
|
|
10691
10692
|
/* @__PURE__ */ e(oe.Cell, { "data-testid": `rubric-import-job-filename-${r.id}`, children: a(r) }),
|
|
10692
|
-
|
|
10693
|
-
|
|
10693
|
+
Nc.includes(s) ? /* @__PURE__ */ e(oe.Cell, { children: /* @__PURE__ */ e(
|
|
10694
|
+
qs,
|
|
10694
10695
|
{
|
|
10695
10696
|
size: "small",
|
|
10696
10697
|
screenReaderLabel: n.importTableProgressLabel,
|
|
@@ -10698,11 +10699,11 @@ const nc = k.object({
|
|
|
10698
10699
|
meterColor: l,
|
|
10699
10700
|
valueMax: 100
|
|
10700
10701
|
}
|
|
10701
|
-
) }) : /* @__PURE__ */ e(oe.Cell, { "data-testid": `rubric-import-job-size-${r.id}`, children:
|
|
10702
|
+
) }) : /* @__PURE__ */ e(oe.Cell, { "data-testid": `rubric-import-job-size-${r.id}`, children: Oc(r.attachment.size) })
|
|
10702
10703
|
] }, r.id);
|
|
10703
10704
|
}) })
|
|
10704
10705
|
] });
|
|
10705
|
-
},
|
|
10706
|
+
}, $c = "/api/v1/rubrics/upload_template", zc = ({
|
|
10706
10707
|
currentImports: t,
|
|
10707
10708
|
isOpen: i,
|
|
10708
10709
|
onClickImport: n,
|
|
@@ -10711,7 +10712,7 @@ const nc = k.object({
|
|
|
10711
10712
|
}) => {
|
|
10712
10713
|
const { translations: s } = S(), o = () => {
|
|
10713
10714
|
const l = document.createElement("a");
|
|
10714
|
-
l.href =
|
|
10715
|
+
l.href = $c, l.click();
|
|
10715
10716
|
};
|
|
10716
10717
|
return /* @__PURE__ */ h(
|
|
10717
10718
|
Ri,
|
|
@@ -10746,7 +10747,7 @@ const nc = k.object({
|
|
|
10746
10747
|
}
|
|
10747
10748
|
),
|
|
10748
10749
|
/* @__PURE__ */ e(f, { as: "div", height: "410px", margin: "large small 0", children: /* @__PURE__ */ e(
|
|
10749
|
-
|
|
10750
|
+
Gs,
|
|
10750
10751
|
{
|
|
10751
10752
|
height: "100%",
|
|
10752
10753
|
width: "100%",
|
|
@@ -10765,7 +10766,7 @@ const nc = k.object({
|
|
|
10765
10766
|
background: "primary",
|
|
10766
10767
|
"data-testid": "rubric-import-file-drop",
|
|
10767
10768
|
children: [
|
|
10768
|
-
/* @__PURE__ */ e(f, { as: "div", margin: "x-large", children: /* @__PURE__ */ e("img", { src:
|
|
10769
|
+
/* @__PURE__ */ e(f, { as: "div", margin: "x-large", children: /* @__PURE__ */ e("img", { src: Mc, alt: "" }) }),
|
|
10769
10770
|
/* @__PURE__ */ e(f, { as: "div", children: /* @__PURE__ */ e(P, { size: "large", lineHeight: "double", children: s.importRubricTrayDragFile }) }),
|
|
10770
10771
|
/* @__PURE__ */ e(f, { as: "div", children: /* @__PURE__ */ e(P, { size: "medium", color: "brand", lineHeight: "double", children: s.importRubricTrayChooseFile }) })
|
|
10771
10772
|
]
|
|
@@ -10773,11 +10774,11 @@ const nc = k.object({
|
|
|
10773
10774
|
)
|
|
10774
10775
|
}
|
|
10775
10776
|
) }),
|
|
10776
|
-
t.length > 0 && /* @__PURE__ */ e(f, { as: "div", margin: "medium xx-small 0", children: /* @__PURE__ */ e(
|
|
10777
|
+
t.length > 0 && /* @__PURE__ */ e(f, { as: "div", margin: "medium xx-small 0", children: /* @__PURE__ */ e(Bc, { importsInProgress: t, onClickImport: n }) })
|
|
10777
10778
|
]
|
|
10778
10779
|
}
|
|
10779
10780
|
);
|
|
10780
|
-
},
|
|
10781
|
+
}, Hc = ({
|
|
10781
10782
|
accountId: t,
|
|
10782
10783
|
courseId: i,
|
|
10783
10784
|
isTrayOpen: n,
|
|
@@ -10789,7 +10790,7 @@ const nc = k.object({
|
|
|
10789
10790
|
currentImports: d,
|
|
10790
10791
|
failedImports: c,
|
|
10791
10792
|
startImport: u
|
|
10792
|
-
} =
|
|
10793
|
+
} = _c({
|
|
10793
10794
|
accountId: t,
|
|
10794
10795
|
courseId: i,
|
|
10795
10796
|
importFetchInterval: a,
|
|
@@ -10798,19 +10799,19 @@ const nc = k.object({
|
|
|
10798
10799
|
});
|
|
10799
10800
|
return /* @__PURE__ */ h(ne, { children: [
|
|
10800
10801
|
/* @__PURE__ */ e(
|
|
10801
|
-
|
|
10802
|
+
zc,
|
|
10802
10803
|
{
|
|
10803
10804
|
currentImports: d,
|
|
10804
10805
|
isOpen: n,
|
|
10805
10806
|
onClickImport: (v) => {
|
|
10806
|
-
|
|
10807
|
+
kc(v) && l(!0);
|
|
10807
10808
|
},
|
|
10808
10809
|
onClose: r,
|
|
10809
10810
|
onImport: u
|
|
10810
10811
|
}
|
|
10811
10812
|
),
|
|
10812
10813
|
/* @__PURE__ */ e(
|
|
10813
|
-
|
|
10814
|
+
Ec,
|
|
10814
10815
|
{
|
|
10815
10816
|
rubricImports: c,
|
|
10816
10817
|
isOpen: o,
|
|
@@ -10820,10 +10821,10 @@ const nc = k.object({
|
|
|
10820
10821
|
] });
|
|
10821
10822
|
};
|
|
10822
10823
|
var it = {}, jn;
|
|
10823
|
-
function
|
|
10824
|
+
function Wc() {
|
|
10824
10825
|
if (jn) return it;
|
|
10825
10826
|
jn = 1;
|
|
10826
|
-
var t =
|
|
10827
|
+
var t = Ys;
|
|
10827
10828
|
if (process.env.NODE_ENV === "production")
|
|
10828
10829
|
it.createRoot = t.createRoot, it.hydrateRoot = t.hydrateRoot;
|
|
10829
10830
|
else {
|
|
@@ -10846,12 +10847,12 @@ function Hc() {
|
|
|
10846
10847
|
}
|
|
10847
10848
|
return it;
|
|
10848
10849
|
}
|
|
10849
|
-
|
|
10850
|
+
Wc();
|
|
10850
10851
|
function Lt() {
|
|
10851
10852
|
let t = document.getElementById("flash_screenreader_holder");
|
|
10852
10853
|
return t || (t = document.createElement("div"), t.id = "flash_screenreader_holder", t.setAttribute("role", "alert"), document.body.appendChild(t)), t;
|
|
10853
10854
|
}
|
|
10854
|
-
function
|
|
10855
|
+
function Vc({
|
|
10855
10856
|
label: t,
|
|
10856
10857
|
closeButtonLabel: i = "Close",
|
|
10857
10858
|
closeButtonElementRef: n,
|
|
@@ -10877,13 +10878,13 @@ function Wc({
|
|
|
10877
10878
|
r
|
|
10878
10879
|
] });
|
|
10879
10880
|
}
|
|
10880
|
-
Object.assign(
|
|
10881
|
+
Object.assign(Vc, {
|
|
10881
10882
|
Header: E.Header,
|
|
10882
10883
|
Body: E.Body,
|
|
10883
10884
|
Footer: E.Footer
|
|
10884
10885
|
});
|
|
10885
10886
|
const mi = "~~empty-option~~";
|
|
10886
|
-
function
|
|
10887
|
+
function Uc({
|
|
10887
10888
|
options: t = [],
|
|
10888
10889
|
renderLabel: i = "",
|
|
10889
10890
|
inputValue: n,
|
|
@@ -10986,13 +10987,13 @@ function Vc({
|
|
|
10986
10987
|
/* @__PURE__ */ e(He, { liveRegion: Lt, liveRegionPoliteness: "assertive", screenReaderOnly: !0, children: U })
|
|
10987
10988
|
] });
|
|
10988
10989
|
}
|
|
10989
|
-
Object.assign(
|
|
10990
|
+
Object.assign(Uc, { Option: je.Option });
|
|
10990
10991
|
const bt = "8.55.0", Oe = globalThis;
|
|
10991
10992
|
function Oi(t, i, n) {
|
|
10992
10993
|
const a = Oe, r = a.__SENTRY__ = a.__SENTRY__ || {}, s = r[bt] = r[bt] || {};
|
|
10993
10994
|
return s[t] || (s[t] = i());
|
|
10994
10995
|
}
|
|
10995
|
-
const Bi = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__,
|
|
10996
|
+
const Bi = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Gc = "Sentry Logger ", Zn = [
|
|
10996
10997
|
"debug",
|
|
10997
10998
|
"info",
|
|
10998
10999
|
"warn",
|
|
@@ -11017,7 +11018,7 @@ function lr(t) {
|
|
|
11017
11018
|
});
|
|
11018
11019
|
}
|
|
11019
11020
|
}
|
|
11020
|
-
function
|
|
11021
|
+
function qc() {
|
|
11021
11022
|
let t = !1;
|
|
11022
11023
|
const i = {
|
|
11023
11024
|
enable: () => {
|
|
@@ -11031,7 +11032,7 @@ function Gc() {
|
|
|
11031
11032
|
return Bi ? Zn.forEach((n) => {
|
|
11032
11033
|
i[n] = (...a) => {
|
|
11033
11034
|
t && lr(() => {
|
|
11034
|
-
Oe.console[n](`${
|
|
11035
|
+
Oe.console[n](`${Gc}[${n}]:`, ...a);
|
|
11035
11036
|
});
|
|
11036
11037
|
};
|
|
11037
11038
|
}) : Zn.forEach((n) => {
|
|
@@ -11039,7 +11040,7 @@ function Gc() {
|
|
|
11039
11040
|
};
|
|
11040
11041
|
}), i;
|
|
11041
11042
|
}
|
|
11042
|
-
const Se = Oi("logger",
|
|
11043
|
+
const Se = Oi("logger", qc);
|
|
11043
11044
|
function $t() {
|
|
11044
11045
|
return $i(Oe), Oe;
|
|
11045
11046
|
}
|
|
@@ -11048,7 +11049,7 @@ function $i(t) {
|
|
|
11048
11049
|
return i.version = i.version || bt, i[bt] = i[bt] || {};
|
|
11049
11050
|
}
|
|
11050
11051
|
const dr = Object.prototype.toString;
|
|
11051
|
-
function
|
|
11052
|
+
function Yc(t) {
|
|
11052
11053
|
switch (dr.call(t)) {
|
|
11053
11054
|
case "[object Error]":
|
|
11054
11055
|
case "[object Exception]":
|
|
@@ -11056,26 +11057,26 @@ function qc(t) {
|
|
|
11056
11057
|
case "[object WebAssembly.Exception]":
|
|
11057
11058
|
return !0;
|
|
11058
11059
|
default:
|
|
11059
|
-
return
|
|
11060
|
+
return Qc(t, Error);
|
|
11060
11061
|
}
|
|
11061
11062
|
}
|
|
11062
|
-
function
|
|
11063
|
+
function jc(t, i) {
|
|
11063
11064
|
return dr.call(t) === `[object ${i}]`;
|
|
11064
11065
|
}
|
|
11065
|
-
function jc(t) {
|
|
11066
|
-
return Yc(t, "Object");
|
|
11067
|
-
}
|
|
11068
11066
|
function Zc(t) {
|
|
11067
|
+
return jc(t, "Object");
|
|
11068
|
+
}
|
|
11069
|
+
function Kc(t) {
|
|
11069
11070
|
return !!(t && t.then && typeof t.then == "function");
|
|
11070
11071
|
}
|
|
11071
|
-
function
|
|
11072
|
+
function Qc(t, i) {
|
|
11072
11073
|
try {
|
|
11073
11074
|
return t instanceof i;
|
|
11074
11075
|
} catch {
|
|
11075
11076
|
return !1;
|
|
11076
11077
|
}
|
|
11077
11078
|
}
|
|
11078
|
-
function
|
|
11079
|
+
function Xc(t, i, n) {
|
|
11079
11080
|
try {
|
|
11080
11081
|
Object.defineProperty(t, i, {
|
|
11081
11082
|
// enumerable: false, // the default, so we can save on bundle size by not explicitly setting it
|
|
@@ -11091,14 +11092,14 @@ const cr = 1e3;
|
|
|
11091
11092
|
function ur() {
|
|
11092
11093
|
return Date.now() / cr;
|
|
11093
11094
|
}
|
|
11094
|
-
function
|
|
11095
|
+
function Jc() {
|
|
11095
11096
|
const { performance: t } = Oe;
|
|
11096
11097
|
if (!t || !t.now)
|
|
11097
11098
|
return ur;
|
|
11098
11099
|
const i = Date.now() - t.now(), n = t.timeOrigin == null ? i : t.timeOrigin;
|
|
11099
11100
|
return () => (n + t.now()) / cr;
|
|
11100
11101
|
}
|
|
11101
|
-
const
|
|
11102
|
+
const eu = Jc();
|
|
11102
11103
|
(() => {
|
|
11103
11104
|
const { performance: t } = Oe;
|
|
11104
11105
|
if (!t || !t.now)
|
|
@@ -11126,8 +11127,8 @@ function st() {
|
|
|
11126
11127
|
)
|
|
11127
11128
|
);
|
|
11128
11129
|
}
|
|
11129
|
-
function
|
|
11130
|
-
if (i.user && (!t.ipAddress && i.user.ip_address && (t.ipAddress = i.user.ip_address), !t.did && !i.did && (t.did = i.user.id || i.user.email || i.user.username)), t.timestamp = i.timestamp ||
|
|
11130
|
+
function tu(t, i = {}) {
|
|
11131
|
+
if (i.user && (!t.ipAddress && i.user.ip_address && (t.ipAddress = i.user.ip_address), !t.did && !i.did && (t.did = i.user.id || i.user.email || i.user.username)), t.timestamp = i.timestamp || eu(), i.abnormal_mechanism && (t.abnormal_mechanism = i.abnormal_mechanism), i.ignoreDuration && (t.ignoreDuration = i.ignoreDuration), i.sid && (t.sid = i.sid.length === 32 ? i.sid : st()), i.init !== void 0 && (t.init = i.init), !t.did && i.did && (t.did = `${i.did}`), typeof i.started == "number" && (t.started = i.started), t.ignoreDuration)
|
|
11131
11132
|
t.duration = void 0;
|
|
11132
11133
|
else if (typeof i.duration == "number")
|
|
11133
11134
|
t.duration = i.duration;
|
|
@@ -11155,12 +11156,12 @@ function mr(t, i, n = 2) {
|
|
|
11155
11156
|
}
|
|
11156
11157
|
const bi = "_sentrySpan";
|
|
11157
11158
|
function Jn(t, i) {
|
|
11158
|
-
i ?
|
|
11159
|
+
i ? Xc(t, bi, i) : delete t[bi];
|
|
11159
11160
|
}
|
|
11160
11161
|
function ea(t) {
|
|
11161
11162
|
return t[bi];
|
|
11162
11163
|
}
|
|
11163
|
-
const
|
|
11164
|
+
const iu = 100;
|
|
11164
11165
|
class zi {
|
|
11165
11166
|
/** Flag if notifying is happening. */
|
|
11166
11167
|
/** Callback for client to receive scope changes. */
|
|
@@ -11250,7 +11251,7 @@ class zi {
|
|
|
11250
11251
|
id: void 0,
|
|
11251
11252
|
ip_address: void 0,
|
|
11252
11253
|
username: void 0
|
|
11253
|
-
}, this._session &&
|
|
11254
|
+
}, this._session && tu(this._session, { user: i }), this._notifyScopeListeners(), this;
|
|
11254
11255
|
}
|
|
11255
11256
|
/**
|
|
11256
11257
|
* @inheritDoc
|
|
@@ -11355,7 +11356,7 @@ class zi {
|
|
|
11355
11356
|
const n = typeof i == "function" ? i(this) : i, [a, r] = n instanceof lt ? (
|
|
11356
11357
|
// eslint-disable-next-line deprecation/deprecation
|
|
11357
11358
|
[n.getScopeData(), n.getRequestSession()]
|
|
11358
|
-
) :
|
|
11359
|
+
) : Zc(n) ? [i, i.requestSession] : [], { tags: s, extra: o, user: l, contexts: d, level: c, fingerprint: u = [], propagationContext: m } = a || {};
|
|
11359
11360
|
return this._tags = { ...this._tags, ...s }, this._extra = { ...this._extra, ...o }, this._contexts = { ...this._contexts, ...d }, l && Object.keys(l).length && (this._user = l), c && (this._level = c), u.length && (this._fingerprint = u), m && (this._propagationContext = m), r && (this._requestSession = r), this;
|
|
11360
11361
|
}
|
|
11361
11362
|
/**
|
|
@@ -11368,7 +11369,7 @@ class zi {
|
|
|
11368
11369
|
* @inheritDoc
|
|
11369
11370
|
*/
|
|
11370
11371
|
addBreadcrumb(i, n) {
|
|
11371
|
-
const a = typeof n == "number" ? n :
|
|
11372
|
+
const a = typeof n == "number" ? n : iu;
|
|
11372
11373
|
if (a <= 0)
|
|
11373
11374
|
return this;
|
|
11374
11375
|
const r = {
|
|
@@ -11497,13 +11498,13 @@ class zi {
|
|
|
11497
11498
|
}
|
|
11498
11499
|
}
|
|
11499
11500
|
const lt = zi;
|
|
11500
|
-
function
|
|
11501
|
+
function nu() {
|
|
11501
11502
|
return Oi("defaultCurrentScope", () => new lt());
|
|
11502
11503
|
}
|
|
11503
|
-
function
|
|
11504
|
+
function au() {
|
|
11504
11505
|
return Oi("defaultIsolationScope", () => new lt());
|
|
11505
11506
|
}
|
|
11506
|
-
class
|
|
11507
|
+
class ru {
|
|
11507
11508
|
constructor(i, n) {
|
|
11508
11509
|
let a;
|
|
11509
11510
|
i ? a = i : a = new lt();
|
|
@@ -11521,7 +11522,7 @@ class au {
|
|
|
11521
11522
|
} catch (r) {
|
|
11522
11523
|
throw this._popScope(), r;
|
|
11523
11524
|
}
|
|
11524
|
-
return
|
|
11525
|
+
return Kc(a) ? a.then(
|
|
11525
11526
|
(r) => (this._popScope(), r),
|
|
11526
11527
|
(r) => {
|
|
11527
11528
|
throw this._popScope(), r;
|
|
@@ -11571,23 +11572,23 @@ class au {
|
|
|
11571
11572
|
}
|
|
11572
11573
|
function dt() {
|
|
11573
11574
|
const t = $t(), i = $i(t);
|
|
11574
|
-
return i.stack = i.stack || new
|
|
11575
|
+
return i.stack = i.stack || new ru(nu(), au());
|
|
11575
11576
|
}
|
|
11576
|
-
function
|
|
11577
|
+
function su(t) {
|
|
11577
11578
|
return dt().withScope(t);
|
|
11578
11579
|
}
|
|
11579
|
-
function
|
|
11580
|
+
function ou(t, i) {
|
|
11580
11581
|
const n = dt();
|
|
11581
11582
|
return n.withScope(() => (n.getStackTop().scope = t, i(t)));
|
|
11582
11583
|
}
|
|
11583
11584
|
function ta(t) {
|
|
11584
11585
|
return dt().withScope(() => t(dt().getIsolationScope()));
|
|
11585
11586
|
}
|
|
11586
|
-
function
|
|
11587
|
+
function lu() {
|
|
11587
11588
|
return {
|
|
11588
11589
|
withIsolationScope: ta,
|
|
11589
|
-
withScope:
|
|
11590
|
-
withSetScope:
|
|
11590
|
+
withScope: su,
|
|
11591
|
+
withSetScope: ou,
|
|
11591
11592
|
withSetIsolationScope: (t, i) => ta(i),
|
|
11592
11593
|
getCurrentScope: () => dt().getScope(),
|
|
11593
11594
|
getIsolationScope: () => dt().getIsolationScope()
|
|
@@ -11595,17 +11596,17 @@ function ou() {
|
|
|
11595
11596
|
}
|
|
11596
11597
|
function Hi(t) {
|
|
11597
11598
|
const i = $i(t);
|
|
11598
|
-
return i.acs ? i.acs :
|
|
11599
|
+
return i.acs ? i.acs : lu();
|
|
11599
11600
|
}
|
|
11600
11601
|
function Wi() {
|
|
11601
11602
|
const t = $t();
|
|
11602
11603
|
return Hi(t).getCurrentScope();
|
|
11603
11604
|
}
|
|
11604
|
-
function
|
|
11605
|
+
function du() {
|
|
11605
11606
|
const t = $t();
|
|
11606
11607
|
return Hi(t).getIsolationScope();
|
|
11607
11608
|
}
|
|
11608
|
-
function
|
|
11609
|
+
function cu(...t) {
|
|
11609
11610
|
const i = $t(), n = Hi(i);
|
|
11610
11611
|
if (t.length === 2) {
|
|
11611
11612
|
const [a, r] = t;
|
|
@@ -11613,19 +11614,19 @@ function du(...t) {
|
|
|
11613
11614
|
}
|
|
11614
11615
|
return n.withScope(t[0]);
|
|
11615
11616
|
}
|
|
11616
|
-
function
|
|
11617
|
+
function uu() {
|
|
11617
11618
|
return Wi().getClient();
|
|
11618
11619
|
}
|
|
11619
|
-
const
|
|
11620
|
-
function
|
|
11620
|
+
const mu = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
|
|
11621
|
+
function hu(t) {
|
|
11621
11622
|
return t === "http" || t === "https";
|
|
11622
11623
|
}
|
|
11623
|
-
function
|
|
11624
|
+
function pu(t, i = !1) {
|
|
11624
11625
|
const { host: n, path: a, pass: r, port: s, projectId: o, protocol: l, publicKey: d } = t;
|
|
11625
11626
|
return `${l}://${d}${i && r ? `:${r}` : ""}@${n}${s ? `:${s}` : ""}/${a && `${a}/`}${o}`;
|
|
11626
11627
|
}
|
|
11627
|
-
function
|
|
11628
|
-
const i =
|
|
11628
|
+
function gu(t) {
|
|
11629
|
+
const i = mu.exec(t);
|
|
11629
11630
|
if (!i) {
|
|
11630
11631
|
lr(() => {
|
|
11631
11632
|
console.error(`Invalid Sentry Dsn: ${t}`);
|
|
@@ -11652,27 +11653,27 @@ function hr(t) {
|
|
|
11652
11653
|
projectId: t.projectId
|
|
11653
11654
|
};
|
|
11654
11655
|
}
|
|
11655
|
-
function
|
|
11656
|
+
function fu(t) {
|
|
11656
11657
|
if (!Bi)
|
|
11657
11658
|
return !0;
|
|
11658
11659
|
const { port: i, projectId: n, protocol: a } = t;
|
|
11659
|
-
return ["protocol", "publicKey", "host", "projectId"].find((r) => t[r] ? !1 : (Se.error(`Invalid Sentry Dsn: ${r} missing`), !0)) ? !1 : n.match(/^\d+$/) ?
|
|
11660
|
+
return ["protocol", "publicKey", "host", "projectId"].find((r) => t[r] ? !1 : (Se.error(`Invalid Sentry Dsn: ${r} missing`), !0)) ? !1 : n.match(/^\d+$/) ? hu(a) ? i && isNaN(parseInt(i, 10)) ? (Se.error(`Invalid Sentry Dsn: Invalid port ${i}`), !1) : !0 : (Se.error(`Invalid Sentry Dsn: Invalid protocol ${a}`), !1) : (Se.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
|
|
11660
11661
|
}
|
|
11661
|
-
function
|
|
11662
|
-
const i = typeof t == "string" ?
|
|
11663
|
-
if (!(!i || !
|
|
11662
|
+
function vu(t) {
|
|
11663
|
+
const i = typeof t == "string" ? gu(t) : hr(t);
|
|
11664
|
+
if (!(!i || !fu(i)))
|
|
11664
11665
|
return i;
|
|
11665
11666
|
}
|
|
11666
|
-
function
|
|
11667
|
+
function bu(t) {
|
|
11667
11668
|
if (t)
|
|
11668
|
-
return
|
|
11669
|
+
return Iu(t) ? { captureContext: t } : yu(t) ? {
|
|
11669
11670
|
captureContext: t
|
|
11670
11671
|
} : t;
|
|
11671
11672
|
}
|
|
11672
|
-
function
|
|
11673
|
+
function Iu(t) {
|
|
11673
11674
|
return t instanceof lt || typeof t == "function";
|
|
11674
11675
|
}
|
|
11675
|
-
const
|
|
11676
|
+
const Cu = [
|
|
11676
11677
|
"user",
|
|
11677
11678
|
"level",
|
|
11678
11679
|
"extra",
|
|
@@ -11682,25 +11683,25 @@ const Iu = [
|
|
|
11682
11683
|
"requestSession",
|
|
11683
11684
|
"propagationContext"
|
|
11684
11685
|
];
|
|
11685
|
-
function
|
|
11686
|
-
return Object.keys(t).some((i) =>
|
|
11686
|
+
function yu(t) {
|
|
11687
|
+
return Object.keys(t).some((i) => Cu.includes(i));
|
|
11687
11688
|
}
|
|
11688
|
-
function
|
|
11689
|
-
return Wi().captureException(t,
|
|
11689
|
+
function Lu(t, i) {
|
|
11690
|
+
return Wi().captureException(t, bu(i));
|
|
11690
11691
|
}
|
|
11691
|
-
function
|
|
11692
|
-
return
|
|
11692
|
+
function Tu() {
|
|
11693
|
+
return du().lastEventId();
|
|
11693
11694
|
}
|
|
11694
|
-
function
|
|
11695
|
+
function wu(t) {
|
|
11695
11696
|
const i = t.protocol ? `${t.protocol}:` : "", n = t.port ? `:${t.port}` : "";
|
|
11696
11697
|
return `${i}//${t.host}${n}${t.path ? `/${t.path}` : ""}/api/`;
|
|
11697
11698
|
}
|
|
11698
|
-
function
|
|
11699
|
-
const n =
|
|
11699
|
+
function Au(t, i) {
|
|
11700
|
+
const n = vu(t);
|
|
11700
11701
|
if (!n)
|
|
11701
11702
|
return "";
|
|
11702
|
-
const a = `${
|
|
11703
|
-
let r = `dsn=${
|
|
11703
|
+
const a = `${wu(n)}embed/error-page/`;
|
|
11704
|
+
let r = `dsn=${pu(n)}`;
|
|
11704
11705
|
for (const s in i)
|
|
11705
11706
|
if (s !== "dsn" && s !== "onClose")
|
|
11706
11707
|
if (s === "user") {
|
|
@@ -11727,11 +11728,11 @@ function ia(t = {}) {
|
|
|
11727
11728
|
...i.getUser(),
|
|
11728
11729
|
...t.user
|
|
11729
11730
|
}), !t.eventId) {
|
|
11730
|
-
const l =
|
|
11731
|
+
const l = Tu();
|
|
11731
11732
|
l && (t.eventId = l);
|
|
11732
11733
|
}
|
|
11733
11734
|
const r = nt.document.createElement("script");
|
|
11734
|
-
r.async = !0, r.crossOrigin = "anonymous", r.src =
|
|
11735
|
+
r.async = !0, r.crossOrigin = "anonymous", r.src = Au(a, t), t.onLoad && (r.onload = t.onLoad);
|
|
11735
11736
|
const { onClose: s } = t;
|
|
11736
11737
|
if (s) {
|
|
11737
11738
|
const l = (d) => {
|
|
@@ -11747,11 +11748,11 @@ function ia(t = {}) {
|
|
|
11747
11748
|
const o = nt.document.head || nt.document.body;
|
|
11748
11749
|
o ? o.appendChild(r) : hi && Se.error("Not injecting report dialog. No injection point found in HTML");
|
|
11749
11750
|
}
|
|
11750
|
-
function
|
|
11751
|
+
function Su(t) {
|
|
11751
11752
|
const i = t.match(/^([^.]+)/);
|
|
11752
11753
|
return i !== null && parseInt(i[0]) >= 17;
|
|
11753
11754
|
}
|
|
11754
|
-
function
|
|
11755
|
+
function xu(t, i) {
|
|
11755
11756
|
const n = /* @__PURE__ */ new WeakSet();
|
|
11756
11757
|
function a(r, s) {
|
|
11757
11758
|
if (!n.has(r)) {
|
|
@@ -11762,12 +11763,12 @@ function Su(t, i) {
|
|
|
11762
11763
|
}
|
|
11763
11764
|
a(t, i);
|
|
11764
11765
|
}
|
|
11765
|
-
function
|
|
11766
|
-
if (
|
|
11766
|
+
function Ru(t, { componentStack: i }, n) {
|
|
11767
|
+
if (Su(Jr) && Yc(t) && i) {
|
|
11767
11768
|
const a = new Error(t.message);
|
|
11768
|
-
a.name = `React ErrorBoundary ${t.name}`, a.stack = i,
|
|
11769
|
+
a.name = `React ErrorBoundary ${t.name}`, a.stack = i, xu(t, a);
|
|
11769
11770
|
}
|
|
11770
|
-
return
|
|
11771
|
+
return Lu(t, {
|
|
11771
11772
|
...n,
|
|
11772
11773
|
captureContext: {
|
|
11773
11774
|
contexts: { react: { componentStack: i } }
|
|
@@ -11784,7 +11785,7 @@ var pi = { exports: {} }, ee = {};
|
|
|
11784
11785
|
* LICENSE file in the root directory of this source tree.
|
|
11785
11786
|
*/
|
|
11786
11787
|
var na;
|
|
11787
|
-
function
|
|
11788
|
+
function Du() {
|
|
11788
11789
|
if (na) return ee;
|
|
11789
11790
|
na = 1;
|
|
11790
11791
|
var t = typeof Symbol == "function" && Symbol.for, i = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, a = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, m = t ? Symbol.for("react.suspense") : 60113, v = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, I = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
@@ -11859,7 +11860,7 @@ var ie = {};
|
|
|
11859
11860
|
* LICENSE file in the root directory of this source tree.
|
|
11860
11861
|
*/
|
|
11861
11862
|
var aa;
|
|
11862
|
-
function
|
|
11863
|
+
function Pu() {
|
|
11863
11864
|
return aa || (aa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
11864
11865
|
var t = typeof Symbol == "function" && Symbol.for, i = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, a = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, m = t ? Symbol.for("react.suspense") : 60113, v = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, I = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
11865
11866
|
function L(D) {
|
|
@@ -11942,14 +11943,14 @@ function Du() {
|
|
|
11942
11943
|
}()), ie;
|
|
11943
11944
|
}
|
|
11944
11945
|
var ra;
|
|
11945
|
-
function
|
|
11946
|
-
return ra || (ra = 1, process.env.NODE_ENV === "production" ? pi.exports =
|
|
11946
|
+
function Fu() {
|
|
11947
|
+
return ra || (ra = 1, process.env.NODE_ENV === "production" ? pi.exports = Du() : pi.exports = Pu()), pi.exports;
|
|
11947
11948
|
}
|
|
11948
11949
|
var gi, sa;
|
|
11949
|
-
function
|
|
11950
|
+
function ku() {
|
|
11950
11951
|
if (sa) return gi;
|
|
11951
11952
|
sa = 1;
|
|
11952
|
-
var t =
|
|
11953
|
+
var t = Fu(), i = {
|
|
11953
11954
|
childContextTypes: !0,
|
|
11954
11955
|
contextType: !0,
|
|
11955
11956
|
contextTypes: !0,
|
|
@@ -12011,8 +12012,8 @@ function Fu() {
|
|
|
12011
12012
|
}
|
|
12012
12013
|
return gi = g, gi;
|
|
12013
12014
|
}
|
|
12014
|
-
|
|
12015
|
-
const
|
|
12015
|
+
ku();
|
|
12016
|
+
const _u = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, oa = {
|
|
12016
12017
|
componentStack: null,
|
|
12017
12018
|
error: null,
|
|
12018
12019
|
eventId: null
|
|
@@ -12020,16 +12021,16 @@ const ku = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, oa = {
|
|
|
12020
12021
|
class Vi extends Vt.Component {
|
|
12021
12022
|
constructor(i) {
|
|
12022
12023
|
super(i), Vi.prototype.__init.call(this), this.state = oa, this._openFallbackReportDialog = !0;
|
|
12023
|
-
const n =
|
|
12024
|
+
const n = uu();
|
|
12024
12025
|
n && i.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = n.on("afterSendEvent", (a) => {
|
|
12025
12026
|
!a.type && this._lastEventId && a.event_id === this._lastEventId && ia({ ...i.dialogOptions, eventId: this._lastEventId });
|
|
12026
12027
|
}));
|
|
12027
12028
|
}
|
|
12028
12029
|
componentDidCatch(i, n) {
|
|
12029
12030
|
const { componentStack: a } = n, r = a ?? void 0, { beforeCapture: s, onError: o, showDialog: l, dialogOptions: d } = this.props;
|
|
12030
|
-
|
|
12031
|
+
cu((c) => {
|
|
12031
12032
|
s && s(c, i, r);
|
|
12032
|
-
const u = this.props.handled != null ? this.props.handled : !!this.props.fallback, m =
|
|
12033
|
+
const u = this.props.handled != null ? this.props.handled : !!this.props.fallback, m = Ru(i, n, { mechanism: { handled: u } });
|
|
12033
12034
|
o && o(i, r, m), l && (this._lastEventId = m, this._openFallbackReportDialog && ia({ ...d, eventId: m })), this.setState({ error: i, componentStack: a, eventId: m });
|
|
12034
12035
|
});
|
|
12035
12036
|
}
|
|
@@ -12056,12 +12057,12 @@ class Vi extends Vt.Component {
|
|
|
12056
12057
|
componentStack: a.componentStack,
|
|
12057
12058
|
resetError: this.resetErrorBoundary,
|
|
12058
12059
|
eventId: a.eventId
|
|
12059
|
-
}) : r = i, Vt.isValidElement(r) ? r : (i &&
|
|
12060
|
+
}) : r = i, Vt.isValidElement(r) ? r : (i && _u && Se.warn("fallback did not produce a valid ReactElement"), null);
|
|
12060
12061
|
}
|
|
12061
12062
|
return typeof n == "function" ? n() : n;
|
|
12062
12063
|
}
|
|
12063
12064
|
}
|
|
12064
|
-
class
|
|
12065
|
+
class Qm extends Ge.Component {
|
|
12065
12066
|
constructor() {
|
|
12066
12067
|
super(...arguments), this.state = { error: null };
|
|
12067
12068
|
}
|
|
@@ -12087,7 +12088,7 @@ class Km extends Ge.Component {
|
|
|
12087
12088
|
);
|
|
12088
12089
|
}
|
|
12089
12090
|
}
|
|
12090
|
-
const { Page:
|
|
12091
|
+
const { Page: Xm } = Ea, { Option: la, Group: Eu } = je, xt = "_noOptionsOption";
|
|
12091
12092
|
function Pt(t) {
|
|
12092
12093
|
return /* @__PURE__ */ e("div", {});
|
|
12093
12094
|
}
|
|
@@ -12151,7 +12152,7 @@ const da = class extends Ge.Component {
|
|
|
12151
12152
|
};
|
|
12152
12153
|
}
|
|
12153
12154
|
componentDidUpdate(i) {
|
|
12154
|
-
if (this.props.value !== i.value || !
|
|
12155
|
+
if (this.props.value !== i.value || !As(this.props.children, i.children)) {
|
|
12155
12156
|
const n = this.getOptionByFieldValue("value", this.props.value);
|
|
12156
12157
|
this.setState({
|
|
12157
12158
|
inputValue: n ? n.props.children : "",
|
|
@@ -12219,9 +12220,9 @@ const da = class extends Ge.Component {
|
|
|
12219
12220
|
);
|
|
12220
12221
|
}
|
|
12221
12222
|
renderGroup(i) {
|
|
12222
|
-
const { id: n, label: a, ...r } = i.props, s =
|
|
12223
|
+
const { id: n, label: a, ...r } = i.props, s = eo(Xi(i.props.children));
|
|
12223
12224
|
return /* @__PURE__ */ e(
|
|
12224
|
-
|
|
12225
|
+
Eu,
|
|
12225
12226
|
{
|
|
12226
12227
|
"data-testid": `Group:${a}`,
|
|
12227
12228
|
renderLabel: () => a,
|
|
@@ -12291,25 +12292,25 @@ const pr = () => {
|
|
|
12291
12292
|
{ cancelRefetch: !0 }
|
|
12292
12293
|
);
|
|
12293
12294
|
};
|
|
12294
|
-
},
|
|
12295
|
+
}, Mu = ({ id: t, accountId: i, courseId: n, onDeleted: a }) => {
|
|
12295
12296
|
const { translations: r } = S(), { notify: s } = ge(), o = pr(), { isPending: l, isError: d, mutate: c } = Xe({
|
|
12296
|
-
mutationFn: async () =>
|
|
12297
|
+
mutationFn: async () => oc({ id: t, accountId: i, courseId: n }),
|
|
12297
12298
|
mutationKey: ["delete-rubric"],
|
|
12298
12299
|
onSuccess: async () => {
|
|
12299
12300
|
s({ type: "success", message: r.deleteRubricModalSuccess }), await o({ id: t, accountId: i, courseId: n }), a == null || a();
|
|
12300
12301
|
}
|
|
12301
12302
|
});
|
|
12302
12303
|
return { deleteRubric: c, isPending: l, isError: d };
|
|
12303
|
-
},
|
|
12304
|
+
}, Nu = ({ onDuplicated: t, ...i }) => {
|
|
12304
12305
|
const { translations: n } = S(), { notify: a } = ge(), r = pr(), { isPending: s, isError: o, mutate: l } = Xe({
|
|
12305
|
-
mutationFn: async () =>
|
|
12306
|
+
mutationFn: async () => lc(i),
|
|
12306
12307
|
mutationKey: ["duplicate-rubric"],
|
|
12307
12308
|
onSuccess: async () => {
|
|
12308
12309
|
a({ type: "success", message: n.duplicateRubricModalSuccess }), await r(i), t == null || t();
|
|
12309
12310
|
}
|
|
12310
12311
|
});
|
|
12311
12312
|
return { duplicateRubric: l, isPending: s, isError: o };
|
|
12312
|
-
},
|
|
12313
|
+
}, Ou = ({
|
|
12313
12314
|
id: t,
|
|
12314
12315
|
title: i,
|
|
12315
12316
|
accountId: n,
|
|
@@ -12322,7 +12323,7 @@ const pr = () => {
|
|
|
12322
12323
|
isPending: c,
|
|
12323
12324
|
isError: u,
|
|
12324
12325
|
deleteRubric: m
|
|
12325
|
-
} =
|
|
12326
|
+
} = Mu({
|
|
12326
12327
|
id: t,
|
|
12327
12328
|
accountId: n,
|
|
12328
12329
|
courseId: a,
|
|
@@ -12392,7 +12393,7 @@ const pr = () => {
|
|
|
12392
12393
|
}
|
|
12393
12394
|
)
|
|
12394
12395
|
] });
|
|
12395
|
-
},
|
|
12396
|
+
}, Bu = ({
|
|
12396
12397
|
id: t,
|
|
12397
12398
|
title: i,
|
|
12398
12399
|
hidePoints: n,
|
|
@@ -12411,7 +12412,7 @@ const pr = () => {
|
|
|
12411
12412
|
isPending: y,
|
|
12412
12413
|
isError: b,
|
|
12413
12414
|
duplicateRubric: C
|
|
12414
|
-
} =
|
|
12415
|
+
} = Nu({
|
|
12415
12416
|
id: t,
|
|
12416
12417
|
accountId: a,
|
|
12417
12418
|
courseId: r,
|
|
@@ -12488,7 +12489,7 @@ const pr = () => {
|
|
|
12488
12489
|
}
|
|
12489
12490
|
)
|
|
12490
12491
|
] });
|
|
12491
|
-
},
|
|
12492
|
+
}, $u = ({
|
|
12492
12493
|
id: t,
|
|
12493
12494
|
title: i,
|
|
12494
12495
|
hidePoints: n,
|
|
@@ -12510,7 +12511,7 @@ const pr = () => {
|
|
|
12510
12511
|
};
|
|
12511
12512
|
return /* @__PURE__ */ h(f, { children: [
|
|
12512
12513
|
/* @__PURE__ */ e(
|
|
12513
|
-
|
|
12514
|
+
Bu,
|
|
12514
12515
|
{
|
|
12515
12516
|
isOpen: L,
|
|
12516
12517
|
onDismiss: () => A(!1),
|
|
@@ -12528,7 +12529,7 @@ const pr = () => {
|
|
|
12528
12529
|
}
|
|
12529
12530
|
),
|
|
12530
12531
|
/* @__PURE__ */ e(
|
|
12531
|
-
|
|
12532
|
+
Ou,
|
|
12532
12533
|
{
|
|
12533
12534
|
isOpen: M,
|
|
12534
12535
|
onDismiss: () => F(!1),
|
|
@@ -12601,7 +12602,7 @@ const pr = () => {
|
|
|
12601
12602
|
}
|
|
12602
12603
|
)
|
|
12603
12604
|
] });
|
|
12604
|
-
}, { Head:
|
|
12605
|
+
}, { Head: zu, Row: ca, Cell: gt, ColHeader: ft, Body: Hu } = oe, Wu = es(
|
|
12605
12606
|
({
|
|
12606
12607
|
active: t,
|
|
12607
12608
|
canManageRubrics: i,
|
|
@@ -12620,7 +12621,7 @@ const pr = () => {
|
|
|
12620
12621
|
const { translations: g, translate: I } = S(), { accountId: y, courseId: b } = Be();
|
|
12621
12622
|
return /* @__PURE__ */ h(oe, { caption: g.rubricTableCaption, children: [
|
|
12622
12623
|
/* @__PURE__ */ e(
|
|
12623
|
-
|
|
12624
|
+
zu,
|
|
12624
12625
|
{
|
|
12625
12626
|
renderSortLabel: /* @__PURE__ */ e(de, { children: g.rubricTableSortByLabel }),
|
|
12626
12627
|
children: /* @__PURE__ */ h(ca, { children: [
|
|
@@ -12672,7 +12673,7 @@ const pr = () => {
|
|
|
12672
12673
|
] })
|
|
12673
12674
|
}
|
|
12674
12675
|
),
|
|
12675
|
-
/* @__PURE__ */ e(
|
|
12676
|
+
/* @__PURE__ */ e(Hu, { children: d.map((C, w) => /* @__PURE__ */ h(ca, { "data-testid": `rubric-row-${C.id}`, children: [
|
|
12676
12677
|
/* @__PURE__ */ e(gt, { "data-testid": `rubric-title-${w}`, children: /* @__PURE__ */ h(p, { direction: "row", alignItems: "center", children: [
|
|
12677
12678
|
/* @__PURE__ */ e(p.Item, { margin: "0 small 0 0", children: /* @__PURE__ */ e(
|
|
12678
12679
|
Me,
|
|
@@ -12711,7 +12712,7 @@ const pr = () => {
|
|
|
12711
12712
|
}
|
|
12712
12713
|
) : "-" }),
|
|
12713
12714
|
/* @__PURE__ */ e(gt, { "data-testid": `rubric-options-${C.id}`, children: i && /* @__PURE__ */ e(
|
|
12714
|
-
|
|
12715
|
+
$u,
|
|
12715
12716
|
{
|
|
12716
12717
|
id: C.id,
|
|
12717
12718
|
title: C.title,
|
|
@@ -12733,7 +12734,7 @@ const pr = () => {
|
|
|
12733
12734
|
] }, C.id)) })
|
|
12734
12735
|
] });
|
|
12735
12736
|
}
|
|
12736
|
-
),
|
|
12737
|
+
), Vu = ({
|
|
12737
12738
|
loadedCount: t,
|
|
12738
12739
|
totalCount: i,
|
|
12739
12740
|
hasNextPage: n,
|
|
@@ -12756,7 +12757,7 @@ const pr = () => {
|
|
|
12756
12757
|
}
|
|
12757
12758
|
) })
|
|
12758
12759
|
] });
|
|
12759
|
-
},
|
|
12760
|
+
}, Uu = ({ onDebouncedChange: t, delay: i = 300 }) => {
|
|
12760
12761
|
const { translations: n } = S(), [a, r] = x(""), s = tr(a, i), o = ue(!0);
|
|
12761
12762
|
return le(() => {
|
|
12762
12763
|
if (o.current) {
|
|
@@ -12776,14 +12777,14 @@ const pr = () => {
|
|
|
12776
12777
|
"data-testid": "rubric-search-bar"
|
|
12777
12778
|
}
|
|
12778
12779
|
);
|
|
12779
|
-
},
|
|
12780
|
+
}, Gu = (t, i) => {
|
|
12780
12781
|
const n = t[t.length - 1], [a, ...r] = i;
|
|
12781
12782
|
return a && n && a.id === n.id ? [
|
|
12782
12783
|
...t.slice(0, -1),
|
|
12783
12784
|
{ ...n, assignments: [...n.assignments, ...a.assignments] },
|
|
12784
12785
|
...r
|
|
12785
12786
|
] : [...t, ...i];
|
|
12786
|
-
},
|
|
12787
|
+
}, qu = (t, i) => {
|
|
12787
12788
|
const n = i.toLowerCase();
|
|
12788
12789
|
if (i === "" || t.name.toLowerCase().includes(n))
|
|
12789
12790
|
return t.assignments;
|
|
@@ -12791,7 +12792,7 @@ const pr = () => {
|
|
|
12791
12792
|
(r) => r.title.toLowerCase().includes(n)
|
|
12792
12793
|
);
|
|
12793
12794
|
return a.length === 0 ? null : a;
|
|
12794
|
-
},
|
|
12795
|
+
}, Yu = ({
|
|
12795
12796
|
isLoading: t,
|
|
12796
12797
|
isOpen: i,
|
|
12797
12798
|
itemId: n,
|
|
@@ -12804,7 +12805,7 @@ const pr = () => {
|
|
|
12804
12805
|
try {
|
|
12805
12806
|
const b = await a();
|
|
12806
12807
|
b.usedLocations.length && d(
|
|
12807
|
-
(C) =>
|
|
12808
|
+
(C) => Gu(C, b.usedLocations)
|
|
12808
12809
|
), v.current = !b.isLastPage;
|
|
12809
12810
|
} catch {
|
|
12810
12811
|
o({ type: "error", message: s.usedLocationsModalFetchFailed });
|
|
@@ -12875,7 +12876,7 @@ const pr = () => {
|
|
|
12875
12876
|
}
|
|
12876
12877
|
) }),
|
|
12877
12878
|
/* @__PURE__ */ e(at, { isUnstyled: !0, margin: "0 0 0 0", children: l.map((b) => {
|
|
12878
|
-
const C =
|
|
12879
|
+
const C = qu(b, c);
|
|
12879
12880
|
return C ? /* @__PURE__ */ h(
|
|
12880
12881
|
at.Item,
|
|
12881
12882
|
{
|
|
@@ -12914,7 +12915,7 @@ const pr = () => {
|
|
|
12914
12915
|
]
|
|
12915
12916
|
}
|
|
12916
12917
|
);
|
|
12917
|
-
}, { Item: Rt } = p,
|
|
12918
|
+
}, { Item: Rt } = p, ju = "48em", eh = (t) => /* @__PURE__ */ e($e, { translations: t.translations, children: /* @__PURE__ */ e(Qe, { courseId: t.courseId, accountId: t.accountId, children: /* @__PURE__ */ e(Zu, { ...t }) }) }), Zu = ({
|
|
12918
12919
|
canManageRubrics: t = !1,
|
|
12919
12920
|
showHeader: i = !0,
|
|
12920
12921
|
footerInsetInlineStart: n = "0",
|
|
@@ -12954,7 +12955,7 @@ const pr = () => {
|
|
|
12954
12955
|
toggleUsedLocations: re,
|
|
12955
12956
|
closeUsedLocations: me,
|
|
12956
12957
|
fetchUsedLocations: V
|
|
12957
|
-
} =
|
|
12958
|
+
} = Dc(), [ae, te] = x(!1), O = Re(
|
|
12958
12959
|
(be, Ee) => {
|
|
12959
12960
|
U(Ee, be.target.checked);
|
|
12960
12961
|
},
|
|
@@ -12979,7 +12980,7 @@ const pr = () => {
|
|
|
12979
12980
|
const pe = async () => {
|
|
12980
12981
|
await N();
|
|
12981
12982
|
}, Te = T && !R, we = (be) => Te ? /* @__PURE__ */ e(f, { as: "div", padding: "x-large", textAlign: "center", children: /* @__PURE__ */ e(We, {}) }) : /* @__PURE__ */ e(
|
|
12982
|
-
|
|
12983
|
+
Wu,
|
|
12983
12984
|
{
|
|
12984
12985
|
handleCheckboxChange: O,
|
|
12985
12986
|
selectedRubricIds: _,
|
|
@@ -12996,7 +12997,7 @@ const pr = () => {
|
|
|
12996
12997
|
renderCopyToTray: s
|
|
12997
12998
|
}
|
|
12998
12999
|
), Ce = () => Te ? null : /* @__PURE__ */ e(
|
|
12999
|
-
|
|
13000
|
+
Vu,
|
|
13000
13001
|
{
|
|
13001
13002
|
loadedCount: L.length,
|
|
13002
13003
|
totalCount: A,
|
|
@@ -13010,7 +13011,7 @@ const pr = () => {
|
|
|
13010
13011
|
{
|
|
13011
13012
|
match: "media",
|
|
13012
13013
|
query: {
|
|
13013
|
-
expanded: { minWidth:
|
|
13014
|
+
expanded: { minWidth: ju }
|
|
13014
13015
|
},
|
|
13015
13016
|
render: (be, Ee) => {
|
|
13016
13017
|
const Ye = Ee == null ? void 0 : Ee.includes("expanded");
|
|
@@ -13025,11 +13026,11 @@ const pr = () => {
|
|
|
13025
13026
|
direction: Ye ? "row" : "column",
|
|
13026
13027
|
children: [
|
|
13027
13028
|
i && /* @__PURE__ */ e(Rt, { shouldGrow: !0, children: /* @__PURE__ */ e(Y, { level: "h1", themeOverride: { h1FontWeight: 700 }, margin: "medium 0 0 0", children: o.viewRubricsHeading }) }),
|
|
13028
|
-
/* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ e(
|
|
13029
|
+
/* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ e(Uu, { onDebouncedChange: y }) }),
|
|
13029
13030
|
/* @__PURE__ */ e(Rt, { children: t && /* @__PURE__ */ e(
|
|
13030
13031
|
$,
|
|
13031
13032
|
{
|
|
13032
|
-
renderIcon: /* @__PURE__ */ e(
|
|
13033
|
+
renderIcon: /* @__PURE__ */ e(_s, {}),
|
|
13033
13034
|
color: "secondary",
|
|
13034
13035
|
"data-testid": "import-rubric-button",
|
|
13035
13036
|
onClick: () => te(!0),
|
|
@@ -13139,7 +13140,7 @@ const pr = () => {
|
|
|
13139
13140
|
}
|
|
13140
13141
|
),
|
|
13141
13142
|
/* @__PURE__ */ e(
|
|
13142
|
-
|
|
13143
|
+
Yu,
|
|
13143
13144
|
{
|
|
13144
13145
|
isLoading: j,
|
|
13145
13146
|
fetchUsedLocations: V,
|
|
@@ -13149,7 +13150,7 @@ const pr = () => {
|
|
|
13149
13150
|
}
|
|
13150
13151
|
),
|
|
13151
13152
|
/* @__PURE__ */ e(
|
|
13152
|
-
|
|
13153
|
+
Hc,
|
|
13153
13154
|
{
|
|
13154
13155
|
accountId: m,
|
|
13155
13156
|
courseId: v,
|
|
@@ -13164,32 +13165,32 @@ const pr = () => {
|
|
|
13164
13165
|
);
|
|
13165
13166
|
};
|
|
13166
13167
|
export {
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13168
|
+
nh as DEFAULT_AI_MAX_CRITERION_COUNT,
|
|
13169
|
+
ah as DEFAULT_AI_MAX_RATING_COUNT,
|
|
13170
|
+
gl as DeleteConfirmModal,
|
|
13171
|
+
Zm as HelloWorld,
|
|
13172
|
+
Ks as RUBRIC_VIEW_MODE_DEFAULT,
|
|
13173
|
+
Zs as RUBRIC_VIEW_MODE_LOCALSTORAGE_KEY,
|
|
13174
|
+
tl as RubricAssessmentContainer,
|
|
13175
|
+
nl as RubricAssessmentContainerWrapper,
|
|
13175
13176
|
Ei as RubricAssessmentTray,
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
|
|
13177
|
+
Km as RubricAssignmentContainer,
|
|
13178
|
+
Bd as RubricCreateModal,
|
|
13179
|
+
Nd as RubricForm,
|
|
13180
|
+
Kd as RubricSearchTray,
|
|
13181
|
+
ec as RubricSelfAssessmentSettings,
|
|
13182
|
+
Jo as TraditionalView,
|
|
13183
|
+
eh as ViewRubrics,
|
|
13183
13184
|
rt as ViewRubricsTabs,
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13185
|
+
ol as addRubricToAssignment,
|
|
13186
|
+
rh as defaultRubricsTranslations,
|
|
13187
|
+
bs as escapeNewLineText,
|
|
13187
13188
|
_t as findCriterionMatchingRatingId,
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13189
|
+
io as findCriterionMatchingRatingIndex,
|
|
13190
|
+
oo as getCustomRatingColor,
|
|
13191
|
+
no as isRubricComplete,
|
|
13191
13192
|
Ct as rangingFrom,
|
|
13192
|
-
|
|
13193
|
+
ll as removeRubricFromAssignment,
|
|
13193
13194
|
Ma as rubricSelectedAriaLabel,
|
|
13194
|
-
|
|
13195
|
+
pl as useAssignmentRubric
|
|
13195
13196
|
};
|