@instructure/platform-rubrics 0.8.0 → 1.1.0
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/ViewRubrics/useRubricsQuery.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/useViewRubrics.d.ts.map +1 -1
- package/dist/_internal/constants/i18n.d.ts +2 -0
- package/dist/_internal/constants/i18n.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/RubricAssessmentContainer.d.ts +2 -1
- package/dist/canvas/RubricAssessment/RubricAssessmentContainer.d.ts.map +1 -1
- package/dist/canvas/index.d.ts +1 -6
- package/dist/canvas/index.d.ts.map +1 -1
- package/dist/canvas.js +370 -373
- package/dist/chunks/{ErrorShip-Dzd13wSZ.js → ErrorShip-DEitKD2c.js} +663 -661
- package/dist/foundation/RubricBuilder/components/RubricBuilderHeader.d.ts +2 -1
- package/dist/foundation/RubricBuilder/components/RubricBuilderHeader.d.ts.map +1 -1
- package/dist/foundation/RubricBuilder/components/RubricDetailsCard.d.ts.map +1 -1
- package/dist/foundation/RubricBuilder/components/criteria/CriteriaList.d.ts +4 -1
- package/dist/foundation/RubricBuilder/components/criteria/CriteriaList.d.ts.map +1 -1
- package/dist/foundation/RubricBuilder/components/criteria/CriterionCard.d.ts +4 -1
- package/dist/foundation/RubricBuilder/components/criteria/CriterionCard.d.ts.map +1 -1
- package/dist/foundation/RubricBuilder/components/criteria/PointsPossibleField.d.ts +6 -0
- package/dist/foundation/RubricBuilder/components/criteria/PointsPossibleField.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/criteria/RatingList.d.ts +3 -1
- package/dist/foundation/RubricBuilder/components/criteria/RatingList.d.ts.map +1 -1
- package/dist/foundation/RubricBuilder/components/criteria/RatingRow.d.ts +2 -1
- package/dist/foundation/RubricBuilder/components/criteria/RatingRow.d.ts.map +1 -1
- package/dist/foundation.js +475 -403
- package/locales/en.json +2 -0
- package/package.json +6 -6
package/dist/canvas.js
CHANGED
|
@@ -6,29 +6,29 @@ import We, { useMemo as xe, useState as R, useRef as ge, useEffect as de, useLay
|
|
|
6
6
|
import { jsx as e, jsxs as u, Fragment as oe } 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 {
|
|
10
|
-
import { AccessibleContent as So, ScreenReaderContent as me } from "@instructure/ui-a11y-content";
|
|
11
|
-
import { Tag as xo } from "@instructure/ui-tag";
|
|
12
|
-
import { Text as D } from "@instructure/ui-text";
|
|
13
|
-
import { LoadingIndicator as ze } from "@instructure/platform-loading-indicator";
|
|
14
|
-
import { CloseButton as fe, Button as B, IconButton as be } from "@instructure/ui-buttons";
|
|
15
|
-
import { Popover as ct } from "@instructure/ui-popover";
|
|
16
|
-
import { CalculationMethodContent as Ro, OutcomeContextTag as Do } from "@instructure/platform-outcomes";
|
|
17
|
-
import { sanitizeHtml as _t } from "@instructure/platform-sanitize";
|
|
9
|
+
import { a as S, u as Pe, h as It, G as ha, T as Ze, t as Ke, i as Qe, H as Ii, I as Ci, J as io, L as pa, M as ga, N as Li, O as va, Q as no, R as Rt, U as ao, V as ro, A as oo, W as ji, X as so, r as vi, n as lo, k as co, l as uo, j as mo, m as ho, p as po, q as go, Y as fa, Z as ba, e as vo, c as fo, d as Zi, b as Ia, C as Ca, f as La, g as Ft, s as ya, K as Ta, P as wa, D as Aa, S as Sa, v as xa, _ as bo, x as Io, y as Co, B as Lo, z as yo, E as To, $ as Ki, a0 as wo, a1 as Ra, a2 as Ao } from "./chunks/ErrorShip-DEitKD2c.js";
|
|
18
10
|
import { Flex as p } from "@instructure/ui-flex";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { IconCheckMarkLine as
|
|
22
|
-
import { Pill as
|
|
11
|
+
import { u as So } from "./chunks/useLocalStorage-BoUaI48x.js";
|
|
12
|
+
import { Button as B, CloseButton as fe, IconButton as be } from "@instructure/ui-buttons";
|
|
13
|
+
import { IconCheckMarkLine as xo, IconAiColoredSolid as st, IconCommentLine as Da, IconAiSolid as yi, IconLikeSolid as Qi, IconLikeLine as Xi, IconPlusLine as Ro, IconArrowUpLine as Pa, IconArrowDownLine as Fa, IconTrashLine as Ct, IconMoreLine as Ti, IconDragHandleLine as wi, IconEditLine as _t, IconOutcomesLine as Ai, IconDuplicateLine as ka, IconLockLine as Do, IconEyeLine as _a, IconAddLine as Si, IconArrowOpenEndLine as Po, IconSearchLine as ft, IconInfoLine as Fo, IconRubricLine as ko, IconDownloadLine as Ea, IconImportLine as _o } from "@instructure/ui-icons";
|
|
14
|
+
import { Pill as Et } from "@instructure/ui-pill";
|
|
23
15
|
import { Checkbox as _e } from "@instructure/ui-checkbox";
|
|
16
|
+
import { Text as D } from "@instructure/ui-text";
|
|
24
17
|
import { canvas as Oe } from "@instructure/ui-themes";
|
|
25
18
|
import { Tooltip as Re } from "@instructure/ui-tooltip";
|
|
26
|
-
import { TruncateText as
|
|
19
|
+
import { TruncateText as Mt } from "@instructure/ui-truncate-text";
|
|
27
20
|
import { SimpleSelect as ye, SimpleSelectOption as De } from "@instructure/ui-simple-select";
|
|
21
|
+
import { sanitizeHtml as Nt } from "@instructure/platform-sanitize";
|
|
22
|
+
import { AccessibleContent as Eo, ScreenReaderContent as me } from "@instructure/ui-a11y-content";
|
|
28
23
|
import { TextArea as Ee } from "@instructure/ui-text-area";
|
|
29
24
|
import { TextInput as Fe } from "@instructure/ui-text-input";
|
|
30
|
-
import { useQuery as
|
|
25
|
+
import { useQuery as ct, useMutation as Xe, useQueryClient as xi, useInfiniteQuery as Mo, keepPreviousData as No } from "@tanstack/react-query";
|
|
31
26
|
import Ue from "graphql-tag";
|
|
27
|
+
import { Tag as Oo } from "@instructure/ui-tag";
|
|
28
|
+
import { LoadingIndicator as ze } from "@instructure/platform-loading-indicator";
|
|
29
|
+
import { Popover as ut } from "@instructure/ui-popover";
|
|
30
|
+
import { CalculationMethodContent as Bo, OutcomeContextTag as $o } from "@instructure/platform-outcomes";
|
|
31
|
+
import { Responsive as Je } from "@instructure/ui-responsive";
|
|
32
32
|
import { Avatar as zo } from "@instructure/ui-avatar";
|
|
33
33
|
import { Table as le } from "@instructure/ui-table";
|
|
34
34
|
import { Link as je } from "@instructure/ui-link";
|
|
@@ -46,12 +46,12 @@ import { ToggleDetails as Uo } from "@instructure/ui-toggle-details";
|
|
|
46
46
|
import { Pagination as Ma } from "@instructure/ui-pagination";
|
|
47
47
|
import { RadioInput as Go } from "@instructure/ui-radio-input";
|
|
48
48
|
import { Tabs as Ut } from "@instructure/ui-tabs";
|
|
49
|
-
import { List as
|
|
49
|
+
import { List as at } from "@instructure/ui-list";
|
|
50
50
|
import { FileDrop as qo } from "@instructure/ui-file-drop";
|
|
51
51
|
import { ProgressBar as Yo } from "@instructure/ui-progress";
|
|
52
52
|
import jo from "react-dom";
|
|
53
53
|
import { Select as qe } from "@instructure/ui-select";
|
|
54
|
-
import { matchComponentTypes as
|
|
54
|
+
import { matchComponentTypes as tt } from "@instructure/ui-react-utils";
|
|
55
55
|
import "@instructure/ui-tooltip/v11_7";
|
|
56
56
|
import "@instructure/ui-truncate-text/v11_7";
|
|
57
57
|
import './canvas.css';function Zo() {
|
|
@@ -195,212 +195,7 @@ const ns = (t, i, n = !1) => {
|
|
|
195
195
|
commentsEnabled: n.commentsEnabled,
|
|
196
196
|
description: n.description,
|
|
197
197
|
updatedAt: i
|
|
198
|
-
}))) ?? [], Wa = (t, i, n, a) => a && t.points != null ? t.points.toString() : (n - (i + 1)).toString(), Va = (t, i) => [t.description, t.longDescription, i].filter(Boolean).join(" "), ps = {
|
|
199
|
-
"# of times": "calculationMethodNumberOfTimes",
|
|
200
|
-
"% weighting for last item": "calculationMethodWeightingForLastItem",
|
|
201
|
-
"% weighting of most recent item": "calculationMethodWeightingOfMostRecentItem",
|
|
202
|
-
"Achieve mastery {{count}} time": "calculationMethodAchieveMastery",
|
|
203
|
-
Average: "calculationMethodAverage",
|
|
204
|
-
"Average is not a good fit for most outcomes-based or mastery-based learning use cases because students may need time to reach mastery of an outcome and early poorer performance can bring down an average.": "calculationMethodAverageWarning",
|
|
205
|
-
"Between 1 and 10": "calculationMethodBetween1And10",
|
|
206
|
-
"Between 1% and 99%": "calculationMethodBetween1And99Percent",
|
|
207
|
-
"Between 50% and 99%": "calculationMethodBetween50And99Percent",
|
|
208
|
-
"Between two assessments, the most recent assessment gets {{calculation_int}} weight, and the first gets {{remainder}}. For each additional assessment, the sum of the previous score calculations decay by an additional {{remainder}}. If there is only one result, the single score will be returned.": "calculationMethodWeightedAverageDescription",
|
|
209
|
-
"Central value in a set of results. Calculated by dividing the sum of all item scores by the number of scores.": "calculationMethodAverageDescription",
|
|
210
|
-
"Decaying Average": "calculationMethodDecayingAverage",
|
|
211
|
-
"Decaying Average - {{recentInt}}%/{{remainderInt}}%": "calculationMethodDecayingAverageWithInts",
|
|
212
|
-
"Highest Score": "calculationMethodHighestScore",
|
|
213
|
-
"Items: ": "calculationMethodItems",
|
|
214
|
-
"Last Item: ": "calculationMethodLastItem",
|
|
215
|
-
"Latest Score": "calculationMethodLatestScore",
|
|
216
|
-
"Mastery score reflects the highest score of a graded assignment or quiz.": "calculationMethodHighestScoreDescription",
|
|
217
|
-
"Mastery score reflects the most recent graded assignment or quiz.": "calculationMethodLatestScoreDescription",
|
|
218
|
-
"Most Recent Item: ": "calculationMethodMostRecentItem",
|
|
219
|
-
"Most Recent Score": "calculationMethodMostRecentScore",
|
|
220
|
-
"Most recent result counts as {{calculation_int}} of mastery weight, average of all other results count as {{remainder}} of weight. If there is only one result, the single score will be returned.": "calculationMethodDecayingAverageDescription",
|
|
221
|
-
"Must achieve mastery at least {{count}} time. Scores above mastery will be averaged to calculate final score.": "calculationMethodNMasteryDescription",
|
|
222
|
-
"Weighted Average": "calculationMethodWeightedAverage",
|
|
223
|
-
"Weighted Average - {{recentInt}}%/{{remainderInt}}%": "calculationMethodWeightedAverageWithInts",
|
|
224
|
-
"must be between 1 and 10": "calculationMethodMustBeBetween1And10",
|
|
225
|
-
"must be between 1 and 99": "calculationMethodMustBeBetween1And99",
|
|
226
|
-
"must be between 50 and 99": "calculationMethodMustBeBetween50And99",
|
|
227
|
-
"n Number of Times": "calculationMethodNMastery",
|
|
228
|
-
"{{recentInt}}/{{remainderInt}} Decaying Average": "calculationMethodDecayingAverageRatio",
|
|
229
|
-
"{{recentInt}}/{{remainderInt}} Weighted Average": "calculationMethodWeightedAverageRatio"
|
|
230
|
-
}, gs = (t) => (i, n) => {
|
|
231
|
-
const a = ps[i];
|
|
232
|
-
return a ? t(a, n) : i.replace(
|
|
233
|
-
/\{\{\s*(\w+)\s*\}\}/g,
|
|
234
|
-
(r, o) => n && o in n ? String(n[o]) : r
|
|
235
|
-
);
|
|
236
|
-
}, vs = (t) => (i) => new Intl.NumberFormat(t, { maximumFractionDigits: 2 }).format(i), fs = (t) => (i, n) => {
|
|
237
|
-
const a = new Intl.NumberFormat(t, { maximumFractionDigits: 5 }).format(i);
|
|
238
|
-
return n != null && n.percentage ? `${a}%` : a;
|
|
239
|
-
}, bs = (t) => {
|
|
240
|
-
const { locale: i } = Pe(), { translate: n } = S();
|
|
241
|
-
return xe(
|
|
242
|
-
() => ({
|
|
243
|
-
translate: gs(n),
|
|
244
|
-
formatOutcomeScore: vs(i),
|
|
245
|
-
localizeNumber: fs(i),
|
|
246
|
-
newDecayingAverageEnabled: t
|
|
247
|
-
}),
|
|
248
|
-
[i, n, t]
|
|
249
|
-
);
|
|
250
|
-
}, Is = ({
|
|
251
|
-
outcome: t,
|
|
252
|
-
newDecayingAverageEnabled: i = !1
|
|
253
|
-
}) => {
|
|
254
|
-
const { translations: n } = S(), a = bs(i);
|
|
255
|
-
if (!t)
|
|
256
|
-
return null;
|
|
257
|
-
const r = t.displayName && t.displayName.length > 0, o = r ? t.displayName : t.title, s = new Ro(
|
|
258
|
-
{
|
|
259
|
-
calculation_method: t.calculationMethod,
|
|
260
|
-
calculation_int: t.calculationInt,
|
|
261
|
-
is_individual_outcome: !0,
|
|
262
|
-
mastery_points: t.masteryPoints
|
|
263
|
-
},
|
|
264
|
-
a
|
|
265
|
-
).present(), { friendlyCalculationMethod: l, exampleText: d } = s ?? {};
|
|
266
|
-
return /* @__PURE__ */ e(
|
|
267
|
-
Ze,
|
|
268
|
-
{
|
|
269
|
-
match: "media",
|
|
270
|
-
query: {
|
|
271
|
-
compact: { maxWidth: "400px" },
|
|
272
|
-
fullWidth: { minWidth: "800px" }
|
|
273
|
-
},
|
|
274
|
-
children: (m, c) => {
|
|
275
|
-
const h = (c == null ? void 0 : c.includes("fullWidth")) ?? !1, g = (c == null ? void 0 : c.includes("compact")) ?? !1;
|
|
276
|
-
return /* @__PURE__ */ u(f, { as: "div", display: "block", "data-testid": "outcome-popover-display", maxWidth: h ? "600px" : g ? "200px" : "300px", children: [
|
|
277
|
-
/* @__PURE__ */ e(
|
|
278
|
-
Y,
|
|
279
|
-
{
|
|
280
|
-
level: "h3",
|
|
281
|
-
as: "h3",
|
|
282
|
-
margin: "x-small 0",
|
|
283
|
-
"data-testid": "outcome-popover-display-name",
|
|
284
|
-
children: o
|
|
285
|
-
}
|
|
286
|
-
),
|
|
287
|
-
r && /* @__PURE__ */ e(Y, { level: "h4", as: "h4", margin: "x-small 0", "data-testid": "outcome-popover-title", children: t.title }),
|
|
288
|
-
/* @__PURE__ */ e(
|
|
289
|
-
f,
|
|
290
|
-
{
|
|
291
|
-
as: "div",
|
|
292
|
-
"data-testid": "outcome-popover-display-content-description",
|
|
293
|
-
dangerouslySetInnerHTML: { __html: _t(t.description ?? "") }
|
|
294
|
-
}
|
|
295
|
-
),
|
|
296
|
-
/* @__PURE__ */ e(
|
|
297
|
-
Do,
|
|
298
|
-
{
|
|
299
|
-
outcomeContextType: t.contextType ?? void 0,
|
|
300
|
-
outcomeContextId: t.contextId ?? void 0,
|
|
301
|
-
margin: "0 0 x-small 0",
|
|
302
|
-
translations: {
|
|
303
|
-
course: n.outcomeContextTagCourse,
|
|
304
|
-
courseLevelOutcome: n.outcomeContextTagCourseLevel,
|
|
305
|
-
institution: n.outcomeContextTagInstitution,
|
|
306
|
-
institutionLevelOutcome: n.outcomeContextTagInstitutionLevel
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
),
|
|
310
|
-
l && d && /* @__PURE__ */ u(oe, { children: [
|
|
311
|
-
/* @__PURE__ */ e(f, { as: "hr" }),
|
|
312
|
-
/* @__PURE__ */ u(p, { as: "div", width: "100%", gap: "medium", wrap: h ? "no-wrap" : "wrap", children: [
|
|
313
|
-
/* @__PURE__ */ u(p.Item, { align: "start", children: [
|
|
314
|
-
/* @__PURE__ */ e(Y, { level: "h4", as: "h4", children: n.assessmentOutcomeCalculationMethod }),
|
|
315
|
-
/* @__PURE__ */ e(D, { "data-testid": "outcome-popover-display-content-calculation-method", children: l })
|
|
316
|
-
] }),
|
|
317
|
-
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, align: "start", children: /* @__PURE__ */ u(f, { as: "div", children: [
|
|
318
|
-
/* @__PURE__ */ e(Y, { level: "h4", as: "h4", children: n.assessmentOutcomeExample }),
|
|
319
|
-
/* @__PURE__ */ e(f, { as: "div", children: /* @__PURE__ */ e(
|
|
320
|
-
D,
|
|
321
|
-
{
|
|
322
|
-
wrap: "break-word",
|
|
323
|
-
"data-testid": "outcome-popover-display-content-example",
|
|
324
|
-
children: d
|
|
325
|
-
}
|
|
326
|
-
) })
|
|
327
|
-
] }) })
|
|
328
|
-
] })
|
|
329
|
-
] })
|
|
330
|
-
] });
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
}, Cs = ({
|
|
335
|
-
outcome: t,
|
|
336
|
-
newDecayingAverageEnabled: i = !1,
|
|
337
|
-
renderTrigger: n
|
|
338
|
-
}) => {
|
|
339
|
-
const { translations: a } = S(), [r, o] = R(!1);
|
|
340
|
-
return /* @__PURE__ */ e(
|
|
341
|
-
ct,
|
|
342
|
-
{
|
|
343
|
-
renderTrigger: n,
|
|
344
|
-
isShowingContent: r,
|
|
345
|
-
onShowContent: () => o(!0),
|
|
346
|
-
onHideContent: () => o(!1),
|
|
347
|
-
on: "click",
|
|
348
|
-
screenReaderLabel: a.assessmentOutcomePopoverLabel,
|
|
349
|
-
shouldContainFocus: !0,
|
|
350
|
-
shouldReturnFocus: !0,
|
|
351
|
-
shouldCloseOnDocumentClick: !0,
|
|
352
|
-
offsetY: "16px",
|
|
353
|
-
children: /* @__PURE__ */ u(f, { padding: "medium", display: "block", as: "form", children: [
|
|
354
|
-
/* @__PURE__ */ e(
|
|
355
|
-
fe,
|
|
356
|
-
{
|
|
357
|
-
placement: "end",
|
|
358
|
-
offset: "small",
|
|
359
|
-
onClick: () => o(!1),
|
|
360
|
-
screenReaderLabel: a.close
|
|
361
|
-
}
|
|
362
|
-
),
|
|
363
|
-
t ? /* @__PURE__ */ e(
|
|
364
|
-
Is,
|
|
365
|
-
{
|
|
366
|
-
outcome: t,
|
|
367
|
-
newDecayingAverageEnabled: i
|
|
368
|
-
}
|
|
369
|
-
) : /* @__PURE__ */ e(f, { as: "div", textAlign: "center", padding: "medium", children: /* @__PURE__ */ e(ze, {}) })
|
|
370
|
-
] })
|
|
371
|
-
}
|
|
372
|
-
);
|
|
373
|
-
}, Fi = ({
|
|
374
|
-
displayName: t,
|
|
375
|
-
outcome: i,
|
|
376
|
-
maxWidth: n,
|
|
377
|
-
newDecayingAverageEnabled: a = !1,
|
|
378
|
-
onClick: r
|
|
379
|
-
}) => {
|
|
380
|
-
const { translate: o } = S();
|
|
381
|
-
return /* @__PURE__ */ e(
|
|
382
|
-
Cs,
|
|
383
|
-
{
|
|
384
|
-
renderTrigger: /* @__PURE__ */ e(
|
|
385
|
-
xo,
|
|
386
|
-
{
|
|
387
|
-
text: /* @__PURE__ */ e(So, { alt: o("assessmentOutcomeTagLabel", { displayName: t }), children: /* @__PURE__ */ e(D, { children: t }) }),
|
|
388
|
-
size: "small",
|
|
389
|
-
themeOverride: {
|
|
390
|
-
defaultBackground: "white",
|
|
391
|
-
defaultBorderColor: "rgb(3, 116, 181)",
|
|
392
|
-
defaultColor: "rgb(3, 116, 181)",
|
|
393
|
-
maxWidth: n ?? "10rem"
|
|
394
|
-
},
|
|
395
|
-
onClick: r,
|
|
396
|
-
"data-testid": "rubric-criteria-row-outcome-tag"
|
|
397
|
-
}
|
|
398
|
-
),
|
|
399
|
-
outcome: i,
|
|
400
|
-
newDecayingAverageEnabled: a
|
|
401
|
-
}
|
|
402
|
-
);
|
|
403
|
-
}, Ls = ({
|
|
198
|
+
}))) ?? [], Wa = (t, i, n, a) => a && t.points != null ? t.points.toString() : (n - (i + 1)).toString(), Va = (t, i) => [t.description, t.longDescription, i].filter(Boolean).join(" "), ps = ({
|
|
404
199
|
criteria: t,
|
|
405
200
|
rubricAssessmentData: i,
|
|
406
201
|
hidePoints: n,
|
|
@@ -444,24 +239,24 @@ const ns = (t, i, n = !1) => {
|
|
|
444
239
|
isSubmitting: g
|
|
445
240
|
};
|
|
446
241
|
}, Ua = ({ currentUserId: t, viewModeOverride: i }) => {
|
|
447
|
-
const [n, a] =
|
|
242
|
+
const [n, a] = So(
|
|
448
243
|
Ko(t),
|
|
449
244
|
i ?? Qo
|
|
450
245
|
), r = i ?? n;
|
|
451
246
|
return { viewMode: r, isTraditionalView: r === "traditional", storedViewMode: n, setViewMode: a };
|
|
452
|
-
},
|
|
247
|
+
}, gs = ({ isRubricComplete: t }) => {
|
|
453
248
|
const { translations: i } = S();
|
|
454
249
|
return /* @__PURE__ */ e(
|
|
455
|
-
|
|
250
|
+
Et,
|
|
456
251
|
{
|
|
457
|
-
renderIcon: t ? /* @__PURE__ */ e(
|
|
252
|
+
renderIcon: t ? /* @__PURE__ */ e(xo, {}) : void 0,
|
|
458
253
|
color: t ? "success" : "warning",
|
|
459
254
|
margin: "x-small",
|
|
460
255
|
"data-testid": "rubric-assessment-status-pill",
|
|
461
256
|
children: t ? i.assessmentStatusComplete : i.assessmentStatusIncomplete
|
|
462
257
|
}
|
|
463
258
|
);
|
|
464
|
-
},
|
|
259
|
+
}, vs = ({
|
|
465
260
|
isPreviewMode: t,
|
|
466
261
|
isRubricComplete: i,
|
|
467
262
|
isSubmitting: n = !1,
|
|
@@ -472,7 +267,7 @@ const ns = (t, i, n = !1) => {
|
|
|
472
267
|
}) => {
|
|
473
268
|
const { translations: l } = S();
|
|
474
269
|
return /* @__PURE__ */ e(f, { as: "div", "data-testid": "rubric-assessment-footer", overflowX: "hidden", overflowY: "hidden", children: /* @__PURE__ */ u(p, { justifyItems: "end", margin: "small 0", wrap: "wrap", gap: "small", children: [
|
|
475
|
-
o && !t && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
270
|
+
o && !t && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(gs, { isRubricComplete: i }) }),
|
|
476
271
|
a && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
477
272
|
B,
|
|
478
273
|
{
|
|
@@ -528,7 +323,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
528
323
|
borderRadius: ".35rem 0 0 .35rem"
|
|
529
324
|
},
|
|
530
325
|
children: /* @__PURE__ */ e(f, { as: "div", margin: s ? "0 small" : "0 0 0 small", children: /* @__PURE__ */ e(Re, { on: s ? ["hover"] : [], renderTip: o, children: /* @__PURE__ */ e(D, { size: "medium", weight: "bold", children: /* @__PURE__ */ e(
|
|
531
|
-
|
|
326
|
+
Mt,
|
|
532
327
|
{
|
|
533
328
|
onUpdate: (d) => l(d),
|
|
534
329
|
position: "middle",
|
|
@@ -564,7 +359,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
564
359
|
}
|
|
565
360
|
) })
|
|
566
361
|
] });
|
|
567
|
-
},
|
|
362
|
+
}, fs = () => {
|
|
568
363
|
const { translations: t } = S();
|
|
569
364
|
return /* @__PURE__ */ e(p, { "data-testid": "rubric-self-assessment-instructions", children: /* @__PURE__ */ e(p.Item, { shouldGrow: !0, padding: "medium small", children: /* @__PURE__ */ u(
|
|
570
365
|
"div",
|
|
@@ -602,7 +397,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
602
397
|
]
|
|
603
398
|
}
|
|
604
399
|
) }) });
|
|
605
|
-
},
|
|
400
|
+
}, bs = ({
|
|
606
401
|
instructorPoints: t,
|
|
607
402
|
pointsPossible: i = 0
|
|
608
403
|
}) => {
|
|
@@ -628,7 +423,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
628
423
|
}
|
|
629
424
|
) })
|
|
630
425
|
] });
|
|
631
|
-
},
|
|
426
|
+
}, Is = ({ selectedViewMode: t, onViewModeChange: i }) => {
|
|
632
427
|
const { translations: n } = S(), a = (r) => {
|
|
633
428
|
i(r);
|
|
634
429
|
};
|
|
@@ -656,7 +451,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
656
451
|
]
|
|
657
452
|
}
|
|
658
453
|
);
|
|
659
|
-
},
|
|
454
|
+
}, Cs = ({
|
|
660
455
|
hidePoints: t,
|
|
661
456
|
instructorPoints: i,
|
|
662
457
|
isPreviewMode: n,
|
|
@@ -705,7 +500,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
705
500
|
/* @__PURE__ */ e(f, { as: "hr", margin: "x-small 0 small", "aria-hidden": !0 }),
|
|
706
501
|
/* @__PURE__ */ u(p, { wrap: "wrap", gap: "medium 0", children: [
|
|
707
502
|
!r && /* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ e(
|
|
708
|
-
|
|
503
|
+
Is,
|
|
709
504
|
{
|
|
710
505
|
selectedViewMode: h,
|
|
711
506
|
onViewModeChange: m
|
|
@@ -720,10 +515,10 @@ const { colors: en } = Oe, tn = ({
|
|
|
720
515
|
}
|
|
721
516
|
) }) }) })
|
|
722
517
|
] }),
|
|
723
|
-
r && /* @__PURE__ */ e(
|
|
518
|
+
r && /* @__PURE__ */ e(fs, {}),
|
|
724
519
|
!b() && /* @__PURE__ */ u(oe, { children: [
|
|
725
520
|
!t && /* @__PURE__ */ e(oe, { children: r ? /* @__PURE__ */ e(
|
|
726
|
-
|
|
521
|
+
bs,
|
|
727
522
|
{
|
|
728
523
|
instructorPoints: i,
|
|
729
524
|
pointsPossible: o
|
|
@@ -751,7 +546,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
751
546
|
]
|
|
752
547
|
}
|
|
753
548
|
);
|
|
754
|
-
},
|
|
549
|
+
}, Ls = Ue`
|
|
755
550
|
query GetRubricOutcome($learningOutcomeId: ID!) {
|
|
756
551
|
learningOutcome(id: $learningOutcomeId) {
|
|
757
552
|
id: _id
|
|
@@ -765,13 +560,13 @@ const { colors: en } = Oe, tn = ({
|
|
|
765
560
|
title
|
|
766
561
|
}
|
|
767
562
|
}
|
|
768
|
-
`,
|
|
563
|
+
`, Fi = (t) => {
|
|
769
564
|
const { executeQuery: i } = Pe();
|
|
770
|
-
return
|
|
565
|
+
return ct({
|
|
771
566
|
queryKey: ["rubric_outcome_", t ?? ""],
|
|
772
567
|
queryFn: async () => {
|
|
773
568
|
const { learningOutcome: n } = await i(
|
|
774
|
-
|
|
569
|
+
Ls,
|
|
775
570
|
{ learningOutcomeId: t }
|
|
776
571
|
);
|
|
777
572
|
return n;
|
|
@@ -875,15 +670,15 @@ const { colors: en } = Oe, tn = ({
|
|
|
875
670
|
},
|
|
876
671
|
children: [
|
|
877
672
|
/* @__PURE__ */ e(D, { size: "medium", "data-testid": "rubric-rating-button-label", children: i }),
|
|
878
|
-
r && /* @__PURE__ */ e(
|
|
673
|
+
r && /* @__PURE__ */ e(Ts, { buttonLabel: i })
|
|
879
674
|
]
|
|
880
675
|
}
|
|
881
676
|
),
|
|
882
|
-
a && /* @__PURE__ */ e(
|
|
677
|
+
a && /* @__PURE__ */ e(ys, { direction: o })
|
|
883
678
|
] })
|
|
884
679
|
}
|
|
885
680
|
);
|
|
886
|
-
},
|
|
681
|
+
}, ys = ({ direction: t }) => {
|
|
887
682
|
const i = {
|
|
888
683
|
position: "absolute",
|
|
889
684
|
width: "0",
|
|
@@ -897,7 +692,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
897
692
|
/* @__PURE__ */ e("div", { style: i, "data-testid": "rubric-rating-button-selected" }),
|
|
898
693
|
/* @__PURE__ */ e("div", { style: n })
|
|
899
694
|
] });
|
|
900
|
-
},
|
|
695
|
+
}, Ts = ({ buttonLabel: t }) => /* @__PURE__ */ e(
|
|
901
696
|
"div",
|
|
902
697
|
{
|
|
903
698
|
"data-testid": `rubric-rating-button-self-assessment-selected-${t}`,
|
|
@@ -910,7 +705,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
910
705
|
pointerEvents: "none"
|
|
911
706
|
}
|
|
912
707
|
}
|
|
913
|
-
), { colors:
|
|
708
|
+
), { colors: ws } = Oe, ja = ({
|
|
914
709
|
ariaLabel: t,
|
|
915
710
|
buttonLabel: i,
|
|
916
711
|
isPreviewMode: n,
|
|
@@ -946,7 +741,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
946
741
|
height: "30px",
|
|
947
742
|
width: "30px",
|
|
948
743
|
backgroundColor: "#F3F9F6",
|
|
949
|
-
color:
|
|
744
|
+
color: ws.contrasts.green4570,
|
|
950
745
|
border: "2px dashed #03893D",
|
|
951
746
|
borderRadius: "4px",
|
|
952
747
|
display: "flex",
|
|
@@ -965,7 +760,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
965
760
|
) })
|
|
966
761
|
}
|
|
967
762
|
);
|
|
968
|
-
}, { colors:
|
|
763
|
+
}, { colors: As } = Oe, Ss = ({
|
|
969
764
|
buttonDisplay: t,
|
|
970
765
|
criterionId: i,
|
|
971
766
|
hidePoints: n,
|
|
@@ -1007,7 +802,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
1007
802
|
margin: "0 xx-small small xx-small",
|
|
1008
803
|
"data-testid": `rating-details-${F == null ? void 0 : F.id}`,
|
|
1009
804
|
themeOverride: {
|
|
1010
|
-
borderColorBrand:
|
|
805
|
+
borderColorBrand: As.contrasts.green4570,
|
|
1011
806
|
borderWidthMedium: "0.188rem"
|
|
1012
807
|
},
|
|
1013
808
|
children: [
|
|
@@ -1059,6 +854,211 @@ const { colors: en } = Oe, tn = ({
|
|
|
1059
854
|
]
|
|
1060
855
|
}
|
|
1061
856
|
);
|
|
857
|
+
}, xs = {
|
|
858
|
+
"# of times": "calculationMethodNumberOfTimes",
|
|
859
|
+
"% weighting for last item": "calculationMethodWeightingForLastItem",
|
|
860
|
+
"% weighting of most recent item": "calculationMethodWeightingOfMostRecentItem",
|
|
861
|
+
"Achieve mastery {{count}} time": "calculationMethodAchieveMastery",
|
|
862
|
+
Average: "calculationMethodAverage",
|
|
863
|
+
"Average is not a good fit for most outcomes-based or mastery-based learning use cases because students may need time to reach mastery of an outcome and early poorer performance can bring down an average.": "calculationMethodAverageWarning",
|
|
864
|
+
"Between 1 and 10": "calculationMethodBetween1And10",
|
|
865
|
+
"Between 1% and 99%": "calculationMethodBetween1And99Percent",
|
|
866
|
+
"Between 50% and 99%": "calculationMethodBetween50And99Percent",
|
|
867
|
+
"Between two assessments, the most recent assessment gets {{calculation_int}} weight, and the first gets {{remainder}}. For each additional assessment, the sum of the previous score calculations decay by an additional {{remainder}}. If there is only one result, the single score will be returned.": "calculationMethodWeightedAverageDescription",
|
|
868
|
+
"Central value in a set of results. Calculated by dividing the sum of all item scores by the number of scores.": "calculationMethodAverageDescription",
|
|
869
|
+
"Decaying Average": "calculationMethodDecayingAverage",
|
|
870
|
+
"Decaying Average - {{recentInt}}%/{{remainderInt}}%": "calculationMethodDecayingAverageWithInts",
|
|
871
|
+
"Highest Score": "calculationMethodHighestScore",
|
|
872
|
+
"Items: ": "calculationMethodItems",
|
|
873
|
+
"Last Item: ": "calculationMethodLastItem",
|
|
874
|
+
"Latest Score": "calculationMethodLatestScore",
|
|
875
|
+
"Mastery score reflects the highest score of a graded assignment or quiz.": "calculationMethodHighestScoreDescription",
|
|
876
|
+
"Mastery score reflects the most recent graded assignment or quiz.": "calculationMethodLatestScoreDescription",
|
|
877
|
+
"Most Recent Item: ": "calculationMethodMostRecentItem",
|
|
878
|
+
"Most Recent Score": "calculationMethodMostRecentScore",
|
|
879
|
+
"Most recent result counts as {{calculation_int}} of mastery weight, average of all other results count as {{remainder}} of weight. If there is only one result, the single score will be returned.": "calculationMethodDecayingAverageDescription",
|
|
880
|
+
"Must achieve mastery at least {{count}} time. Scores above mastery will be averaged to calculate final score.": "calculationMethodNMasteryDescription",
|
|
881
|
+
"Weighted Average": "calculationMethodWeightedAverage",
|
|
882
|
+
"Weighted Average - {{recentInt}}%/{{remainderInt}}%": "calculationMethodWeightedAverageWithInts",
|
|
883
|
+
"must be between 1 and 10": "calculationMethodMustBeBetween1And10",
|
|
884
|
+
"must be between 1 and 99": "calculationMethodMustBeBetween1And99",
|
|
885
|
+
"must be between 50 and 99": "calculationMethodMustBeBetween50And99",
|
|
886
|
+
"n Number of Times": "calculationMethodNMastery",
|
|
887
|
+
"{{recentInt}}/{{remainderInt}} Decaying Average": "calculationMethodDecayingAverageRatio",
|
|
888
|
+
"{{recentInt}}/{{remainderInt}} Weighted Average": "calculationMethodWeightedAverageRatio"
|
|
889
|
+
}, Rs = (t) => (i, n) => {
|
|
890
|
+
const a = xs[i];
|
|
891
|
+
return a ? t(a, n) : i.replace(
|
|
892
|
+
/\{\{\s*(\w+)\s*\}\}/g,
|
|
893
|
+
(r, o) => n && o in n ? String(n[o]) : r
|
|
894
|
+
);
|
|
895
|
+
}, Ds = (t) => (i) => new Intl.NumberFormat(t, { maximumFractionDigits: 2 }).format(i), Ps = (t) => (i, n) => {
|
|
896
|
+
const a = new Intl.NumberFormat(t, { maximumFractionDigits: 5 }).format(i);
|
|
897
|
+
return n != null && n.percentage ? `${a}%` : a;
|
|
898
|
+
}, Fs = (t) => {
|
|
899
|
+
const { locale: i } = Pe(), { translate: n } = S();
|
|
900
|
+
return xe(
|
|
901
|
+
() => ({
|
|
902
|
+
translate: Rs(n),
|
|
903
|
+
formatOutcomeScore: Ds(i),
|
|
904
|
+
localizeNumber: Ps(i),
|
|
905
|
+
newDecayingAverageEnabled: t
|
|
906
|
+
}),
|
|
907
|
+
[i, n, t]
|
|
908
|
+
);
|
|
909
|
+
}, ks = ({
|
|
910
|
+
outcome: t,
|
|
911
|
+
newDecayingAverageEnabled: i = !1
|
|
912
|
+
}) => {
|
|
913
|
+
const { translations: n } = S(), a = Fs(i);
|
|
914
|
+
if (!t)
|
|
915
|
+
return null;
|
|
916
|
+
const r = t.displayName && t.displayName.length > 0, o = r ? t.displayName : t.title, s = new Bo(
|
|
917
|
+
{
|
|
918
|
+
calculation_method: t.calculationMethod,
|
|
919
|
+
calculation_int: t.calculationInt,
|
|
920
|
+
is_individual_outcome: !0,
|
|
921
|
+
mastery_points: t.masteryPoints
|
|
922
|
+
},
|
|
923
|
+
a
|
|
924
|
+
).present(), { friendlyCalculationMethod: l, exampleText: d } = s ?? {};
|
|
925
|
+
return /* @__PURE__ */ e(
|
|
926
|
+
Je,
|
|
927
|
+
{
|
|
928
|
+
match: "media",
|
|
929
|
+
query: {
|
|
930
|
+
compact: { maxWidth: "400px" },
|
|
931
|
+
fullWidth: { minWidth: "800px" }
|
|
932
|
+
},
|
|
933
|
+
children: (m, c) => {
|
|
934
|
+
const h = (c == null ? void 0 : c.includes("fullWidth")) ?? !1, g = (c == null ? void 0 : c.includes("compact")) ?? !1;
|
|
935
|
+
return /* @__PURE__ */ u(f, { as: "div", display: "block", "data-testid": "outcome-popover-display", maxWidth: h ? "600px" : g ? "200px" : "300px", children: [
|
|
936
|
+
/* @__PURE__ */ e(
|
|
937
|
+
Y,
|
|
938
|
+
{
|
|
939
|
+
level: "h3",
|
|
940
|
+
as: "h3",
|
|
941
|
+
margin: "x-small 0",
|
|
942
|
+
"data-testid": "outcome-popover-display-name",
|
|
943
|
+
children: o
|
|
944
|
+
}
|
|
945
|
+
),
|
|
946
|
+
r && /* @__PURE__ */ e(Y, { level: "h4", as: "h4", margin: "x-small 0", "data-testid": "outcome-popover-title", children: t.title }),
|
|
947
|
+
/* @__PURE__ */ e(
|
|
948
|
+
f,
|
|
949
|
+
{
|
|
950
|
+
as: "div",
|
|
951
|
+
"data-testid": "outcome-popover-display-content-description",
|
|
952
|
+
dangerouslySetInnerHTML: { __html: Nt(t.description ?? "") }
|
|
953
|
+
}
|
|
954
|
+
),
|
|
955
|
+
/* @__PURE__ */ e(
|
|
956
|
+
$o,
|
|
957
|
+
{
|
|
958
|
+
outcomeContextType: t.contextType ?? void 0,
|
|
959
|
+
outcomeContextId: t.contextId ?? void 0,
|
|
960
|
+
margin: "0 0 x-small 0",
|
|
961
|
+
translations: {
|
|
962
|
+
course: n.outcomeContextTagCourse,
|
|
963
|
+
courseLevelOutcome: n.outcomeContextTagCourseLevel,
|
|
964
|
+
institution: n.outcomeContextTagInstitution,
|
|
965
|
+
institutionLevelOutcome: n.outcomeContextTagInstitutionLevel
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
),
|
|
969
|
+
l && d && /* @__PURE__ */ u(oe, { children: [
|
|
970
|
+
/* @__PURE__ */ e(f, { as: "hr" }),
|
|
971
|
+
/* @__PURE__ */ u(p, { as: "div", width: "100%", gap: "medium", wrap: h ? "no-wrap" : "wrap", children: [
|
|
972
|
+
/* @__PURE__ */ u(p.Item, { align: "start", children: [
|
|
973
|
+
/* @__PURE__ */ e(Y, { level: "h4", as: "h4", children: n.assessmentOutcomeCalculationMethod }),
|
|
974
|
+
/* @__PURE__ */ e(D, { "data-testid": "outcome-popover-display-content-calculation-method", children: l })
|
|
975
|
+
] }),
|
|
976
|
+
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, align: "start", children: /* @__PURE__ */ u(f, { as: "div", children: [
|
|
977
|
+
/* @__PURE__ */ e(Y, { level: "h4", as: "h4", children: n.assessmentOutcomeExample }),
|
|
978
|
+
/* @__PURE__ */ e(f, { as: "div", children: /* @__PURE__ */ e(
|
|
979
|
+
D,
|
|
980
|
+
{
|
|
981
|
+
wrap: "break-word",
|
|
982
|
+
"data-testid": "outcome-popover-display-content-example",
|
|
983
|
+
children: d
|
|
984
|
+
}
|
|
985
|
+
) })
|
|
986
|
+
] }) })
|
|
987
|
+
] })
|
|
988
|
+
] })
|
|
989
|
+
] });
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
);
|
|
993
|
+
}, _s = ({
|
|
994
|
+
outcome: t,
|
|
995
|
+
newDecayingAverageEnabled: i = !1,
|
|
996
|
+
renderTrigger: n
|
|
997
|
+
}) => {
|
|
998
|
+
const { translations: a } = S(), [r, o] = R(!1);
|
|
999
|
+
return /* @__PURE__ */ e(
|
|
1000
|
+
ut,
|
|
1001
|
+
{
|
|
1002
|
+
renderTrigger: n,
|
|
1003
|
+
isShowingContent: r,
|
|
1004
|
+
onShowContent: () => o(!0),
|
|
1005
|
+
onHideContent: () => o(!1),
|
|
1006
|
+
on: "click",
|
|
1007
|
+
screenReaderLabel: a.assessmentOutcomePopoverLabel,
|
|
1008
|
+
shouldContainFocus: !0,
|
|
1009
|
+
shouldReturnFocus: !0,
|
|
1010
|
+
shouldCloseOnDocumentClick: !0,
|
|
1011
|
+
offsetY: "16px",
|
|
1012
|
+
children: /* @__PURE__ */ u(f, { padding: "medium", display: "block", as: "form", children: [
|
|
1013
|
+
/* @__PURE__ */ e(
|
|
1014
|
+
fe,
|
|
1015
|
+
{
|
|
1016
|
+
placement: "end",
|
|
1017
|
+
offset: "small",
|
|
1018
|
+
onClick: () => o(!1),
|
|
1019
|
+
screenReaderLabel: a.close
|
|
1020
|
+
}
|
|
1021
|
+
),
|
|
1022
|
+
t ? /* @__PURE__ */ e(
|
|
1023
|
+
ks,
|
|
1024
|
+
{
|
|
1025
|
+
outcome: t,
|
|
1026
|
+
newDecayingAverageEnabled: i
|
|
1027
|
+
}
|
|
1028
|
+
) : /* @__PURE__ */ e(f, { as: "div", textAlign: "center", padding: "medium", children: /* @__PURE__ */ e(ze, {}) })
|
|
1029
|
+
] })
|
|
1030
|
+
}
|
|
1031
|
+
);
|
|
1032
|
+
}, ki = ({
|
|
1033
|
+
displayName: t,
|
|
1034
|
+
outcome: i,
|
|
1035
|
+
maxWidth: n,
|
|
1036
|
+
newDecayingAverageEnabled: a = !1,
|
|
1037
|
+
onClick: r
|
|
1038
|
+
}) => {
|
|
1039
|
+
const { translate: o } = S();
|
|
1040
|
+
return /* @__PURE__ */ e(
|
|
1041
|
+
_s,
|
|
1042
|
+
{
|
|
1043
|
+
renderTrigger: /* @__PURE__ */ e(
|
|
1044
|
+
Oo,
|
|
1045
|
+
{
|
|
1046
|
+
text: /* @__PURE__ */ e(Eo, { alt: o("assessmentOutcomeTagLabel", { displayName: t }), children: /* @__PURE__ */ e(D, { children: t }) }),
|
|
1047
|
+
size: "small",
|
|
1048
|
+
themeOverride: {
|
|
1049
|
+
defaultBackground: "white",
|
|
1050
|
+
defaultBorderColor: "rgb(3, 116, 181)",
|
|
1051
|
+
defaultColor: "rgb(3, 116, 181)",
|
|
1052
|
+
maxWidth: n ?? "10rem"
|
|
1053
|
+
},
|
|
1054
|
+
onClick: r,
|
|
1055
|
+
"data-testid": "rubric-criteria-row-outcome-tag"
|
|
1056
|
+
}
|
|
1057
|
+
),
|
|
1058
|
+
outcome: i,
|
|
1059
|
+
newDecayingAverageEnabled: a
|
|
1060
|
+
}
|
|
1061
|
+
);
|
|
1062
1062
|
}, Es = (t, i) => {
|
|
1063
1063
|
const n = new Date(t), a = {
|
|
1064
1064
|
hour: "numeric",
|
|
@@ -1294,7 +1294,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
1294
1294
|
}, [g]), de(() => {
|
|
1295
1295
|
V && A && A[0] === i.id && K.current && K.current.focus();
|
|
1296
1296
|
}, [i.id, N, V, A]);
|
|
1297
|
-
const { data: ce } =
|
|
1297
|
+
const { data: ce } = Fi(y), te = (P) => {
|
|
1298
1298
|
w(
|
|
1299
1299
|
Ha(i.id, g, P)
|
|
1300
1300
|
);
|
|
@@ -1304,7 +1304,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
1304
1304
|
const he = za(P);
|
|
1305
1305
|
te({ points: he, ratingId: void 0 }), O(he === void 0 ? "" : he.toString());
|
|
1306
1306
|
}, ie = () => C === "horizontal" && _.length <= 5 ? /* @__PURE__ */ e(
|
|
1307
|
-
|
|
1307
|
+
Ss,
|
|
1308
1308
|
{
|
|
1309
1309
|
buttonDisplay: t,
|
|
1310
1310
|
criterionId: i.id,
|
|
@@ -1352,7 +1352,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
1352
1352
|
children: [
|
|
1353
1353
|
!a && /* @__PURE__ */ u(p, { "data-testid": "modern-view-out-of-points", children: [
|
|
1354
1354
|
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, children: i.learningOutcomeId && /* @__PURE__ */ e(
|
|
1355
|
-
|
|
1355
|
+
ki,
|
|
1356
1356
|
{
|
|
1357
1357
|
displayName: i.description,
|
|
1358
1358
|
outcome: ce,
|
|
@@ -1392,7 +1392,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
1392
1392
|
weight: "normal",
|
|
1393
1393
|
themeOverride: { fontSizeXSmall: "0.875rem", paragraphMargin: 0 },
|
|
1394
1394
|
dangerouslySetInnerHTML: {
|
|
1395
|
-
__html:
|
|
1395
|
+
__html: Nt(ha(i.longDescription ?? ""))
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
) }),
|
|
@@ -1503,13 +1503,13 @@ const { colors: en } = Oe, tn = ({
|
|
|
1503
1503
|
}, zs = () => {
|
|
1504
1504
|
const { translations: t } = S(), [i, n] = R(!1);
|
|
1505
1505
|
return /* @__PURE__ */ e(
|
|
1506
|
-
|
|
1506
|
+
ut,
|
|
1507
1507
|
{
|
|
1508
1508
|
renderTrigger: /* @__PURE__ */ e(
|
|
1509
1509
|
B,
|
|
1510
1510
|
{
|
|
1511
1511
|
color: "ai-secondary",
|
|
1512
|
-
renderIcon: /* @__PURE__ */ e(
|
|
1512
|
+
renderIcon: /* @__PURE__ */ e(st, {}),
|
|
1513
1513
|
size: "small",
|
|
1514
1514
|
themeOverride: {
|
|
1515
1515
|
borderRadius: "999rem"
|
|
@@ -1533,7 +1533,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
1533
1533
|
children: /* @__PURE__ */ u(p, { direction: "column", width: 320, padding: "medium", justifyItems: "space-between", children: [
|
|
1534
1534
|
/* @__PURE__ */ e(p.Item, { padding: "0 0 medium 0", children: /* @__PURE__ */ u(p, { children: [
|
|
1535
1535
|
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ u(Y, { variant: "label", color: "ai", margin: "0", children: [
|
|
1536
|
-
/* @__PURE__ */ e(
|
|
1536
|
+
/* @__PURE__ */ e(st, {}),
|
|
1537
1537
|
" IgniteAI"
|
|
1538
1538
|
] }) }),
|
|
1539
1539
|
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
@@ -1584,7 +1584,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
1584
1584
|
lineHeight: "double",
|
|
1585
1585
|
wrap: "break-word",
|
|
1586
1586
|
dangerouslySetInnerHTML: {
|
|
1587
|
-
__html:
|
|
1587
|
+
__html: Nt(ha(n ?? ""))
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
) })
|
|
@@ -2068,7 +2068,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2068
2068
|
}, [n, l]), de(() => {
|
|
2069
2069
|
ee && K(!1);
|
|
2070
2070
|
}, [ee]);
|
|
2071
|
-
const { data: te } =
|
|
2071
|
+
const { data: te } = Fi(b);
|
|
2072
2072
|
return /* @__PURE__ */ u(oe, { children: [
|
|
2073
2073
|
/* @__PURE__ */ u(
|
|
2074
2074
|
"tr",
|
|
@@ -2090,7 +2090,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2090
2090
|
},
|
|
2091
2091
|
children: /* @__PURE__ */ u(p, { as: "div", direction: "column", alignItems: "stretch", padding: "x-small small", children: [
|
|
2092
2092
|
i.learningOutcomeId && /* @__PURE__ */ e(f, { as: "div", margin: "0 0 small 0", children: /* @__PURE__ */ e(
|
|
2093
|
-
|
|
2093
|
+
ki,
|
|
2094
2094
|
{
|
|
2095
2095
|
displayName: i.description,
|
|
2096
2096
|
outcome: te,
|
|
@@ -2216,7 +2216,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2216
2216
|
}
|
|
2217
2217
|
) })
|
|
2218
2218
|
] }) });
|
|
2219
|
-
}, { colors: Gt } = Oe, Js = (t) => /* @__PURE__ */ e(
|
|
2219
|
+
}, { colors: Gt } = Oe, Js = (t) => /* @__PURE__ */ e(Ze, { translations: Qe, translate: Ke, children: /* @__PURE__ */ e(bt, { featureFlags: t.featureFlags, children: /* @__PURE__ */ e(el, { ...t }) }) }), el = ({
|
|
2220
2220
|
criteria: t,
|
|
2221
2221
|
customRatings: i,
|
|
2222
2222
|
hidePoints: n,
|
|
@@ -2349,7 +2349,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2349
2349
|
]
|
|
2350
2350
|
}
|
|
2351
2351
|
);
|
|
2352
|
-
}, tl = (t) => /* @__PURE__ */ e(bt, { featureFlags: t.featureFlags, children: /* @__PURE__ */ e(il, { ...t }) }), il = ({
|
|
2352
|
+
}, tl = (t) => /* @__PURE__ */ e(Ze, { translations: Qe, translate: Ke, children: /* @__PURE__ */ e(bt, { featureFlags: t.featureFlags, children: /* @__PURE__ */ e(il, { ...t }) }) }), il = ({
|
|
2353
2353
|
buttonDisplay: t,
|
|
2354
2354
|
criteria: i,
|
|
2355
2355
|
currentUserId: n,
|
|
@@ -2388,7 +2388,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2388
2388
|
validate: ee,
|
|
2389
2389
|
submit: K,
|
|
2390
2390
|
isSubmitting: j
|
|
2391
|
-
} =
|
|
2391
|
+
} = ps({
|
|
2392
2392
|
criteria: i,
|
|
2393
2393
|
rubricAssessmentData: C,
|
|
2394
2394
|
hidePoints: a,
|
|
@@ -2490,7 +2490,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2490
2490
|
},
|
|
2491
2491
|
children: /* @__PURE__ */ u(p, { as: "div", direction: "column", children: [
|
|
2492
2492
|
/* @__PURE__ */ e(p.Item, { as: "header", children: /* @__PURE__ */ e(
|
|
2493
|
-
|
|
2493
|
+
Cs,
|
|
2494
2494
|
{
|
|
2495
2495
|
hidePoints: a,
|
|
2496
2496
|
instructorPoints: U,
|
|
@@ -2510,7 +2510,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2510
2510
|
) }),
|
|
2511
2511
|
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, as: "div", id: "rubric-assessment-view-container", children: /* @__PURE__ */ e(f, { as: "div", overflowY: "auto", children: se() }) }),
|
|
2512
2512
|
X && /* @__PURE__ */ e(p.Item, { as: "footer", children: /* @__PURE__ */ e(
|
|
2513
|
-
|
|
2513
|
+
vs,
|
|
2514
2514
|
{
|
|
2515
2515
|
isPreviewMode: o,
|
|
2516
2516
|
showCancelButton: c && !s,
|
|
@@ -2526,7 +2526,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2526
2526
|
] })
|
|
2527
2527
|
}
|
|
2528
2528
|
);
|
|
2529
|
-
}, nl = (t) => /* @__PURE__ */ e(tl, { ...t }), Ei = (t) => /* @__PURE__ */ e(
|
|
2529
|
+
}, nl = (t) => /* @__PURE__ */ e(tl, { ...t }), Ei = (t) => /* @__PURE__ */ e(Ze, { translations: Qe, translate: Ke, children: /* @__PURE__ */ e(al, { ...t }) }), al = ({
|
|
2530
2530
|
currentUserId: t,
|
|
2531
2531
|
featureFlags: i,
|
|
2532
2532
|
hidePoints: n = !1,
|
|
@@ -2718,7 +2718,7 @@ const { colors: en } = Oe, tn = ({
|
|
|
2718
2718
|
};
|
|
2719
2719
|
};
|
|
2720
2720
|
function pl(t, i) {
|
|
2721
|
-
return
|
|
2721
|
+
return ct({
|
|
2722
2722
|
queryKey: ["assignment-rubric", t, i],
|
|
2723
2723
|
queryFn: () => hl(t, i),
|
|
2724
2724
|
enabled: !!t && !!i,
|
|
@@ -2862,7 +2862,7 @@ const gl = ({
|
|
|
2862
2862
|
isPending: c,
|
|
2863
2863
|
isError: h,
|
|
2864
2864
|
mutate: g
|
|
2865
|
-
} =
|
|
2865
|
+
} = Xe({
|
|
2866
2866
|
mutationFn: () => {
|
|
2867
2867
|
if (!t || !i)
|
|
2868
2868
|
throw new Error("Must be called from a course+assignment context");
|
|
@@ -2942,7 +2942,7 @@ const gl = ({
|
|
|
2942
2942
|
isPending: h,
|
|
2943
2943
|
isError: g,
|
|
2944
2944
|
mutate: v
|
|
2945
|
-
} =
|
|
2945
|
+
} = Xe({
|
|
2946
2946
|
mutationFn: ({
|
|
2947
2947
|
criteriaForRegeneration: w,
|
|
2948
2948
|
additionalPrompt: A,
|
|
@@ -6456,11 +6456,11 @@ const Ni = ({ enabled: t }) => {
|
|
|
6456
6456
|
"data-testid": "generate-criteria-form",
|
|
6457
6457
|
children: [
|
|
6458
6458
|
/* @__PURE__ */ e(Y, { level: "h3", children: /* @__PURE__ */ u(p, { alignItems: "center", gap: "small", children: [
|
|
6459
|
-
/* @__PURE__ */ e(
|
|
6459
|
+
/* @__PURE__ */ e(st, {}),
|
|
6460
6460
|
/* @__PURE__ */ e(D, { children: l.generateFormHeading }),
|
|
6461
6461
|
/* @__PURE__ */ e(Ni, { enabled: !0 })
|
|
6462
6462
|
] }) }),
|
|
6463
|
-
/* @__PURE__ */ e(
|
|
6463
|
+
/* @__PURE__ */ e(Je, { match: "element", query: jl, children: (h, g) => {
|
|
6464
6464
|
const v = (g == null ? void 0 : g.includes("large")) ?? !1, C = (g == null ? void 0 : g.includes("medium")) ?? !1, b = (g == null ? void 0 : g.includes("small")) ?? !1, y = b ? "100%" : C ? "45%" : void 0;
|
|
6465
6465
|
return /* @__PURE__ */ u(oe, { children: [
|
|
6466
6466
|
/* @__PURE__ */ u(
|
|
@@ -6627,7 +6627,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6627
6627
|
responseType: n,
|
|
6628
6628
|
onSubmitted: a
|
|
6629
6629
|
}) => {
|
|
6630
|
-
const { translations: r } = S(), { executeQuery: o } = Pe(), { mutate: s, isPending: l } =
|
|
6630
|
+
const { translations: r } = S(), { executeQuery: o } = Pe(), { mutate: s, isPending: l } = Xe({
|
|
6631
6631
|
mutationFn: ({
|
|
6632
6632
|
feedbackType: d,
|
|
6633
6633
|
comment: m
|
|
@@ -6748,7 +6748,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6748
6748
|
return de(() => {
|
|
6749
6749
|
o(null), l(null);
|
|
6750
6750
|
}, [i]), /* @__PURE__ */ u(oe, { children: [
|
|
6751
|
-
/* @__PURE__ */ e(
|
|
6751
|
+
/* @__PURE__ */ e(Je, { match: "media", query: { compact: { maxWidth: "550px" } }, children: (C, b) => {
|
|
6752
6752
|
const y = b == null ? void 0 : b.includes("compact");
|
|
6753
6753
|
return /* @__PURE__ */ u(
|
|
6754
6754
|
p,
|
|
@@ -6899,7 +6899,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6899
6899
|
onClick: () => l(!0),
|
|
6900
6900
|
"data-testid": "regenerate-criteria-button",
|
|
6901
6901
|
color: t,
|
|
6902
|
-
renderIcon: t === "ai-primary" ? /* @__PURE__ */ e(yi, {}) : /* @__PURE__ */ e(
|
|
6902
|
+
renderIcon: t === "ai-primary" ? /* @__PURE__ */ e(yi, {}) : /* @__PURE__ */ e(st, {}),
|
|
6903
6903
|
disabled: i,
|
|
6904
6904
|
children: o.regenerateButtonLabel
|
|
6905
6905
|
}
|
|
@@ -6916,7 +6916,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6916
6916
|
onRegenerateAll: o
|
|
6917
6917
|
}) => {
|
|
6918
6918
|
const { translations: s } = S();
|
|
6919
|
-
return /* @__PURE__ */ e(
|
|
6919
|
+
return /* @__PURE__ */ e(Je, { match: "media", query: { compact: { maxWidth: "550px" } }, children: (l, d) => {
|
|
6920
6920
|
const m = d == null ? void 0 : d.includes("compact");
|
|
6921
6921
|
return /* @__PURE__ */ e(
|
|
6922
6922
|
f,
|
|
@@ -6929,7 +6929,7 @@ const Ni = ({ enabled: t }) => {
|
|
|
6929
6929
|
"data-testid": "generate-criteria-header",
|
|
6930
6930
|
children: /* @__PURE__ */ u(p, { gap: "medium", direction: m ? "column" : "row", children: [
|
|
6931
6931
|
/* @__PURE__ */ e(p.Item, { shouldShrink: !0, shouldGrow: !0, children: /* @__PURE__ */ e(Y, { level: "h4", children: /* @__PURE__ */ u(p, { alignItems: "center", gap: "small", children: [
|
|
6932
|
-
/* @__PURE__ */ e(
|
|
6932
|
+
/* @__PURE__ */ e(st, {}),
|
|
6933
6933
|
/* @__PURE__ */ e(D, { children: s.criteriaAutoGeneratedLabel }),
|
|
6934
6934
|
/* @__PURE__ */ e(Ni, { enabled: !0 })
|
|
6935
6935
|
] }) }) }),
|
|
@@ -7268,7 +7268,7 @@ const ad = ({
|
|
|
7268
7268
|
size: "small",
|
|
7269
7269
|
color: "primary",
|
|
7270
7270
|
themeOverride: { smallHeight: "1.5rem" },
|
|
7271
|
-
children: /* @__PURE__ */ e(
|
|
7271
|
+
children: /* @__PURE__ */ e(Ro, {})
|
|
7272
7272
|
}
|
|
7273
7273
|
),
|
|
7274
7274
|
/* @__PURE__ */ e(
|
|
@@ -7309,7 +7309,7 @@ const ad = ({
|
|
|
7309
7309
|
}) => {
|
|
7310
7310
|
const { translations: s } = S(), [l, d] = R(!1);
|
|
7311
7311
|
return /* @__PURE__ */ e(
|
|
7312
|
-
|
|
7312
|
+
ut,
|
|
7313
7313
|
{
|
|
7314
7314
|
renderTrigger: /* @__PURE__ */ e(be, { screenReaderLabel: s.ratingOptionsLabel, "data-testid": "rating-options-popover", children: /* @__PURE__ */ e(Ti, {}) }),
|
|
7315
7315
|
shouldRenderOffscreen: !1,
|
|
@@ -8091,7 +8091,7 @@ const ad = ({
|
|
|
8091
8091
|
/* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(
|
|
8092
8092
|
B,
|
|
8093
8093
|
{
|
|
8094
|
-
renderIcon: /* @__PURE__ */ e(
|
|
8094
|
+
renderIcon: /* @__PURE__ */ e(_t, {}),
|
|
8095
8095
|
onClick: n,
|
|
8096
8096
|
"data-testid": "add-criterion-button",
|
|
8097
8097
|
children: r.draftNewCriterionButton
|
|
@@ -8126,7 +8126,7 @@ const ad = ({
|
|
|
8126
8126
|
b(), g(!1);
|
|
8127
8127
|
}, C = r ? c.viewOutcomeCriterionLabel : c.editCriterionLabel;
|
|
8128
8128
|
return /* @__PURE__ */ e("span", { ref: m, children: /* @__PURE__ */ e(
|
|
8129
|
-
|
|
8129
|
+
ut,
|
|
8130
8130
|
{
|
|
8131
8131
|
renderTrigger: /* @__PURE__ */ e(
|
|
8132
8132
|
be,
|
|
@@ -8187,7 +8187,7 @@ const ad = ({
|
|
|
8187
8187
|
onClick: v(s),
|
|
8188
8188
|
"data-testid": "edit-criterion-menu-item",
|
|
8189
8189
|
children: [
|
|
8190
|
-
r ? /* @__PURE__ */ e(Ai, {}) : /* @__PURE__ */ e(
|
|
8190
|
+
r ? /* @__PURE__ */ e(Ai, {}) : /* @__PURE__ */ e(_t, {}),
|
|
8191
8191
|
/* @__PURE__ */ e(f, { as: "span", margin: "0 0 0 x-small", children: C })
|
|
8192
8192
|
]
|
|
8193
8193
|
}
|
|
@@ -8273,7 +8273,7 @@ const Cd = ({ disabled: t, onClick: i }) => {
|
|
|
8273
8273
|
themeOverride: { smallHeight: "18px" },
|
|
8274
8274
|
"data-testid": "rubric-criteria-row-edit-button",
|
|
8275
8275
|
disabled: i,
|
|
8276
|
-
children: t ? /* @__PURE__ */ e(Ai, {}) : /* @__PURE__ */ e(
|
|
8276
|
+
children: t ? /* @__PURE__ */ e(Ai, {}) : /* @__PURE__ */ e(_t, {})
|
|
8277
8277
|
}
|
|
8278
8278
|
) });
|
|
8279
8279
|
}, Td = ({
|
|
@@ -8354,7 +8354,7 @@ const Ad = ({
|
|
|
8354
8354
|
selectedLearningOutcomeId: F,
|
|
8355
8355
|
selectLearningOutcome: E
|
|
8356
8356
|
}) => {
|
|
8357
|
-
const { translations: x, translate: _ } = S(), { possibleString: W } = Ae(), { data: V } =
|
|
8357
|
+
const { translations: x, translate: _ } = S(), { possibleString: W } = Ae(), { data: V } = Fi(F), N = ge(null), H = t.id || `criterion-row-${d}`, { attributes: O, listeners: U, setNodeRef: G, transform: Z, transition: ee, isDragging: K } = Ia({
|
|
8358
8358
|
id: H
|
|
8359
8359
|
}), {
|
|
8360
8360
|
description: j,
|
|
@@ -8409,7 +8409,7 @@ const Ad = ({
|
|
|
8409
8409
|
te ? /* @__PURE__ */ u(oe, { children: [
|
|
8410
8410
|
/* @__PURE__ */ u(f, { as: "div", children: [
|
|
8411
8411
|
/* @__PURE__ */ e(
|
|
8412
|
-
|
|
8412
|
+
ki,
|
|
8413
8413
|
{
|
|
8414
8414
|
displayName: t.description,
|
|
8415
8415
|
outcome: V,
|
|
@@ -8424,7 +8424,7 @@ const Ad = ({
|
|
|
8424
8424
|
renderTip: x.outcomeCannotEditTooltip,
|
|
8425
8425
|
"data-testid": `outcome-tooltip-${t.id}`,
|
|
8426
8426
|
children: /* @__PURE__ */ e(
|
|
8427
|
-
|
|
8427
|
+
Do,
|
|
8428
8428
|
{
|
|
8429
8429
|
style: { marginLeft: 12 },
|
|
8430
8430
|
"data-testid": `outcome-lock-icon-${t.id}`
|
|
@@ -8442,13 +8442,13 @@ const Ad = ({
|
|
|
8442
8442
|
children: /* @__PURE__ */ e(Y, { level: "h4", children: ce == null ? void 0 : ce.displayName })
|
|
8443
8443
|
}
|
|
8444
8444
|
),
|
|
8445
|
-
/* @__PURE__ */ e(f, { as: "div", "data-testid": "rubric-criteria-row-description", children: /* @__PURE__ */ e(D, { dangerouslySetInnerHTML: { __html:
|
|
8445
|
+
/* @__PURE__ */ e(f, { as: "div", "data-testid": "rubric-criteria-row-description", children: /* @__PURE__ */ e(D, { dangerouslySetInnerHTML: { __html: Nt(Q ?? "") } }) }),
|
|
8446
8446
|
!a && /* @__PURE__ */ e(f, { as: "div", margin: "small 0 0 0", "data-testid": "rubric-criteria-row-threshold", children: /* @__PURE__ */ e(D, { children: _("outcomeCriterionModalThreshold", {
|
|
8447
8447
|
threshold: W(re)
|
|
8448
8448
|
}) }) })
|
|
8449
8449
|
] }) : /* @__PURE__ */ u(oe, { children: [
|
|
8450
8450
|
/* @__PURE__ */ e(f, { as: "div", "data-testid": "rubric-criteria-row-description", children: /* @__PURE__ */ u(p, { alignItems: "center", gap: "x-small", children: [
|
|
8451
|
-
m && /* @__PURE__ */ e("span", { "data-testid": "rubric-criteria-row-ai-icon", children: /* @__PURE__ */ e(
|
|
8451
|
+
m && /* @__PURE__ */ e("span", { "data-testid": "rubric-criteria-row-ai-icon", children: /* @__PURE__ */ e(st, { title: x.aiGeneratedIconTitle }) }),
|
|
8452
8452
|
/* @__PURE__ */ e(
|
|
8453
8453
|
Y,
|
|
8454
8454
|
{
|
|
@@ -8487,7 +8487,7 @@ const Ad = ({
|
|
|
8487
8487
|
className: `${pe["criterion-cell"]} ${pe["criterion-cell--actions"]}`,
|
|
8488
8488
|
children: [
|
|
8489
8489
|
!ie && !a && /* @__PURE__ */ e(
|
|
8490
|
-
|
|
8490
|
+
Et,
|
|
8491
8491
|
{
|
|
8492
8492
|
color: "info",
|
|
8493
8493
|
disabled: !0,
|
|
@@ -8942,7 +8942,7 @@ const Ad = ({
|
|
|
8942
8942
|
]
|
|
8943
8943
|
}
|
|
8944
8944
|
);
|
|
8945
|
-
}, Nd = (t) => /* @__PURE__ */ e(
|
|
8945
|
+
}, Nd = (t) => /* @__PURE__ */ e(Ze, { translations: Qe, translate: Ke, children: /* @__PURE__ */ e(
|
|
8946
8946
|
bt,
|
|
8947
8947
|
{
|
|
8948
8948
|
courseId: t.courseId,
|
|
@@ -9007,9 +9007,9 @@ const Ad = ({
|
|
|
9007
9007
|
maxRatingCount: E,
|
|
9008
9008
|
assignmentPointsPossible: n
|
|
9009
9009
|
})
|
|
9010
|
-
),
|
|
9011
|
-
() =>
|
|
9012
|
-
[
|
|
9010
|
+
), et = T && O && U, Cr = xe(
|
|
9011
|
+
() => et && x.criteria.some((Te) => !Te.learningOutcomeId),
|
|
9012
|
+
[et, x.criteria]
|
|
9013
9013
|
), {
|
|
9014
9014
|
generateCriteriaIsPending: Lr,
|
|
9015
9015
|
generateCriteriaIsSuccess: qi,
|
|
@@ -9021,7 +9021,7 @@ const Ad = ({
|
|
|
9021
9021
|
courseId: r,
|
|
9022
9022
|
generateOptions: Ht,
|
|
9023
9023
|
setRubricFormField: _
|
|
9024
|
-
}), wr =
|
|
9024
|
+
}), wr = et && !qi, Ar = et && qi, {
|
|
9025
9025
|
regenerateAllCriteria: Sr,
|
|
9026
9026
|
regenerateSingleCriterion: xr,
|
|
9027
9027
|
regenerateCriteriaIsPending: Rr,
|
|
@@ -9033,7 +9033,7 @@ const Ad = ({
|
|
|
9033
9033
|
criteriaRef: H,
|
|
9034
9034
|
generateOptions: Ht,
|
|
9035
9035
|
setRubricFormField: _
|
|
9036
|
-
}), Fr = Dr ?? Tr ?? "", kr = Pr ?? Rt.GENERATE_CRITERIA, Tt = Lr || Rr, _r =
|
|
9036
|
+
}), Fr = Dr ?? Tr ?? "", kr = Pr ?? Rt.GENERATE_CRITERIA, Tt = Lr || Rr, _r = et ? (Te) => /* @__PURE__ */ e(
|
|
9037
9037
|
Ka,
|
|
9038
9038
|
{
|
|
9039
9039
|
buttonColor: "ai-secondary",
|
|
@@ -9060,7 +9060,7 @@ const Ad = ({
|
|
|
9060
9060
|
z ? y() : Gi(!0);
|
|
9061
9061
|
};
|
|
9062
9062
|
return Z && t ? /* @__PURE__ */ e(ze, {}) : !Z && ee && K && t ? /* @__PURE__ */ e(Ed, {}) : j && !G && t ? Kr({ translations: ma(L) }) : /* @__PURE__ */ e(
|
|
9063
|
-
|
|
9063
|
+
Je,
|
|
9064
9064
|
{
|
|
9065
9065
|
match: "media",
|
|
9066
9066
|
query: {
|
|
@@ -9133,7 +9133,7 @@ const Ad = ({
|
|
|
9133
9133
|
headingLevel: l ? "h3" : "h2",
|
|
9134
9134
|
hidePoints: x.hidePoints,
|
|
9135
9135
|
hideScoreTotal: x.hideScoreTotal,
|
|
9136
|
-
isAIRubricsAvailable:
|
|
9136
|
+
isAIRubricsAvailable: et,
|
|
9137
9137
|
rubricId: x.id,
|
|
9138
9138
|
pointsPossible: x.pointsPossible
|
|
9139
9139
|
}
|
|
@@ -9341,7 +9341,7 @@ const Ad = ({
|
|
|
9341
9341
|
] })
|
|
9342
9342
|
] }),
|
|
9343
9343
|
/* @__PURE__ */ e(M.Body, { padding: "0", children: /* @__PURE__ */ e(
|
|
9344
|
-
|
|
9344
|
+
Je,
|
|
9345
9345
|
{
|
|
9346
9346
|
match: "media",
|
|
9347
9347
|
query: {
|
|
@@ -9402,7 +9402,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9402
9402
|
},
|
|
9403
9403
|
paginationEnabled: v
|
|
9404
9404
|
};
|
|
9405
|
-
}, zd = (t) =>
|
|
9405
|
+
}, zd = (t) => ct({
|
|
9406
9406
|
queryKey: ["fetchGradingRubricContexts", t],
|
|
9407
9407
|
queryFn: () => ul({ courseId: t })
|
|
9408
9408
|
}), Hd = (t, i) => t.find((n) => n.contextCode === `course_${i}`) ?? t[0], Wd = (t) => {
|
|
@@ -9488,7 +9488,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9488
9488
|
}) => {
|
|
9489
9489
|
const [r, o] = R(1), [s, l] = R(n), [d, m] = R(i);
|
|
9490
9490
|
a && (n !== s || i !== d) && (l(n), m(i), o(1));
|
|
9491
|
-
const c = a ? ["fetchGradingRubricsForContext", t, i, r, n] : ["fetchGradingRubricsForContext", t, i], { data: h, isLoading: g } =
|
|
9491
|
+
const c = a ? ["fetchGradingRubricsForContext", t, i, r, n] : ["fetchGradingRubricsForContext", t, i], { data: h, isLoading: g } = ct({
|
|
9492
9492
|
queryKey: c,
|
|
9493
9493
|
queryFn: () => ml({
|
|
9494
9494
|
courseId: t,
|
|
@@ -9507,7 +9507,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9507
9507
|
}, Yd = ({ checked: t, rubric: i, onPreview: n, onSelect: a }) => {
|
|
9508
9508
|
const { translations: r, translate: o } = S(), { possibleString: s } = Ae(), [l, d] = R(!1), m = () => i.hidePoints ? r.rubricSearchRowUnscored : s(i.pointsPossible), c = (g) => {
|
|
9509
9509
|
l !== g && d(g);
|
|
9510
|
-
}, h = () => /* @__PURE__ */ e(
|
|
9510
|
+
}, h = () => /* @__PURE__ */ e(Mt, { onUpdate: c, children: /* @__PURE__ */ e(D, { "data-testid": "rubric-search-row-title", children: i.title }) });
|
|
9511
9511
|
return /* @__PURE__ */ u(f, { as: "div", margin: "medium 0 0", children: [
|
|
9512
9512
|
/* @__PURE__ */ u(p, { children: [
|
|
9513
9513
|
/* @__PURE__ */ e(p.Item, { align: "start", margin: "xxx-small 0 0", children: /* @__PURE__ */ e(
|
|
@@ -9536,7 +9536,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9536
9536
|
onClick: () => n(i),
|
|
9537
9537
|
withBackground: !1,
|
|
9538
9538
|
withBorder: !1,
|
|
9539
|
-
children: /* @__PURE__ */ e(
|
|
9539
|
+
children: /* @__PURE__ */ e(Po, {})
|
|
9540
9540
|
}
|
|
9541
9541
|
) })
|
|
9542
9542
|
] }),
|
|
@@ -9692,13 +9692,13 @@ const $d = ({ isOpen: t }) => {
|
|
|
9692
9692
|
}
|
|
9693
9693
|
);
|
|
9694
9694
|
}, Kd = (t, i) => {
|
|
9695
|
-
const { translations: n } = S(), { executeQuery: a } = Pe(), r = xi(), o = ["assignment-self-assessment-settings", t, i ?? ""], { isPending: s, mutateAsync: l } =
|
|
9695
|
+
const { translations: n } = S(), { executeQuery: a } = Pe(), r = xi(), o = ["assignment-self-assessment-settings", t, i ?? ""], { isPending: s, mutateAsync: l } = Xe({
|
|
9696
9696
|
mutationFn: (c) => dl(a, t, c),
|
|
9697
9697
|
mutationKey: ["set-rubric-self-assessment", t, i],
|
|
9698
9698
|
onError: () => {
|
|
9699
9699
|
Ie(n.rubricAssignmentSelfAssessmentUpdateError)();
|
|
9700
9700
|
}
|
|
9701
|
-
}), { data: d } =
|
|
9701
|
+
}), { data: d } = ct({
|
|
9702
9702
|
queryKey: o,
|
|
9703
9703
|
queryFn: () => cl(a, t),
|
|
9704
9704
|
enabled: !!i
|
|
@@ -9706,7 +9706,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9706
9706
|
return { settings: d, isUpdating: s, setEnabled: async (c) => {
|
|
9707
9707
|
await l(c), r.invalidateQueries({ queryKey: o });
|
|
9708
9708
|
} };
|
|
9709
|
-
}, Qd = (t) => /* @__PURE__ */ e(
|
|
9709
|
+
}, Qd = (t) => /* @__PURE__ */ e(Ze, { translations: Qe, translate: Ke, children: /* @__PURE__ */ e(Xd, { ...t }) }), Xd = ({
|
|
9710
9710
|
assignmentId: t,
|
|
9711
9711
|
rubricId: i
|
|
9712
9712
|
}) => {
|
|
@@ -9731,7 +9731,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9731
9731
|
}
|
|
9732
9732
|
) }),
|
|
9733
9733
|
!s && /* @__PURE__ */ e(p.Item, { margin: "0 0 0 x-small", children: /* @__PURE__ */ e(
|
|
9734
|
-
|
|
9734
|
+
ut,
|
|
9735
9735
|
{
|
|
9736
9736
|
renderTrigger: /* @__PURE__ */ e(
|
|
9737
9737
|
be,
|
|
@@ -9741,7 +9741,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9741
9741
|
withBackground: !1,
|
|
9742
9742
|
withBorder: !1,
|
|
9743
9743
|
"data-testid": "self-assessment-info-button",
|
|
9744
|
-
children: /* @__PURE__ */ e(
|
|
9744
|
+
children: /* @__PURE__ */ e(Fo, {})
|
|
9745
9745
|
}
|
|
9746
9746
|
),
|
|
9747
9747
|
on: ["click", "hover", "focus"],
|
|
@@ -9751,7 +9751,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9751
9751
|
}
|
|
9752
9752
|
) })
|
|
9753
9753
|
] }) }) });
|
|
9754
|
-
}, jm = (t) => /* @__PURE__ */ e(
|
|
9754
|
+
}, jm = (t) => /* @__PURE__ */ e(Ze, { translations: Qe, translate: Ke, children: /* @__PURE__ */ e(
|
|
9755
9755
|
bt,
|
|
9756
9756
|
{
|
|
9757
9757
|
courseId: t.courseId,
|
|
@@ -9803,8 +9803,8 @@ const $d = ({ isOpen: t }) => {
|
|
|
9803
9803
|
return C ? /* @__PURE__ */ e(ze, {}) : b ? /* @__PURE__ */ e($e, { variant: "error", children: c.rubricAssignmentContainerLoadError }) : (!g || !v) && !n ? null : /* @__PURE__ */ u(f, { as: "div", display: "inline-block", ...K, children: [
|
|
9804
9804
|
g && v ? /* @__PURE__ */ u(oe, { children: [
|
|
9805
9805
|
/* @__PURE__ */ u(p, { as: "div", justifyItems: "space-between", alignItems: "center", wrap: "wrap", gap: "x-small", children: [
|
|
9806
|
-
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, overflowX: "hidden", size: "250px", children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ u(
|
|
9807
|
-
/* @__PURE__ */ e(
|
|
9806
|
+
/* @__PURE__ */ e(p.Item, { shouldGrow: !0, shouldShrink: !0, overflowX: "hidden", size: "250px", children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ u(Mt, { truncate: "word", ellipsis: "...", children: [
|
|
9807
|
+
/* @__PURE__ */ e(ko, {}),
|
|
9808
9808
|
" ",
|
|
9809
9809
|
g.title
|
|
9810
9810
|
] }) }) }),
|
|
@@ -9824,7 +9824,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9824
9824
|
screenReaderLabel: c.rubricAssignmentContainerEditRubric,
|
|
9825
9825
|
"data-testid": "edit-assignment-rubric-button",
|
|
9826
9826
|
onClick: ee,
|
|
9827
|
-
children: /* @__PURE__ */ e(
|
|
9827
|
+
children: /* @__PURE__ */ e(_t, {})
|
|
9828
9828
|
}
|
|
9829
9829
|
) }) }),
|
|
9830
9830
|
v.canDelete && /* @__PURE__ */ e(p.Item, { children: /* @__PURE__ */ e(Re, { renderTip: O, children: /* @__PURE__ */ e(
|
|
@@ -9925,7 +9925,7 @@ const $d = ({ isOpen: t }) => {
|
|
|
9925
9925
|
}
|
|
9926
9926
|
)
|
|
9927
9927
|
] });
|
|
9928
|
-
},
|
|
9928
|
+
}, rt = {
|
|
9929
9929
|
saved: "Saved",
|
|
9930
9930
|
archived: "Archived"
|
|
9931
9931
|
};
|
|
@@ -10377,7 +10377,7 @@ const tc = k.object({
|
|
|
10377
10377
|
const { executeQuery: r } = Pe(), { accountId: o, courseId: s } = Ne(), l = xi(), d = !!o, m = !!s, c = xe(
|
|
10378
10378
|
() => Ra({ accountId: o, courseId: s }),
|
|
10379
10379
|
[o, s]
|
|
10380
|
-
), h =
|
|
10380
|
+
), h = Mo({
|
|
10381
10381
|
queryKey: [...c, t, i, n],
|
|
10382
10382
|
queryFn: async ({ pageParam: L }) => {
|
|
10383
10383
|
const w = {
|
|
@@ -10396,7 +10396,7 @@ const tc = k.object({
|
|
|
10396
10396
|
enabled: d || m,
|
|
10397
10397
|
// Keep previously loaded pages visible while a filter/sort change refetches
|
|
10398
10398
|
// from scratch so the table doesn't blink on every keystroke or sort click.
|
|
10399
|
-
placeholderData:
|
|
10399
|
+
placeholderData: No
|
|
10400
10400
|
}), g = xe(
|
|
10401
10401
|
() => {
|
|
10402
10402
|
var L;
|
|
@@ -10422,7 +10422,7 @@ const tc = k.object({
|
|
|
10422
10422
|
Criterion: "criteria_count",
|
|
10423
10423
|
LocationUsed: "has_rubric_associations"
|
|
10424
10424
|
}, Sc = () => {
|
|
10425
|
-
const { translations: t } = S(), { executeQuery: i } = Pe(), { accountId: n, courseId: a } = Ne(), [r, o] = R(
|
|
10425
|
+
const { translations: t } = S(), { executeQuery: i } = Pe(), { accountId: n, courseId: a } = Ne(), [r, o] = R(rt.saved), [s, l] = R(!1), [d, m] = R(void 0), [c, h] = R(""), [g, v] = R("Title"), [C, b] = R("ascending"), [y, I] = R(), [L, w] = R(!1), [A, T] = R([]), F = r === rt.saved ? Tc : wc, E = xe(
|
|
10426
10426
|
() => ({ field: Ac[g], direction: C }),
|
|
10427
10427
|
[g, C]
|
|
10428
10428
|
), x = Se(($) => {
|
|
@@ -10460,7 +10460,7 @@ const tc = k.object({
|
|
|
10460
10460
|
}
|
|
10461
10461
|
},
|
|
10462
10462
|
[i, H, t.viewRubricsUnarchiveSuccess, t.viewRubricsUnarchiveError]
|
|
10463
|
-
), { data: G, isLoading: Z } =
|
|
10463
|
+
), { data: G, isLoading: Z } = ct({
|
|
10464
10464
|
queryKey: [`rubric-preview-${d}`],
|
|
10465
10465
|
queryFn: async () => Ic(i, d),
|
|
10466
10466
|
enabled: !!d
|
|
@@ -10571,7 +10571,7 @@ const tc = k.object({
|
|
|
10571
10571
|
}
|
|
10572
10572
|
}, n);
|
|
10573
10573
|
h.current.add(y);
|
|
10574
|
-
}, { mutate: C } =
|
|
10574
|
+
}, { mutate: C } = Xe({
|
|
10575
10575
|
mutationFn: (b) => lc(b, t, i),
|
|
10576
10576
|
mutationKey: ["import-rubric"],
|
|
10577
10577
|
onSuccess: (b) => {
|
|
@@ -10616,7 +10616,7 @@ const tc = k.object({
|
|
|
10616
10616
|
/* @__PURE__ */ e(f, { as: "div", "data-testid": "import-rubric-failure-header", children: a.importFailuresModalFileListHeader }),
|
|
10617
10617
|
r.map((s, l) => /* @__PURE__ */ e(f, { as: "div", margin: "x-small 0 0", children: /* @__PURE__ */ e(D, { weight: "bold", children: s }) }, `${s}-${l}`)),
|
|
10618
10618
|
/* @__PURE__ */ e(f, { as: "div", margin: "large 0 0", children: a.importFailuresModalReasonHeader }),
|
|
10619
|
-
/* @__PURE__ */ e(f, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ e(
|
|
10619
|
+
/* @__PURE__ */ e(f, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ e(at, { margin: "0 0 medium", children: is(o).map((s) => /* @__PURE__ */ e(at.Item, { "data-testid": "import-failure-message", children: s }, s)) }) })
|
|
10620
10620
|
] }),
|
|
10621
10621
|
/* @__PURE__ */ e(M.Footer, { children: /* @__PURE__ */ e(B, { onClick: i, margin: "0 x-small 0 0", children: a.close }) })
|
|
10622
10622
|
]
|
|
@@ -10628,7 +10628,7 @@ const tc = k.object({
|
|
|
10628
10628
|
}, Mc = ({ importsInProgress: t, onClickImport: i }) => {
|
|
10629
10629
|
const { translations: n } = S(), a = (r) => {
|
|
10630
10630
|
const { filename: o } = r.attachment;
|
|
10631
|
-
return /* @__PURE__ */ e(Re, { renderTip: o, children: /* @__PURE__ */ e(je, { as: "button", isWithinText: !1, onClick: () => i(r), children: /* @__PURE__ */ e(
|
|
10631
|
+
return /* @__PURE__ */ e(Re, { renderTip: o, children: /* @__PURE__ */ e(je, { as: "button", isWithinText: !1, onClick: () => i(r), children: /* @__PURE__ */ e(Mt, { children: o }) }) });
|
|
10632
10632
|
};
|
|
10633
10633
|
return /* @__PURE__ */ u(le, { caption: n.importTableCaption, layout: "fixed", children: [
|
|
10634
10634
|
/* @__PURE__ */ e(le.Head, { children: /* @__PURE__ */ u(le.Row, { children: [
|
|
@@ -10769,23 +10769,23 @@ const tc = k.object({
|
|
|
10769
10769
|
)
|
|
10770
10770
|
] });
|
|
10771
10771
|
};
|
|
10772
|
-
var
|
|
10772
|
+
var it = {}, Zn;
|
|
10773
10773
|
function $c() {
|
|
10774
|
-
if (Zn) return
|
|
10774
|
+
if (Zn) return it;
|
|
10775
10775
|
Zn = 1;
|
|
10776
10776
|
var t = jo;
|
|
10777
10777
|
if (process.env.NODE_ENV === "production")
|
|
10778
|
-
|
|
10778
|
+
it.createRoot = t.createRoot, it.hydrateRoot = t.hydrateRoot;
|
|
10779
10779
|
else {
|
|
10780
10780
|
var i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
10781
|
-
|
|
10781
|
+
it.createRoot = function(n, a) {
|
|
10782
10782
|
i.usingClientEntryPoint = !0;
|
|
10783
10783
|
try {
|
|
10784
10784
|
return t.createRoot(n, a);
|
|
10785
10785
|
} finally {
|
|
10786
10786
|
i.usingClientEntryPoint = !1;
|
|
10787
10787
|
}
|
|
10788
|
-
},
|
|
10788
|
+
}, it.hydrateRoot = function(n, a, r) {
|
|
10789
10789
|
i.usingClientEntryPoint = !0;
|
|
10790
10790
|
try {
|
|
10791
10791
|
return t.hydrateRoot(n, a, r);
|
|
@@ -10794,7 +10794,7 @@ function $c() {
|
|
|
10794
10794
|
}
|
|
10795
10795
|
};
|
|
10796
10796
|
}
|
|
10797
|
-
return
|
|
10797
|
+
return it;
|
|
10798
10798
|
}
|
|
10799
10799
|
$c();
|
|
10800
10800
|
function Lt() {
|
|
@@ -11056,7 +11056,7 @@ const Qc = Kc();
|
|
|
11056
11056
|
const i = 3600 * 1e3, n = t.now(), a = Date.now(), r = t.timeOrigin ? Math.abs(t.timeOrigin + n - a) : i, o = r < i, s = t.timing && t.timing.navigationStart, l = typeof s == "number" ? Math.abs(s + n - a) : i, d = l < i;
|
|
11057
11057
|
return o || d ? r <= l ? t.timeOrigin : s : a;
|
|
11058
11058
|
})();
|
|
11059
|
-
function
|
|
11059
|
+
function ot() {
|
|
11060
11060
|
const t = Me, i = t.crypto || t.msCrypto;
|
|
11061
11061
|
let n = () => Math.random() * 16;
|
|
11062
11062
|
try {
|
|
@@ -11077,7 +11077,7 @@ function nt() {
|
|
|
11077
11077
|
);
|
|
11078
11078
|
}
|
|
11079
11079
|
function Xc(t, i = {}) {
|
|
11080
|
-
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 || Qc(), 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 :
|
|
11080
|
+
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 || Qc(), 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 : ot()), 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)
|
|
11081
11081
|
t.duration = void 0;
|
|
11082
11082
|
else if (typeof i.duration == "number")
|
|
11083
11083
|
t.duration = i.duration;
|
|
@@ -11088,10 +11088,10 @@ function Xc(t, i = {}) {
|
|
|
11088
11088
|
i.release && (t.release = i.release), i.environment && (t.environment = i.environment), !t.ipAddress && i.ipAddress && (t.ipAddress = i.ipAddress), !t.userAgent && i.userAgent && (t.userAgent = i.userAgent), typeof i.errors == "number" && (t.errors = i.errors), i.status && (t.status = i.status);
|
|
11089
11089
|
}
|
|
11090
11090
|
function Xn() {
|
|
11091
|
-
return
|
|
11091
|
+
return ot();
|
|
11092
11092
|
}
|
|
11093
11093
|
function Jn() {
|
|
11094
|
-
return
|
|
11094
|
+
return ot().substring(16);
|
|
11095
11095
|
}
|
|
11096
11096
|
function hr(t, i, n = 2) {
|
|
11097
11097
|
if (!i || typeof i != "object" || n <= 0)
|
|
@@ -11302,7 +11302,7 @@ class zi {
|
|
|
11302
11302
|
update(i) {
|
|
11303
11303
|
if (!i)
|
|
11304
11304
|
return this;
|
|
11305
|
-
const n = typeof i == "function" ? i(this) : i, [a, r] = n instanceof
|
|
11305
|
+
const n = typeof i == "function" ? i(this) : i, [a, r] = n instanceof lt ? (
|
|
11306
11306
|
// eslint-disable-next-line deprecation/deprecation
|
|
11307
11307
|
[n.getScopeData(), n.getRequestSession()]
|
|
11308
11308
|
) : qc(n) ? [i, i.requestSession] : [], { tags: o, extra: s, user: l, contexts: d, level: m, fingerprint: c = [], propagationContext: h } = a || {};
|
|
@@ -11395,7 +11395,7 @@ class zi {
|
|
|
11395
11395
|
* @inheritDoc
|
|
11396
11396
|
*/
|
|
11397
11397
|
captureException(i, n) {
|
|
11398
|
-
const a = n && n.event_id ? n.event_id :
|
|
11398
|
+
const a = n && n.event_id ? n.event_id : ot();
|
|
11399
11399
|
if (!this._client)
|
|
11400
11400
|
return we.warn("No client configured on scope - will not capture exception!"), a;
|
|
11401
11401
|
const r = new Error("Sentry syntheticException");
|
|
@@ -11414,7 +11414,7 @@ class zi {
|
|
|
11414
11414
|
* @inheritDoc
|
|
11415
11415
|
*/
|
|
11416
11416
|
captureMessage(i, n, a) {
|
|
11417
|
-
const r = a && a.event_id ? a.event_id :
|
|
11417
|
+
const r = a && a.event_id ? a.event_id : ot();
|
|
11418
11418
|
if (!this._client)
|
|
11419
11419
|
return we.warn("No client configured on scope - will not capture message!"), r;
|
|
11420
11420
|
const o = new Error(i);
|
|
@@ -11434,7 +11434,7 @@ class zi {
|
|
|
11434
11434
|
* @inheritDoc
|
|
11435
11435
|
*/
|
|
11436
11436
|
captureEvent(i, n) {
|
|
11437
|
-
const a = n && n.event_id ? n.event_id :
|
|
11437
|
+
const a = n && n.event_id ? n.event_id : ot();
|
|
11438
11438
|
return this._client ? (this._client.captureEvent(i, { ...n, event_id: a }, this), a) : (we.warn("No client configured on scope - will not capture event!"), a);
|
|
11439
11439
|
}
|
|
11440
11440
|
/**
|
|
@@ -11446,19 +11446,19 @@ class zi {
|
|
|
11446
11446
|
}), this._notifyingListeners = !1);
|
|
11447
11447
|
}
|
|
11448
11448
|
}
|
|
11449
|
-
const
|
|
11449
|
+
const lt = zi;
|
|
11450
11450
|
function eu() {
|
|
11451
|
-
return Oi("defaultCurrentScope", () => new
|
|
11451
|
+
return Oi("defaultCurrentScope", () => new lt());
|
|
11452
11452
|
}
|
|
11453
11453
|
function tu() {
|
|
11454
|
-
return Oi("defaultIsolationScope", () => new
|
|
11454
|
+
return Oi("defaultIsolationScope", () => new lt());
|
|
11455
11455
|
}
|
|
11456
11456
|
class iu {
|
|
11457
11457
|
constructor(i, n) {
|
|
11458
11458
|
let a;
|
|
11459
|
-
i ? a = i : a = new
|
|
11459
|
+
i ? a = i : a = new lt();
|
|
11460
11460
|
let r;
|
|
11461
|
-
n ? r = n : r = new
|
|
11461
|
+
n ? r = n : r = new lt(), this._stack = [{ scope: a }], this._isolationScope = r;
|
|
11462
11462
|
}
|
|
11463
11463
|
/**
|
|
11464
11464
|
* Fork a scope for the stack.
|
|
@@ -11519,19 +11519,19 @@ class iu {
|
|
|
11519
11519
|
return this._stack.length <= 1 ? !1 : !!this._stack.pop();
|
|
11520
11520
|
}
|
|
11521
11521
|
}
|
|
11522
|
-
function
|
|
11522
|
+
function dt() {
|
|
11523
11523
|
const t = Bt(), i = $i(t);
|
|
11524
11524
|
return i.stack = i.stack || new iu(eu(), tu());
|
|
11525
11525
|
}
|
|
11526
11526
|
function nu(t) {
|
|
11527
|
-
return
|
|
11527
|
+
return dt().withScope(t);
|
|
11528
11528
|
}
|
|
11529
11529
|
function au(t, i) {
|
|
11530
|
-
const n =
|
|
11530
|
+
const n = dt();
|
|
11531
11531
|
return n.withScope(() => (n.getStackTop().scope = t, i(t)));
|
|
11532
11532
|
}
|
|
11533
11533
|
function ia(t) {
|
|
11534
|
-
return
|
|
11534
|
+
return dt().withScope(() => t(dt().getIsolationScope()));
|
|
11535
11535
|
}
|
|
11536
11536
|
function ru() {
|
|
11537
11537
|
return {
|
|
@@ -11539,8 +11539,8 @@ function ru() {
|
|
|
11539
11539
|
withScope: nu,
|
|
11540
11540
|
withSetScope: au,
|
|
11541
11541
|
withSetIsolationScope: (t, i) => ia(i),
|
|
11542
|
-
getCurrentScope: () =>
|
|
11543
|
-
getIsolationScope: () =>
|
|
11542
|
+
getCurrentScope: () => dt().getScope(),
|
|
11543
|
+
getIsolationScope: () => dt().getIsolationScope()
|
|
11544
11544
|
};
|
|
11545
11545
|
}
|
|
11546
11546
|
function Hi(t) {
|
|
@@ -11620,7 +11620,7 @@ function gu(t) {
|
|
|
11620
11620
|
} : t;
|
|
11621
11621
|
}
|
|
11622
11622
|
function vu(t) {
|
|
11623
|
-
return t instanceof
|
|
11623
|
+
return t instanceof lt || typeof t == "function";
|
|
11624
11624
|
}
|
|
11625
11625
|
const fu = [
|
|
11626
11626
|
"user",
|
|
@@ -11662,9 +11662,9 @@ function yu(t, i) {
|
|
|
11662
11662
|
r += `&${encodeURIComponent(o)}=${encodeURIComponent(i[o])}`;
|
|
11663
11663
|
return `${a}?${r}`;
|
|
11664
11664
|
}
|
|
11665
|
-
const
|
|
11665
|
+
const nt = Me, hi = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
|
|
11666
11666
|
function na(t = {}) {
|
|
11667
|
-
if (!
|
|
11667
|
+
if (!nt.document) {
|
|
11668
11668
|
hi && we.error("Global document not defined in showReportDialog call");
|
|
11669
11669
|
return;
|
|
11670
11670
|
}
|
|
@@ -11680,7 +11680,7 @@ function na(t = {}) {
|
|
|
11680
11680
|
const l = Cu();
|
|
11681
11681
|
l && (t.eventId = l);
|
|
11682
11682
|
}
|
|
11683
|
-
const r =
|
|
11683
|
+
const r = nt.document.createElement("script");
|
|
11684
11684
|
r.async = !0, r.crossOrigin = "anonymous", r.src = yu(a, t), t.onLoad && (r.onload = t.onLoad);
|
|
11685
11685
|
const { onClose: o } = t;
|
|
11686
11686
|
if (o) {
|
|
@@ -11689,12 +11689,12 @@ function na(t = {}) {
|
|
|
11689
11689
|
try {
|
|
11690
11690
|
o();
|
|
11691
11691
|
} finally {
|
|
11692
|
-
|
|
11692
|
+
nt.removeEventListener("message", l);
|
|
11693
11693
|
}
|
|
11694
11694
|
};
|
|
11695
|
-
|
|
11695
|
+
nt.addEventListener("message", l);
|
|
11696
11696
|
}
|
|
11697
|
-
const s =
|
|
11697
|
+
const s = nt.document.head || nt.document.body;
|
|
11698
11698
|
s ? s.appendChild(r) : hi && we.error("Not injecting report dialog. No injection point found in HTML");
|
|
11699
11699
|
}
|
|
11700
11700
|
function Tu(t) {
|
|
@@ -12147,8 +12147,8 @@ const ca = class extends We.Component {
|
|
|
12147
12147
|
}
|
|
12148
12148
|
renderChildren(i) {
|
|
12149
12149
|
if (!Array.isArray(i))
|
|
12150
|
-
return
|
|
12151
|
-
const n = i.map((a) => Array.isArray(a) ? this.renderChildren(a) :
|
|
12150
|
+
return tt(i, [Dt]) ? this.renderOption(i) : tt(i, [Pt]) ? this.renderGroup(i) : this.renderNoOptionsOption();
|
|
12151
|
+
const n = i.map((a) => Array.isArray(a) ? this.renderChildren(a) : tt(a, [Dt]) ? this.renderOption(a) : tt(a, [Pt]) ? this.renderGroup(a) : null).filter((a) => !!a);
|
|
12152
12152
|
return n.length === 0 ? this.renderNoOptionsOption() : n;
|
|
12153
12153
|
}
|
|
12154
12154
|
renderOption(i) {
|
|
@@ -12208,9 +12208,9 @@ const ca = class extends We.Component {
|
|
|
12208
12208
|
const s = a[o];
|
|
12209
12209
|
if (Array.isArray(s))
|
|
12210
12210
|
r = this.getOptionByFieldValue(i, n, s);
|
|
12211
|
-
else if (
|
|
12211
|
+
else if (tt(s, [Dt]))
|
|
12212
12212
|
s.props[i] === n && (r = s);
|
|
12213
|
-
else if (
|
|
12213
|
+
else if (tt(s, [Pt])) {
|
|
12214
12214
|
const l = Ji(s.props.children);
|
|
12215
12215
|
for (let d = 0; d < l.length; ++d) {
|
|
12216
12216
|
const m = l[d];
|
|
@@ -12242,7 +12242,7 @@ const gr = () => {
|
|
|
12242
12242
|
);
|
|
12243
12243
|
};
|
|
12244
12244
|
}, ku = ({ id: t, accountId: i, courseId: n, onDeleted: a }) => {
|
|
12245
|
-
const { translations: r } = S(), o = gr(), { isPending: s, isError: l, mutate: d } =
|
|
12245
|
+
const { translations: r } = S(), o = gr(), { isPending: s, isError: l, mutate: d } = Xe({
|
|
12246
12246
|
mutationFn: async () => ac({ id: t, accountId: i, courseId: n }),
|
|
12247
12247
|
mutationKey: ["delete-rubric"],
|
|
12248
12248
|
onSuccess: async () => {
|
|
@@ -12251,7 +12251,7 @@ const gr = () => {
|
|
|
12251
12251
|
});
|
|
12252
12252
|
return { deleteRubric: d, isPending: s, isError: l };
|
|
12253
12253
|
}, _u = ({ onDuplicated: t, ...i }) => {
|
|
12254
|
-
const { translations: n } = S(), a = gr(), { isPending: r, isError: o, mutate: s } =
|
|
12254
|
+
const { translations: n } = S(), a = gr(), { isPending: r, isError: o, mutate: s } = Xe({
|
|
12255
12255
|
mutationFn: async () => rc(i),
|
|
12256
12256
|
mutationKey: ["duplicate-rubric"],
|
|
12257
12257
|
onSuccess: async () => {
|
|
@@ -12495,7 +12495,7 @@ const gr = () => {
|
|
|
12495
12495
|
onDismiss: () => F(!1)
|
|
12496
12496
|
})),
|
|
12497
12497
|
/* @__PURE__ */ e(
|
|
12498
|
-
|
|
12498
|
+
ut,
|
|
12499
12499
|
{
|
|
12500
12500
|
renderTrigger: /* @__PURE__ */ e(
|
|
12501
12501
|
be,
|
|
@@ -12646,7 +12646,7 @@ const gr = () => {
|
|
|
12646
12646
|
children: I.title
|
|
12647
12647
|
}
|
|
12648
12648
|
),
|
|
12649
|
-
I.workflowState === "draft" && /* @__PURE__ */ e(
|
|
12649
|
+
I.workflowState === "draft" && /* @__PURE__ */ e(Et, { margin: "x-small", children: v.rubricTableDraftPill })
|
|
12650
12650
|
] })
|
|
12651
12651
|
] }) }),
|
|
12652
12652
|
/* @__PURE__ */ e(ht, { "data-testid": `rubric-points-${L}`, children: I.hidePoints ? "--" : I.pointsPossible }),
|
|
@@ -12824,20 +12824,20 @@ const gr = () => {
|
|
|
12824
12824
|
"data-testid": "used-locations-modal-search-input"
|
|
12825
12825
|
}
|
|
12826
12826
|
) }),
|
|
12827
|
-
/* @__PURE__ */ e(
|
|
12827
|
+
/* @__PURE__ */ e(at, { isUnstyled: !0, margin: "0 0 0 0", children: s.map((b) => {
|
|
12828
12828
|
const y = Vu(b, d);
|
|
12829
12829
|
return y ? /* @__PURE__ */ u(
|
|
12830
|
-
|
|
12830
|
+
at.Item,
|
|
12831
12831
|
{
|
|
12832
12832
|
margin: "x-small 0 0",
|
|
12833
12833
|
"data-testid": `used-locations-modal-course-${b.id}`,
|
|
12834
12834
|
children: [
|
|
12835
12835
|
/* @__PURE__ */ u(p, { alignItems: "center", children: [
|
|
12836
12836
|
/* @__PURE__ */ e(p.Item, { margin: "0 x-small 0 0", children: /* @__PURE__ */ e(je, { isWithinText: !1, href: `/courses/${b.id}`, children: b.name }) }),
|
|
12837
|
-
/* @__PURE__ */ e(p.Item, { children: b.concluded && /* @__PURE__ */ e(
|
|
12837
|
+
/* @__PURE__ */ e(p.Item, { children: b.concluded && /* @__PURE__ */ e(Et, { children: /* @__PURE__ */ e(f, { as: "span", "data-testid": `concluded-course-${b.id}-pill`, children: o.usedLocationsModalConcluded }) }) })
|
|
12838
12838
|
] }),
|
|
12839
|
-
y.length > 0 && /* @__PURE__ */ e(
|
|
12840
|
-
|
|
12839
|
+
y.length > 0 && /* @__PURE__ */ e(at, { isUnstyled: !0, children: y.map((I) => /* @__PURE__ */ e(
|
|
12840
|
+
at.Item,
|
|
12841
12841
|
{
|
|
12842
12842
|
margin: "x-small 0 0",
|
|
12843
12843
|
"data-testid": `used-locations-modal-assignment-${I.id}`,
|
|
@@ -12864,7 +12864,7 @@ const gr = () => {
|
|
|
12864
12864
|
]
|
|
12865
12865
|
}
|
|
12866
12866
|
);
|
|
12867
|
-
}, { Item: xt } = p, Gu = "48em", Xm = (t) => /* @__PURE__ */ e(
|
|
12867
|
+
}, { Item: xt } = p, Gu = "48em", Xm = (t) => /* @__PURE__ */ e(Ze, { translations: Qe, translate: Ke, children: /* @__PURE__ */ e(bt, { courseId: t.courseId, accountId: t.accountId, children: /* @__PURE__ */ e(qu, { ...t }) }) }), qu = ({
|
|
12868
12868
|
canManageRubrics: t = !1,
|
|
12869
12869
|
showHeader: i = !0,
|
|
12870
12870
|
footerInsetInlineStart: n = "0",
|
|
@@ -12957,7 +12957,7 @@ const gr = () => {
|
|
|
12957
12957
|
}
|
|
12958
12958
|
);
|
|
12959
12959
|
return /* @__PURE__ */ e(
|
|
12960
|
-
|
|
12960
|
+
Je,
|
|
12961
12961
|
{
|
|
12962
12962
|
match: "media",
|
|
12963
12963
|
query: {
|
|
@@ -12979,7 +12979,7 @@ const gr = () => {
|
|
|
12979
12979
|
/* @__PURE__ */ e(xt, { children: t && /* @__PURE__ */ e(
|
|
12980
12980
|
B,
|
|
12981
12981
|
{
|
|
12982
|
-
renderIcon: /* @__PURE__ */ e(
|
|
12982
|
+
renderIcon: /* @__PURE__ */ e(_o, {}),
|
|
12983
12983
|
color: "secondary",
|
|
12984
12984
|
"data-testid": "import-rubric-button",
|
|
12985
12985
|
onClick: () => ie(!0),
|
|
@@ -13009,10 +13009,10 @@ const gr = () => {
|
|
|
13009
13009
|
/* @__PURE__ */ e(
|
|
13010
13010
|
Ut.Panel,
|
|
13011
13011
|
{
|
|
13012
|
-
id:
|
|
13012
|
+
id: rt.saved,
|
|
13013
13013
|
"data-testid": "saved-rubrics-panel",
|
|
13014
13014
|
renderTitle: s.viewRubricsSavedTabLabel,
|
|
13015
|
-
isSelected: g ===
|
|
13015
|
+
isSelected: g === rt.saved,
|
|
13016
13016
|
padding: "none",
|
|
13017
13017
|
children: /* @__PURE__ */ u(f, { as: "div", margin: "medium 0", "data-testid": "saved-rubrics-table", children: [
|
|
13018
13018
|
P(!0),
|
|
@@ -13023,10 +13023,10 @@ const gr = () => {
|
|
|
13023
13023
|
/* @__PURE__ */ e(
|
|
13024
13024
|
Ut.Panel,
|
|
13025
13025
|
{
|
|
13026
|
-
id:
|
|
13026
|
+
id: rt.archived,
|
|
13027
13027
|
"data-testid": "archived-rubrics-panel",
|
|
13028
13028
|
renderTitle: s.viewRubricsArchivedTabLabel,
|
|
13029
|
-
isSelected: g ===
|
|
13029
|
+
isSelected: g === rt.archived,
|
|
13030
13030
|
padding: "none",
|
|
13031
13031
|
children: /* @__PURE__ */ u(f, { as: "div", margin: "medium 0", "data-testid": "archived-rubrics-table", children: [
|
|
13032
13032
|
P(!1),
|
|
@@ -13116,7 +13116,6 @@ export {
|
|
|
13116
13116
|
th as DEFAULT_AI_MAX_CRITERION_COUNT,
|
|
13117
13117
|
ih as DEFAULT_AI_MAX_RATING_COUNT,
|
|
13118
13118
|
Ym as HelloWorld,
|
|
13119
|
-
Fi as OutcomeTag,
|
|
13120
13119
|
Qo as RUBRIC_VIEW_MODE_DEFAULT,
|
|
13121
13120
|
Ko as RUBRIC_VIEW_MODE_LOCALSTORAGE_KEY,
|
|
13122
13121
|
tl as RubricAssessmentContainer,
|
|
@@ -13125,11 +13124,9 @@ export {
|
|
|
13125
13124
|
jm as RubricAssignmentContainer,
|
|
13126
13125
|
Nd as RubricForm,
|
|
13127
13126
|
Qd as RubricSelfAssessmentSettings,
|
|
13128
|
-
ja as SelfAssessmentRatingButton,
|
|
13129
13127
|
Js as TraditionalView,
|
|
13130
|
-
Ss as ViewModeSelect,
|
|
13131
13128
|
Xm as ViewRubrics,
|
|
13132
|
-
|
|
13129
|
+
rt as ViewRubricsTabs,
|
|
13133
13130
|
bo as escapeNewLineText,
|
|
13134
13131
|
kt as findCriterionMatchingRatingId,
|
|
13135
13132
|
ns as findCriterionMatchingRatingIndex,
|