@instructure/platform-modules 1.14.0 → 1.16.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.
Files changed (44) hide show
  1. package/dist/adapters/canvasGraphql/normalize.d.ts +1 -0
  2. package/dist/adapters/canvasGraphql/normalize.d.ts.map +1 -1
  3. package/dist/adapters/canvasGraphql/queries.d.ts.map +1 -1
  4. package/dist/adapters/inMemory.d.ts.map +1 -1
  5. package/dist/chunks/ModulesProgressBar-B1oRo549.js +2548 -0
  6. package/dist/components/FilterSelect.d.ts.map +1 -1
  7. package/dist/components/ModuleCard.d.ts.map +1 -1
  8. package/dist/components/ModuleCard.stories.d.ts +2 -0
  9. package/dist/components/ModuleCard.stories.d.ts.map +1 -1
  10. package/dist/components/ModuleItemRow.d.ts.map +1 -1
  11. package/dist/components/ModulesList.d.ts.map +1 -1
  12. package/dist/components/ModulesList.stories.d.ts +1 -1
  13. package/dist/components/ModulesList.stories.d.ts.map +1 -1
  14. package/dist/components/ModulesProgressBar.d.ts +9 -0
  15. package/dist/components/ModulesProgressBar.d.ts.map +1 -1
  16. package/dist/components/StatusPill.d.ts +2 -0
  17. package/dist/components/StatusPill.d.ts.map +1 -1
  18. package/dist/edit/EditModuleCard.d.ts +5 -3
  19. package/dist/edit/EditModuleCard.d.ts.map +1 -1
  20. package/dist/edit/EditModuleItemRow.d.ts +2 -1
  21. package/dist/edit/EditModuleItemRow.d.ts.map +1 -1
  22. package/dist/edit/ModulesEditView.d.ts.map +1 -1
  23. package/dist/edit/ModulesEditView.stories.d.ts +3 -2
  24. package/dist/edit/ModulesEditView.stories.d.ts.map +1 -1
  25. package/dist/edit/controls/DragHandle.d.ts +12 -0
  26. package/dist/edit/controls/DragHandle.d.ts.map +1 -0
  27. package/dist/edit/dnd/EditDndProvider.d.ts +18 -0
  28. package/dist/edit/dnd/EditDndProvider.d.ts.map +1 -0
  29. package/dist/edit/dnd/announcements.d.ts +24 -0
  30. package/dist/edit/dnd/announcements.d.ts.map +1 -0
  31. package/dist/edit/dnd/ids.d.ts +41 -0
  32. package/dist/edit/dnd/ids.d.ts.map +1 -0
  33. package/dist/edit/index.d.ts +2 -0
  34. package/dist/edit/index.d.ts.map +1 -1
  35. package/dist/edit.js +610 -328
  36. package/dist/hooks/useItemsMode.d.ts.map +1 -1
  37. package/dist/hooks/useModulesPageData.d.ts.map +1 -1
  38. package/dist/index.js +732 -724
  39. package/dist/types/domain.d.ts +2 -0
  40. package/dist/types/domain.d.ts.map +1 -1
  41. package/dist/types/schemas.d.ts.map +1 -1
  42. package/locales/en.json +14 -2
  43. package/package.json +4 -2
  44. package/dist/chunks/ModulesProgressBar-B4fXbi-4.js +0 -2516
package/dist/index.js CHANGED
@@ -1,49 +1,49 @@
1
- import { w as Ve, I as Sn, M as yn, a as Tn, b as bn, i as ft, c as Pn, v as Ze, h as Cn, o as Ue, m as ne, d as vn, e as Ln, g as wn, f as An, j as Rn, u as x, k as Te, D as kn, l as _e, n as On, p as Xe, q as Je, r as Dn, s as qn, t as zn, x as Nn, y as Ot, z as xn, A as Dt, B as qt, C as $n, E as Un, F as Fn, G as Bn, H as Gn, J as Wn, K as Hn, L as Yn, N as jn, O as Qn, P as Kn, Q as Vn, R as Zn, S as Ie } from "./chunks/ModulesProgressBar-B4fXbi-4.js";
2
- import { a8 as io, T as ro, U as so, ao as oo, ap as lo, aq as ao, aF as uo, ar as co, as as mo, at as go, au as po, ab as fo, a4 as ho, V as Mo, ad as _o, a7 as Io, aA as Eo, ag as So, ah as yo, X as To, aC as bo, Y as Po, Z as Co, _ as vo, $ as Lo, a1 as wo, a6 as Ao, a0 as Ro, a2 as ko, a3 as Oo, ai as Do, ak as qo, a9 as zo, aE as No, aa as xo, aG as $o, ac as Uo, a5 as Fo, ae as Bo, aw as Go, af as Wo, aB as Ho, ax as Yo, aD as jo, ay as Qo, az as Ko, aj as Vo, W as Zo, al as Xo, am as Jo, av as el, an as tl } from "./chunks/ModulesProgressBar-B4fXbi-4.js";
1
+ import { w as Je, I as En, M as Sn, a as yn, b as Tn, i as ft, c as bn, v as et, h as Pn, o as Ge, m as ie, d as Cn, e as vn, g as Ln, f as wn, j as An, u as N, k as Ce, D as Rn, l as Se, n as kn, p as tt, q as nt, r as On, s as qn, t as Dn, x as zn, y as Nn, z as Ot, A as xn, B as qt, C as Dt, E as $n, F as Un, G as Fn, H as Bn, J as Gn, K as Wn, L as Hn, N as Yn, O as jn, P as Qn, Q as Kn, R as Vn, S as Zn, T as ye } from "./chunks/ModulesProgressBar-B1oRo549.js";
2
+ import { a9 as ro, U as so, V as oo, ap as lo, aq as ao, ar as uo, aG as co, as as mo, at as go, au as po, av as fo, ac as ho, a5 as Mo, W as _o, ae as Io, a8 as Eo, aB as So, ah as yo, ai as To, Y as bo, aD as Po, Z as Co, _ as vo, $ as Lo, a0 as wo, a2 as Ao, a7 as Ro, a1 as ko, a3 as Oo, a4 as qo, aj as Do, al as zo, aa as No, aF as xo, ab as $o, aH as Uo, ad as Fo, a6 as Bo, af as Go, ax as Wo, ag as Ho, aC as Yo, ay as jo, aE as Qo, az as Ko, aA as Vo, ak as Zo, X as Xo, am as Jo, an as el, aw as tl, ao as nl } from "./chunks/ModulesProgressBar-B1oRo549.js";
3
3
  import { canvasFetch as ht } from "@instructure/platform-canvas-fetch";
4
4
  import { z as Mt } from "zod";
5
5
  import { gql as J } from "graphql-tag";
6
- import { jsx as s, jsxs as m, Fragment as W } from "react/jsx-runtime";
6
+ import { jsx as s, jsxs as m, Fragment as H } from "react/jsx-runtime";
7
7
  import { Pill as Xn } from "@instructure/ui-pill/v11_7";
8
8
  import { useQueryClient as Jn, QueryClient as ei, QueryClientProvider as ti } from "@tanstack/react-query";
9
- import { useCallback as U, useMemo as F, useId as ni, memo as ii, useRef as k, useEffect as B, useState as G } from "react";
10
- import { ScreenReaderContent as zt } from "@instructure/ui-a11y-content";
9
+ import { useCallback as F, useMemo as B, useId as ni, memo as ii, useRef as R, useEffect as G, useState as W } from "react";
11
10
  import { SimpleSelect as _t } from "@instructure/ui-simple-select/v11_7";
12
11
  import { Text as b } from "@instructure/ui-text/v11_7";
13
- import { IconArrowOpenUpLine as ri, IconArrowOpenDownLine as si, IconClockLine as Nt, IconAiColoredSolid as oi, IconAiSolid as li } from "@instructure/ui-icons";
14
- import { politeAnnounce as N, getLiveRegion as Se, TruncateWithTooltip as ai } from "@instructure/platform-instui-bindings";
12
+ import { IconArrowOpenUpLine as ri, IconArrowOpenDownLine as si, IconClockLine as zt, IconAiColoredSolid as oi, IconAiSolid as li } from "@instructure/ui-icons";
13
+ import { politeAnnounce as z, getLiveRegion as be, TruncateWithTooltip as ai } from "@instructure/platform-instui-bindings";
15
14
  import { InstUISettingsProvider as ui } from "@instructure/emotion";
16
15
  import { Alert as X } from "@instructure/ui-alerts/v11_7";
17
- import { IconButton as di, CloseButton as ci, Button as z } from "@instructure/ui-buttons/v11_7";
18
- import { Flex as _ } from "@instructure/ui-flex/v11_7";
19
- import { Heading as ue } from "@instructure/ui-heading/v11_7";
20
- import { Link as mi } from "@instructure/ui-link/v11_7";
21
- import { List as Ge, ListItem as We } from "@instructure/ui-list/v11_7";
22
- import { Pagination as xt } from "@instructure/ui-pagination/v11_7";
23
- import { ProgressBar as gi } from "@instructure/ui-progress/v11_7";
24
- import { Spinner as et } from "@instructure/ui-spinner/v11_7";
25
- import { Tooltip as pi } from "@instructure/ui-tooltip/v11_7";
26
- import { View as M } from "@instructure/ui-view/v11_7";
27
- import { WithBreakpoints as fi } from "@instructure/platform-with-breakpoints";
28
- import { Modal as hi, ModalHeader as Mi, ModalBody as _i, ModalFooter as Ii } from "@instructure/ui-modal/v11_7";
29
- import { CheckboxGroup as It, Checkbox as Fe } from "@instructure/ui-checkbox/v11_7";
30
- import { RadioInputGroup as Ei, RadioInput as Et } from "@instructure/ui-radio-input/v11_7";
31
- import { TextArea as Si } from "@instructure/ui-text-area/v11_7";
32
- function $t(e) {
16
+ import { ScreenReaderContent as di } from "@instructure/ui-a11y-content";
17
+ import { IconButton as ci, CloseButton as mi, Button as D } from "@instructure/ui-buttons/v11_7";
18
+ import { Flex as M } from "@instructure/ui-flex/v11_7";
19
+ import { Heading as me } from "@instructure/ui-heading/v11_7";
20
+ import { Link as gi } from "@instructure/ui-link/v11_7";
21
+ import { List as Ye, ListItem as je } from "@instructure/ui-list/v11_7";
22
+ import { Pagination as Nt } from "@instructure/ui-pagination/v11_7";
23
+ import { ProgressBar as pi } from "@instructure/ui-progress/v11_7";
24
+ import { Spinner as it } from "@instructure/ui-spinner/v11_7";
25
+ import { Tooltip as fi } from "@instructure/ui-tooltip/v11_7";
26
+ import { View as _ } from "@instructure/ui-view/v11_7";
27
+ import { WithBreakpoints as hi } from "@instructure/platform-with-breakpoints";
28
+ import { Modal as Mi, ModalHeader as _i, ModalBody as Ii, ModalFooter as Ei } from "@instructure/ui-modal/v11_7";
29
+ import { CheckboxGroup as It, Checkbox as We } from "@instructure/ui-checkbox/v11_7";
30
+ import { RadioInputGroup as Si, RadioInput as Et } from "@instructure/ui-radio-input/v11_7";
31
+ import { TextArea as yi } from "@instructure/ui-text-area/v11_7";
32
+ function xt(e) {
33
33
  return e === "module" ? "module" : "module item";
34
34
  }
35
- class Ut extends Error {
35
+ class $t extends Error {
36
36
  constructor(t, n, r) {
37
37
  super(
38
- `Canvas returned ${$t(t)} ${n} without a usable ${r}. This is a partial response; refusing to guess a value for it.`
38
+ `Canvas returned ${xt(t)} ${n} without a usable ${r}. This is a partial response; refusing to guess a value for it.`
39
39
  ), this.name = "PartialCanvasResponseError", this.subject = t, this.id = n, this.field = r;
40
40
  }
41
41
  }
42
- function Ft(e, t, n) {
42
+ function Ut(e, t, n) {
43
43
  if (e != null) return e;
44
- throw new Ut(t, n, "published");
44
+ throw new $t(t, n, "published");
45
45
  }
46
- function yi(e, t) {
46
+ function Ti(e, t) {
47
47
  if (e.onUnsupportedItem) {
48
48
  e.onUnsupportedItem(t);
49
49
  return;
@@ -52,16 +52,16 @@ function yi(e, t) {
52
52
  `[platform-modules] dropped module item ${t.id}: content type "${t.typename ?? "null"}" is outside the closed ModuleItemType enum. Pass \`onUnsupportedItem\` to handle these yourself.`
53
53
  );
54
54
  }
55
- function Bt(e, t) {
55
+ function Ft(e, t) {
56
56
  if (e.onUnsupportedStatus) {
57
57
  e.onUnsupportedStatus(t);
58
58
  return;
59
59
  }
60
60
  console.warn(
61
- `[platform-modules] ${$t(t.subject)} ${t.id}: status "${t.value}" is outside the closed status enum and was ignored. Pass \`onUnsupportedStatus\` to handle these yourself.`
61
+ `[platform-modules] ${xt(t.subject)} ${t.id}: status "${t.value}" is outside the closed status enum and was ignored. Pass \`onUnsupportedStatus\` to handle these yourself.`
62
62
  );
63
63
  }
64
- const Ti = /* @__PURE__ */ new Map([
64
+ const bi = /* @__PURE__ */ new Map([
65
65
  ["Assignment", "assignment"],
66
66
  ["Quiz", "quiz"],
67
67
  ["Discussion", "discussion"],
@@ -73,21 +73,21 @@ const Ti = /* @__PURE__ */ new Map([
73
73
  ["SubHeader", "sub_header"],
74
74
  ["PeerReviewSubAssignment", "assignment"]
75
75
  ]);
76
- function bi(e) {
76
+ function Pi(e) {
77
77
  const t = e == null ? void 0 : e.__typename;
78
78
  if (!t) return null;
79
- const n = Ti.get(t);
79
+ const n = bi.get(t);
80
80
  return n ? n === "assignment" && (e == null ? void 0 : e.isNewQuiz) === !0 ? "quiz" : n : null;
81
81
  }
82
- const Pi = /^P(?!$)(?:(\d+(?:\.\d+)?)W)?(?:(\d+(?:\.\d+)?)D)?(?:T(?!$)(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;
83
- function Gt(e) {
82
+ const Ci = /^P(?!$)(?:(\d+(?:\.\d+)?)W)?(?:(\d+(?:\.\d+)?)D)?(?:T(?!$)(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;
83
+ function Bt(e) {
84
84
  if (!e) return null;
85
- const t = Pi.exec(e);
85
+ const t = Ci.exec(e);
86
86
  if (!t) return null;
87
87
  const [, n, r, o, i, l] = t, u = Number(n ?? 0) * 7 * 24 * 60 + Number(r ?? 0) * 24 * 60 + Number(o ?? 0) * 60 + Number(i ?? 0) + Number(l ?? 0) / 60;
88
88
  return Math.round(u);
89
89
  }
90
- const Ci = /* @__PURE__ */ new Set([
90
+ const vi = /* @__PURE__ */ new Set([
91
91
  "must_view",
92
92
  "must_mark_done",
93
93
  "must_contribute",
@@ -95,18 +95,18 @@ const Ci = /* @__PURE__ */ new Set([
95
95
  "min_score",
96
96
  "min_percentage"
97
97
  ]);
98
- function vi(e) {
99
- return Ci.has(e) ? e : "unknown";
100
- }
101
98
  function Li(e) {
99
+ return vi.has(e) ? e : "unknown";
100
+ }
101
+ function wi(e) {
102
102
  return {
103
103
  itemId: String(e.id),
104
- type: vi(e.type),
104
+ type: Li(e.type),
105
105
  minScore: e.minScore ?? null,
106
106
  minPercentage: e.minPercentage ?? null
107
107
  };
108
108
  }
109
- function Wt(e) {
109
+ function Gt(e) {
110
110
  return {
111
111
  hasNextPage: (e == null ? void 0 : e.hasNextPage) ?? !1,
112
112
  endCursor: (e == null ? void 0 : e.endCursor) ?? null,
@@ -116,14 +116,14 @@ function Wt(e) {
116
116
  totalNrOfPages: (e == null ? void 0 : e.totalNrOfPages) ?? null
117
117
  };
118
118
  }
119
- const wi = /* @__PURE__ */ new Set(["min_score", "min_percentage"]);
120
- function Ai(e) {
119
+ const Ai = /* @__PURE__ */ new Set(["min_score", "min_percentage"]);
120
+ function Ri(e) {
121
121
  var t;
122
122
  for (const n of ((t = e == null ? void 0 : e.submissionsConnection) == null ? void 0 : t.nodes) ?? [])
123
123
  if (n) return n;
124
124
  return null;
125
125
  }
126
- function Ht(e, t) {
126
+ function Wt(e, t) {
127
127
  if (!e) return;
128
128
  const n = new Map(t.map((i) => [i.itemId, i.type])), r = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
129
129
  for (const i of e.requirementsMet ?? []) {
@@ -134,7 +134,7 @@ function Ht(e, t) {
134
134
  for (const i of e.incompleteRequirements ?? []) {
135
135
  if (!i) continue;
136
136
  const l = String(i.id);
137
- n.get(l) === i.type && wi.has(i.type) && o.set(l, i.score ?? null);
137
+ n.get(l) === i.type && Ai.has(i.type) && o.set(l, i.score ?? null);
138
138
  }
139
139
  return {
140
140
  locked: e.locked === !0 || e.workflowState === "locked",
@@ -145,7 +145,7 @@ function Ht(e, t) {
145
145
  incompleteRequirementScores: o
146
146
  };
147
147
  }
148
- const Ri = /* @__PURE__ */ new Map([
148
+ const ki = /* @__PURE__ */ new Map([
149
149
  ["LOCKED", "locked"],
150
150
  ["MISSING", "missing"],
151
151
  ["INCOMPLETE", "incomplete"],
@@ -153,16 +153,16 @@ const Ri = /* @__PURE__ */ new Map([
153
153
  ["IN_PROGRESS", "in_progress"],
154
154
  ["NOT_STARTED", "not_started"]
155
155
  ]);
156
- function ki(e, t, n) {
156
+ function Oi(e, t, n) {
157
157
  if (e == null) return;
158
- const r = Ri.get(e);
159
- return r || Bt(n, {
158
+ const r = ki.get(e);
159
+ return r || Ft(n, {
160
160
  subject: "moduleItem",
161
161
  id: String(t),
162
162
  value: e
163
163
  }), r;
164
164
  }
165
- const Oi = /* @__PURE__ */ new Map([
165
+ const qi = /* @__PURE__ */ new Map([
166
166
  ["LOCKED", "locked"],
167
167
  ["MISSING", "missing"],
168
168
  ["MISSING_AND_INCOMPLETE", "missing_and_incomplete"],
@@ -173,10 +173,10 @@ const Oi = /* @__PURE__ */ new Map([
173
173
  ]);
174
174
  function Di(e, t, n) {
175
175
  if (e == null) return;
176
- const r = Oi.get(e);
177
- return r || Bt(n, { subject: "module", id: String(t), value: e }), r;
176
+ const r = qi.get(e);
177
+ return r || Ft(n, { subject: "module", id: String(t), value: e }), r;
178
178
  }
179
- function qi(e, t, n, r = {}) {
179
+ function zi(e, t, n, r = {}) {
180
180
  var a, d;
181
181
  if (!n) return;
182
182
  const o = e.requirementCount ?? t.length, i = Math.min(n.requirementsMetItemIds.size, o), l = ((a = e.submissionStatistics) == null ? void 0 : a.missingAssignmentCount) ?? 0, u = [...n.incompleteRequirementScores.values()].filter(
@@ -192,37 +192,38 @@ function qi(e, t, n, r = {}) {
192
192
  incompleteCount: u
193
193
  };
194
194
  }
195
- function zi(e, t, n, r = {}, o) {
195
+ function Ni(e, t, n, r = {}, o) {
196
196
  var d, g, p;
197
- const i = String(e._id), l = bi(e.content);
197
+ const i = String(e._id), l = Pi(e.content);
198
198
  if (!l)
199
- return yi(r, { id: i, typename: ((d = e.content) == null ? void 0 : d.__typename) ?? null }), null;
200
- const u = Ai(e.content), a = n.get(i) ?? null;
199
+ return Ti(r, { id: i, typename: ((d = e.content) == null ? void 0 : d.__typename) ?? null }), null;
200
+ const u = Ri(e.content), a = n.get(i) ?? null;
201
201
  return {
202
202
  id: i,
203
203
  moduleId: t,
204
204
  title: e.title ?? "",
205
205
  type: l,
206
206
  position: e.position ?? 0,
207
+ itemNumber: e.itemNumber ?? void 0,
207
208
  indent: e.indent ?? 0,
208
- published: Ft(e.published, "moduleItem", i),
209
+ published: Ut(e.published, "moduleItem", i),
209
210
  url: e.url ?? null,
210
211
  newTab: e.newTab ?? !1,
211
212
  completionRequirement: a,
212
213
  dueAt: (u == null ? void 0 : u.cachedDueDate) ?? ((g = e.content) == null ? void 0 : g.dueAt) ?? null,
213
- status: o ? ki(e.moduleItemStatus, i, r) ?? (o.locked ? "locked" : void 0) : void 0,
214
+ status: o ? Oi(e.moduleItemStatus, i, r) ?? (o.locked ? "locked" : void 0) : void 0,
214
215
  pointsPossible: ((p = e.content) == null ? void 0 : p.pointsPossible) ?? null,
215
- extensions: Ve(
216
+ extensions: Je(
216
217
  void 0,
217
- Gt(e.estimatedDuration)
218
+ Bt(e.estimatedDuration)
218
219
  )
219
220
  };
220
221
  }
221
- function Yt(e, t, n, r, o) {
222
+ function Ht(e, t, n, r, o) {
222
223
  const i = [];
223
224
  for (const l of e ?? []) {
224
225
  if (!l) continue;
225
- const u = zi(
226
+ const u = Ni(
226
227
  l,
227
228
  t,
228
229
  n,
@@ -233,29 +234,29 @@ function Yt(e, t, n, r, o) {
233
234
  }
234
235
  return i;
235
236
  }
236
- function jt(e) {
237
+ function Yt(e) {
237
238
  const t = [], n = /* @__PURE__ */ new Map();
238
239
  for (const r of e ?? []) {
239
240
  if (!r) continue;
240
- const o = Li(r);
241
+ const o = wi(r);
241
242
  t.push(o), n.set(o.itemId, o);
242
243
  }
243
244
  return { list: t, byItemId: n };
244
245
  }
245
- function Ni(e, t = {}) {
246
+ function xi(e, t = {}) {
246
247
  var d, g;
247
248
  const n = String(e._id);
248
249
  if (e.moduleItemsTotalCount == null)
249
- throw new Ut("module", n, "moduleItemsTotalCount");
250
- const { list: r, byItemId: o } = jt(e.completionRequirements), i = e.moduleItemsConnection, l = i != null && !((d = i.pageInfo) != null && d.hasNextPage), u = Ht(e.progression, r), a = l ? Yt(i.nodes, n, o, t, u) : void 0;
250
+ throw new $t("module", n, "moduleItemsTotalCount");
251
+ const { list: r, byItemId: o } = Yt(e.completionRequirements), i = e.moduleItemsConnection, l = i != null && !((d = i.pageInfo) != null && d.hasNextPage), u = Wt(e.progression, r), a = l ? Ht(i.nodes, n, o, t, u) : void 0;
251
252
  return {
252
253
  id: n,
253
254
  name: e.name ?? "",
254
255
  position: e.position ?? 0,
255
- published: Ft(e.published, "module", n),
256
+ published: Ut(e.published, "module", n),
256
257
  itemCount: e.moduleItemsTotalCount,
257
258
  items: a,
258
- estimatedDurationMinutes: Gt(e.estimatedDuration) || void 0,
259
+ estimatedDurationMinutes: Bt(e.estimatedDuration) || void 0,
259
260
  unlockAt: e.unlockAt ?? null,
260
261
  prerequisiteModules: (e.prerequisites ?? []).filter(
261
262
  (p) => p != null
@@ -263,36 +264,37 @@ function Ni(e, t = {}) {
263
264
  requirementCount: e.requirementCount ?? null,
264
265
  requireSequentialProgress: e.requireSequentialProgress ?? !1,
265
266
  completionRequirements: r,
266
- progress: qi(e, r, u, t),
267
+ progress: zi(e, r, u, t),
267
268
  collapsed: ((g = e.progression) == null ? void 0 : g.collapsed) ?? null
268
269
  };
269
270
  }
270
- function xi(e, t = {}) {
271
+ function $i(e, t = {}) {
271
272
  var o;
272
273
  const n = (o = e == null ? void 0 : e.legacyNode) == null ? void 0 : o.modulesConnection, r = [];
273
274
  for (const i of (n == null ? void 0 : n.nodes) ?? [])
274
- i && r.push(Ni(i, t));
275
- return { modules: r, pageInfo: Wt(n == null ? void 0 : n.pageInfo) };
275
+ i && r.push(xi(i, t));
276
+ return { modules: r, pageInfo: Gt(n == null ? void 0 : n.pageInfo) };
276
277
  }
277
- function $i(e, t, n = {}) {
278
- const r = e == null ? void 0 : e.legacyNode, { list: o, byItemId: i } = jt(r == null ? void 0 : r.completionRequirements), l = r == null ? void 0 : r.moduleItemsConnection, u = Ht(r == null ? void 0 : r.progression, o);
278
+ function Ui(e, t, n = {}) {
279
+ const r = e == null ? void 0 : e.legacyNode, { list: o, byItemId: i } = Yt(r == null ? void 0 : r.completionRequirements), l = r == null ? void 0 : r.moduleItemsConnection, u = Wt(r == null ? void 0 : r.progression, o);
279
280
  return {
280
- items: Yt(l == null ? void 0 : l.nodes, t, i, n, u),
281
- pageInfo: Wt(l == null ? void 0 : l.pageInfo)
281
+ items: Ht(l == null ? void 0 : l.nodes, t, i, n, u),
282
+ pageInfo: Gt(l == null ? void 0 : l.pageInfo)
282
283
  };
283
284
  }
284
- const Ui = J`
285
+ const Fi = J`
285
286
  fragment PlatformModulesSubmissionFields on Submission {
286
287
  _id
287
288
  cachedDueDate
288
289
  }
289
- `, Qt = J`
290
+ `, jt = J`
290
291
  fragment PlatformModulesItemFields on ModuleItem {
291
292
  _id
292
293
  title
293
294
  url
294
295
  newTab
295
296
  position
297
+ itemNumber
296
298
  indent
297
299
  published
298
300
  estimatedDuration @include(if: $includeEstimatedDuration)
@@ -334,8 +336,8 @@ const Ui = J`
334
336
  }
335
337
  }
336
338
  }
337
- ${Ui}
338
- `, Kt = J`
339
+ ${Fi}
340
+ `, Qt = J`
339
341
  fragment PlatformModulesProgressionFields on ModuleProgression {
340
342
  workflowState
341
343
  completed
@@ -355,7 +357,7 @@ const Ui = J`
355
357
  score
356
358
  }
357
359
  }
358
- `, Vt = J`
360
+ `, Kt = J`
359
361
  fragment PlatformModulesModuleFields on Module {
360
362
  _id
361
363
  name
@@ -386,8 +388,8 @@ const Ui = J`
386
388
  missingAssignmentCount
387
389
  }
388
390
  }
389
- ${Kt}
390
- `, Fi = J`
391
+ ${Qt}
392
+ `, Bi = J`
391
393
  query PlatformModulesGetModules(
392
394
  $courseId: ID!
393
395
  $first: Int
@@ -415,8 +417,8 @@ const Ui = J`
415
417
  }
416
418
  }
417
419
  }
418
- ${Vt}
419
- `, Bi = J`
420
+ ${Kt}
421
+ `, Gi = J`
420
422
  query PlatformModulesGetModulesWithItems(
421
423
  $courseId: ID!
422
424
  $first: Int
@@ -456,9 +458,9 @@ const Ui = J`
456
458
  }
457
459
  }
458
460
  }
459
- ${Vt}
460
- ${Qt}
461
- `, Gi = J`
461
+ ${Kt}
462
+ ${jt}
463
+ `, Wi = J`
462
464
  query PlatformModulesGetModuleItems(
463
465
  $moduleId: ID!
464
466
  $first: Int
@@ -496,18 +498,18 @@ const Ui = J`
496
498
  }
497
499
  }
498
500
  }
501
+ ${jt}
499
502
  ${Qt}
500
- ${Kt}
501
503
  `;
502
- function Zt() {
504
+ function Vt() {
503
505
  return new DOMException("The operation was aborted.", "AbortError");
504
506
  }
505
- function Ee(e) {
506
- if (e != null && e.aborted) throw Zt();
507
+ function Te(e) {
508
+ if (e != null && e.aborted) throw Vt();
507
509
  }
508
510
  function St(e, t) {
509
511
  return t ? new Promise((n, r) => {
510
- const o = () => r(Zt());
512
+ const o = () => r(Vt());
511
513
  t.addEventListener("abort", o, { once: !0 }), e.then(n, r).finally(() => t.removeEventListener("abort", o));
512
514
  }) : e;
513
515
  }
@@ -524,10 +526,10 @@ const yt = [
524
526
  ["complete", ["COMPLETE"]],
525
527
  ["in_progress", ["IN_PROGRESS"]],
526
528
  ["not_started", ["NOT_STARTED"]]
527
- ]), Wi = {
529
+ ]), Hi = {
528
530
  module: { completionStatus: ["eq"], moduleStatus: ["eq"], dueWithinDays: ["within"] }
529
531
  };
530
- function Hi(e, t) {
532
+ function Yi(e, t) {
531
533
  if (!e) return null;
532
534
  if (e.target === "module" && e.field === "completionStatus" && e.op === "eq") {
533
535
  const n = e.value;
@@ -554,18 +556,18 @@ function Hi(e, t) {
554
556
  `Canvas GraphQL cannot serve ${e.target}.${e.field} "${e.op}". It compiles module.completionStatus eq, module.moduleStatus eq and module.dueWithinDays within.`
555
557
  );
556
558
  }
557
- function Be(e, t, n) {
559
+ function He(e, t, n) {
558
560
  return e.kind === "before" ? { first: null, after: null, before: e.cursor, last: n } : e.kind === "last" ? { first: null, after: null, before: null, last: e.count } : { first: t, after: e.kind === "after" ? e.cursor : null, before: null, last: null };
559
561
  }
560
- function Bs({
562
+ function Gs({
561
563
  executeQuery: e,
562
- inlineItemLimit: t = bn,
563
- nodeBudget: n = Sn,
564
+ inlineItemLimit: t = Tn,
565
+ nodeBudget: n = En,
564
566
  onUnsupportedItem: r,
565
567
  onUnsupportedStatus: o,
566
568
  studentId: i,
567
569
  validate: l = !0,
568
- capabilities: u = Wi,
570
+ capabilities: u = Hi,
569
571
  includeEstimatedDuration: a = !1
570
572
  }) {
571
573
  const d = i != null, g = { onUnsupportedItem: r, onUnsupportedStatus: o };
@@ -577,23 +579,23 @@ function Bs({
577
579
  page: h = { kind: "first" },
578
580
  pageSize: f,
579
581
  includeItems: I,
580
- filter: v,
581
- dueRange: L,
582
- inlineItemsFirst: $,
583
- inlineFirst: O,
582
+ filter: L,
583
+ dueRange: w,
584
+ inlineItemsFirst: x,
585
+ inlineFirst: k,
584
586
  signal: S
585
587
  }) {
586
- Ee(S);
587
- const C = Hi(v, L);
588
- let Y;
588
+ Te(S);
589
+ const C = Yi(L, w);
590
+ let j;
589
591
  if (I) {
590
- const w = Math.min(O ?? f, f), H = Math.min($ ?? t, t), A = Math.max(1, Math.min(H, Math.floor(n / w)));
591
- Y = e(
592
- Bi,
592
+ const A = Math.min(k ?? f, f), O = Math.min(x ?? t, t), $ = Math.max(1, Math.min(O, Math.floor(n / A)));
593
+ j = e(
594
+ Gi,
593
595
  {
594
596
  courseId: p,
595
- ...Be(h, w, f),
596
- itemsFirst: A,
597
+ ...He(h, A, f),
598
+ itemsFirst: $,
597
599
  includeSubmissions: d,
598
600
  includeEstimatedDuration: a,
599
601
  studentId: i ?? null,
@@ -601,16 +603,16 @@ function Bs({
601
603
  }
602
604
  );
603
605
  } else
604
- Y = e(Fi, {
606
+ j = e(Bi, {
605
607
  courseId: p,
606
- ...Be(h, f, f),
608
+ ...He(h, f, f),
607
609
  includeEstimatedDuration: a,
608
610
  filter: C
609
611
  });
610
- const j = await St(Y, S);
611
- Ee(S);
612
- const T = xi(j, g);
613
- return l ? Tn.parse(T) : T;
612
+ const Q = await St(j, S);
613
+ Te(S);
614
+ const T = $i(Q, g);
615
+ return l ? yn.parse(T) : T;
614
616
  },
615
617
  async listModuleItems({
616
618
  moduleId: p,
@@ -618,20 +620,20 @@ function Bs({
618
620
  pageSize: f,
619
621
  signal: I
620
622
  }) {
621
- Ee(I);
622
- const v = await St(
623
- e(Gi, {
623
+ Te(I);
624
+ const L = await St(
625
+ e(Wi, {
624
626
  moduleId: p,
625
- ...Be(h, f, f),
627
+ ...He(h, f, f),
626
628
  includeSubmissions: d,
627
629
  includeEstimatedDuration: a,
628
630
  studentId: i ?? null
629
631
  }),
630
632
  I
631
633
  );
632
- Ee(I);
633
- const L = $i(v, p, g);
634
- return l ? yn.parse(L) : L;
634
+ Te(I);
635
+ const w = Ui(L, p, g);
636
+ return l ? Sn.parse(w) : w;
635
637
  },
636
638
  async setModuleCollapsed({
637
639
  courseId: p,
@@ -666,8 +668,8 @@ function Bs({
666
668
  }
667
669
  };
668
670
  }
669
- const Gs = 1e3;
670
- function Yi({
671
+ const Ws = 1e3;
672
+ function ji({
671
673
  queryClient: e,
672
674
  courseId: t,
673
675
  module: n,
@@ -678,86 +680,85 @@ function Yi({
678
680
  item: r,
679
681
  invalidateModuleItems: async (o) => {
680
682
  await Promise.all([
681
- Pn(e, t, o),
683
+ bn(e, t, o),
682
684
  ft(e, t)
683
685
  ]);
684
686
  },
685
687
  invalidateModuleList: () => ft(e, t)
686
688
  };
687
689
  }
688
- function Ws(e, t) {
689
- return Ze(e).filter(
690
+ function Hs(e, t) {
691
+ return et(e).filter(
690
692
  (n) => n.visible == null || n.visible(t) === !0
691
693
  );
692
694
  }
693
- function Xt(e, t = {}) {
694
- const n = Object.keys(t).filter((o) => !Cn(e, o));
695
+ function Zt(e, t = {}) {
696
+ const n = Object.keys(t).filter((o) => !Pn(e, o));
695
697
  if (n.length > 0)
696
698
  throw new Error(
697
699
  `Unknown modules config key(s): ${n.join(", ")}. Known keys are ${Object.keys(e).join(", ")}.`
698
700
  );
699
701
  const r = {
700
- formatters: Ue(e.formatters, t.formatters),
701
- itemTypes: ne(e.itemTypes, t.itemTypes),
702
- itemStatuses: ne(e.itemStatuses, t.itemStatuses),
703
- itemMeta: ne(e.itemMeta, t.itemMeta),
704
- filters: ne(e.filters, t.filters),
705
- moduleActions: ne(e.moduleActions, t.moduleActions),
706
- itemActions: ne(e.itemActions, t.itemActions),
707
- navigation: Ue(e.navigation, t.navigation),
708
- permissions: Ue(e.permissions, t.permissions),
702
+ formatters: Ge(e.formatters, t.formatters),
703
+ itemTypes: ie(e.itemTypes, t.itemTypes),
704
+ itemStatuses: ie(e.itemStatuses, t.itemStatuses),
705
+ itemMeta: ie(e.itemMeta, t.itemMeta),
706
+ filters: ie(e.filters, t.filters),
707
+ moduleActions: ie(e.moduleActions, t.moduleActions),
708
+ itemActions: ie(e.itemActions, t.itemActions),
709
+ navigation: Ge(e.navigation, t.navigation),
710
+ permissions: Ge(e.permissions, t.permissions),
709
711
  notify: t.notify ?? e.notify
710
712
  };
711
- return vn.parse(r), r;
713
+ return Cn.parse(r), r;
712
714
  }
713
- const ji = "organizeNewPlacement", Qi = {
715
+ const Qi = "organizeNewPlacement", Ki = {
714
716
  label: "metaFieldNewPlacementLabel",
715
717
  order: 5,
716
- render: ({ item: e, t }) => An(e) ? /* @__PURE__ */ s(Xn, { color: "success", children: t("organizeNewItemPill") }) : null
717
- }, Ki = (e) => Object.fromEntries(Object.keys(e).map((t) => [t, { hidden: !0 }])), Vi = (e) => Xt(e, {
718
- itemMeta: { [ji]: Qi },
719
- filters: Ki(e.filters),
718
+ render: ({ item: e, t }) => wn(e) ? /* @__PURE__ */ s(Xn, { color: "success", children: t("organizeNewItemPill") }) : null
719
+ }, Vi = (e) => Object.fromEntries(Object.keys(e).map((t) => [t, { hidden: !0 }])), Zi = (e) => Zt(e, {
720
+ itemMeta: { [Qi]: Ki },
721
+ filters: Vi(e.filters),
720
722
  formatters: {
721
723
  moduleLabel: (t, n, { t: r }) => {
722
- if (Ln(n)) return r("organizeNewModuleLabel");
723
- const o = wn(n);
724
+ if (vn(n)) return r("organizeNewModuleLabel");
725
+ const o = Ln(n);
724
726
  return o === 0 ? null : r("organizeItemsAddedLabel", { count: o });
725
727
  }
726
728
  }
727
729
  });
728
- function Hs(e = {}) {
729
- return Xt(Rn, e);
730
+ function Ys(e = {}) {
731
+ return Zt(An, e);
730
732
  }
731
- function Ys(e) {
733
+ function js(e) {
732
734
  const t = Jn();
733
- return U(
734
- (n, r) => Yi({ queryClient: t, courseId: e, module: n, item: r }),
735
+ return F(
736
+ (n, r) => ji({ queryClient: t, courseId: e, module: n, item: r }),
735
737
  [t, e]
736
738
  );
737
739
  }
738
- const Zi = {
739
- not_started: _e.not_started,
740
- in_progress: _e.in_progress,
741
- complete: _e.complete,
742
- missing: _e.missing,
743
- due_this_week: kn
744
- }, Xi = {
740
+ const Xi = {
741
+ not_started: Se.not_started,
742
+ in_progress: Se.in_progress,
743
+ complete: Se.complete,
744
+ missing: Se.missing,
745
+ due_this_week: Rn
746
+ }, Ji = {
745
747
  primary: "secondary",
746
748
  info: "brand",
747
749
  success: "success",
748
750
  warning: "warning"
749
751
  };
750
- function Ji({
752
+ function er({
751
753
  value: e,
752
754
  onChange: t,
753
755
  interaction: n = "enabled"
754
756
  }) {
755
- const { t: r } = x(), o = Te(), i = F(() => Ze(o.filters), [o.filters]), l = ni();
757
+ const { t: r } = N(), o = Ce(), i = B(() => et(o.filters), [o.filters]), l = ni();
756
758
  return i.length === 0 ? null : /* @__PURE__ */ s(
757
759
  _t,
758
760
  {
759
- renderLabel: /* @__PURE__ */ s(zt, { children: r("filterGroupLabel") }),
760
- renderBeforeInput: /* @__PURE__ */ s(b, { weight: "bold", "aria-hidden": "true", children: r("filterGroupLabel") }),
761
+ renderLabel: r("filterGroupLabel"),
761
762
  value: e,
762
763
  onChange: (u, a) => {
763
764
  a.value !== void 0 && t(String(a.value));
@@ -765,13 +766,13 @@ function Ji({
765
766
  interaction: n,
766
767
  "data-testid": "filter-select",
767
768
  children: i.map((u) => {
768
- const a = Zi[u.key];
769
+ const a = Xi[u.key];
769
770
  return /* @__PURE__ */ s(
770
771
  _t.Option,
771
772
  {
772
773
  id: `${l}-${u.key}`,
773
774
  value: u.key,
774
- renderBeforeLabel: a ? /* @__PURE__ */ s(b, { color: Xi[a.tone], children: a.icon }) : void 0,
775
+ renderBeforeLabel: a ? /* @__PURE__ */ s(b, { color: Ji[a.tone], children: a.icon }) : void 0,
775
776
  "data-testid": `filter-option-${u.key}`,
776
777
  children: r(u.label)
777
778
  },
@@ -781,21 +782,21 @@ function Ji({
781
782
  }
782
783
  );
783
784
  }
784
- const bt = "\0", er = { textDecoration: "underline dotted", cursor: "help" }, Jt = { ...On, marginInlineEnd: "0.375rem" };
785
- function tr({ names: e }) {
786
- const { t } = x();
787
- if (e.length === 1) return /* @__PURE__ */ s(W, { children: t("lockedByPrerequisiteByline", { name: e[0] }) });
785
+ const bt = "\0", tr = { textDecoration: "underline dotted", cursor: "help" }, Xt = { ...kn, marginInlineEnd: "0.375rem" };
786
+ function nr({ names: e }) {
787
+ const { t } = N();
788
+ if (e.length === 1) return /* @__PURE__ */ s(H, { children: t("lockedByPrerequisiteByline", { name: e[0] }) });
788
789
  const n = t("lockedByPrerequisitesByline", {
789
790
  count: e.length,
790
791
  prerequisites: bt
791
792
  }), [r, ...o] = n.split(bt), i = o.length > 0 ? o.join("") : null;
792
- return /* @__PURE__ */ m(W, { children: [
793
+ return /* @__PURE__ */ m(H, { children: [
793
794
  i === null ? null : r,
794
- /* @__PURE__ */ s(pi, { renderTip: e.join(", "), children: /* @__PURE__ */ s(
795
+ /* @__PURE__ */ s(fi, { renderTip: e.join(", "), children: /* @__PURE__ */ s(
795
796
  "span",
796
797
  {
797
798
  tabIndex: 0,
798
- style: er,
799
+ style: tr,
799
800
  onClick: (l) => l.stopPropagation(),
800
801
  "data-testid": "module-byline-prerequisites",
801
802
  children: i === null ? n : t("lockedByPrerequisitesCount", { count: e.length })
@@ -804,9 +805,9 @@ function tr({ names: e }) {
804
805
  i
805
806
  ] });
806
807
  }
807
- function nr({ module: e, today: t }) {
808
+ function ir({ module: e, today: t }) {
808
809
  var p;
809
- const n = Je(), r = Ot(), o = ((p = e.progress) == null ? void 0 : p.status) === "locked", i = e.unlockAt ?? null, l = e.prerequisiteModules.map((h) => h.name.trim()).filter((h) => h !== ""), u = i !== null && new Date(i) > t;
810
+ const n = nt(), r = Ot(), o = ((p = e.progress) == null ? void 0 : p.status) === "locked", i = e.unlockAt ?? null, l = e.prerequisiteModules.map((h) => h.name.trim()).filter((h) => h !== ""), u = i !== null && new Date(i) > t;
810
811
  let a = null;
811
812
  i !== null && u && (o || !e.progress) ? a = n.unlockByline(i, t) : i !== null && !u && !e.progress && (a = n.unlockedByline(i, t));
812
813
  const d = o && l.length > 0;
@@ -815,42 +816,42 @@ function nr({ module: e, today: t }) {
815
816
  const h = e.estimatedDurationMinutes ?? xn(e.items);
816
817
  g = h === null ? null : n.estimatedDurationByline(h);
817
818
  }
818
- return a === null && !d && g === null ? null : /* @__PURE__ */ s(M, { as: "div", margin: "xx-small 0 0 0", children: /* @__PURE__ */ s("div", { style: Dt, children: /* @__PURE__ */ s(b, { variant: "contentSmall", color: "secondary", "data-testid": "module-byline", children: g !== null ? /* @__PURE__ */ m(W, { children: [
819
- /* @__PURE__ */ s("span", { style: Jt, children: /* @__PURE__ */ s(Nt, { width: "0.75rem", height: "0.75rem", color: "secondary" }) }),
819
+ return a === null && !d && g === null ? null : /* @__PURE__ */ s(_, { as: "div", margin: "xx-small 0 0 0", children: /* @__PURE__ */ s("div", { style: qt, children: /* @__PURE__ */ s(b, { variant: "contentSmall", color: "secondary", "data-testid": "module-byline", children: g !== null ? /* @__PURE__ */ m(H, { children: [
820
+ /* @__PURE__ */ s("span", { style: Xt, children: /* @__PURE__ */ s(zt, { width: "0.75rem", height: "0.75rem", color: "secondary" }) }),
820
821
  g
821
- ] }) : /* @__PURE__ */ m(W, { children: [
822
+ ] }) : /* @__PURE__ */ m(H, { children: [
822
823
  a,
823
- a !== null && d ? /* @__PURE__ */ s("span", { style: qt, children: " " }) : null,
824
- d ? /* @__PURE__ */ s("span", { style: a !== null ? r : void 0, children: /* @__PURE__ */ s(tr, { names: l }) }) : null
824
+ a !== null && d ? /* @__PURE__ */ s("span", { style: Dt, children: " " }) : null,
825
+ d ? /* @__PURE__ */ s("span", { style: a !== null ? r : void 0, children: /* @__PURE__ */ s(nr, { names: l }) }) : null
825
826
  ] }) }) }) });
826
827
  }
827
- const ir = "#273540", rr = "#D7DADE", sr = "0.25rem", or = (e, t) => {
828
+ const rr = "#273540", sr = "#D7DADE", or = "0.25rem", lr = (e, t) => {
828
829
  var n, r, o, i, l;
829
830
  return {
830
- meterColorBrand: ((r = (n = t.colors) == null ? void 0 : n.contrasts) == null ? void 0 : r.grey125125) ?? ir,
831
- borderRadius: String(((o = t.borders) == null ? void 0 : o.radiusMedium) ?? sr),
832
- borderColor: ((l = (i = t.colors) == null ? void 0 : i.contrasts) == null ? void 0 : l.grey1424) ?? rr,
831
+ meterColorBrand: ((r = (n = t.colors) == null ? void 0 : n.contrasts) == null ? void 0 : r.grey125125) ?? rr,
832
+ borderRadius: String(((o = t.borders) == null ? void 0 : o.radiusMedium) ?? or),
833
+ borderColor: ((l = (i = t.colors) == null ? void 0 : i.contrasts) == null ? void 0 : l.grey1424) ?? sr,
833
834
  trackBottomBorderColor: "transparent"
834
835
  };
835
- }, lr = "66.667%", ar = "80px", ur = 2, dr = { components: { TruncateText: { fontFamily: "inherit" } } };
836
- function cr({
836
+ }, ar = "66.667%", ur = "80px", dr = 2, cr = { components: { TruncateText: { fontFamily: "inherit" } } };
837
+ function mr({
837
838
  module: e,
838
839
  breakpoints: t
839
840
  }) {
840
- const { t: n } = x(), r = Je(), o = Ot(), i = e.progress;
841
+ const { t: n } = N(), r = nt(), o = Ot(), i = e.progress;
841
842
  if (!i || i.status === "locked" || i.requirementCount <= 0) return null;
842
843
  const l = Object.keys(t).length === 0 || t.desktop === !0, u = Un(e.items);
843
844
  return /* @__PURE__ */ m(
844
- _,
845
+ M,
845
846
  {
846
- width: l ? lr : "100%",
847
+ width: l ? ar : "100%",
847
848
  alignItems: "center",
848
849
  gap: "x-small",
849
850
  margin: "x-small 0 0 0",
850
851
  "data-testid": "module-progress",
851
852
  children: [
852
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ s(M, { as: "div", width: ar, "data-testid": "module-progress-bar", children: /* @__PURE__ */ s(
853
- gi,
853
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ s(_, { as: "div", width: ur, "data-testid": "module-progress-bar", children: /* @__PURE__ */ s(
854
+ pi,
854
855
  {
855
856
  size: "x-small",
856
857
  meterColor: "brand",
@@ -866,19 +867,19 @@ function cr({
866
867
  );
867
868
  return u === null ? a : `${a}, ${r.remainingDurationByline(u)}`;
868
869
  },
869
- themeOverride: or
870
+ themeOverride: lr
870
871
  }
871
872
  ) }) }),
872
- /* @__PURE__ */ s(_.Item, { shouldShrink: !0, "aria-hidden": "true", children: /* @__PURE__ */ s("div", { style: Dt, children: /* @__PURE__ */ m(b, { variant: "contentSmall", color: "secondary", children: [
873
+ /* @__PURE__ */ s(M.Item, { shouldShrink: !0, "aria-hidden": "true", children: /* @__PURE__ */ s("div", { style: qt, children: /* @__PURE__ */ m(b, { variant: "contentSmall", color: "secondary", children: [
873
874
  r.progress(
874
875
  i.percentComplete,
875
876
  i.requirementsMet,
876
877
  i.requirementCount
877
878
  ),
878
- u !== null ? /* @__PURE__ */ m(W, { children: [
879
- /* @__PURE__ */ s("span", { style: qt, children: " " }),
879
+ u !== null ? /* @__PURE__ */ m(H, { children: [
880
+ /* @__PURE__ */ s("span", { style: Dt, children: " " }),
880
881
  /* @__PURE__ */ m("span", { style: o, children: [
881
- /* @__PURE__ */ s("span", { style: Jt, children: /* @__PURE__ */ s(Nt, { width: "0.75rem", height: "0.75rem", color: "secondary" }) }),
882
+ /* @__PURE__ */ s("span", { style: Xt, children: /* @__PURE__ */ s(zt, { width: "0.75rem", height: "0.75rem", color: "secondary" }) }),
882
883
  r.remainingDurationByline(u)
883
884
  ] })
884
885
  ] }) : null
@@ -888,17 +889,20 @@ function cr({
888
889
  );
889
890
  }
890
891
  const Pt = (e) => `platform-modules-panel-${e}`;
891
- function He(e) {
892
+ function Qe(e) {
892
893
  return e !== void 0 && e.type !== "sub_header";
893
894
  }
894
895
  function Ct(e) {
895
- return He(e) && e.indent > 0;
896
+ return Qe(e) && e.indent > 0;
896
897
  }
897
- function mr(e, t) {
898
+ function gr(e, t) {
898
899
  let n = t;
899
- return e.map((r) => r.type === "sub_header" ? void 0 : ++n);
900
+ return e.map((r) => {
901
+ if (r.type !== "sub_header")
902
+ return n = r.itemNumber ?? n + 1, n;
903
+ });
900
904
  }
901
- function gr({
905
+ function pr({
902
906
  module: e,
903
907
  state: t,
904
908
  today: n,
@@ -906,11 +910,11 @@ function gr({
906
910
  stackPill: o,
907
911
  moduleLabel: i
908
912
  }) {
909
- const { t: l } = x(), u = Xe(), a = k(null), d = mr(t.items, t.itemOffset), g = t.items.length, p = !t.isLoading && !t.isRefreshing;
910
- B(() => {
913
+ const { t: l } = N(), u = tt(), a = R(null), d = gr(t.items, t.itemOffset), g = t.items.length, p = !t.isLoading && !t.isRefreshing;
914
+ G(() => {
911
915
  if (!p || g === 0 || a.current === t.page) return;
912
916
  const f = a.current === null;
913
- a.current = t.page, N(
917
+ a.current = t.page, z(
914
918
  f ? l("itemsLoadedAnnouncement", {
915
919
  loaded: g,
916
920
  count: e.itemCount,
@@ -925,21 +929,21 @@ function gr({
925
929
  const h = (f) => {
926
930
  u("paginate-items"), f === 1 ? t.goToFirstPage() : f === t.page - 1 ? t.goToPreviousPage() : f === t.page + 1 ? t.goToNextPage() : f === t.pageCount && t.goToLastPage();
927
931
  };
928
- return t.error ? /* @__PURE__ */ s(M, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ s(
932
+ return t.error ? /* @__PURE__ */ s(_, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ s(
929
933
  X,
930
934
  {
931
935
  variant: "error",
932
936
  margin: "0",
933
- liveRegion: Se,
937
+ liveRegion: be,
934
938
  liveRegionPoliteness: "assertive",
935
939
  "data-testid": "items-error",
936
940
  children: l("itemsLoadErrorAlert", { message: t.error.message })
937
941
  }
938
- ) }) : t.isLoading ? /* @__PURE__ */ m(M, { as: "div", margin: "small 0 0 0", "data-testid": "items-loading", children: [
939
- /* @__PURE__ */ s(et, { size: "x-small", renderTitle: l("itemsLoadingSpinnerLabel") }),
942
+ ) }) : t.isLoading ? /* @__PURE__ */ m(_, { as: "div", margin: "small 0 0 0", "data-testid": "items-loading", children: [
943
+ /* @__PURE__ */ s(it, { size: "x-small", renderTitle: l("itemsLoadingSpinnerLabel") }),
940
944
  " ",
941
945
  /* @__PURE__ */ s(b, { size: "small", color: "secondary", children: l("itemsLoadingText") })
942
- ] }) : /* @__PURE__ */ m(M, { as: "div", margin: "small 0 0 0", children: [
946
+ ] }) : /* @__PURE__ */ m(_, { as: "div", margin: "small 0 0 0", children: [
943
947
  r ? /* @__PURE__ */ m(b, { size: "x-small", color: "secondary", "data-testid": "items-source", children: [
944
948
  "items source: ",
945
949
  t.source,
@@ -948,26 +952,26 @@ function gr({
948
952
  " of ",
949
953
  t.pageCount
950
954
  ] }) : null,
951
- t.items.length === 0 ? /* @__PURE__ */ s(M, { as: "div", padding: "small", "data-testid": "items-empty", children: /* @__PURE__ */ s(b, { size: "small", color: "secondary", children: l("noItemsEmptyState") }) }) : /* @__PURE__ */ s(Ge, { isUnstyled: !0, margin: "none", "data-testid": "items-list", children: t.items.map((f, I) => /* @__PURE__ */ s(We, { children: /* @__PURE__ */ s(
955
+ t.items.length === 0 ? /* @__PURE__ */ s(_, { as: "div", padding: "small", "data-testid": "items-empty", children: /* @__PURE__ */ s(b, { size: "small", color: "secondary", children: l("noItemsEmptyState") }) }) : /* @__PURE__ */ s(Ye, { isUnstyled: !0, margin: "none", "data-testid": "items-list", children: t.items.map((f, I) => /* @__PURE__ */ s(je, { children: /* @__PURE__ */ s(
952
956
  Bn,
953
957
  {
954
958
  item: f,
955
959
  today: n,
956
- attachedAbove: Ct(f) && He(t.items[I - 1]),
957
- attachedBelow: He(f) && Ct(t.items[I + 1]),
960
+ attachedAbove: Ct(f) && Qe(t.items[I - 1]),
961
+ attachedBelow: Qe(f) && Ct(t.items[I + 1]),
958
962
  stackPill: o,
959
963
  moduleLabel: i,
960
964
  itemNumber: d[I]
961
965
  }
962
966
  ) }, f.id)) }),
963
967
  t.pageCount > 1 ? /* @__PURE__ */ s(
964
- xt,
968
+ Nt,
965
969
  {
966
970
  as: "nav",
967
971
  variant: "compact",
968
972
  withFirstAndLastButton: !0,
969
973
  margin: "small 0 0 0",
970
- label: /* @__PURE__ */ s(zt, { children: l("itemsPaginationLabel", { name: e.name }) }),
974
+ label: /* @__PURE__ */ s(di, { children: l("itemsPaginationLabel", { name: e.name }) }),
971
975
  labelFirst: l("paginationFirstPage"),
972
976
  labelPrev: l("paginationPreviousPage"),
973
977
  labelNext: l("paginationNextPage"),
@@ -983,7 +987,7 @@ function gr({
983
987
  ) : null
984
988
  ] });
985
989
  }
986
- function pr({
990
+ function fr({
987
991
  module: e,
988
992
  expanded: t,
989
993
  onToggle: n,
@@ -995,32 +999,43 @@ function pr({
995
999
  breakpoints: a = {},
996
1000
  toggleRef: d
997
1001
  }) {
998
- var K, q, ee, ce;
999
- const { t: g, timezone: p } = x(), h = Xe(), f = Je(), { navigation: I } = Te(), v = Dn(), L = ((K = e.progress) == null ? void 0 : K.status) === "locked", $ = L ? null : ((q = I.getModuleHref) == null ? void 0 : q.call(I, e)) ?? null, O = u === void 0 ? f.moduleLabel(e.position, e) : u, S = (O == null ? void 0 : O.trim()) || null, C = S ? g("moduleNameWithLabel", { label: S, name: e.name }) : e.name, j = /* @__PURE__ */ s(
1000
- ue,
1002
+ var te, pe, Y, oe, le;
1003
+ const { t: g, timezone: p } = N(), h = tt(), f = nt(), { navigation: I } = Ce(), L = On(), w = ((te = e.progress) == null ? void 0 : te.status) === "locked", x = w ? null : ((pe = I.getModuleHref) == null ? void 0 : pe.call(I, e)) ?? null, k = u === void 0 ? f.moduleLabel(e.position, e) : u, S = (k == null ? void 0 : k.trim()) || null, C = S ? g("moduleNameWithLabel", { label: S, name: e.name }) : e.name, Q = /* @__PURE__ */ s(
1004
+ me,
1001
1005
  {
1002
1006
  level: l,
1003
1007
  variant: "titleCardMini",
1004
- color: L ? "secondary" : "primary",
1008
+ color: w ? "secondary" : "primary",
1005
1009
  "aria-label": C,
1006
1010
  "data-testid": "module-name",
1007
- children: /* @__PURE__ */ s(ui, { themeOverride: dr, children: /* @__PURE__ */ s(ai, { linesAllowed: ur, children: C }) })
1011
+ children: /* @__PURE__ */ s(ui, { themeOverride: cr, children: /* @__PURE__ */ s(ai, { linesAllowed: dr, children: C }) })
1012
+ }
1013
+ ), T = x ? /* @__PURE__ */ s(
1014
+ gi,
1015
+ {
1016
+ href: x,
1017
+ display: "inline-block",
1018
+ forceButtonRole: !1,
1019
+ variant: L,
1020
+ "aria-label": C,
1021
+ onClick: (U) => U.stopPropagation(),
1022
+ children: Q
1008
1023
  }
1009
- ), T = a.mobileOnly === !0, w = () => {
1024
+ ) : Q, A = (((Y = e.completionRequirements) == null ? void 0 : Y.length) ?? 0) > 0 ? /* @__PURE__ */ s(qn, {}) : null, O = a.mobileOnly === !0, $ = () => {
1010
1025
  h(t ? "module-collapse" : "module-expand"), n(e.id);
1011
- }, H = () => {
1012
- var R;
1013
- (R = window.getSelection()) != null && R.toString().trim() || w();
1014
- }, A = (ee = e.progress) != null && ee.status ? /* @__PURE__ */ s(
1015
- qn,
1026
+ }, ee = () => {
1027
+ var U;
1028
+ (U = window.getSelection()) != null && U.toString().trim() || $();
1029
+ }, q = (oe = e.progress) != null && oe.status ? /* @__PURE__ */ s(
1030
+ Dn,
1016
1031
  {
1017
1032
  status: e.progress.status,
1018
1033
  missingCount: e.progress.missingCount,
1019
1034
  incompleteCount: e.progress.incompleteCount
1020
1035
  }
1021
- ) : null, D = ((ce = e.progress) == null ? void 0 : ce.status) !== void 0 && e.progress.status !== "complete" && !L && zn(e.progress.nextDueAt, o, p) ? /* @__PURE__ */ s($n, {}) : null;
1036
+ ) : null, v = ((le = e.progress) == null ? void 0 : le.status) !== void 0 && e.progress.status !== "complete" && !w && zn(e.progress.nextDueAt, o, p) ? /* @__PURE__ */ s($n, {}) : null;
1022
1037
  return /* @__PURE__ */ m(
1023
- M,
1038
+ _,
1024
1039
  {
1025
1040
  as: "div",
1026
1041
  background: "primary",
@@ -1031,57 +1046,49 @@ function pr({
1031
1046
  margin: "0 0 small 0",
1032
1047
  "data-testid": `module-card-${e.id}`,
1033
1048
  children: [
1034
- /* @__PURE__ */ s(M, { as: "div", cursor: "pointer", children: /* @__PURE__ */ m(
1035
- _,
1049
+ /* @__PURE__ */ s(_, { as: "div", cursor: "pointer", children: /* @__PURE__ */ m(
1050
+ M,
1036
1051
  {
1037
1052
  alignItems: "start",
1038
1053
  gap: "mediumSmall",
1039
- onClick: H,
1054
+ onClick: ee,
1040
1055
  "data-testid": "module-header",
1041
1056
  children: [
1042
- /* @__PURE__ */ m(_.Item, { shouldGrow: !0, shouldShrink: !0, children: [
1043
- /* @__PURE__ */ m(M, { as: "div", children: [
1044
- /* @__PURE__ */ s(M, { as: "div", children: $ ? /* @__PURE__ */ s(
1045
- mi,
1046
- {
1047
- href: $,
1048
- display: "inline-block",
1049
- forceButtonRole: !1,
1050
- variant: v,
1051
- "aria-label": C,
1052
- onClick: (R) => R.stopPropagation(),
1053
- children: j
1054
- }
1055
- ) : j }),
1057
+ /* @__PURE__ */ m(M.Item, { shouldGrow: !0, shouldShrink: !0, children: [
1058
+ /* @__PURE__ */ m(_, { as: "div", children: [
1059
+ /* @__PURE__ */ s(_, { as: "div", children: A ? /* @__PURE__ */ m(M, { alignItems: "center", gap: "x-small", wrap: "wrap", children: [
1060
+ /* @__PURE__ */ s(M.Item, { shouldShrink: !0, children: T }),
1061
+ /* @__PURE__ */ s(M.Item, { children: A })
1062
+ ] }) : T }),
1056
1063
  e.published ? null : /* @__PURE__ */ m(b, { size: "x-small", color: "secondary", children: [
1057
1064
  " ",
1058
1065
  g("moduleUnpublishedBadge")
1059
1066
  ] })
1060
1067
  ] }),
1061
- /* @__PURE__ */ s(nr, { module: e, today: o }),
1062
- T && (A || D) ? /* @__PURE__ */ s(M, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ m(_, { gap: "x-small", wrap: "wrap", children: [
1063
- D ? /* @__PURE__ */ s(_.Item, { children: D }) : null,
1064
- A ? /* @__PURE__ */ s(_.Item, { children: A }) : null
1068
+ /* @__PURE__ */ s(ir, { module: e, today: o }),
1069
+ O && (q || v) ? /* @__PURE__ */ s(_, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ m(M, { gap: "x-small", wrap: "wrap", children: [
1070
+ v ? /* @__PURE__ */ s(M.Item, { children: v }) : null,
1071
+ q ? /* @__PURE__ */ s(M.Item, { children: q }) : null
1065
1072
  ] }) }) : null,
1066
- /* @__PURE__ */ s(cr, { module: e, breakpoints: a })
1073
+ /* @__PURE__ */ s(mr, { module: e, breakpoints: a })
1067
1074
  ] }),
1068
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ m(_, { alignItems: "center", gap: "mediumSmall", children: [
1069
- !T && (D || A) ? /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ m(_, { alignItems: "center", gap: "x-small", children: [
1070
- D ? /* @__PURE__ */ s(_.Item, { children: D }) : null,
1071
- A ? /* @__PURE__ */ s(_.Item, { children: A }) : null
1075
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ m(M, { alignItems: "center", gap: "mediumSmall", children: [
1076
+ !O && (v || q) ? /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ m(M, { alignItems: "center", gap: "x-small", children: [
1077
+ v ? /* @__PURE__ */ s(M.Item, { children: v }) : null,
1078
+ q ? /* @__PURE__ */ s(M.Item, { children: q }) : null
1072
1079
  ] }) }) : null,
1073
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ s(
1074
- di,
1080
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ s(
1081
+ ci,
1075
1082
  {
1076
- elementRef: (R) => d == null ? void 0 : d(e.id, R),
1083
+ elementRef: (U) => d == null ? void 0 : d(e.id, U),
1077
1084
  size: "medium",
1078
1085
  withBorder: !0,
1079
1086
  withBackground: !1,
1080
1087
  screenReaderLabel: t ? g("collapseModule", { name: e.name }) : g("expandModule", { name: e.name }),
1081
1088
  "aria-expanded": t,
1082
1089
  "aria-controls": Pt(e.id),
1083
- onClick: (R) => {
1084
- R.stopPropagation(), w();
1090
+ onClick: (U) => {
1091
+ U.stopPropagation(), $();
1085
1092
  },
1086
1093
  "data-testid": `toggle-module-${e.id}`,
1087
1094
  children: t ? /* @__PURE__ */ s(ri, {}) : /* @__PURE__ */ s(si, {})
@@ -1092,13 +1099,13 @@ function pr({
1092
1099
  }
1093
1100
  ) }),
1094
1101
  /* @__PURE__ */ s("div", { id: Pt(e.id), role: "group", "aria-label": e.name, hidden: !t, children: t ? /* @__PURE__ */ s(
1095
- gr,
1102
+ pr,
1096
1103
  {
1097
1104
  module: e,
1098
1105
  state: r,
1099
1106
  today: o,
1100
1107
  showDiagnostics: i,
1101
- stackPill: T,
1108
+ stackPill: O,
1102
1109
  moduleLabel: Nn(e) ? null : S
1103
1110
  }
1104
1111
  ) : null })
@@ -1106,30 +1113,30 @@ function pr({
1106
1113
  }
1107
1114
  );
1108
1115
  }
1109
- const fr = ii(pr), js = ["place_new", "reorganize_all"], en = ["assignment", "discussion", "quiz", "page", "file"], Ye = 1e3, hr = () => ({
1116
+ const hr = ii(fr), Qs = ["place_new", "reorganize_all"], Jt = ["assignment", "discussion", "quiz", "page", "file"], Ke = 1e3, Mr = () => ({
1110
1117
  mode: "place_new",
1111
- contentTypes: [...en],
1118
+ contentTypes: [...Jt],
1112
1119
  setPrerequisites: !0,
1113
1120
  setRequirements: !0,
1114
1121
  direction: ""
1115
1122
  });
1116
- function Mr(e, t) {
1123
+ function _r(e, t) {
1117
1124
  return e(t === "assignment" ? "itemTypeAssignment" : t === "discussion" ? "itemTypeDiscussion" : t === "quiz" ? "itemTypeQuiz" : t === "page" ? "itemTypePage" : "itemTypeFile");
1118
1125
  }
1119
- const je = "prerequisites", Qe = "requirements", _r = (e) => [
1120
- ...e.setPrerequisites ? [je] : [],
1121
- ...e.setRequirements ? [Qe] : []
1126
+ const Ve = "prerequisites", Ze = "requirements", Ir = (e) => [
1127
+ ...e.setPrerequisites ? [Ve] : [],
1128
+ ...e.setRequirements ? [Ze] : []
1122
1129
  ];
1123
- function Ir({
1130
+ function Er({
1124
1131
  input: e,
1125
1132
  errors: t,
1126
1133
  onChange: n,
1127
1134
  disabled: r = !1
1128
1135
  }) {
1129
- const { t: o } = x();
1130
- return /* @__PURE__ */ m(M, { as: "div", "data-testid": "organize-form", children: [
1136
+ const { t: o } = N();
1137
+ return /* @__PURE__ */ m(_, { as: "div", "data-testid": "organize-form", children: [
1131
1138
  /* @__PURE__ */ m(
1132
- Ei,
1139
+ Si,
1133
1140
  {
1134
1141
  name: "organize-mode",
1135
1142
  value: e.mode,
@@ -1156,8 +1163,8 @@ function Ir({
1156
1163
  ]
1157
1164
  }
1158
1165
  ),
1159
- e.mode === "reorganize_all" ? /* @__PURE__ */ s(M, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ s(X, { variant: "warning", margin: "0", "data-testid": "organize-reorganize-warning", children: o("organizeReorganizeWarning") }) }) : null,
1160
- /* @__PURE__ */ s(M, { as: "div", margin: "medium 0 0 0", children: /* @__PURE__ */ s(
1166
+ e.mode === "reorganize_all" ? /* @__PURE__ */ s(_, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ s(X, { variant: "warning", margin: "0", "data-testid": "organize-reorganize-warning", children: o("organizeReorganizeWarning") }) }) : null,
1167
+ /* @__PURE__ */ s(_, { as: "div", margin: "medium 0 0 0", children: /* @__PURE__ */ s(
1161
1168
  It,
1162
1169
  {
1163
1170
  name: "organize-content-types",
@@ -1166,11 +1173,11 @@ function Ir({
1166
1173
  description: o("organizeContentTypesLegend"),
1167
1174
  messages: t.contentTypes ? [{ type: "newError", text: o("organizeErrorPickAContentType") }] : void 0,
1168
1175
  layout: "columns",
1169
- children: en.map((i) => /* @__PURE__ */ s(
1170
- Fe,
1176
+ children: Jt.map((i) => /* @__PURE__ */ s(
1177
+ We,
1171
1178
  {
1172
1179
  value: i,
1173
- label: Mr(o, i),
1180
+ label: _r(o, i),
1174
1181
  disabled: r,
1175
1182
  "data-testid": `organize-content-type-${i}`
1176
1183
  },
@@ -1178,30 +1185,30 @@ function Ir({
1178
1185
  ))
1179
1186
  }
1180
1187
  ) }),
1181
- /* @__PURE__ */ s(M, { as: "div", margin: "medium 0 0 0", children: /* @__PURE__ */ m(
1188
+ /* @__PURE__ */ s(_, { as: "div", margin: "medium 0 0 0", children: /* @__PURE__ */ m(
1182
1189
  It,
1183
1190
  {
1184
1191
  name: "organize-progression",
1185
- value: _r(e),
1192
+ value: Ir(e),
1186
1193
  onChange: (i) => n({
1187
- setPrerequisites: i.includes(je),
1188
- setRequirements: i.includes(Qe)
1194
+ setPrerequisites: i.includes(Ve),
1195
+ setRequirements: i.includes(Ze)
1189
1196
  }),
1190
1197
  description: o("organizeProgressionLegend"),
1191
1198
  children: [
1192
1199
  /* @__PURE__ */ s(
1193
- Fe,
1200
+ We,
1194
1201
  {
1195
- value: je,
1202
+ value: Ve,
1196
1203
  label: o("organizeSetPrerequisites"),
1197
1204
  disabled: r,
1198
1205
  "data-testid": "organize-set-prerequisites"
1199
1206
  }
1200
1207
  ),
1201
1208
  /* @__PURE__ */ s(
1202
- Fe,
1209
+ We,
1203
1210
  {
1204
- value: Qe,
1211
+ value: Ze,
1205
1212
  label: o("organizeSetRequirements"),
1206
1213
  disabled: r,
1207
1214
  "data-testid": "organize-set-requirements"
@@ -1210,34 +1217,34 @@ function Ir({
1210
1217
  ]
1211
1218
  }
1212
1219
  ) }),
1213
- /* @__PURE__ */ m(M, { as: "div", margin: "medium 0 0 0", children: [
1220
+ /* @__PURE__ */ m(_, { as: "div", margin: "medium 0 0 0", children: [
1214
1221
  /* @__PURE__ */ s(
1215
- Si,
1222
+ yi,
1216
1223
  {
1217
1224
  label: o("organizeDirectionLabel"),
1218
1225
  placeholder: o("organizeDirectionPlaceholder"),
1219
1226
  value: e.direction,
1220
- onChange: (i) => n({ direction: i.target.value.slice(0, Ye) }),
1227
+ onChange: (i) => n({ direction: i.target.value.slice(0, Ke) }),
1221
1228
  disabled: r,
1222
1229
  height: "6rem",
1223
1230
  "data-testid": "organize-direction"
1224
1231
  }
1225
1232
  ),
1226
- /* @__PURE__ */ s(M, { as: "div", textAlign: "end", margin: "xx-small 0 0 0", children: /* @__PURE__ */ s(b, { size: "x-small", color: "secondary", "data-testid": "organize-direction-count", children: o("organizeDirectionCount", {
1233
+ /* @__PURE__ */ s(_, { as: "div", textAlign: "end", margin: "xx-small 0 0 0", children: /* @__PURE__ */ s(b, { size: "x-small", color: "secondary", "data-testid": "organize-direction-count", children: o("organizeDirectionCount", {
1227
1234
  used: e.direction.length,
1228
- max: Ye
1235
+ max: Ke
1229
1236
  }) }) })
1230
1237
  ] })
1231
1238
  ] });
1232
1239
  }
1233
- const tn = "organize-preview", nn = (e) => `proposed-module-${e + 1}`, Er = (e) => `${e.contentType}-${e.contentId}`;
1234
- function Sr(e, t) {
1240
+ const en = "organize-preview", tn = (e) => `proposed-module-${e + 1}`, Sr = (e) => `${e.contentType}-${e.contentId}`;
1241
+ function yr(e, t) {
1235
1242
  const n = e.completionRequirement;
1236
1243
  if (n)
1237
1244
  return { itemId: t, type: n.type, minScore: n.minScore ?? null };
1238
1245
  }
1239
- function yr(e, t, n) {
1240
- const r = Er(e);
1246
+ function Tr(e, t, n) {
1247
+ const r = Sr(e);
1241
1248
  return {
1242
1249
  id: r,
1243
1250
  moduleId: t,
@@ -1246,29 +1253,29 @@ function yr(e, t, n) {
1246
1253
  position: n + 1,
1247
1254
  indent: 0,
1248
1255
  published: !0,
1249
- completionRequirement: Sr(e, r) ?? null,
1256
+ completionRequirement: yr(e, r) ?? null,
1250
1257
  extensions: { [Yn]: e.isNew }
1251
1258
  };
1252
1259
  }
1253
- function Tr(e) {
1260
+ function br(e) {
1254
1261
  const t = /* @__PURE__ */ new Map();
1255
1262
  return e.forEach((n, r) => {
1256
1263
  t.set(
1257
1264
  n.position,
1258
- t.has(n.position) ? null : { id: nn(r), name: n.name }
1265
+ t.has(n.position) ? null : { id: tn(r), name: n.name }
1259
1266
  );
1260
1267
  }), t;
1261
1268
  }
1262
- function br(e, t, n) {
1269
+ function Pr(e, t, n) {
1263
1270
  return e.prerequisitePositions.flatMap((r) => {
1264
1271
  const o = n.get(r);
1265
1272
  return !o || o.id === t ? [] : [o];
1266
1273
  });
1267
1274
  }
1268
- function Pr(e) {
1269
- const t = Tr(e.modules), n = [], r = {};
1275
+ function Cr(e) {
1276
+ const t = br(e.modules), n = [], r = {};
1270
1277
  for (const [o, i] of e.modules.entries()) {
1271
- const l = nn(o), u = i.items.map((a, d) => yr(a, l, d));
1278
+ const l = tn(o), u = i.items.map((a, d) => Tr(a, l, d));
1272
1279
  r[l] = u, n.push({
1273
1280
  id: l,
1274
1281
  name: i.name,
@@ -1276,7 +1283,7 @@ function Pr(e) {
1276
1283
  published: !0,
1277
1284
  itemCount: u.length,
1278
1285
  items: u,
1279
- prerequisiteModules: br(i, l, t),
1286
+ prerequisiteModules: Pr(i, l, t),
1280
1287
  requirementCount: i.requirementType === "one" ? 1 : null,
1281
1288
  requireSequentialProgress: !1,
1282
1289
  completionRequirements: u.flatMap(
@@ -1289,107 +1296,107 @@ function Pr(e) {
1289
1296
  }
1290
1297
  });
1291
1298
  }
1292
- return { courseId: tn, modules: n, itemsByModuleId: r };
1299
+ return { courseId: en, modules: n, itemsByModuleId: r };
1293
1300
  }
1294
- const Cr = {
1301
+ const vr = {
1295
1302
  itemsLoadedAnnouncement: ""
1296
1303
  };
1297
- function vr({ proposal: e }) {
1298
- const { t } = x(), n = F(() => Pr(e), [e]), r = F(() => Kn(n), [n]), o = F(() => n.modules.map((l) => l.id), [n]), i = Vn({
1299
- courseId: tn,
1304
+ function Lr({ proposal: e }) {
1305
+ const { t } = N(), n = B(() => Cr(e), [e]), r = B(() => Kn(n), [n]), o = B(() => n.modules.map((l) => l.id), [n]), i = Vn({
1306
+ courseId: en,
1300
1307
  adapter: r,
1301
1308
  itemsMode: "inline",
1302
1309
  initialExpandedModuleIds: o
1303
1310
  });
1304
- return /* @__PURE__ */ m(W, { children: [
1305
- /* @__PURE__ */ s(ue, { level: "h3", margin: "0 0 medium 0", children: t("organizePreviewHeading") }),
1306
- /* @__PURE__ */ s($r, { data: i, headingLevel: "h3" })
1311
+ return /* @__PURE__ */ m(H, { children: [
1312
+ /* @__PURE__ */ s(me, { level: "h3", margin: "0 0 medium 0", children: t("organizePreviewHeading") }),
1313
+ /* @__PURE__ */ s(Ur, { data: i, headingLevel: "h3" })
1307
1314
  ] });
1308
1315
  }
1309
- function Lr({ proposal: e }) {
1310
- const { t } = x(), n = Te(), r = F(() => Vi(n), [n]), [o] = G(
1316
+ function wr({ proposal: e }) {
1317
+ const { t } = N(), n = Ce(), r = B(() => Zi(n), [n]), [o] = W(
1311
1318
  () => new ei({ defaultOptions: { queries: { retry: !1 } } })
1312
1319
  );
1313
- return /* @__PURE__ */ m(M, { as: "div", "data-testid": "organize-proposal-preview", children: [
1320
+ return /* @__PURE__ */ m(_, { as: "div", "data-testid": "organize-proposal-preview", children: [
1314
1321
  e.unplacedItems.length > 0 ? /* @__PURE__ */ m(X, { variant: "warning", margin: "0 0 small 0", "data-testid": "organize-unplaced", children: [
1315
- /* @__PURE__ */ s(M, { as: "div", children: /* @__PURE__ */ s(b, { weight: "bold", children: t("organizeUnplacedHeading", { count: e.unplacedItems.length }) }) }),
1316
- /* @__PURE__ */ s(M, { as: "div", children: /* @__PURE__ */ s(b, { children: t("organizeUnplacedExplanation") }) }),
1317
- /* @__PURE__ */ s(Ge, { margin: "x-small 0 0 0", children: e.unplacedItems.map((i) => /* @__PURE__ */ s(We, { children: i.title }, `${i.contentType}-${i.contentId}`)) })
1322
+ /* @__PURE__ */ s(_, { as: "div", children: /* @__PURE__ */ s(b, { weight: "bold", children: t("organizeUnplacedHeading", { count: e.unplacedItems.length }) }) }),
1323
+ /* @__PURE__ */ s(_, { as: "div", children: /* @__PURE__ */ s(b, { children: t("organizeUnplacedExplanation") }) }),
1324
+ /* @__PURE__ */ s(Ye, { margin: "x-small 0 0 0", children: e.unplacedItems.map((i) => /* @__PURE__ */ s(je, { children: i.title }, `${i.contentType}-${i.contentId}`)) })
1318
1325
  ] }) : null,
1319
1326
  e.warnings.length > 0 ? /* @__PURE__ */ m(X, { variant: "info", margin: "0 0 small 0", "data-testid": "organize-warnings", children: [
1320
- /* @__PURE__ */ s(M, { as: "div", children: /* @__PURE__ */ s(b, { weight: "bold", children: t("organizeWarningsHeading", { count: e.warnings.length }) }) }),
1321
- /* @__PURE__ */ s(Ge, { margin: "x-small 0 0 0", children: e.warnings.map((i) => /* @__PURE__ */ s(We, { children: i }, i)) })
1327
+ /* @__PURE__ */ s(_, { as: "div", children: /* @__PURE__ */ s(b, { weight: "bold", children: t("organizeWarningsHeading", { count: e.warnings.length }) }) }),
1328
+ /* @__PURE__ */ s(Ye, { margin: "x-small 0 0 0", children: e.warnings.map((i) => /* @__PURE__ */ s(je, { children: i }, i)) })
1322
1329
  ] }) : null,
1323
- /* @__PURE__ */ s(ti, { client: o, children: /* @__PURE__ */ s(jn, { translations: Cr, children: /* @__PURE__ */ s(Qn, { value: r, children: /* @__PURE__ */ s(vr, { proposal: e }) }) }) })
1330
+ /* @__PURE__ */ s(ti, { client: o, children: /* @__PURE__ */ s(jn, { translations: vr, children: /* @__PURE__ */ s(Qn, { value: r, children: /* @__PURE__ */ s(Lr, { proposal: e }) }) }) })
1324
1331
  ] });
1325
1332
  }
1326
1333
  function vt(e) {
1327
1334
  const t = {};
1328
- return e.contentTypes.length === 0 && (t.contentTypes = "none_selected"), e.direction.length > Ye && (t.direction = "too_long"), t;
1335
+ return e.contentTypes.length === 0 && (t.contentTypes = "none_selected"), e.direction.length > Ke && (t.direction = "too_long"), t;
1329
1336
  }
1330
- const Lt = (e) => Object.keys(e).length > 0, wr = 1e4, Ar = (e) => e instanceof DOMException && e.name === "AbortError", Rr = (e) => e instanceof Error ? e : new Error(String(e)), kr = { loading: "read", applying: "write" }, wt = (e) => {
1337
+ const Lt = (e) => Object.keys(e).length > 0, Ar = 1e4, Rr = (e) => e instanceof DOMException && e.name === "AbortError", kr = (e) => e instanceof Error ? e : new Error(String(e)), Or = { loading: "read", applying: "write" }, wt = (e) => {
1331
1338
  (e == null ? void 0 : e.kind) === "read" && e.controller.abort();
1332
1339
  };
1333
- function Or({
1340
+ function qr({
1334
1341
  actions: e,
1335
1342
  onApplied: t
1336
1343
  }) {
1337
- const [n, r] = G("form"), [o, i] = G(hr), [l, u] = G(null), [a, d] = G(null), [g, p] = G(!1), h = k(null), f = k(0), I = k(!0);
1338
- B(() => (I.current = !0, () => {
1344
+ const [n, r] = W("form"), [o, i] = W(Mr), [l, u] = W(null), [a, d] = W(null), [g, p] = W(!1), h = R(null), f = R(0), I = R(!0);
1345
+ G(() => (I.current = !0, () => {
1339
1346
  I.current = !1, wt(h.current), h.current = null;
1340
1347
  }), []);
1341
- const v = F(() => vt(o), [o]), L = !Lt(v), $ = U(() => {
1348
+ const L = B(() => vt(o), [o]), w = !Lt(L), x = F(() => {
1342
1349
  wt(h.current), h.current = null, f.current += 1, p(!1);
1343
- }, []), O = U((T) => {
1344
- i((w) => ({ ...w, ...T }));
1345
- }, []), S = U(
1346
- (T, w, H) => {
1347
- $();
1348
- const A = new AbortController(), re = f.current;
1349
- h.current = { kind: kr[T], controller: A }, d(null), r(T);
1350
- const D = () => I.current && f.current === re;
1351
- H({ signal: A.signal, current: D }).catch((K) => {
1352
- A.signal.aborted || Ar(K) || !D() || (d(Rr(K)), r(w));
1350
+ }, []), k = F((T) => {
1351
+ i((A) => ({ ...A, ...T }));
1352
+ }, []), S = F(
1353
+ (T, A, O) => {
1354
+ x();
1355
+ const $ = new AbortController(), ee = f.current;
1356
+ h.current = { kind: Or[T], controller: $ }, d(null), r(T);
1357
+ const q = () => I.current && f.current === ee;
1358
+ O({ signal: $.signal, current: q }).catch((se) => {
1359
+ $.signal.aborted || Rr(se) || !q() || (d(kr(se)), r(A));
1353
1360
  });
1354
1361
  },
1355
- [$]
1356
- ), C = U(() => {
1357
- Lt(vt(o)) || S("loading", "error", async ({ signal: T, current: w }) => {
1358
- const H = await e.organize(o, T);
1359
- T.aborted || !w() || (u(H), r("preview"));
1362
+ [x]
1363
+ ), C = F(() => {
1364
+ Lt(vt(o)) || S("loading", "error", async ({ signal: T, current: A }) => {
1365
+ const O = await e.organize(o, T);
1366
+ T.aborted || !A() || (u(O), r("preview"));
1360
1367
  });
1361
- }, [e, o, S]), Y = U(() => {
1368
+ }, [e, o, S]), j = F(() => {
1362
1369
  l !== null && S("applying", "preview", async ({ signal: T }) => {
1363
1370
  await e.apply(l, o, T), t == null || t();
1364
1371
  });
1365
- }, [e, o, t, l, S]), j = U(() => {
1366
- $(), u(null), d(null), r("form");
1367
- }, [$]);
1368
- return B(() => {
1372
+ }, [e, o, t, l, S]), Q = F(() => {
1373
+ x(), u(null), d(null), r("form");
1374
+ }, [x]);
1375
+ return G(() => {
1369
1376
  if (n !== "loading" && n !== "applying") return;
1370
- const T = setTimeout(() => p(!0), wr);
1377
+ const T = setTimeout(() => p(!0), Ar);
1371
1378
  return () => clearTimeout(T);
1372
1379
  }, [n]), {
1373
1380
  status: n,
1374
1381
  input: o,
1375
- setInput: O,
1376
- errors: v,
1377
- canSubmit: L,
1382
+ setInput: k,
1383
+ errors: L,
1384
+ canSubmit: w,
1378
1385
  proposal: l,
1379
1386
  error: a,
1380
1387
  takingLong: g && (n === "loading" || n === "applying"),
1381
1388
  submit: C,
1382
1389
  regenerate: C,
1383
- apply: Y,
1384
- cancel: j
1390
+ apply: j,
1391
+ cancel: Q
1385
1392
  };
1386
1393
  }
1387
1394
  function At({ label: e, takingLong: t }) {
1388
- const { t: n } = x();
1389
- return /* @__PURE__ */ m(M, { as: "div", padding: "x-large", textAlign: "center", "data-testid": "organize-working", children: [
1390
- /* @__PURE__ */ s(et, { renderTitle: e }),
1391
- /* @__PURE__ */ s(M, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ s(b, { color: "secondary", children: e }) }),
1392
- t ? /* @__PURE__ */ s(M, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ s(b, { size: "small", color: "secondary", "data-testid": "organize-taking-long", children: n("organizeStillWorking") }) }) : null
1395
+ const { t: n } = N();
1396
+ return /* @__PURE__ */ m(_, { as: "div", padding: "x-large", textAlign: "center", "data-testid": "organize-working", children: [
1397
+ /* @__PURE__ */ s(it, { renderTitle: e }),
1398
+ /* @__PURE__ */ s(_, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ s(b, { color: "secondary", children: e }) }),
1399
+ t ? /* @__PURE__ */ s(_, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ s(b, { size: "small", color: "secondary", "data-testid": "organize-taking-long", children: n("organizeStillWorking") }) }) : null
1393
1400
  ] });
1394
1401
  }
1395
1402
  function Dr({
@@ -1399,22 +1406,22 @@ function Dr({
1399
1406
  onApplied: r,
1400
1407
  aiDisclosure: o
1401
1408
  }) {
1402
- const { t: i } = x(), l = k(!0);
1403
- B(() => (l.current = !0, () => {
1409
+ const { t: i } = N(), l = R(!0);
1410
+ G(() => (l.current = !0, () => {
1404
1411
  l.current = !1;
1405
1412
  }), []);
1406
- const u = Or({
1413
+ const u = qr({
1407
1414
  actions: e,
1408
1415
  onApplied: () => {
1409
- N(i("organizeAppliedAnnouncement")), r == null || r(), l.current && n();
1416
+ z(i("organizeAppliedAnnouncement")), r == null || r(), l.current && n();
1410
1417
  }
1411
1418
  }), { status: a, proposal: d, error: g, takingLong: p } = u;
1412
- return B(() => {
1413
- t && (a === "loading" && N(i("organizeLoadingLabel")), a === "applying" && N(i("organizeApplyingLabel")), a === "preview" && g === null && N(i("organizeProposalReadyAnnouncement")));
1414
- }, [t, a, g, i]), B(() => {
1415
- p && N(i("organizeStillWorking"));
1419
+ return G(() => {
1420
+ t && (a === "loading" && z(i("organizeLoadingLabel")), a === "applying" && z(i("organizeApplyingLabel")), a === "preview" && g === null && z(i("organizeProposalReadyAnnouncement")));
1421
+ }, [t, a, g, i]), G(() => {
1422
+ p && z(i("organizeStillWorking"));
1416
1423
  }, [p, i]), /* @__PURE__ */ m(
1417
- hi,
1424
+ Mi,
1418
1425
  {
1419
1426
  open: t,
1420
1427
  onDismiss: n,
@@ -1422,9 +1429,9 @@ function Dr({
1422
1429
  label: i("organizeModalLabel"),
1423
1430
  shouldCloseOnDocumentClick: !1,
1424
1431
  children: [
1425
- /* @__PURE__ */ m(Mi, { children: [
1432
+ /* @__PURE__ */ m(_i, { children: [
1426
1433
  /* @__PURE__ */ s(
1427
- ci,
1434
+ mi,
1428
1435
  {
1429
1436
  placement: "end",
1430
1437
  offset: "small",
@@ -1433,14 +1440,14 @@ function Dr({
1433
1440
  "data-testid": "organize-close-modal"
1434
1441
  }
1435
1442
  ),
1436
- /* @__PURE__ */ m(_, { alignItems: "center", gap: "small", children: [
1437
- /* @__PURE__ */ s(_.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ s(ue, { level: "h2", "data-testid": "organize-modal-title", children: i("organizeModalLabel") }) }),
1438
- o ? /* @__PURE__ */ s(_.Item, { "data-testid": "organize-ai-disclosure", children: o }) : null
1443
+ /* @__PURE__ */ m(M, { alignItems: "center", gap: "small", children: [
1444
+ /* @__PURE__ */ s(M.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ s(me, { level: "h2", "data-testid": "organize-modal-title", children: i("organizeModalLabel") }) }),
1445
+ o ? /* @__PURE__ */ s(M.Item, { "data-testid": "organize-ai-disclosure", children: o }) : null
1439
1446
  ] })
1440
1447
  ] }),
1441
- /* @__PURE__ */ m(_i, { children: [
1448
+ /* @__PURE__ */ m(Ii, { children: [
1442
1449
  a === "form" ? /* @__PURE__ */ s(
1443
- Ir,
1450
+ Er,
1444
1451
  {
1445
1452
  input: u.input,
1446
1453
  errors: u.errors,
@@ -1449,37 +1456,37 @@ function Dr({
1449
1456
  ) : null,
1450
1457
  a === "loading" ? /* @__PURE__ */ s(At, { label: i("organizeLoadingLabel"), takingLong: p }) : null,
1451
1458
  a === "applying" ? /* @__PURE__ */ s(At, { label: i("organizeApplyingLabel"), takingLong: p }) : null,
1452
- a === "preview" && d ? /* @__PURE__ */ m(W, { children: [
1459
+ a === "preview" && d ? /* @__PURE__ */ m(H, { children: [
1453
1460
  g ? /* @__PURE__ */ s(
1454
1461
  X,
1455
1462
  {
1456
1463
  variant: "error",
1457
1464
  margin: "0 0 small 0",
1458
- liveRegion: Se,
1465
+ liveRegion: be,
1459
1466
  liveRegionPoliteness: "assertive",
1460
1467
  "data-testid": "organize-apply-error",
1461
1468
  children: i("organizeApplyFailed", { message: g.message })
1462
1469
  }
1463
1470
  ) : null,
1464
- /* @__PURE__ */ s(Lr, { proposal: d })
1471
+ /* @__PURE__ */ s(wr, { proposal: d })
1465
1472
  ] }) : null,
1466
1473
  a === "error" ? /* @__PURE__ */ s(
1467
1474
  X,
1468
1475
  {
1469
1476
  variant: "error",
1470
1477
  margin: "0",
1471
- liveRegion: Se,
1478
+ liveRegion: be,
1472
1479
  liveRegionPoliteness: "assertive",
1473
1480
  "data-testid": "organize-error",
1474
1481
  children: i("organizeFailed", { message: (g == null ? void 0 : g.message) ?? "" })
1475
1482
  }
1476
1483
  ) : null
1477
1484
  ] }),
1478
- /* @__PURE__ */ m(Ii, { children: [
1479
- a === "form" ? /* @__PURE__ */ m(W, { children: [
1480
- /* @__PURE__ */ s(z, { onClick: n, margin: "0 x-small 0 0", "data-testid": "organize-close", children: i("organizeCancel") }),
1485
+ /* @__PURE__ */ m(Ei, { children: [
1486
+ a === "form" ? /* @__PURE__ */ m(H, { children: [
1487
+ /* @__PURE__ */ s(D, { onClick: n, margin: "0 x-small 0 0", "data-testid": "organize-close", children: i("organizeCancel") }),
1481
1488
  /* @__PURE__ */ s(
1482
- z,
1489
+ D,
1483
1490
  {
1484
1491
  color: "ai-primary",
1485
1492
  onClick: u.submit,
@@ -1489,11 +1496,11 @@ function Dr({
1489
1496
  }
1490
1497
  )
1491
1498
  ] }) : null,
1492
- a === "loading" ? /* @__PURE__ */ s(z, { onClick: u.cancel, "data-testid": "organize-cancel-loading", children: i("organizeCancel") }) : null,
1493
- a === "preview" ? /* @__PURE__ */ m(W, { children: [
1494
- /* @__PURE__ */ s(z, { onClick: u.cancel, margin: "0 x-small 0 0", "data-testid": "organize-back", children: i("organizeStartOver") }),
1499
+ a === "loading" ? /* @__PURE__ */ s(D, { onClick: u.cancel, "data-testid": "organize-cancel-loading", children: i("organizeCancel") }) : null,
1500
+ a === "preview" ? /* @__PURE__ */ m(H, { children: [
1501
+ /* @__PURE__ */ s(D, { onClick: u.cancel, margin: "0 x-small 0 0", "data-testid": "organize-back", children: i("organizeStartOver") }),
1495
1502
  /* @__PURE__ */ s(
1496
- z,
1503
+ D,
1497
1504
  {
1498
1505
  onClick: u.regenerate,
1499
1506
  margin: "0 x-small 0 0",
@@ -1501,28 +1508,28 @@ function Dr({
1501
1508
  children: i("organizeRegenerate")
1502
1509
  }
1503
1510
  ),
1504
- /* @__PURE__ */ s(z, { color: "primary", onClick: u.apply, "data-testid": "organize-apply", children: i("organizeApply") })
1511
+ /* @__PURE__ */ s(D, { color: "primary", onClick: u.apply, "data-testid": "organize-apply", children: i("organizeApply") })
1505
1512
  ] }) : null,
1506
- a === "error" ? /* @__PURE__ */ m(W, { children: [
1507
- /* @__PURE__ */ s(z, { onClick: u.cancel, margin: "0 x-small 0 0", "data-testid": "organize-back", children: i("organizeStartOver") }),
1508
- /* @__PURE__ */ s(z, { color: "primary", onClick: u.submit, "data-testid": "organize-retry", children: i("organizeTryAgain") })
1513
+ a === "error" ? /* @__PURE__ */ m(H, { children: [
1514
+ /* @__PURE__ */ s(D, { onClick: u.cancel, margin: "0 x-small 0 0", "data-testid": "organize-back", children: i("organizeStartOver") }),
1515
+ /* @__PURE__ */ s(D, { color: "primary", onClick: u.submit, "data-testid": "organize-retry", children: i("organizeTryAgain") })
1509
1516
  ] }) : null,
1510
- a === "applying" ? /* @__PURE__ */ s(z, { interaction: "disabled", "data-testid": "organize-applying", children: i("organizeApply") }) : null
1517
+ a === "applying" ? /* @__PURE__ */ s(D, { interaction: "disabled", "data-testid": "organize-applying", children: i("organizeApply") }) : null
1511
1518
  ] })
1512
1519
  ]
1513
1520
  }
1514
1521
  );
1515
1522
  }
1516
- function qr({
1523
+ function zr({
1517
1524
  actions: e,
1518
1525
  onApplied: t,
1519
1526
  aiDisclosure: n,
1520
1527
  display: r = "inline-block"
1521
1528
  }) {
1522
- const { t: o } = x(), [i, l] = G(!1);
1523
- return /* @__PURE__ */ m(W, { children: [
1529
+ const { t: o } = N(), [i, l] = W(!1);
1530
+ return /* @__PURE__ */ m(H, { children: [
1524
1531
  /* @__PURE__ */ s(
1525
- z,
1532
+ D,
1526
1533
  {
1527
1534
  color: "ai-primary",
1528
1535
  display: r,
@@ -1544,14 +1551,14 @@ function qr({
1544
1551
  ) : null
1545
1552
  ] });
1546
1553
  }
1547
- function zr({
1554
+ function Nr({
1548
1555
  counts: e,
1549
1556
  itemsMode: t,
1550
1557
  loadedModules: n
1551
1558
  }) {
1552
1559
  const r = e.listModules + e.listModuleItems;
1553
1560
  return /* @__PURE__ */ s(
1554
- M,
1561
+ _,
1555
1562
  {
1556
1563
  as: "div",
1557
1564
  background: "secondary",
@@ -1560,25 +1567,25 @@ function zr({
1560
1567
  padding: "x-small small",
1561
1568
  margin: "0 0 small 0",
1562
1569
  "data-testid": "dev-diagnostics",
1563
- children: /* @__PURE__ */ m(_, { gap: "medium", wrap: "wrap", children: [
1564
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ s(b, { size: "x-small", weight: "bold", children: "Adapter requests" }) }),
1565
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "request-count-list-modules", children: [
1570
+ children: /* @__PURE__ */ m(M, { gap: "medium", wrap: "wrap", children: [
1571
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ s(b, { size: "x-small", weight: "bold", children: "Adapter requests" }) }),
1572
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "request-count-list-modules", children: [
1566
1573
  "listModules: ",
1567
1574
  e.listModules
1568
1575
  ] }) }),
1569
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "request-count-list-module-items", children: [
1576
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "request-count-list-module-items", children: [
1570
1577
  "listModuleItems: ",
1571
1578
  e.listModuleItems
1572
1579
  ] }) }),
1573
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", weight: "bold", "data-testid": "request-count-total", children: [
1580
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", weight: "bold", "data-testid": "request-count-total", children: [
1574
1581
  "total: ",
1575
1582
  r
1576
1583
  ] }) }),
1577
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "resolved-items-mode", children: [
1584
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "resolved-items-mode", children: [
1578
1585
  "itemsMode: ",
1579
1586
  t ?? "probing…"
1580
1587
  ] }) }),
1581
- /* @__PURE__ */ s(_.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "modules-loaded-count", children: [
1588
+ /* @__PURE__ */ s(M.Item, { children: /* @__PURE__ */ m(b, { size: "x-small", "data-testid": "modules-loaded-count", children: [
1582
1589
  "modules loaded: ",
1583
1590
  n
1584
1591
  ] }) })
@@ -1586,8 +1593,8 @@ function zr({
1586
1593
  }
1587
1594
  );
1588
1595
  }
1589
- const Nr = 200;
1590
- function xr({
1596
+ const xr = 200;
1597
+ function $r({
1591
1598
  data: e,
1592
1599
  today: t,
1593
1600
  requestCounts: n,
@@ -1599,192 +1606,193 @@ function xr({
1599
1606
  organizationAiDisclosure: a,
1600
1607
  breakpoints: d = {}
1601
1608
  }) {
1602
- const { miniTablet: g, tablet: p, desktop: h, desktopNavOpen: f, desktopOnly: I, mobileOnly: v, ICEDesktop: L } = d, $ = F(
1603
- () => ({ miniTablet: g, tablet: p, desktop: h, desktopNavOpen: f, desktopOnly: I, mobileOnly: v, ICEDesktop: L }),
1604
- [g, p, h, f, I, v, L]
1609
+ const { miniTablet: g, tablet: p, desktop: h, desktopNavOpen: f, desktopOnly: I, mobileOnly: L, ICEDesktop: w } = d, x = B(
1610
+ () => ({ miniTablet: g, tablet: p, desktop: h, desktopNavOpen: f, desktopOnly: I, mobileOnly: L, ICEDesktop: w }),
1611
+ [g, p, h, f, I, L, w]
1605
1612
  ), {
1606
- modules: O,
1613
+ modules: k,
1607
1614
  page: S,
1608
1615
  pageCount: C,
1609
- pageSize: Y,
1610
- pageInfo: j,
1616
+ pageSize: j,
1617
+ pageInfo: Q,
1611
1618
  hasNextPage: T,
1612
- hasPreviousPage: w,
1613
- goToFirstPage: H,
1614
- goToPreviousPage: A,
1615
- goToNextPage: re,
1616
- goToLastPage: D,
1617
- isLoading: K,
1618
- isRefreshing: q,
1619
- error: ee,
1620
- itemsMode: ce,
1621
- expandedModuleIds: R,
1622
- expandModule: nt,
1623
- collapseModule: it,
1624
- toggleModule: rt,
1625
- expandModules: on,
1626
- collapseModules: ln,
1627
- expandAllModules: an,
1628
- collapseAllModules: un,
1629
- isPersistingCollapsed: dn,
1630
- getItems: Pe,
1631
- filter: me,
1619
+ hasPreviousPage: A,
1620
+ goToFirstPage: O,
1621
+ goToPreviousPage: $,
1622
+ goToNextPage: ee,
1623
+ goToLastPage: q,
1624
+ isLoading: se,
1625
+ isRefreshing: v,
1626
+ error: te,
1627
+ itemsMode: pe,
1628
+ expandedModuleIds: Y,
1629
+ expandModule: oe,
1630
+ collapseModule: le,
1631
+ toggleModule: U,
1632
+ expandModules: sn,
1633
+ collapseModules: on,
1634
+ expandAllModules: ln,
1635
+ collapseAllModules: an,
1636
+ isPersistingCollapsed: un,
1637
+ getItems: Le,
1638
+ filter: fe,
1632
1639
  setFilter: st,
1633
- filterEntry: cn,
1634
- filterPredicate: Ce
1635
- } = e, { t: E, timezone: ot } = x(), ge = Xe(), { filters: lt } = Te(), mn = F(() => Ze(lt).length > 0, [lt]), at = k(null), ve = k(/* @__PURE__ */ new Map()), Le = k(/* @__PURE__ */ new Map()), Q = v === !0, se = k(null), gn = U((c) => {
1640
+ filterEntry: dn,
1641
+ filterPredicate: we
1642
+ } = e, { t: E, timezone: ot } = N(), he = tt(), { filters: lt } = Ce(), cn = B(() => et(lt).length > 0, [lt]), at = R(null), Ae = R(/* @__PURE__ */ new Map()), Re = R(/* @__PURE__ */ new Map()), K = L === !0, ae = R(null), mn = F((c) => {
1636
1643
  var y, Z;
1637
- (y = ve.current.get(c)) == null || y.scrollIntoView({ behavior: "smooth", block: "start" }), (Z = Le.current.get(c)) == null || Z.focus({ preventScroll: !0 });
1638
- }, []), pn = U((c, y) => {
1639
- y ? Le.current.set(c, y) : Le.current.delete(c);
1640
- }, []), [fn] = G(() => /* @__PURE__ */ new Date()), we = t ?? fn;
1641
- B(() => {
1644
+ (y = Ae.current.get(c)) == null || y.scrollIntoView({ behavior: "smooth", block: "start" }), (Z = Re.current.get(c)) == null || Z.focus({ preventScroll: !0 });
1645
+ }, []), gn = F((c, y) => {
1646
+ y ? Re.current.set(c, y) : Re.current.delete(c);
1647
+ }, []), [pn] = W(() => /* @__PURE__ */ new Date()), ke = t ?? pn;
1648
+ G(() => {
1642
1649
  var y;
1643
- if (se.current === null || q) return;
1644
- const c = se.current === "focusList";
1645
- se.current = null, N(E("pageChangedAnnouncement", { page: S, pageCount: C })), c && ((y = at.current) == null || y.focus());
1646
- }, [q, S, C, E]);
1647
- const Ae = U(
1650
+ if (ae.current === null || v) return;
1651
+ const c = ae.current === "focusList";
1652
+ ae.current = null, z(E("pageChangedAnnouncement", { page: S, pageCount: C })), c && ((y = at.current) == null || y.focus());
1653
+ }, [v, S, C, E]);
1654
+ const Oe = F(
1648
1655
  (c, y = "focusList") => {
1649
- se.current = y, ge("paginate-modules"), c === 1 ? H() : c === S - 1 ? A() : c === S + 1 ? re() : c === C && D();
1656
+ ae.current = y, he("paginate-modules"), c === 1 ? O() : c === S - 1 ? $() : c === S + 1 ? ee() : c === C && q();
1650
1657
  },
1651
- [S, C, H, A, re, D, ge]
1652
- ), Re = F(
1653
- () => O.filter(
1654
- (c) => Ce === void 0 || Ce(c, { today: we, timezone: ot })
1658
+ [S, C, O, $, ee, q, he]
1659
+ ), qe = B(
1660
+ () => k.filter(
1661
+ (c) => we === void 0 || we(c, { today: ke, timezone: ot })
1655
1662
  ),
1656
- [O, Ce, we, ot]
1657
- ), ut = k({
1658
- rows: Re,
1659
- expanded: R,
1663
+ [k, we, ke, ot]
1664
+ ), ut = R({
1665
+ rows: qe,
1666
+ expanded: Y,
1660
1667
  items: /* @__PURE__ */ new Map()
1661
- }), [P, oe] = G(null);
1662
- q ? P === null && oe(ut.current) : (ut.current = {
1663
- rows: Re,
1664
- expanded: R,
1665
- items: new Map(R.map((c) => [c, Pe(c)]))
1666
- }, P !== null && oe(null));
1667
- const V = (P == null ? void 0 : P.rows) ?? Re, ke = (P == null ? void 0 : P.expanded) ?? R, dt = F(() => new Set(ke), [ke]), le = F(
1668
+ }), [P, ue] = W(null);
1669
+ v ? P === null && ue(ut.current) : (ut.current = {
1670
+ rows: qe,
1671
+ expanded: Y,
1672
+ items: new Map(Y.map((c) => [c, Le(c)]))
1673
+ }, P !== null && ue(null));
1674
+ const V = (P == null ? void 0 : P.rows) ?? qe, De = (P == null ? void 0 : P.expanded) ?? Y, dt = B(() => new Set(De), [De]), de = B(
1668
1675
  () => V.filter((c) => dt.has(c.id)).map((c) => c.id),
1669
1676
  [V, dt]
1670
- ), ct = le.length > 0, [Oe, De] = G(!1), pe = le.filter((c) => Pe(c).isLoading).length, te = k(!1);
1671
- B(() => {
1672
- if (Oe) {
1673
- if (pe > 0 && !te.current) {
1674
- te.current = !0, N(E("expandAllLoadingItems", { count: pe }));
1677
+ ), ct = de.length > 0, [ze, Ne] = W(!1), Me = de.filter((c) => Le(c).isLoading).length, ne = R(!1);
1678
+ G(() => {
1679
+ if (ze) {
1680
+ if (Me > 0 && !ne.current) {
1681
+ ne.current = !0, z(E("expandAllLoadingItems", { count: Me }));
1675
1682
  return;
1676
1683
  }
1677
- pe === 0 && (te.current && R.length > 0 && N(E("expandAllItemsLoaded")), te.current = !1, De(!1));
1684
+ Me === 0 && (ne.current && Y.length > 0 && z(E("expandAllItemsLoaded")), ne.current = !1, Ne(!1));
1678
1685
  }
1679
- }, [Oe, pe, R.length, E]);
1680
- const qe = Oe || dn, ze = k(null), Ne = k(!1);
1681
- B(() => {
1686
+ }, [ze, Me, Y.length, E]);
1687
+ const xe = ze || un, $e = R(null), Ue = R(!1);
1688
+ G(() => {
1682
1689
  var c;
1683
- qe || !Ne.current || (Ne.current = !1, (c = ze.current) == null || c.focus());
1684
- }, [qe]);
1685
- const hn = () => {
1686
- if (Ne.current = document.activeElement === ze.current, ct) {
1687
- ge("collapse-all");
1688
- const y = new Set(le);
1689
- De(!1), te.current = !1, me === Ie ? un() : ln(le), P !== null && oe({ ...P, expanded: P.expanded.filter((Z) => !y.has(Z)) }), N(E("modulesCollapsedAnnouncement", { count: le.length }));
1690
+ xe || !Ue.current || (Ue.current = !1, (c = $e.current) == null || c.focus());
1691
+ }, [xe]);
1692
+ const fn = () => {
1693
+ if (Ue.current = document.activeElement === $e.current, ct) {
1694
+ he("collapse-all");
1695
+ const y = new Set(de);
1696
+ Ne(!1), ne.current = !1, fe === ye ? an() : on(de), P !== null && ue({ ...P, expanded: P.expanded.filter((Z) => !y.has(Z)) }), z(E("modulesCollapsedAnnouncement", { count: de.length }));
1690
1697
  return;
1691
1698
  }
1692
- ge("expand-all");
1699
+ he("expand-all");
1693
1700
  const c = V.map((y) => y.id);
1694
- De(!0), te.current = !1, me === Ie ? an() : on(c), P !== null && oe({ ...P, expanded: c }), N(E("modulesExpandedAnnouncement", { count: c.length }));
1695
- }, mt = k(P);
1701
+ Ne(!0), ne.current = !1, fe === ye ? ln() : sn(c), P !== null && ue({ ...P, expanded: c }), z(E("modulesExpandedAnnouncement", { count: c.length }));
1702
+ }, mt = R(P);
1696
1703
  mt.current = P;
1697
- const Mn = U(
1704
+ const hn = F(
1698
1705
  (c) => {
1699
1706
  const y = mt.current;
1700
1707
  if (y === null) {
1701
- rt(c);
1708
+ U(c);
1702
1709
  return;
1703
1710
  }
1704
1711
  const Z = y.expanded.includes(c);
1705
- oe({
1712
+ ue({
1706
1713
  ...y,
1707
- expanded: Z ? y.expanded.filter((En) => En !== c) : [...y.expanded, c]
1708
- }), Z ? it(c) : nt(c);
1714
+ expanded: Z ? y.expanded.filter((In) => In !== c) : [...y.expanded, c]
1715
+ }), Z ? le(c) : oe(c);
1709
1716
  },
1710
- [rt, it, nt]
1711
- ), [_n, gt] = G(!1);
1712
- B(() => {
1713
- if (!q) {
1717
+ [U, le, oe]
1718
+ ), [Mn, gt] = W(!1);
1719
+ G(() => {
1720
+ if (!v) {
1714
1721
  gt(!1);
1715
1722
  return;
1716
1723
  }
1717
- const c = setTimeout(() => gt(!0), Nr);
1724
+ const c = setTimeout(() => gt(!0), xr);
1718
1725
  return () => clearTimeout(c);
1719
- }, [q]);
1720
- const fe = cn !== void 0 && me !== Ie, xe = K || q && V.length === 0, he = V.length === 0 && !xe && !ee, Me = he && fe, $e = i === "h1" ? "h2" : "h3";
1721
- B(() => {
1722
- Me && N(E("filteredEmptyStateTitle"));
1723
- }, [Me, E]);
1724
- const pt = C > 1 || T || w, In = C > 1 && !xe && !he && !Me;
1725
- return /* @__PURE__ */ m(M, { as: o, display: "block", "data-testid": "modules-list", children: [
1726
+ }, [v]);
1727
+ const _e = dn !== void 0 && fe !== ye, Fe = se || v && V.length === 0, Ie = V.length === 0 && !Fe && !te, Ee = Ie && _e, Be = i === "h1" ? "h2" : "h3";
1728
+ G(() => {
1729
+ Ee && z(E("filteredEmptyStateTitle"));
1730
+ }, [Ee, E]);
1731
+ const pt = C > 1 || T || A, _n = C > 1 && !Fe && !Ie && !Ee;
1732
+ return /* @__PURE__ */ m(_, { as: o, display: "block", "data-testid": "modules-list", children: [
1726
1733
  /* @__PURE__ */ s(
1727
1734
  Zn,
1728
1735
  {
1729
- modules: O,
1730
- hasMoreModules: pt || fe,
1731
- continuesBefore: w,
1736
+ modules: k,
1737
+ hasMoreModules: pt || _e,
1738
+ continuesBefore: A,
1732
1739
  continuesAfter: T,
1733
- onModuleClick: gn,
1740
+ onModuleClick: mn,
1734
1741
  pagination: pt ? {
1735
- rangeStart: (S - 1) * Y + 1,
1736
- totalCount: j.totalCount,
1737
- hasPreviousPage: w,
1742
+ rangeStart: (S - 1) * j + 1,
1743
+ totalCount: Q.totalCount,
1744
+ hasPreviousPage: A,
1738
1745
  hasNextPage: T,
1739
- onPreviousPage: () => Ae(S - 1, "keepFocus"),
1740
- onNextPage: () => Ae(S + 1, "keepFocus"),
1741
- disabled: q
1746
+ onPreviousPage: () => Oe(S - 1, "keepFocus"),
1747
+ onNextPage: () => Oe(S + 1, "keepFocus"),
1748
+ disabled: v
1742
1749
  } : void 0
1743
1750
  }
1744
1751
  ),
1745
1752
  r && n ? /* @__PURE__ */ s(
1746
- zr,
1753
+ Nr,
1747
1754
  {
1748
1755
  counts: n,
1749
- itemsMode: ce,
1750
- loadedModules: O.length
1756
+ itemsMode: pe,
1757
+ loadedModules: k.length
1751
1758
  }
1752
1759
  ) : null,
1753
1760
  /* @__PURE__ */ m(
1754
- _,
1761
+ M,
1755
1762
  {
1756
1763
  justifyItems: "end",
1764
+ alignItems: "end",
1757
1765
  gap: "x-small",
1758
1766
  wrap: "wrap",
1759
1767
  margin: "medium 0 0 0",
1760
1768
  "data-testid": "modules-controls",
1761
1769
  children: [
1762
- l ? /* @__PURE__ */ s(_.Item, { shouldGrow: Q, children: /* @__PURE__ */ s(
1763
- qr,
1770
+ l ? /* @__PURE__ */ s(M.Item, { shouldGrow: K, children: /* @__PURE__ */ s(
1771
+ zr,
1764
1772
  {
1765
1773
  actions: l,
1766
1774
  onApplied: u,
1767
1775
  aiDisclosure: a,
1768
- display: Q ? "block" : "inline-block"
1776
+ display: K ? "block" : "inline-block"
1769
1777
  }
1770
1778
  ) }) : null,
1771
- mn ? /* @__PURE__ */ s(_.Item, { shouldGrow: Q, children: /* @__PURE__ */ s(
1772
- Ji,
1779
+ cn ? /* @__PURE__ */ s(M.Item, { shouldGrow: K, children: /* @__PURE__ */ s(
1780
+ er,
1773
1781
  {
1774
- value: me,
1782
+ value: fe,
1775
1783
  onChange: st,
1776
- interaction: he && !fe ? "disabled" : "enabled"
1784
+ interaction: Ie && !_e ? "disabled" : "enabled"
1777
1785
  }
1778
1786
  ) }) : null,
1779
- /* @__PURE__ */ s(_.Item, { shouldGrow: Q, children: /* @__PURE__ */ s(
1780
- z,
1787
+ /* @__PURE__ */ s(M.Item, { shouldGrow: K, children: /* @__PURE__ */ s(
1788
+ D,
1781
1789
  {
1782
1790
  elementRef: (c) => {
1783
- ze.current = c;
1791
+ $e.current = c;
1784
1792
  },
1785
- display: Q ? "block" : "inline-block",
1786
- onClick: hn,
1787
- interaction: V.length === 0 || qe ? "disabled" : "enabled",
1793
+ display: K ? "block" : "inline-block",
1794
+ onClick: fn,
1795
+ interaction: V.length === 0 || xe ? "disabled" : "enabled",
1788
1796
  "data-testid": "expand-collapse-all",
1789
1797
  children: E(ct ? "collapseAllModules" : "expandAllModules")
1790
1798
  }
@@ -1792,21 +1800,21 @@ function xr({
1792
1800
  ]
1793
1801
  }
1794
1802
  ),
1795
- /* @__PURE__ */ m(M, { as: "div", margin: "medium 0 0 0", children: [
1796
- ee ? /* @__PURE__ */ s(
1803
+ /* @__PURE__ */ m(_, { as: "div", margin: "medium 0 0 0", children: [
1804
+ te ? /* @__PURE__ */ s(
1797
1805
  X,
1798
1806
  {
1799
1807
  variant: "error",
1800
1808
  margin: "0 0 small 0",
1801
- liveRegion: Se,
1809
+ liveRegion: be,
1802
1810
  liveRegionPoliteness: "assertive",
1803
1811
  "data-testid": "modules-error",
1804
- children: E("modulesLoadErrorAlert", { message: ee.message })
1812
+ children: E("modulesLoadErrorAlert", { message: te.message })
1805
1813
  }
1806
1814
  ) : null,
1807
- xe ? /* @__PURE__ */ s(M, { as: "div", padding: "large", textAlign: "center", "data-testid": "modules-loading", children: /* @__PURE__ */ s(et, { renderTitle: E("modulesLoadingSpinnerLabel") }) }) : null,
1808
- he && !fe ? /* @__PURE__ */ m(
1809
- M,
1815
+ Fe ? /* @__PURE__ */ s(_, { as: "div", padding: "large", textAlign: "center", "data-testid": "modules-loading", children: /* @__PURE__ */ s(it, { renderTitle: E("modulesLoadingSpinnerLabel") }) }) : null,
1816
+ Ie && !_e ? /* @__PURE__ */ m(
1817
+ _,
1810
1818
  {
1811
1819
  as: "div",
1812
1820
  background: "primary",
@@ -1817,40 +1825,40 @@ function xr({
1817
1825
  textAlign: "center",
1818
1826
  "data-testid": "modules-empty",
1819
1827
  children: [
1820
- /* @__PURE__ */ s(ue, { level: $e, variant: "titleCardLarge", margin: "0 0 x-small 0", children: E("noModulesEmptyStateTitle") }),
1828
+ /* @__PURE__ */ s(me, { level: Be, variant: "titleCardLarge", margin: "0 0 x-small 0", children: E("noModulesEmptyStateTitle") }),
1821
1829
  /* @__PURE__ */ s(b, { color: "secondary", children: E("noModulesEmptyStateDescription") })
1822
1830
  ]
1823
1831
  }
1824
1832
  ) : null,
1825
- Me ? /* @__PURE__ */ m(
1826
- M,
1833
+ Ee ? /* @__PURE__ */ m(
1834
+ _,
1827
1835
  {
1828
1836
  as: "div",
1829
1837
  background: "primary",
1830
1838
  borderRadius: "card.lg",
1831
1839
  borderWidth: "small",
1832
1840
  shadow: "resting",
1833
- padding: Q ? "general.spaceLg general.spaceMd" : "general.space2xl general.spaceXl",
1841
+ padding: K ? "general.spaceLg general.spaceMd" : "general.space2xl general.spaceXl",
1834
1842
  textAlign: "center",
1835
1843
  "data-testid": "modules-filtered-empty",
1836
1844
  children: [
1837
1845
  /* @__PURE__ */ s(
1838
- ue,
1846
+ me,
1839
1847
  {
1840
- level: $e,
1841
- variant: Q ? "titleCardMini" : "titleCardLarge",
1848
+ level: Be,
1849
+ variant: K ? "titleCardMini" : "titleCardLarge",
1842
1850
  margin: "0 0 general.spaceXs 0",
1843
1851
  children: E("filteredEmptyStateTitle")
1844
1852
  }
1845
1853
  ),
1846
- /* @__PURE__ */ s(b, { as: "div", color: "secondary", size: Q ? "small" : void 0, children: E("filteredEmptyStateDescription") }),
1854
+ /* @__PURE__ */ s(b, { as: "div", color: "secondary", size: K ? "small" : void 0, children: E("filteredEmptyStateDescription") }),
1847
1855
  /* @__PURE__ */ s(
1848
- z,
1856
+ D,
1849
1857
  {
1850
1858
  color: "primary",
1851
1859
  margin: "general.spaceLg 0 0 0",
1852
1860
  onClick: () => {
1853
- st(Ie), se.current = "focusList";
1861
+ st(ye), ae.current = "focusList";
1854
1862
  },
1855
1863
  "data-testid": "clear-filters",
1856
1864
  children: E("clearFilters")
@@ -1863,28 +1871,28 @@ function xr({
1863
1871
  "ul",
1864
1872
  {
1865
1873
  ref: at,
1866
- style: { listStyle: "none", margin: 0, padding: 0, opacity: _n ? 0.5 : 1 },
1867
- "aria-busy": q,
1874
+ style: { listStyle: "none", margin: 0, padding: 0, opacity: Mn ? 0.5 : 1 },
1875
+ "aria-busy": v,
1868
1876
  tabIndex: -1,
1869
1877
  "data-testid": "modules-stack",
1870
1878
  children: V.map((c) => /* @__PURE__ */ s(
1871
1879
  "li",
1872
1880
  {
1873
1881
  ref: (y) => {
1874
- y ? ve.current.set(c.id, y) : ve.current.delete(c.id);
1882
+ y ? Ae.current.set(c.id, y) : Ae.current.delete(c.id);
1875
1883
  },
1876
1884
  children: /* @__PURE__ */ s(
1877
- fr,
1885
+ hr,
1878
1886
  {
1879
1887
  module: c,
1880
- expanded: ke.includes(c.id),
1881
- onToggle: Mn,
1882
- itemsState: (P == null ? void 0 : P.items.get(c.id)) ?? Pe(c.id),
1883
- today: we,
1888
+ expanded: De.includes(c.id),
1889
+ onToggle: hn,
1890
+ itemsState: (P == null ? void 0 : P.items.get(c.id)) ?? Le(c.id),
1891
+ today: ke,
1884
1892
  showDiagnostics: r,
1885
- headingLevel: $e,
1886
- breakpoints: $,
1887
- toggleRef: pn
1893
+ headingLevel: Be,
1894
+ breakpoints: x,
1895
+ toggleRef: gn
1888
1896
  }
1889
1897
  )
1890
1898
  },
@@ -1893,8 +1901,8 @@ function xr({
1893
1901
  }
1894
1902
  )
1895
1903
  ] }),
1896
- In ? /* @__PURE__ */ s(
1897
- xt,
1904
+ _n ? /* @__PURE__ */ s(
1905
+ Nt,
1898
1906
  {
1899
1907
  as: "nav",
1900
1908
  variant: "compact",
@@ -1908,17 +1916,17 @@ function xr({
1908
1916
  ellipsis: E("paginationEllipsis"),
1909
1917
  totalPageNumber: C,
1910
1918
  currentPage: S,
1911
- disabled: q,
1912
- onPageChange: (c) => Ae(c),
1919
+ disabled: v,
1920
+ onPageChange: (c) => Oe(c),
1913
1921
  "data-testid": "modules-pagination"
1914
1922
  },
1915
1923
  S
1916
1924
  ) : null
1917
1925
  ] });
1918
1926
  }
1919
- const $r = fi(
1920
- xr
1921
- ), de = [
1927
+ const Ur = hi(
1928
+ $r
1929
+ ), ge = [
1922
1930
  "assignment",
1923
1931
  "quiz",
1924
1932
  "discussion",
@@ -1927,7 +1935,7 @@ const $r = fi(
1927
1935
  "external_url",
1928
1936
  "external_tool",
1929
1937
  "sub_header"
1930
- ], Ke = [
1938
+ ], Xe = [
1931
1939
  "not_started",
1932
1940
  "in_progress",
1933
1941
  "complete",
@@ -1935,30 +1943,30 @@ const $r = fi(
1935
1943
  "incomplete",
1936
1944
  "missing_and_incomplete",
1937
1945
  "locked"
1938
- ], rn = [
1946
+ ], nn = [
1939
1947
  "must_view",
1940
1948
  "must_submit",
1941
1949
  "must_contribute",
1942
1950
  "must_mark_done",
1943
1951
  "min_score",
1944
1952
  "min_percentage"
1945
- ], Ur = ["assignment", "quiz", "discussion"], Fr = ["external_url", "external_tool"], Br = ["assignment", "quiz", "discussion"], Gr = Date.UTC(2025, 0, 6), Wr = 864e5, ie = "1", sn = (e) => new Date(Gr + e * Wr).toISOString(), ye = [
1953
+ ], Fr = ["assignment", "quiz", "discussion"], Br = ["external_url", "external_tool"], Gr = ["assignment", "quiz", "discussion"], Wr = Date.UTC(2025, 0, 6), Hr = 864e5, re = "1", rn = (e) => new Date(Wr + e * Hr).toISOString(), Pe = [
1946
1954
  "min_score",
1947
1955
  "min_percentage"
1948
- ], Hr = rn.filter(
1949
- (e) => !ye.includes(e)
1950
- ), Yr = [
1956
+ ], Yr = nn.filter(
1957
+ (e) => !Pe.includes(e)
1958
+ ), jr = [
1951
1959
  "in_progress",
1952
1960
  "incomplete",
1953
1961
  "missing_and_incomplete"
1954
- ], jr = (e, t, n, r) => {
1955
- const o = n ? rn : Hr, i = n && r ? ye[t % ye.length] : o[Math.floor(t / 3) % o.length];
1962
+ ], Qr = (e, t, n, r) => {
1963
+ const o = n ? nn : Yr, i = n && r ? Pe[t % Pe.length] : o[Math.floor(t / 3) % o.length];
1956
1964
  return i === "min_score" ? { itemId: e, type: i, minScore: 10 } : i === "min_percentage" ? { itemId: e, type: i, minPercentage: 80 } : { itemId: e, type: i };
1957
- }, Qr = (e, t, n, r) => e === "sub_header" ? !1 : n && r || t % 3 === 0, tt = (e) => Ke[(e - 1) % Ke.length], Kr = (e, t) => !Br.includes(e) || e === "discussion" && Math.floor(t / de.length) % 2 === 1 ? null : 5 + t % 4 * 5, Vr = (e, t, n, r) => t ? e === "missing" ? n != null || r % 2 === 0 : e === "missing_and_incomplete" ? r % 2 === 1 : !1 : !1, Zr = (e, t, n, r) => {
1965
+ }, Kr = (e, t, n, r) => e === "sub_header" ? !1 : n && r || t % 3 === 0, rt = (e) => Xe[(e - 1) % Xe.length], Vr = (e, t) => !Gr.includes(e) || e === "discussion" && Math.floor(t / ge.length) % 2 === 1 ? null : 5 + t % 4 * 5, Zr = (e, t, n, r) => t ? e === "missing" ? n != null || r % 2 === 0 : e === "missing_and_incomplete" ? r % 2 === 1 : !1 : !1, Xr = (e, t, n, r) => {
1958
1966
  if (e === "locked") return "locked";
1959
- if (Vr(e, t, n, r)) return "missing";
1967
+ if (Zr(e, t, n, r)) return "missing";
1960
1968
  if (!n) return;
1961
- const o = t && ye.includes(n.type);
1969
+ const o = t && Pe.includes(n.type);
1962
1970
  switch (e) {
1963
1971
  case "not_started":
1964
1972
  case "missing":
@@ -1973,8 +1981,8 @@ const $r = fi(
1973
1981
  default:
1974
1982
  return e;
1975
1983
  }
1976
- }, Xr = (e) => e.status === "complete", Jr = (e, t, n, r, o, i, l, u) => {
1977
- const a = String(e), d = de[r % de.length], g = d === "sub_header", p = Ur.includes(d) && (r % 4 === 0 || o === "missing");
1984
+ }, Jr = (e) => e.status === "complete", es = (e, t, n, r, o, i, l, u) => {
1985
+ const a = String(e), d = ge[r % ge.length], g = d === "sub_header", p = Fr.includes(d) && (r % 4 === 0 || o === "missing");
1978
1986
  return {
1979
1987
  id: n,
1980
1988
  moduleId: a,
@@ -1983,27 +1991,27 @@ const $r = fi(
1983
1991
  position: t + 1,
1984
1992
  indent: t % 5 === 4 ? 1 : 0,
1985
1993
  published: u === "teacher" ? r % 7 !== 0 : !0,
1986
- url: g ? null : `/courses/${ie}/modules/items/${n}`,
1987
- newTab: Fr.includes(d) && r % 2 === 0,
1994
+ url: g ? null : `/courses/${re}/modules/items/${n}`,
1995
+ newTab: Br.includes(d) && r % 2 === 0,
1988
1996
  completionRequirement: l,
1989
- dueAt: p ? sn(r % 90) : null,
1997
+ dueAt: p ? rn(r % 90) : null,
1990
1998
  status: o,
1991
1999
  pointsPossible: i,
1992
- extensions: Ve(
2000
+ extensions: Je(
1993
2001
  void 0,
1994
2002
  r % 37 === 0 ? 5 + r % 4 * 10 : null
1995
2003
  )
1996
2004
  };
1997
- }, es = (e, t, n, r) => {
1998
- const o = tt(e), i = Yr.includes(o), l = [];
2005
+ }, ts = (e, t, n, r) => {
2006
+ const o = rt(e), i = jr.includes(o), l = [];
1999
2007
  let u = 0;
2000
2008
  for (let a = 0; a < t; a += 1) {
2001
- const d = n + a, g = de[d % de.length], p = Kr(g, d), h = p !== null, f = h ? u++ : a, I = String(e * 1e3 + a + 1), v = Qr(g, d, h, i) ? jr(I, d, h, i) : null, L = Zr(o, h, v, f);
2002
- l.push(Jr(e, a, I, d, L, p, v, r));
2009
+ const d = n + a, g = ge[d % ge.length], p = Vr(g, d), h = p !== null, f = h ? u++ : a, I = String(e * 1e3 + a + 1), L = Kr(g, d, h, i) ? Qr(I, d, h, i) : null, w = Xr(o, h, L, f);
2010
+ l.push(es(e, a, I, d, w, p, L, r));
2003
2011
  }
2004
2012
  return l;
2005
- }, ts = (e, t, n, r) => {
2006
- const o = tt(e);
2013
+ }, ns = (e, t, n, r) => {
2014
+ const o = rt(e);
2007
2015
  if (o === "locked" || o === "not_started") return o;
2008
2016
  if (t.length === 0) return "not_started";
2009
2017
  if (!t.some((i) => i.pointsPossible != null) || o === "missing" && n === 0 || o === "incomplete" && r === 0) return "in_progress";
@@ -2013,36 +2021,36 @@ const $r = fi(
2013
2021
  if (r === 0) return "missing";
2014
2022
  }
2015
2023
  return o;
2016
- }, ns = (e) => e.map((n) => n.dueAt).filter((n) => typeof n == "string").sort()[0] ?? null, is = (e, t, n) => {
2017
- const r = t.filter((d) => d.completionRequirement), o = n ?? r.length, i = Math.min(r.filter(Xr).length, o), l = t.filter((d) => d.status === "missing").length, u = t.filter((d) => d.status === "incomplete").length;
2024
+ }, is = (e) => e.map((n) => n.dueAt).filter((n) => typeof n == "string").sort()[0] ?? null, rs = (e, t, n) => {
2025
+ const r = t.filter((d) => d.completionRequirement), o = n ?? r.length, i = Math.min(r.filter(Jr).length, o), l = t.filter((d) => d.status === "missing").length, u = t.filter((d) => d.status === "incomplete").length;
2018
2026
  return {
2019
- status: ts(e, t, l, u),
2027
+ status: ns(e, t, l, u),
2020
2028
  requirementsMet: i,
2021
2029
  requirementCount: o,
2022
2030
  percentComplete: o > 0 ? Math.round(i / o * 100) : 0,
2023
- nextDueAt: ns(t),
2031
+ nextDueAt: is(t),
2024
2032
  missingCount: l,
2025
2033
  incompleteCount: u
2026
2034
  };
2027
- }, rs = (e, t, n) => {
2028
- const r = tt(e), o = e % 2 !== 0 && r !== "incomplete" && r !== "missing_and_incomplete" ? 1 : null;
2035
+ }, ss = (e, t, n) => {
2036
+ const r = rt(e), o = e % 2 !== 0 && r !== "incomplete" && r !== "missing_and_incomplete" ? 1 : null;
2029
2037
  return {
2030
2038
  id: String(e),
2031
2039
  name: `Module ${e}`,
2032
2040
  position: e,
2033
2041
  published: n === "teacher" ? e % 4 !== 0 : !0,
2034
2042
  itemCount: t.length,
2035
- unlockAt: e % 5 === 0 ? sn(e) : null,
2043
+ unlockAt: e % 5 === 0 ? rn(e) : null,
2036
2044
  prerequisiteModules: e > 1 && e % 3 === 0 ? [{ id: String(e - 1), name: `Module ${e - 1}` }] : [],
2037
2045
  requirementCount: o,
2038
2046
  requireSequentialProgress: e % 6 === 0,
2039
2047
  completionRequirements: t.flatMap(
2040
2048
  (i) => i.completionRequirement ? [i.completionRequirement] : []
2041
2049
  ),
2042
- progress: is(e, t, o)
2050
+ progress: rs(e, t, o)
2043
2051
  };
2044
2052
  };
2045
- function ss(e) {
2053
+ function os(e) {
2046
2054
  return {
2047
2055
  courseId: e.courseId,
2048
2056
  modules: e.modules.map(({ progress: t, ...n }) => n),
@@ -2054,31 +2062,31 @@ function ss(e) {
2054
2062
  )
2055
2063
  };
2056
2064
  }
2057
- function be(e, t = {}) {
2058
- const n = t.view ?? "student", r = t.courseId ?? ie, o = [], i = {};
2065
+ function ve(e, t = {}) {
2066
+ const n = t.view ?? "student", r = t.courseId ?? re, o = [], i = {};
2059
2067
  let l = 0;
2060
2068
  e.forEach((a, d) => {
2061
- const g = d + 1, p = es(g, a, l, n);
2062
- l += a, o.push(rs(g, p, n)), i[String(g)] = p;
2069
+ const g = d + 1, p = ts(g, a, l, n);
2070
+ l += a, o.push(ss(g, p, n)), i[String(g)] = p;
2063
2071
  });
2064
2072
  const u = { courseId: r, modules: o, itemsByModuleId: i };
2065
- return n === "teacher" ? ss(u) : u;
2066
- }
2067
- const ae = (e) => `/courses/${ie}/modules/items/${e}`, Rt = "2099-08-31T06:59:00Z", os = "2020-01-06T07:00:00Z", ls = Ke.length, as = 8, us = 120, ds = 25, cs = 250, kt = 8;
2068
- function Qs() {
2069
- return be(Array.from({ length: ls }, () => as));
2073
+ return n === "teacher" ? os(u) : u;
2070
2074
  }
2075
+ const ce = (e) => `/courses/${re}/modules/items/${e}`, Rt = "2099-08-31T06:59:00Z", ls = "2020-01-06T07:00:00Z", as = Xe.length, us = 8, ds = 120, cs = 25, ms = 250, kt = 8;
2071
2076
  function Ks() {
2072
- return be(Array.from({ length: us }, () => ds));
2077
+ return ve(Array.from({ length: as }, () => us));
2073
2078
  }
2074
2079
  function Vs() {
2075
- return be([
2080
+ return ve(Array.from({ length: ds }, () => cs));
2081
+ }
2082
+ function Zs() {
2083
+ return ve([
2076
2084
  kt,
2077
- cs,
2085
+ ms,
2078
2086
  kt
2079
2087
  ]);
2080
2088
  }
2081
- function Zs() {
2089
+ function Xs() {
2082
2090
  const e = (i, l, u) => ({
2083
2091
  id: String(i),
2084
2092
  name: l,
@@ -2106,18 +2114,18 @@ function Zs() {
2106
2114
  unlockAt: Rt,
2107
2115
  prerequisiteModules: [r]
2108
2116
  }),
2109
- e(5, "Locked, and the unlock date has passed", { unlockAt: os })
2117
+ e(5, "Locked, and the unlock date has passed", { unlockAt: ls })
2110
2118
  ];
2111
2119
  return {
2112
- courseId: ie,
2120
+ courseId: re,
2113
2121
  modules: o,
2114
2122
  itemsByModuleId: Object.fromEntries(o.map((i) => [i.id, []]))
2115
2123
  };
2116
2124
  }
2117
- function Xs() {
2118
- return be([]);
2119
- }
2120
2125
  function Js() {
2126
+ return ve([]);
2127
+ }
2128
+ function eo() {
2121
2129
  const t = [
2122
2130
  {
2123
2131
  title: "Every fact: type, due date, points, requirement",
@@ -2146,7 +2154,7 @@ function Js() {
2146
2154
  title: "Career item carrying an estimated duration",
2147
2155
  type: "external_tool",
2148
2156
  completionRequirement: { itemId: "5", type: "must_view" },
2149
- extensions: Ve(void 0, 45)
2157
+ extensions: Je(void 0, 45)
2150
2158
  },
2151
2159
  { title: "A file, ungradeable, so no points at all", type: "file" },
2152
2160
  { title: "External link, opens in a new tab", type: "external_url", newTab: !0 },
@@ -2169,12 +2177,12 @@ function Js() {
2169
2177
  indent: 0,
2170
2178
  published: !0,
2171
2179
  newTab: !1,
2172
- url: ae(r + 1),
2180
+ url: ce(r + 1),
2173
2181
  status: "not_started",
2174
2182
  ...n
2175
2183
  }));
2176
2184
  return {
2177
- courseId: ie,
2185
+ courseId: re,
2178
2186
  modules: [
2179
2187
  {
2180
2188
  id: "1",
@@ -2189,13 +2197,13 @@ function Js() {
2189
2197
  itemsByModuleId: { 1: t }
2190
2198
  };
2191
2199
  }
2192
- function eo() {
2200
+ function to() {
2193
2201
  const t = [
2194
- { title: "Reading: limits from the left and the right", type: "page", url: ae(1) },
2202
+ { title: "Reading: limits from the left and the right", type: "page", url: ce(1) },
2195
2203
  {
2196
2204
  title: "Desmos: interactive limit explorer",
2197
2205
  type: "external_url",
2198
- url: ae(2),
2206
+ url: ce(2),
2199
2207
  newTab: !0
2200
2208
  },
2201
2209
  { title: "Practice", type: "sub_header", url: null },
@@ -2203,9 +2211,9 @@ function eo() {
2203
2211
  {
2204
2212
  title: "Utilizing Triangle Characteristics: Measuring Distances Through Angles, Elevation and the Practical Limits of Indirect Measurement in the Field",
2205
2213
  type: "assignment",
2206
- url: ae(5)
2214
+ url: ce(5)
2207
2215
  },
2208
- { title: "Unit test", type: "quiz", url: ae(6), status: "locked" }
2216
+ { title: "Unit test", type: "quiz", url: ce(6), status: "locked" }
2209
2217
  ].map((n, r) => ({
2210
2218
  id: String(r + 1),
2211
2219
  moduleId: "1",
@@ -2217,7 +2225,7 @@ function eo() {
2217
2225
  ...n
2218
2226
  }));
2219
2227
  return {
2220
- courseId: ie,
2228
+ courseId: re,
2221
2229
  modules: [
2222
2230
  {
2223
2231
  id: "1",
@@ -2233,126 +2241,126 @@ function eo() {
2233
2241
  };
2234
2242
  }
2235
2243
  export {
2236
- Gs as ACTION_ORDER_LTI_FLOOR,
2237
- Ie as ALL_FILTER,
2238
- io as ActionEntrySchema,
2239
- ro as CompletionRequirementSchema,
2240
- so as CompletionRequirementTypeSchema,
2241
- oo as DEFAULT_INLINE_THRESHOLD,
2242
- lo as DEFAULT_ITEM_CONCURRENCY,
2243
- ao as DEFAULT_ITEM_PAGE_SIZE,
2244
- uo as DEFAULT_LOCALE,
2245
- co as DEFAULT_MOBILE_PAGE_SIZE,
2246
- mo as DEFAULT_PAGE_SIZE,
2247
- go as DEFAULT_RETAIN_COLLAPSED_LIMIT,
2248
- po as DEFAULT_STALE_TIME_MS,
2249
- fo as DUE_THIS_WEEK_DAYS,
2250
- ho as EXT_CAREER_ESTIMATED_DURATION_MINUTES,
2244
+ Ws as ACTION_ORDER_LTI_FLOOR,
2245
+ ye as ALL_FILTER,
2246
+ ro as ActionEntrySchema,
2247
+ so as CompletionRequirementSchema,
2248
+ oo as CompletionRequirementTypeSchema,
2249
+ lo as DEFAULT_INLINE_THRESHOLD,
2250
+ ao as DEFAULT_ITEM_CONCURRENCY,
2251
+ uo as DEFAULT_ITEM_PAGE_SIZE,
2252
+ co as DEFAULT_LOCALE,
2253
+ mo as DEFAULT_MOBILE_PAGE_SIZE,
2254
+ go as DEFAULT_PAGE_SIZE,
2255
+ po as DEFAULT_RETAIN_COLLAPSED_LIMIT,
2256
+ fo as DEFAULT_STALE_TIME_MS,
2257
+ ho as DUE_THIS_WEEK_DAYS,
2258
+ Mo as EXT_CAREER_ESTIMATED_DURATION_MINUTES,
2251
2259
  Wn as EXT_ORGANIZE_ADDED_ITEM_COUNT,
2252
2260
  Hn as EXT_ORGANIZE_NEW_MODULE,
2253
2261
  Yn as EXT_ORGANIZE_NEW_PLACEMENT,
2254
2262
  Gn as EXT_SUPPRESS_ITEM_NUMBERING,
2255
- ie as FIXTURE_COURSE_ID,
2256
- Mo as FilterClauseSchema,
2257
- _o as FilterEntrySchema,
2258
- Ji as FilterSelect,
2259
- Fi as GET_MODULES,
2260
- Gi as GET_MODULE_ITEMS,
2261
- bn as INLINE_ITEM_LIMIT,
2262
- Sn as INLINE_QUERY_NODE_BUDGET,
2263
- Io as InMemoryCourseMismatchError,
2264
- Eo as ItemDueSoonPill,
2265
- So as ItemTypeEntrySchema,
2266
- Ye as MAX_DIRECTION_CHARS,
2267
- yo as MetaFieldEntrySchema,
2268
- fr as ModuleCard,
2263
+ re as FIXTURE_COURSE_ID,
2264
+ _o as FilterClauseSchema,
2265
+ Io as FilterEntrySchema,
2266
+ er as FilterSelect,
2267
+ Bi as GET_MODULES,
2268
+ Wi as GET_MODULE_ITEMS,
2269
+ Tn as INLINE_ITEM_LIMIT,
2270
+ En as INLINE_QUERY_NODE_BUDGET,
2271
+ Eo as InMemoryCourseMismatchError,
2272
+ So as ItemDueSoonPill,
2273
+ yo as ItemTypeEntrySchema,
2274
+ Ke as MAX_DIRECTION_CHARS,
2275
+ To as MetaFieldEntrySchema,
2276
+ hr as ModuleCard,
2269
2277
  $n as ModuleDueSoonPill,
2270
2278
  Bn as ModuleItemRow,
2271
- To as ModuleItemSchema,
2272
- bo as ModuleItemStatusPill,
2273
- Po as ModuleItemStatusSchema,
2274
- Co as ModuleItemTypeSchema,
2275
- yn as ModuleItemsPageSchema,
2276
- vo as ModuleProgressSchema,
2277
- Lo as ModuleSchema,
2278
- qn as ModuleStatusPill,
2279
- wo as ModuleStatusSchema,
2280
- Ao as ModulesAnalyticsProvider,
2279
+ bo as ModuleItemSchema,
2280
+ Po as ModuleItemStatusPill,
2281
+ Co as ModuleItemStatusSchema,
2282
+ vo as ModuleItemTypeSchema,
2283
+ Sn as ModuleItemsPageSchema,
2284
+ Lo as ModuleProgressSchema,
2285
+ wo as ModuleSchema,
2286
+ Dn as ModuleStatusPill,
2287
+ Ao as ModuleStatusSchema,
2288
+ Ro as ModulesAnalyticsProvider,
2281
2289
  Qn as ModulesConfigProvider,
2282
- vn as ModulesConfigSchema,
2290
+ Cn as ModulesConfigSchema,
2283
2291
  jn as ModulesI18nProvider,
2284
- $r as ModulesList,
2285
- Ro as ModulesPageInfoSchema,
2286
- Tn as ModulesPageSchema,
2292
+ Ur as ModulesList,
2293
+ ko as ModulesPageInfoSchema,
2294
+ yn as ModulesPageSchema,
2287
2295
  Zn as ModulesProgressBar,
2288
- ji as NEW_PLACEMENT_FIELD,
2289
- en as ORGANIZE_CONTENT_TYPES,
2290
- js as ORGANIZE_MODES,
2291
- wr as ORGANIZE_SLOW_AFTER_MS,
2292
- Ir as OrganizeForm,
2293
- qr as OrganizeModulesButton,
2296
+ Qi as NEW_PLACEMENT_FIELD,
2297
+ Jt as ORGANIZE_CONTENT_TYPES,
2298
+ Qs as ORGANIZE_MODES,
2299
+ Ar as ORGANIZE_SLOW_AFTER_MS,
2300
+ Er as OrganizeForm,
2301
+ zr as OrganizeModulesButton,
2294
2302
  Dr as OrganizeModulesModal,
2295
- tn as PROPOSAL_PREVIEW_COURSE_ID,
2296
- ko as PageInfoSchema,
2297
- Ut as PartialCanvasResponseError,
2298
- Oo as PrerequisiteModuleSchema,
2299
- Lr as ProposalPreview,
2303
+ en as PROPOSAL_PREVIEW_COURSE_ID,
2304
+ Oo as PageInfoSchema,
2305
+ $t as PartialCanvasResponseError,
2306
+ qo as PrerequisiteModuleSchema,
2307
+ wr as ProposalPreview,
2300
2308
  Do as RegistryEntrySchema,
2301
- qo as TYPE_FIELD,
2302
- zo as baseFilters,
2303
- Rn as baseModulesConfig,
2304
- be as buildFixture,
2305
- Xs as courseEmpty,
2306
- Vs as courseFatModule,
2307
- eo as courseItemLinks,
2308
- Js as courseItemRowVariants,
2309
- Ks as courseLarge,
2310
- Zs as courseLockReasons,
2311
- Qs as courseSmall,
2312
- Yi as createActionContext,
2313
- Bs as createCanvasGraphqlAdapter,
2309
+ zo as TYPE_FIELD,
2310
+ No as baseFilters,
2311
+ An as baseModulesConfig,
2312
+ ve as buildFixture,
2313
+ Js as courseEmpty,
2314
+ Zs as courseFatModule,
2315
+ to as courseItemLinks,
2316
+ eo as courseItemRowVariants,
2317
+ Vs as courseLarge,
2318
+ Xs as courseLockReasons,
2319
+ Ks as courseSmall,
2320
+ ji as createActionContext,
2321
+ Gs as createCanvasGraphqlAdapter,
2314
2322
  Kn as createInMemoryAdapter,
2315
- No as createTranslate,
2316
- xo as defaultFormatters,
2317
- hr as defaultOrganizeInput,
2318
- $o as defaultTranslate,
2319
- Uo as filterClauseOf,
2320
- wn as getAddedItemCount,
2321
- Fo as getEstimatedDurationMinutes,
2323
+ xo as createTranslate,
2324
+ $o as defaultFormatters,
2325
+ Mr as defaultOrganizeInput,
2326
+ Uo as defaultTranslate,
2327
+ Fo as filterClauseOf,
2328
+ Ln as getAddedItemCount,
2329
+ Bo as getEstimatedDurationMinutes,
2322
2330
  Lt as hasOrganizeInputErrors,
2323
- Bo as hideUnservableFilters,
2324
- Go as invalidateCourse,
2325
- Pn as invalidateModuleItems,
2331
+ Go as hideUnservableFilters,
2332
+ Wo as invalidateCourse,
2333
+ bn as invalidateModuleItems,
2326
2334
  ft as invalidateModuleList,
2327
- An as isNewPlacement,
2328
- Wo as isPredicateServed,
2329
- Ln as isProposedNewModule,
2330
- ne as mergeRegistry,
2331
- Ho as moduleItemStatusLabel,
2332
- Yo as moduleItemsPrefix,
2333
- jo as moduleStatusLabel,
2334
- Qo as modulesKeys,
2335
- Ko as modulesListPrefix,
2336
- Vi as organizePreviewConfig,
2337
- Hs as partialModulesConfig,
2338
- Pr as proposalToFixture,
2339
- Vo as registrySchema,
2340
- Xt as resolveModulesConfig,
2341
- Zo as servesClause,
2335
+ wn as isNewPlacement,
2336
+ Ho as isPredicateServed,
2337
+ vn as isProposedNewModule,
2338
+ ie as mergeRegistry,
2339
+ Yo as moduleItemStatusLabel,
2340
+ jo as moduleItemsPrefix,
2341
+ Qo as moduleStatusLabel,
2342
+ Ko as modulesKeys,
2343
+ Vo as modulesListPrefix,
2344
+ Zi as organizePreviewConfig,
2345
+ Ys as partialModulesConfig,
2346
+ Cr as proposalToFixture,
2347
+ Zo as registrySchema,
2348
+ Zt as resolveModulesConfig,
2349
+ Xo as servesClause,
2342
2350
  Nn as suppressesItemNumbering,
2343
- Xo as unservableFilters,
2344
- Ys as useActionContext,
2345
- Jo as useFieldVisible,
2346
- Je as useFormatters,
2347
- el as useModules,
2348
- Xe as useModulesAnalytics,
2349
- Te as useModulesConfig,
2350
- x as useModulesI18n,
2351
+ Jo as unservableFilters,
2352
+ js as useActionContext,
2353
+ el as useFieldVisible,
2354
+ nt as useFormatters,
2355
+ tl as useModules,
2356
+ tt as useModulesAnalytics,
2357
+ Ce as useModulesConfig,
2358
+ N as useModulesI18n,
2351
2359
  Vn as useModulesPageData,
2352
- Or as useOrganizeModules,
2360
+ qr as useOrganizeModules,
2353
2361
  vt as validateOrganizeInput,
2354
- Ws as visibleActions,
2355
- Ze as visibleEntries,
2356
- tl as visibleEntry,
2357
- Ve as withEstimatedDurationMinutes
2362
+ Hs as visibleActions,
2363
+ et as visibleEntries,
2364
+ nl as visibleEntry,
2365
+ Je as withEstimatedDurationMinutes
2358
2366
  };