@instructure/platform-modules 1.15.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.
- package/dist/chunks/{ModulesProgressBar-DOUI1JeK.js → ModulesProgressBar-B1oRo549.js} +909 -893
- package/dist/components/FilterSelect.d.ts.map +1 -1
- package/dist/components/ModuleCard.d.ts.map +1 -1
- package/dist/components/ModuleCard.stories.d.ts +2 -0
- package/dist/components/ModuleCard.stories.d.ts.map +1 -1
- package/dist/components/ModuleItemRow.d.ts.map +1 -1
- package/dist/components/ModulesList.d.ts.map +1 -1
- package/dist/components/ModulesProgressBar.d.ts +9 -0
- package/dist/components/ModulesProgressBar.d.ts.map +1 -1
- package/dist/components/StatusPill.d.ts +2 -0
- package/dist/components/StatusPill.d.ts.map +1 -1
- package/dist/edit.js +35 -35
- package/dist/hooks/useItemsMode.d.ts.map +1 -1
- package/dist/index.js +726 -723
- package/locales/en.json +2 -1
- package/package.json +4 -2
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { keepPreviousData as Mn, useQuery as Tn, useQueryClient as Sn, QueryObserver as
|
|
1
|
+
import { keepPreviousData as Mn, useQuery as Tn, useQueryClient as Sn, QueryObserver as Io } from "@tanstack/react-query";
|
|
2
2
|
import kt from "p-limit";
|
|
3
|
-
import { createContext as dt, useContext as
|
|
4
|
-
import { BREAKPOINTS as
|
|
5
|
-
import { jsx as l, jsxs as
|
|
6
|
-
import { useTheme as
|
|
3
|
+
import { createContext as dt, useContext as Ye, useRef as _, useMemo as G, isValidElement as mt, useState as oe, useEffect as me, useCallback as O, memo as Mo, Fragment as wn, cloneElement as To } from "react";
|
|
4
|
+
import { BREAKPOINTS as So } from "@instructure/platform-with-breakpoints";
|
|
5
|
+
import { jsx as l, jsxs as Y } from "react/jsx-runtime";
|
|
6
|
+
import { useTheme as vn } from "@instructure/emotion";
|
|
7
7
|
import { ScreenReaderContent as En } from "@instructure/ui-a11y-content";
|
|
8
|
-
import { Flex as
|
|
9
|
-
import { PlugInstUIIcon as
|
|
8
|
+
import { Flex as N } from "@instructure/ui-flex/v11_7";
|
|
9
|
+
import { PlugInstUIIcon as wo, ExternalLinkInstUIIcon as vo, FileInstUIIcon as Eo, FileTextInstUIIcon as Po, MessagesSquareInstUIIcon as Co, RocketInstUIIcon as _o, FilePenLineInstUIIcon as Ao, ClockInstUIIcon as Do, CalendarInstUIIcon as pt, LockInstUIIcon as gt, CircleAlertInstUIIcon as Te, CircleCheckInstUIIcon as ft, ClockFadingInstUIIcon as ht, CircleDashedInstUIIcon as bt, CornerDownRightInstUIIcon as Lo, IconArrowOpenStartLine as xo, IconArrowOpenEndLine as Ro } from "@instructure/ui-icons";
|
|
10
10
|
import { Link as No } from "@instructure/ui-link/v11_7";
|
|
11
11
|
import { Text as ue } from "@instructure/ui-text/v11_7";
|
|
12
|
-
import { View as
|
|
13
|
-
import { Pill as
|
|
12
|
+
import { View as ae } from "@instructure/ui-view/v11_7";
|
|
13
|
+
import { Pill as Oo } from "@instructure/ui-pill/v11_7";
|
|
14
14
|
import { IconButton as Ft } from "@instructure/ui-buttons/v11_7";
|
|
15
|
-
import { Heading as
|
|
16
|
-
import { Tooltip as
|
|
15
|
+
import { Heading as ko } from "@instructure/ui-heading/v11_7";
|
|
16
|
+
import { Tooltip as Fo } from "@instructure/ui-tooltip/v11_7";
|
|
17
17
|
import { z as a } from "zod";
|
|
18
|
-
import { isValid as rt, colorToRGB as st, overlayColors as
|
|
19
|
-
|
|
18
|
+
import { isValid as rt, colorToRGB as st, overlayColors as qo, alpha as zo, color2hex as Pn, contrast as de, darken as Uo, lighten as $o } from "@instructure/ui-color-utils";
|
|
19
|
+
import { Tag as Cn } from "@instructure/ui-tag/v11_7";
|
|
20
|
+
const Bo = a.object({
|
|
20
21
|
target: a.enum(["module", "item"]),
|
|
21
22
|
field: a.string(),
|
|
22
23
|
op: a.enum(["eq", "contains", "within"]),
|
|
23
24
|
value: a.union([a.string(), a.boolean(), a.number()])
|
|
24
25
|
}).strict();
|
|
25
|
-
function
|
|
26
|
+
function Wo(e, t) {
|
|
26
27
|
const n = e == null ? void 0 : e[t.target];
|
|
27
28
|
return !n || !Object.prototype.hasOwnProperty.call(n, t.field) ? !1 : n[t.field].includes(t.op);
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const Go = a.enum([
|
|
30
31
|
"assignment",
|
|
31
32
|
"quiz",
|
|
32
33
|
"discussion",
|
|
@@ -35,7 +36,7 @@ const Wo = a.enum([
|
|
|
35
36
|
"external_url",
|
|
36
37
|
"external_tool",
|
|
37
38
|
"sub_header"
|
|
38
|
-
]),
|
|
39
|
+
]), jo = a.enum(["not_started", "in_progress", "complete", "incomplete", "missing", "locked"]), Ho = a.enum([
|
|
39
40
|
"not_started",
|
|
40
41
|
"in_progress",
|
|
41
42
|
"complete",
|
|
@@ -43,7 +44,7 @@ const Wo = a.enum([
|
|
|
43
44
|
"incomplete",
|
|
44
45
|
"missing_and_incomplete",
|
|
45
46
|
"locked"
|
|
46
|
-
]),
|
|
47
|
+
]), Ko = a.enum([
|
|
47
48
|
"must_view",
|
|
48
49
|
"must_mark_done",
|
|
49
50
|
"must_contribute",
|
|
@@ -51,61 +52,61 @@ const Wo = a.enum([
|
|
|
51
52
|
"min_score",
|
|
52
53
|
"min_percentage",
|
|
53
54
|
"unknown"
|
|
54
|
-
]),
|
|
55
|
-
status:
|
|
55
|
+
]), Yo = a.object({
|
|
56
|
+
status: Ho.optional(),
|
|
56
57
|
requirementsMet: a.number(),
|
|
57
58
|
requirementCount: a.number(),
|
|
58
59
|
percentComplete: a.number().min(0).max(100),
|
|
59
60
|
nextDueAt: a.string().nullish(),
|
|
60
61
|
missingCount: a.number(),
|
|
61
62
|
incompleteCount: a.number()
|
|
62
|
-
}),
|
|
63
|
+
}), _n = a.object({
|
|
63
64
|
itemId: a.string(),
|
|
64
|
-
type:
|
|
65
|
+
type: Ko,
|
|
65
66
|
minScore: a.number().nullish(),
|
|
66
67
|
minPercentage: a.number().nullish()
|
|
67
|
-
}),
|
|
68
|
+
}), An = a.object({
|
|
68
69
|
id: a.string(),
|
|
69
70
|
moduleId: a.string(),
|
|
70
71
|
title: a.string(),
|
|
71
|
-
type:
|
|
72
|
+
type: Go,
|
|
72
73
|
position: a.number(),
|
|
73
74
|
itemNumber: a.number().optional(),
|
|
74
75
|
indent: a.number(),
|
|
75
76
|
published: a.boolean(),
|
|
76
77
|
url: a.string().nullish(),
|
|
77
78
|
newTab: a.boolean().nullish(),
|
|
78
|
-
completionRequirement:
|
|
79
|
+
completionRequirement: _n.nullish(),
|
|
79
80
|
dueAt: a.string().nullish(),
|
|
80
|
-
status:
|
|
81
|
+
status: jo.optional(),
|
|
81
82
|
pointsPossible: a.number().nullish(),
|
|
82
83
|
extensions: a.record(a.unknown()).optional()
|
|
83
|
-
}),
|
|
84
|
+
}), Qo = a.object({
|
|
84
85
|
id: a.string(),
|
|
85
86
|
name: a.string()
|
|
86
|
-
}),
|
|
87
|
+
}), Vo = a.object({
|
|
87
88
|
id: a.string(),
|
|
88
89
|
name: a.string(),
|
|
89
90
|
position: a.number(),
|
|
90
91
|
published: a.boolean(),
|
|
91
92
|
itemCount: a.number(),
|
|
92
93
|
estimatedDurationMinutes: a.number().optional(),
|
|
93
|
-
items: a.array(
|
|
94
|
+
items: a.array(An).optional(),
|
|
94
95
|
unlockAt: a.string().nullish(),
|
|
95
|
-
prerequisiteModules: a.array(
|
|
96
|
+
prerequisiteModules: a.array(Qo),
|
|
96
97
|
requirementCount: a.number().nullish(),
|
|
97
98
|
requireSequentialProgress: a.boolean(),
|
|
98
|
-
completionRequirements: a.array(
|
|
99
|
-
progress:
|
|
99
|
+
completionRequirements: a.array(_n).optional(),
|
|
100
|
+
progress: Yo.optional(),
|
|
100
101
|
collapsed: a.boolean().nullish(),
|
|
101
102
|
extensions: a.record(a.unknown()).optional()
|
|
102
|
-
}),
|
|
103
|
+
}), Lc = a.object({
|
|
103
104
|
hasNextPage: a.boolean(),
|
|
104
105
|
endCursor: a.string().nullable()
|
|
105
106
|
}).refine((e) => !e.hasNextPage || e.endCursor !== null, {
|
|
106
107
|
message: 'hasNextPage is true but endCursor is null: there is another page and no cursor to ask for it with, which renders a "Load more" that can never load.',
|
|
107
108
|
path: ["endCursor"]
|
|
108
|
-
}),
|
|
109
|
+
}), Dn = a.object({
|
|
109
110
|
hasNextPage: a.boolean(),
|
|
110
111
|
endCursor: a.string().nullable(),
|
|
111
112
|
hasPreviousPage: a.boolean(),
|
|
@@ -115,60 +116,60 @@ const Wo = a.enum([
|
|
|
115
116
|
}).refine((e) => !e.hasNextPage || e.endCursor !== null, {
|
|
116
117
|
message: 'hasNextPage is true but endCursor is null: there is another page and no cursor to ask for it with, which renders a "Load more" that can never load.',
|
|
117
118
|
path: ["endCursor"]
|
|
118
|
-
}),
|
|
119
|
-
modules: a.array(
|
|
120
|
-
pageInfo:
|
|
121
|
-
}),
|
|
122
|
-
items: a.array(
|
|
123
|
-
pageInfo:
|
|
124
|
-
}),
|
|
125
|
-
function
|
|
119
|
+
}), xc = a.object({
|
|
120
|
+
modules: a.array(Vo),
|
|
121
|
+
pageInfo: Dn
|
|
122
|
+
}), Rc = a.object({
|
|
123
|
+
items: a.array(An),
|
|
124
|
+
pageInfo: Dn
|
|
125
|
+
}), Ln = "career.estimatedDurationMinutes";
|
|
126
|
+
function xn(e) {
|
|
126
127
|
var n;
|
|
127
|
-
const t = (n = e.extensions) == null ? void 0 : n[
|
|
128
|
+
const t = (n = e.extensions) == null ? void 0 : n[Ln];
|
|
128
129
|
return typeof t != "number" || !Number.isFinite(t) || t <= 0 ? null : t;
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
-
return t == null ? e : { ...e, [
|
|
131
|
+
function Nc(e, t) {
|
|
132
|
+
return t == null ? e : { ...e, [Ln]: t };
|
|
132
133
|
}
|
|
133
|
-
const
|
|
134
|
-
function
|
|
135
|
-
var t;
|
|
136
|
-
return ((t = e.extensions) == null ? void 0 : t[Vo]) === !0;
|
|
137
|
-
}
|
|
138
|
-
const Zo = "organize.newPlacement", Xo = "organize.newModule", Jo = "organize.addedItemCount";
|
|
139
|
-
function xl(e) {
|
|
134
|
+
const Zo = "modules.suppressItemNumbering";
|
|
135
|
+
function Oc(e) {
|
|
140
136
|
var t;
|
|
141
137
|
return ((t = e.extensions) == null ? void 0 : t[Zo]) === !0;
|
|
142
138
|
}
|
|
143
|
-
|
|
139
|
+
const Xo = "organize.newPlacement", Jo = "organize.newModule", er = "organize.addedItemCount";
|
|
140
|
+
function kc(e) {
|
|
144
141
|
var t;
|
|
145
142
|
return ((t = e.extensions) == null ? void 0 : t[Xo]) === !0;
|
|
146
143
|
}
|
|
147
|
-
function
|
|
144
|
+
function Fc(e) {
|
|
145
|
+
var t;
|
|
146
|
+
return ((t = e.extensions) == null ? void 0 : t[Jo]) === !0;
|
|
147
|
+
}
|
|
148
|
+
function qc(e) {
|
|
148
149
|
var n;
|
|
149
|
-
const t = (n = e.extensions) == null ? void 0 : n[
|
|
150
|
+
const t = (n = e.extensions) == null ? void 0 : n[er];
|
|
150
151
|
return typeof t != "number" || !Number.isInteger(t) || t < 0 ? 0 : t;
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const Rn = dt(null), tr = () => {
|
|
153
154
|
};
|
|
154
|
-
function
|
|
155
|
+
function zc({
|
|
155
156
|
host: e,
|
|
156
157
|
onEvent: t,
|
|
157
158
|
children: n
|
|
158
159
|
}) {
|
|
159
160
|
const o = _(t);
|
|
160
161
|
o.current = t;
|
|
161
|
-
const r =
|
|
162
|
+
const r = G(
|
|
162
163
|
() => (s) => o.current({ event: s, host: e }),
|
|
163
164
|
[e]
|
|
164
165
|
);
|
|
165
|
-
return /* @__PURE__ */ l(
|
|
166
|
+
return /* @__PURE__ */ l(Rn.Provider, { value: r, children: n });
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
168
|
+
function nr() {
|
|
169
|
+
return Ye(Rn) ?? tr;
|
|
169
170
|
}
|
|
170
171
|
const qt = 100, Nn = 2e3;
|
|
171
|
-
class
|
|
172
|
+
class or extends Error {
|
|
172
173
|
constructor(t, n) {
|
|
173
174
|
super(
|
|
174
175
|
`This in-memory adapter was built for course ${t} but was asked for course ${n}. A fixture serves exactly one course.`
|
|
@@ -179,7 +180,7 @@ const zt = (e) => `offset:${e}`, Ut = (e) => {
|
|
|
179
180
|
if (!e) return 0;
|
|
180
181
|
const t = Number.parseInt(e.replace("offset:", ""), 10);
|
|
181
182
|
return Number.isFinite(t) && t >= 0 ? t : 0;
|
|
182
|
-
},
|
|
183
|
+
}, Ue = (e) => {
|
|
183
184
|
if (e != null && e.aborted)
|
|
184
185
|
throw new DOMException("The operation was aborted.", "AbortError");
|
|
185
186
|
};
|
|
@@ -197,7 +198,7 @@ function $t(e, t, n) {
|
|
|
197
198
|
}
|
|
198
199
|
};
|
|
199
200
|
}
|
|
200
|
-
const
|
|
201
|
+
const rr = /* @__PURE__ */ new Map([
|
|
201
202
|
["COMPLETED", (e) => {
|
|
202
203
|
var t;
|
|
203
204
|
return ((t = e.progress) == null ? void 0 : t.status) === "complete";
|
|
@@ -217,7 +218,7 @@ const or = /* @__PURE__ */ new Map([
|
|
|
217
218
|
return ((t = e.progress) == null ? void 0 : t.status) !== "complete" && ((n = e.progress) == null ? void 0 : n.status) !== "in_progress";
|
|
218
219
|
}
|
|
219
220
|
]
|
|
220
|
-
]),
|
|
221
|
+
]), sr = /* @__PURE__ */ new Map([
|
|
221
222
|
["locked", (e) => {
|
|
222
223
|
var t;
|
|
223
224
|
return ((t = e.progress) == null ? void 0 : t.status) === "locked";
|
|
@@ -246,10 +247,10 @@ const or = /* @__PURE__ */ new Map([
|
|
|
246
247
|
var t;
|
|
247
248
|
return ((t = e.progress) == null ? void 0 : t.status) === "not_started";
|
|
248
249
|
}]
|
|
249
|
-
]),
|
|
250
|
+
]), ir = {
|
|
250
251
|
module: { completionStatus: ["eq"], moduleStatus: ["eq"], dueWithinDays: ["within"] }
|
|
251
252
|
};
|
|
252
|
-
function
|
|
253
|
+
function ar(e) {
|
|
253
254
|
const t = Date.parse(e.start), n = Date.parse(e.end);
|
|
254
255
|
return (o) => {
|
|
255
256
|
var i;
|
|
@@ -259,24 +260,24 @@ function ir(e) {
|
|
|
259
260
|
return s >= t && s <= n;
|
|
260
261
|
};
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
+
function lr(e, t) {
|
|
263
264
|
if (e.target === "module" && e.field === "completionStatus" && e.op === "eq") {
|
|
264
|
-
const n = typeof e.value == "string" ?
|
|
265
|
+
const n = typeof e.value == "string" ? rr.get(e.value) : void 0;
|
|
265
266
|
if (!n) throw new Error(`unknown completionStatus "${String(e.value)}"`);
|
|
266
267
|
return n;
|
|
267
268
|
}
|
|
268
269
|
if (e.target === "module" && e.field === "moduleStatus" && e.op === "eq") {
|
|
269
|
-
const n = typeof e.value == "string" ?
|
|
270
|
+
const n = typeof e.value == "string" ? sr.get(e.value) : void 0;
|
|
270
271
|
if (!n) throw new Error(`unknown moduleStatus "${String(e.value)}"`);
|
|
271
272
|
return n;
|
|
272
273
|
}
|
|
273
274
|
if (e.target === "module" && e.field === "dueWithinDays" && e.op === "within") {
|
|
274
275
|
if (!t) throw new Error("A dueWithinDays clause needs a dueRange");
|
|
275
|
-
return
|
|
276
|
+
return ar(t);
|
|
276
277
|
}
|
|
277
278
|
throw new Error(`in-memory adapter cannot compile ${e.target}.${e.field} ${e.op}`);
|
|
278
279
|
}
|
|
279
|
-
function
|
|
280
|
+
function Uc(e, t = {}) {
|
|
280
281
|
const n = (s) => e.itemsByModuleId[s] ?? [], o = (s) => {
|
|
281
282
|
let i = 0;
|
|
282
283
|
return n(s).map(
|
|
@@ -284,10 +285,10 @@ function kl(e, t = {}) {
|
|
|
284
285
|
);
|
|
285
286
|
}, r = (s) => {
|
|
286
287
|
if (s !== e.courseId)
|
|
287
|
-
throw new
|
|
288
|
+
throw new or(e.courseId, s);
|
|
288
289
|
};
|
|
289
290
|
return {
|
|
290
|
-
capabilities:
|
|
291
|
+
capabilities: ir,
|
|
291
292
|
async listModules({
|
|
292
293
|
courseId: s,
|
|
293
294
|
page: i = { kind: "first" },
|
|
@@ -298,13 +299,13 @@ function kl(e, t = {}) {
|
|
|
298
299
|
inlineItemsFirst: g,
|
|
299
300
|
signal: f
|
|
300
301
|
}) {
|
|
301
|
-
var
|
|
302
|
-
|
|
303
|
-
const M = p ? e.modules.filter(
|
|
304
|
-
return { modules: x.map((
|
|
305
|
-
const D = n(
|
|
306
|
-
return { ...
|
|
307
|
-
}), pageInfo:
|
|
302
|
+
var v;
|
|
303
|
+
Ue(f), r(s), (v = t.onRequest) == null || v.call(t, "listModules", { operation: "listModules", courseId: s });
|
|
304
|
+
const M = p ? e.modules.filter(lr(p, h)) : e.modules, { slice: x, pageInfo: k } = $t(M, i, c), A = Math.min(g ?? qt, qt);
|
|
305
|
+
return { modules: x.map((R) => {
|
|
306
|
+
const D = n(R.id), E = d && D.length <= A;
|
|
307
|
+
return { ...R, itemCount: D.length, items: E ? D : void 0 };
|
|
308
|
+
}), pageInfo: k };
|
|
308
309
|
},
|
|
309
310
|
async listModuleItems({
|
|
310
311
|
courseId: s,
|
|
@@ -314,7 +315,7 @@ function kl(e, t = {}) {
|
|
|
314
315
|
signal: p
|
|
315
316
|
}) {
|
|
316
317
|
var f;
|
|
317
|
-
|
|
318
|
+
Ue(p), r(s), (f = t.onRequest) == null || f.call(t, "listModuleItems", { operation: "listModuleItems", courseId: s, moduleId: i });
|
|
318
319
|
const { slice: h, pageInfo: g } = $t(o(i), c, d);
|
|
319
320
|
return { items: h, pageInfo: g };
|
|
320
321
|
},
|
|
@@ -325,7 +326,7 @@ function kl(e, t = {}) {
|
|
|
325
326
|
signal: d
|
|
326
327
|
}) {
|
|
327
328
|
var h;
|
|
328
|
-
|
|
329
|
+
Ue(d), r(s), (h = t.onRequest) == null || h.call(t, "setModuleCollapsed", {
|
|
329
330
|
operation: "setModuleCollapsed",
|
|
330
331
|
courseId: s,
|
|
331
332
|
moduleId: i,
|
|
@@ -340,7 +341,7 @@ function kl(e, t = {}) {
|
|
|
340
341
|
signal: c
|
|
341
342
|
}) {
|
|
342
343
|
var d;
|
|
343
|
-
|
|
344
|
+
Ue(c), r(s), (d = t.onRequest) == null || d.call(t, "setAllModulesCollapsed", {
|
|
344
345
|
operation: "setAllModulesCollapsed",
|
|
345
346
|
courseId: s,
|
|
346
347
|
collapsed: i
|
|
@@ -357,18 +358,18 @@ const Ie = ["platform-modules"], Ne = {
|
|
|
357
358
|
function cr(e) {
|
|
358
359
|
return [...Ie, e, "list"];
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function Ge(e, t) {
|
|
361
362
|
return [...Ie, e, "module", t, "items"];
|
|
362
363
|
}
|
|
363
|
-
function
|
|
364
|
-
const r = o ? Ne.items(t, n, o) :
|
|
364
|
+
function $c(e, t, n, o) {
|
|
365
|
+
const r = o ? Ne.items(t, n, o) : Ge(t, n);
|
|
365
366
|
return e.invalidateQueries({ queryKey: r });
|
|
366
367
|
}
|
|
367
|
-
function
|
|
368
|
+
function Bc(e, t, n) {
|
|
368
369
|
const o = n ? Ne.list(t, n) : cr(t);
|
|
369
370
|
return e.invalidateQueries({ queryKey: o });
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
+
function Wc(e, t) {
|
|
372
373
|
return e.invalidateQueries({ queryKey: Ne.course(t) });
|
|
373
374
|
}
|
|
374
375
|
const it = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -376,206 +377,207 @@ function Bt(e, t) {
|
|
|
376
377
|
const n = Object.entries(t ?? {}).filter(([, o]) => o !== void 0);
|
|
377
378
|
return { ...e, ...Object.fromEntries(n) };
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
+
function Gc(e, t = {}) {
|
|
380
381
|
const n = Object.keys(e).map((r) => [
|
|
381
382
|
r,
|
|
382
383
|
Bt(e[r], it(t, r) ? t[r] : void 0)
|
|
383
384
|
]), o = Object.keys(t).filter((r) => !it(e, r)).sort().map((r) => [r, Bt({}, t[r])]);
|
|
384
385
|
return Object.fromEntries([...n, ...o]);
|
|
385
386
|
}
|
|
386
|
-
function
|
|
387
|
+
function we(e, t) {
|
|
387
388
|
if (!(!it(e, t) || e[t].hidden))
|
|
388
389
|
return e[t];
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
-
return Object.keys(e).filter((t) =>
|
|
392
|
-
}
|
|
393
|
-
const
|
|
394
|
-
pageChangedAnnouncement:
|
|
395
|
-
paginationFirstPage:
|
|
396
|
-
paginationPreviousPage:
|
|
397
|
-
paginationNextPage:
|
|
398
|
-
paginationLastPage:
|
|
399
|
-
paginationPageLabel:
|
|
400
|
-
paginationEllipsis:
|
|
401
|
-
expandAllModules:
|
|
402
|
-
collapseAllModules:
|
|
403
|
-
expandAllLoadingItems:
|
|
404
|
-
expandAllItemsLoaded:
|
|
405
|
-
modulesExpandedAnnouncement:
|
|
406
|
-
modulesCollapsedAnnouncement:
|
|
407
|
-
modulesLoadErrorAlert:
|
|
391
|
+
function On(e) {
|
|
392
|
+
return Object.keys(e).filter((t) => we(e, t) !== void 0).map((t) => ({ ...e[t], key: t })).sort((t, n) => t.order - n.order);
|
|
393
|
+
}
|
|
394
|
+
const ur = "Page %{page} of %{pageCount}", dr = "First page", mr = "Previous page", pr = "Next page", gr = "Last page", fr = "Page %{page}", hr = "…", br = "Expand all modules", yr = "Collapse all modules", Ir = { one: "Loading items in %{count} module…", other: "Loading items in %{count} modules…" }, Mr = "All items loaded", Tr = { one: "%{count} module expanded", other: "%{count} modules expanded" }, Sr = { one: "%{count} module collapsed", other: "%{count} modules collapsed" }, wr = "Modules failed to load: %{message}", vr = "Loading modules", Er = "No modules available yet", Pr = "Modules will appear here once your instructor publishes them. Check back soon or reach out to your instructor for more information.", Cr = "No matching results", _r = "Adjust or clear your filters to see more items.", Ar = "Clear filters", Dr = "Status", Lr = "All", xr = "Not started", Rr = "In progress", Nr = "Complete", Or = "Due soon", kr = "Missing", Fr = "Locked until %{name} is completed.", qr = "Locked until %{prerequisites} are completed.", zr = "%{count} prerequisites", Ur = "%{label}. %{name}", $r = "%{label} %{name}", Br = "%{name} progress", Wr = { one: "%{loaded} of %{count} item loaded in %{name}", other: "%{loaded} of %{count} items loaded in %{name}" }, Gr = "Items failed to load: %{message}", jr = "Loading items", Hr = "Loading…", Kr = "No items.", Yr = "%{name} items pages", Qr = "Page %{page} of %{pageCount} in %{name}", Vr = "(unpublished)", Zr = "Collapse %{name}", Xr = "Expand %{name}", Jr = "Not started", es = "In progress", ts = "All completed", ns = "%{count} Missing", os = "%{count} Incomplete", rs = "%{missing} & %{incomplete}", ss = "Locked", is = "Due soon", as = "Not started", ls = "In progress", cs = "Completed", us = "Incomplete", ds = "Missing", ms = "Locked", ps = "Due soon", gs = "Assignment", fs = "Quiz", hs = "Discussion", bs = "Page", ys = "File", Is = "External URL", Ms = "External tool", Ts = "Text header", Ss = "Item type", ws = "Due date", vs = "Points", Es = "Requirement", Ps = "Estimated duration", Cs = "Publish state", _s = "View the item", As = "Submit the assignment", Ds = "Contribute to the page", Ls = "Mark as done", xs = "Score at least the minimum", Rs = "Score at least %{count}", Ns = "Score at least the minimum percentage", Os = "Score at least %{count}%", ks = "Complete the requirement", Fs = "today, %{time}", qs = "yesterday, %{time}", zs = "tomorrow, %{time}", Us = "%{date}, %{time}", $s = "%{time} (%{zone})", Bs = "Due %{when}", Ws = "Past due %{when}", Gs = "Will unlock on %{when}", js = "Unlocked on %{when}", Hs = "%{duration} to complete", Ks = "%{duration} remaining", Ys = "%{hours}h %{minutes}m", Qs = "%{count}h", Vs = "%{count}m", Zs = { one: "%{count} pt", other: "%{count} pts" }, Xs = "%{met} of %{count}", Js = { one: "%{met} of %{count} requirement met", other: "%{met} of %{count} requirements met" }, ei = "%{percent}%", ti = { one: "%{completedModules} of %{totalModules} module complete", other: "%{completedModules} of %{totalModules} modules complete" }, ni = "(%{itemsSummary})", oi = { one: "%{completedItems} of %{totalItems} item", other: "%{completedItems} of %{totalItems} items" }, ri = "Module progress", si = "Module progress pages", ii = "Modules %{start}–%{end} of %{total}", ai = "%{name}: %{status}", li = "%{count}min", ci = "%{count}hr", ui = "%{hours}hr %{minutes}min", di = "Unpublished", mi = "Untitled item", pi = "opens in a new window", gi = "Organize with AI", fi = "Organize content into modules", hi = "Module progression", bi = "Set module prerequisites", yi = "Set item requirements per module", Ii = "Close", Mi = "What should this do?", Ti = "Place new content only", Si = "Reorganize the whole course", wi = "This rebuilds every module in the course. Existing modules can be renamed, refilled, or removed.", vi = "Content to organize", Ei = "Anything else it should know? (optional)", Pi = "For example: keep the lab work together and put it last.", Ci = "%{used}/%{max}", _i = "Choose at least one kind of content.", Ai = "Organize", Di = "Cancel", Li = "Start over", xi = "Regenerate", Ri = "Apply", Ni = "Try again", Oi = "Organizing your content…", ki = "Creating your modules…", Fi = "Still working. Large courses take longer.", qi = "Your proposal is ready to review.", zi = "Your modules were created.", Ui = "Your content could not be organized: %{message}", $i = "Your modules could not be created: %{message}", Bi = "Proposed modules", Wi = "New module", Gi = { one: "%{count} item added", other: "%{count} items added" }, ji = "New", Hi = "New placement", Ki = { one: "%{count} item was not placed", other: "%{count} items were not placed" }, Yi = "You can still apply this. Anything left out stays where it is.", Qi = { one: "%{count} thing to know", other: "%{count} things to know" }, Vi = "No modules yet", Zi = "Modules you add to this course appear here.", Xi = { one: "%{count} item", other: "%{count} items" }, Ji = "Complete all required items in any order", ea = "Complete all required items in order", ta = "Complete one required item", na = "Required", oa = "Optional", ra = "Required", sa = "Move %{name}", ia = "draggable", aa = "To pick up a module or item, press Space or Enter. Use the arrow keys to move it. Press Space or Enter again to drop it, or press Escape to cancel.", la = "Picked up %{name}.", ca = "%{name} is at position %{position} of %{count}.", ua = "%{name} is at position %{position} of %{count} in %{module}.", da = "%{name} is not over a drop position.", ma = "%{name} was dropped at position %{position} of %{count}.", pa = "%{name} was dropped at position %{position} of %{count} in %{module}.", ga = "%{name} was dropped. It did not move.", fa = "Moving %{name} was canceled.", ha = {
|
|
395
|
+
pageChangedAnnouncement: ur,
|
|
396
|
+
paginationFirstPage: dr,
|
|
397
|
+
paginationPreviousPage: mr,
|
|
398
|
+
paginationNextPage: pr,
|
|
399
|
+
paginationLastPage: gr,
|
|
400
|
+
paginationPageLabel: fr,
|
|
401
|
+
paginationEllipsis: hr,
|
|
402
|
+
expandAllModules: br,
|
|
403
|
+
collapseAllModules: yr,
|
|
404
|
+
expandAllLoadingItems: Ir,
|
|
405
|
+
expandAllItemsLoaded: Mr,
|
|
406
|
+
modulesExpandedAnnouncement: Tr,
|
|
407
|
+
modulesCollapsedAnnouncement: Sr,
|
|
408
|
+
modulesLoadErrorAlert: wr,
|
|
408
409
|
modulesLoadingSpinnerLabel: vr,
|
|
409
|
-
noModulesEmptyStateTitle:
|
|
410
|
-
noModulesEmptyStateDescription:
|
|
411
|
-
filteredEmptyStateTitle:
|
|
412
|
-
filteredEmptyStateDescription:
|
|
413
|
-
clearFilters:
|
|
414
|
-
filterGroupLabel:
|
|
415
|
-
filterAll:
|
|
416
|
-
filterNotStarted:
|
|
417
|
-
filterInProgress:
|
|
410
|
+
noModulesEmptyStateTitle: Er,
|
|
411
|
+
noModulesEmptyStateDescription: Pr,
|
|
412
|
+
filteredEmptyStateTitle: Cr,
|
|
413
|
+
filteredEmptyStateDescription: _r,
|
|
414
|
+
clearFilters: Ar,
|
|
415
|
+
filterGroupLabel: Dr,
|
|
416
|
+
filterAll: Lr,
|
|
417
|
+
filterNotStarted: xr,
|
|
418
|
+
filterInProgress: Rr,
|
|
418
419
|
filterComplete: Nr,
|
|
419
|
-
filterDueThisWeek:
|
|
420
|
-
filterMissing:
|
|
421
|
-
lockedByPrerequisiteByline:
|
|
422
|
-
lockedByPrerequisitesByline:
|
|
423
|
-
lockedByPrerequisitesCount:
|
|
424
|
-
moduleNameWithLabel:
|
|
425
|
-
itemNameWithLabel:
|
|
426
|
-
moduleProgressScreenReaderLabel:
|
|
427
|
-
itemsLoadedAnnouncement:
|
|
428
|
-
itemsLoadErrorAlert:
|
|
429
|
-
itemsLoadingSpinnerLabel:
|
|
430
|
-
itemsLoadingText:
|
|
431
|
-
noItemsEmptyState:
|
|
432
|
-
itemsPaginationLabel:
|
|
433
|
-
itemsPageChangedAnnouncement:
|
|
434
|
-
moduleUnpublishedBadge:
|
|
435
|
-
collapseModule:
|
|
436
|
-
expandModule:
|
|
437
|
-
moduleStatusNotStarted:
|
|
438
|
-
moduleStatusInProgress:
|
|
439
|
-
moduleStatusComplete:
|
|
440
|
-
moduleStatusMissing:
|
|
441
|
-
moduleStatusIncomplete:
|
|
442
|
-
moduleStatusMissingAndIncomplete:
|
|
443
|
-
moduleStatusLocked:
|
|
444
|
-
moduleStatusDueSoon:
|
|
445
|
-
itemStatusNotStarted:
|
|
446
|
-
itemStatusInProgress:
|
|
420
|
+
filterDueThisWeek: Or,
|
|
421
|
+
filterMissing: kr,
|
|
422
|
+
lockedByPrerequisiteByline: Fr,
|
|
423
|
+
lockedByPrerequisitesByline: qr,
|
|
424
|
+
lockedByPrerequisitesCount: zr,
|
|
425
|
+
moduleNameWithLabel: Ur,
|
|
426
|
+
itemNameWithLabel: $r,
|
|
427
|
+
moduleProgressScreenReaderLabel: Br,
|
|
428
|
+
itemsLoadedAnnouncement: Wr,
|
|
429
|
+
itemsLoadErrorAlert: Gr,
|
|
430
|
+
itemsLoadingSpinnerLabel: jr,
|
|
431
|
+
itemsLoadingText: Hr,
|
|
432
|
+
noItemsEmptyState: Kr,
|
|
433
|
+
itemsPaginationLabel: Yr,
|
|
434
|
+
itemsPageChangedAnnouncement: Qr,
|
|
435
|
+
moduleUnpublishedBadge: Vr,
|
|
436
|
+
collapseModule: Zr,
|
|
437
|
+
expandModule: Xr,
|
|
438
|
+
moduleStatusNotStarted: Jr,
|
|
439
|
+
moduleStatusInProgress: es,
|
|
440
|
+
moduleStatusComplete: ts,
|
|
441
|
+
moduleStatusMissing: ns,
|
|
442
|
+
moduleStatusIncomplete: os,
|
|
443
|
+
moduleStatusMissingAndIncomplete: rs,
|
|
444
|
+
moduleStatusLocked: ss,
|
|
445
|
+
moduleStatusDueSoon: is,
|
|
446
|
+
itemStatusNotStarted: as,
|
|
447
|
+
itemStatusInProgress: ls,
|
|
447
448
|
itemStatusComplete: cs,
|
|
448
|
-
itemStatusIncomplete:
|
|
449
|
-
itemStatusMissing:
|
|
450
|
-
itemStatusLocked:
|
|
451
|
-
itemStatusDueSoon:
|
|
452
|
-
itemTypeAssignment:
|
|
453
|
-
itemTypeQuiz:
|
|
454
|
-
itemTypeDiscussion:
|
|
455
|
-
itemTypePage:
|
|
456
|
-
itemTypeFile:
|
|
457
|
-
itemTypeExternalUrl:
|
|
458
|
-
itemTypeExternalTool:
|
|
459
|
-
itemTypeSubHeader:
|
|
460
|
-
metaFieldTypeLabel:
|
|
461
|
-
metaFieldDueAtLabel:
|
|
449
|
+
itemStatusIncomplete: us,
|
|
450
|
+
itemStatusMissing: ds,
|
|
451
|
+
itemStatusLocked: ms,
|
|
452
|
+
itemStatusDueSoon: ps,
|
|
453
|
+
itemTypeAssignment: gs,
|
|
454
|
+
itemTypeQuiz: fs,
|
|
455
|
+
itemTypeDiscussion: hs,
|
|
456
|
+
itemTypePage: bs,
|
|
457
|
+
itemTypeFile: ys,
|
|
458
|
+
itemTypeExternalUrl: Is,
|
|
459
|
+
itemTypeExternalTool: Ms,
|
|
460
|
+
itemTypeSubHeader: Ts,
|
|
461
|
+
metaFieldTypeLabel: Ss,
|
|
462
|
+
metaFieldDueAtLabel: ws,
|
|
462
463
|
metaFieldPointsLabel: vs,
|
|
463
|
-
metaFieldRequirementLabel:
|
|
464
|
-
metaFieldDurationLabel:
|
|
465
|
-
metaFieldPublishStateLabel:
|
|
466
|
-
requirementMustView:
|
|
467
|
-
requirementMustSubmit:
|
|
468
|
-
requirementMustContribute:
|
|
469
|
-
requirementMustMarkDone:
|
|
470
|
-
requirementMinScoreUnknown:
|
|
471
|
-
requirementMinScore:
|
|
464
|
+
metaFieldRequirementLabel: Es,
|
|
465
|
+
metaFieldDurationLabel: Ps,
|
|
466
|
+
metaFieldPublishStateLabel: Cs,
|
|
467
|
+
requirementMustView: _s,
|
|
468
|
+
requirementMustSubmit: As,
|
|
469
|
+
requirementMustContribute: Ds,
|
|
470
|
+
requirementMustMarkDone: Ls,
|
|
471
|
+
requirementMinScoreUnknown: xs,
|
|
472
|
+
requirementMinScore: Rs,
|
|
472
473
|
requirementMinPercentageUnknown: Ns,
|
|
473
|
-
requirementMinPercentage:
|
|
474
|
-
requirementUnknown:
|
|
475
|
-
dateTimeToday:
|
|
476
|
-
dateTimeYesterday:
|
|
477
|
-
dateTimeTomorrow:
|
|
478
|
-
dateTimeWithDate:
|
|
479
|
-
timeWithZone:
|
|
480
|
-
dueByline:
|
|
481
|
-
pastDueByline:
|
|
482
|
-
unlockByline:
|
|
483
|
-
unlockedByline:
|
|
484
|
-
estimatedDurationByline:
|
|
485
|
-
remainingDurationByline:
|
|
486
|
-
estimatedDurationHoursAndMinutes:
|
|
487
|
-
estimatedDurationHours:
|
|
488
|
-
estimatedDurationMinutesAbbreviated:
|
|
489
|
-
pointsAbbreviated:
|
|
490
|
-
progressSummary:
|
|
491
|
-
progressScreenReaderValue:
|
|
492
|
-
moduleProgressOverviewPercentLabel:
|
|
493
|
-
moduleProgressOverviewSummary:
|
|
494
|
-
moduleProgressOverviewDetail:
|
|
495
|
-
moduleProgressOverviewItemsSummary:
|
|
496
|
-
moduleProgressOverviewGroupLabel:
|
|
497
|
-
moduleProgressOverviewPaginationLabel:
|
|
498
|
-
moduleProgressOverviewPageRange:
|
|
499
|
-
moduleProgressSegmentLabel:
|
|
500
|
-
durationMinutes:
|
|
474
|
+
requirementMinPercentage: Os,
|
|
475
|
+
requirementUnknown: ks,
|
|
476
|
+
dateTimeToday: Fs,
|
|
477
|
+
dateTimeYesterday: qs,
|
|
478
|
+
dateTimeTomorrow: zs,
|
|
479
|
+
dateTimeWithDate: Us,
|
|
480
|
+
timeWithZone: $s,
|
|
481
|
+
dueByline: Bs,
|
|
482
|
+
pastDueByline: Ws,
|
|
483
|
+
unlockByline: Gs,
|
|
484
|
+
unlockedByline: js,
|
|
485
|
+
estimatedDurationByline: Hs,
|
|
486
|
+
remainingDurationByline: Ks,
|
|
487
|
+
estimatedDurationHoursAndMinutes: Ys,
|
|
488
|
+
estimatedDurationHours: Qs,
|
|
489
|
+
estimatedDurationMinutesAbbreviated: Vs,
|
|
490
|
+
pointsAbbreviated: Zs,
|
|
491
|
+
progressSummary: Xs,
|
|
492
|
+
progressScreenReaderValue: Js,
|
|
493
|
+
moduleProgressOverviewPercentLabel: ei,
|
|
494
|
+
moduleProgressOverviewSummary: ti,
|
|
495
|
+
moduleProgressOverviewDetail: ni,
|
|
496
|
+
moduleProgressOverviewItemsSummary: oi,
|
|
497
|
+
moduleProgressOverviewGroupLabel: ri,
|
|
498
|
+
moduleProgressOverviewPaginationLabel: si,
|
|
499
|
+
moduleProgressOverviewPageRange: ii,
|
|
500
|
+
moduleProgressSegmentLabel: ai,
|
|
501
|
+
durationMinutes: li,
|
|
501
502
|
durationHours: ci,
|
|
502
|
-
durationHoursAndMinutes:
|
|
503
|
-
itemUnpublishedLabel:
|
|
504
|
-
itemUntitled:
|
|
505
|
-
opensInNewWindow:
|
|
506
|
-
organizeModulesTrigger:
|
|
507
|
-
organizeModalLabel:
|
|
508
|
-
organizeProgressionLegend:
|
|
509
|
-
organizeSetPrerequisites:
|
|
510
|
-
organizeSetRequirements:
|
|
511
|
-
organizeCloseModal:
|
|
512
|
-
organizeModeLegend:
|
|
513
|
-
organizeModePlaceNew:
|
|
514
|
-
organizeModeReorganizeAll:
|
|
515
|
-
organizeReorganizeWarning:
|
|
503
|
+
durationHoursAndMinutes: ui,
|
|
504
|
+
itemUnpublishedLabel: di,
|
|
505
|
+
itemUntitled: mi,
|
|
506
|
+
opensInNewWindow: pi,
|
|
507
|
+
organizeModulesTrigger: gi,
|
|
508
|
+
organizeModalLabel: fi,
|
|
509
|
+
organizeProgressionLegend: hi,
|
|
510
|
+
organizeSetPrerequisites: bi,
|
|
511
|
+
organizeSetRequirements: yi,
|
|
512
|
+
organizeCloseModal: Ii,
|
|
513
|
+
organizeModeLegend: Mi,
|
|
514
|
+
organizeModePlaceNew: Ti,
|
|
515
|
+
organizeModeReorganizeAll: Si,
|
|
516
|
+
organizeReorganizeWarning: wi,
|
|
516
517
|
organizeContentTypesLegend: vi,
|
|
517
|
-
organizeDirectionLabel:
|
|
518
|
-
organizeDirectionPlaceholder:
|
|
519
|
-
organizeDirectionCount:
|
|
520
|
-
organizeErrorPickAContentType:
|
|
521
|
-
organizeSubmit:
|
|
522
|
-
organizeCancel:
|
|
523
|
-
organizeStartOver:
|
|
524
|
-
organizeRegenerate:
|
|
525
|
-
organizeApply:
|
|
518
|
+
organizeDirectionLabel: Ei,
|
|
519
|
+
organizeDirectionPlaceholder: Pi,
|
|
520
|
+
organizeDirectionCount: Ci,
|
|
521
|
+
organizeErrorPickAContentType: _i,
|
|
522
|
+
organizeSubmit: Ai,
|
|
523
|
+
organizeCancel: Di,
|
|
524
|
+
organizeStartOver: Li,
|
|
525
|
+
organizeRegenerate: xi,
|
|
526
|
+
organizeApply: Ri,
|
|
526
527
|
organizeTryAgain: Ni,
|
|
527
|
-
organizeLoadingLabel:
|
|
528
|
-
organizeApplyingLabel:
|
|
529
|
-
organizeStillWorking:
|
|
530
|
-
organizeProposalReadyAnnouncement:
|
|
531
|
-
organizeAppliedAnnouncement:
|
|
532
|
-
organizeFailed:
|
|
533
|
-
organizeApplyFailed:
|
|
534
|
-
organizePreviewHeading:
|
|
535
|
-
organizeNewModuleLabel:
|
|
536
|
-
organizeItemsAddedLabel:
|
|
537
|
-
organizeNewItemPill:
|
|
538
|
-
metaFieldNewPlacementLabel:
|
|
539
|
-
organizeUnplacedHeading:
|
|
540
|
-
organizeUnplacedExplanation:
|
|
541
|
-
organizeWarningsHeading:
|
|
542
|
-
editNoModulesTitle:
|
|
543
|
-
editNoModulesDescription:
|
|
544
|
-
moduleItemCount:
|
|
545
|
-
moduleRequirementAll:
|
|
546
|
-
moduleRequirementAllInOrder:
|
|
547
|
-
moduleRequirementOne:
|
|
548
|
-
itemRequiredTag:
|
|
549
|
-
itemOptionalTag:
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
528
|
+
organizeLoadingLabel: Oi,
|
|
529
|
+
organizeApplyingLabel: ki,
|
|
530
|
+
organizeStillWorking: Fi,
|
|
531
|
+
organizeProposalReadyAnnouncement: qi,
|
|
532
|
+
organizeAppliedAnnouncement: zi,
|
|
533
|
+
organizeFailed: Ui,
|
|
534
|
+
organizeApplyFailed: $i,
|
|
535
|
+
organizePreviewHeading: Bi,
|
|
536
|
+
organizeNewModuleLabel: Wi,
|
|
537
|
+
organizeItemsAddedLabel: Gi,
|
|
538
|
+
organizeNewItemPill: ji,
|
|
539
|
+
metaFieldNewPlacementLabel: Hi,
|
|
540
|
+
organizeUnplacedHeading: Ki,
|
|
541
|
+
organizeUnplacedExplanation: Yi,
|
|
542
|
+
organizeWarningsHeading: Qi,
|
|
543
|
+
editNoModulesTitle: Vi,
|
|
544
|
+
editNoModulesDescription: Zi,
|
|
545
|
+
moduleItemCount: Xi,
|
|
546
|
+
moduleRequirementAll: Ji,
|
|
547
|
+
moduleRequirementAllInOrder: ea,
|
|
548
|
+
moduleRequirementOne: ta,
|
|
549
|
+
itemRequiredTag: na,
|
|
550
|
+
itemOptionalTag: oa,
|
|
551
|
+
moduleRequiredPill: ra,
|
|
552
|
+
dragHandleLabel: sa,
|
|
553
|
+
dragRoleDescription: ia,
|
|
554
|
+
dragInstructions: aa,
|
|
555
|
+
dragPickedUp: la,
|
|
556
|
+
dragOverPosition: ca,
|
|
557
|
+
dragOverPositionInModule: ua,
|
|
558
|
+
dragOverNothing: da,
|
|
559
|
+
dragDroppedPosition: ma,
|
|
560
|
+
dragDroppedPositionInModule: pa,
|
|
561
|
+
dragDroppedNowhere: ga,
|
|
562
|
+
dragCanceled: fa
|
|
563
|
+
}, ba = /%\{(\w+)\}/g, ya = ha, le = "en-US", Ia = /* @__PURE__ */ new Map(), Ma = /* @__PURE__ */ new Map();
|
|
564
|
+
function kn(e, t, n) {
|
|
563
565
|
const o = e.get(t);
|
|
564
566
|
if (o) return o;
|
|
565
567
|
const r = n();
|
|
566
568
|
return e.set(t, r), r;
|
|
567
569
|
}
|
|
568
|
-
function
|
|
569
|
-
return n ? e.replace(
|
|
570
|
+
function Ta(e, t, n) {
|
|
571
|
+
return n ? e.replace(ba, (o, r) => {
|
|
570
572
|
if (!Object.prototype.hasOwnProperty.call(n, r)) return o;
|
|
571
573
|
const s = n[r];
|
|
572
|
-
return typeof s == "number" && Number.isFinite(s) ?
|
|
574
|
+
return typeof s == "number" && Number.isFinite(s) ? kn(Ma, t, () => new Intl.NumberFormat(t)).format(s) : String(s);
|
|
573
575
|
}) : e;
|
|
574
576
|
}
|
|
575
|
-
function
|
|
577
|
+
function Sa(e, t, n) {
|
|
576
578
|
const o = n == null ? void 0 : n.count;
|
|
577
579
|
if (typeof o == "number" && Number.isFinite(o)) {
|
|
578
|
-
const r =
|
|
580
|
+
const r = kn(Ia, t, () => new Intl.PluralRules(t)).select(o), s = e[r];
|
|
579
581
|
if (typeof s == "string") return s;
|
|
580
582
|
}
|
|
581
583
|
return typeof e.other == "string" ? e.other : void 0;
|
|
@@ -583,35 +585,35 @@ function Ma(e, t, n) {
|
|
|
583
585
|
function Wt(e, t, n) {
|
|
584
586
|
if (typeof e == "string") return e;
|
|
585
587
|
if (e !== null && typeof e == "object")
|
|
586
|
-
return
|
|
588
|
+
return Sa(e, t, n);
|
|
587
589
|
}
|
|
588
590
|
const Gt = /* @__PURE__ */ new Set();
|
|
589
|
-
function
|
|
591
|
+
function wa(e) {
|
|
590
592
|
Gt.has(e) || (Gt.add(e), console.warn(
|
|
591
593
|
`[platform-modules] no translation for "${e}"; it will render as itself. Add it to the catalog passed to ModulesI18nProvider.`
|
|
592
594
|
));
|
|
593
595
|
}
|
|
594
|
-
function
|
|
596
|
+
function va(e, t, n, o, r) {
|
|
595
597
|
const s = Wt(e == null ? void 0 : e[t], n, r);
|
|
596
598
|
if (typeof s == "string") return s;
|
|
597
|
-
const i = Wt(
|
|
598
|
-
return typeof i == "string" ? i : (o &&
|
|
599
|
+
const i = Wt(ya[t], n, r);
|
|
600
|
+
return typeof i == "string" ? i : (o && wa(t), t);
|
|
599
601
|
}
|
|
600
|
-
function
|
|
601
|
-
return (o, r) =>
|
|
602
|
+
function Fn(e, t = le, n = !1) {
|
|
603
|
+
return (o, r) => Ta(va(e, o, t, n, r), t, r);
|
|
602
604
|
}
|
|
603
|
-
const
|
|
604
|
-
function
|
|
605
|
+
const Ea = Fn(), Pa = { t: Ea, locale: le }, at = dt(null);
|
|
606
|
+
function jc({
|
|
605
607
|
translations: e,
|
|
606
608
|
locale: t,
|
|
607
609
|
timezone: n,
|
|
608
610
|
warnOnMissingKey: o,
|
|
609
611
|
children: r
|
|
610
612
|
}) {
|
|
611
|
-
const s =
|
|
612
|
-
const c = (s == null ? void 0 : s.translations) === void 0 ? e : { ...s.translations, ...e }, d = t ?? (s == null ? void 0 : s.locale) ??
|
|
613
|
+
const s = Ye(at), i = G(() => {
|
|
614
|
+
const c = (s == null ? void 0 : s.translations) === void 0 ? e : { ...s.translations, ...e }, d = t ?? (s == null ? void 0 : s.locale) ?? le;
|
|
613
615
|
return {
|
|
614
|
-
t:
|
|
616
|
+
t: Fn(c, d, o),
|
|
615
617
|
locale: d,
|
|
616
618
|
timezone: n ?? (s == null ? void 0 : s.timezone),
|
|
617
619
|
translations: c
|
|
@@ -619,11 +621,11 @@ function $l({
|
|
|
619
621
|
}, [s, e, t, n, o]);
|
|
620
622
|
return /* @__PURE__ */ l(at.Provider, { value: i, children: r });
|
|
621
623
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
624
|
+
function X() {
|
|
625
|
+
return Ye(at) ?? Pa;
|
|
624
626
|
}
|
|
625
|
-
const
|
|
626
|
-
function
|
|
627
|
+
const lt = 864e5, ct = "en-US", jt = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ new Map();
|
|
628
|
+
function Ca(e) {
|
|
627
629
|
const t = Ht.get(e);
|
|
628
630
|
if (t) return t;
|
|
629
631
|
const n = new Intl.NumberFormat(e, { useGrouping: !1 });
|
|
@@ -644,7 +646,7 @@ function Kt(e, t) {
|
|
|
644
646
|
timeZone: t
|
|
645
647
|
}),
|
|
646
648
|
zone: t ? new Intl.DateTimeFormat(e, { timeZone: t, timeZoneName: "short" }) : void 0,
|
|
647
|
-
civilDay: new Intl.DateTimeFormat(
|
|
649
|
+
civilDay: new Intl.DateTimeFormat(ct, {
|
|
648
650
|
year: "numeric",
|
|
649
651
|
month: "numeric",
|
|
650
652
|
day: "numeric",
|
|
@@ -666,23 +668,23 @@ function yt(e, t) {
|
|
|
666
668
|
return jt.set(o, s), s;
|
|
667
669
|
}
|
|
668
670
|
function Yt(e, t) {
|
|
669
|
-
return new Date(
|
|
671
|
+
return new Date(je(e, t)).getUTCFullYear();
|
|
670
672
|
}
|
|
671
|
-
function
|
|
673
|
+
function _a(e, t) {
|
|
672
674
|
var o;
|
|
673
675
|
const n = (o = e.zone) == null ? void 0 : o.formatToParts(t).find((r) => r.type === "timeZoneName");
|
|
674
676
|
return (n == null ? void 0 : n.value) ?? null;
|
|
675
677
|
}
|
|
676
|
-
function
|
|
678
|
+
function qn(e, t) {
|
|
677
679
|
var n;
|
|
678
680
|
return Number((n = e.find((o) => o.type === t)) == null ? void 0 : n.value);
|
|
679
681
|
}
|
|
680
|
-
function
|
|
681
|
-
const n = e.civilDay.formatToParts(t), o = (r) =>
|
|
682
|
+
function je(e, t) {
|
|
683
|
+
const n = e.civilDay.formatToParts(t), o = (r) => qn(n, r);
|
|
682
684
|
return Date.UTC(o("year"), o("month") - 1, o("day"));
|
|
683
685
|
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
686
|
+
function Aa(e, t, n) {
|
|
687
|
+
return Wn(yt(le, n), e, t);
|
|
686
688
|
}
|
|
687
689
|
const Qt = {
|
|
688
690
|
hour12: !1,
|
|
@@ -693,19 +695,19 @@ const Qt = {
|
|
|
693
695
|
minute: "numeric",
|
|
694
696
|
second: "numeric"
|
|
695
697
|
}, Vt = /* @__PURE__ */ new Map();
|
|
696
|
-
function
|
|
698
|
+
function Da(e) {
|
|
697
699
|
const t = e || void 0, n = t ?? "", o = Vt.get(n);
|
|
698
700
|
if (o) return o;
|
|
699
701
|
let r;
|
|
700
702
|
try {
|
|
701
|
-
r = new Intl.DateTimeFormat(
|
|
703
|
+
r = new Intl.DateTimeFormat(ct, { ...Qt, timeZone: t });
|
|
702
704
|
} catch {
|
|
703
|
-
r = new Intl.DateTimeFormat(
|
|
705
|
+
r = new Intl.DateTimeFormat(ct, Qt);
|
|
704
706
|
}
|
|
705
707
|
return Vt.set(n, r), r;
|
|
706
708
|
}
|
|
707
709
|
function Zt(e, t) {
|
|
708
|
-
const n =
|
|
710
|
+
const n = Da(e).formatToParts(t), o = (s) => qn(n, s);
|
|
709
711
|
return Date.UTC(
|
|
710
712
|
o("year"),
|
|
711
713
|
o("month") - 1,
|
|
@@ -716,55 +718,55 @@ function Zt(e, t) {
|
|
|
716
718
|
) - Math.floor(t.getTime() / 1e3) * 1e3;
|
|
717
719
|
}
|
|
718
720
|
function Xt(e, t) {
|
|
719
|
-
const n =
|
|
721
|
+
const n = je(yt(le, t), e), o = new Date(n - Zt(t, e));
|
|
720
722
|
return n - Zt(t, o);
|
|
721
723
|
}
|
|
722
|
-
function
|
|
723
|
-
const o = Xt(e, n), r = new Date(o + t *
|
|
724
|
+
function La(e, t, n) {
|
|
725
|
+
const o = Xt(e, n), r = new Date(o + t * lt + lt / 2);
|
|
724
726
|
return {
|
|
725
727
|
start: e.toISOString(),
|
|
726
728
|
end: new Date(Xt(r, n) - 1).toISOString()
|
|
727
729
|
};
|
|
728
730
|
}
|
|
729
|
-
const
|
|
730
|
-
function
|
|
731
|
+
const zn = 7;
|
|
732
|
+
function Un(e) {
|
|
731
733
|
if (!e) return null;
|
|
732
734
|
const t = new Date(e);
|
|
733
735
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
734
736
|
}
|
|
735
|
-
function
|
|
736
|
-
const o =
|
|
737
|
-
return o === null ||
|
|
737
|
+
function $n(e, t, n) {
|
|
738
|
+
const o = Un(e);
|
|
739
|
+
return o === null || Bn(e, t) ? !1 : Aa(o, t, n) < zn;
|
|
738
740
|
}
|
|
739
|
-
function
|
|
740
|
-
const n =
|
|
741
|
+
function Bn(e, t) {
|
|
742
|
+
const n = Un(e);
|
|
741
743
|
return n !== null && n.getTime() < t.getTime();
|
|
742
744
|
}
|
|
743
|
-
function
|
|
744
|
-
return Math.round((
|
|
745
|
+
function Wn(e, t, n) {
|
|
746
|
+
return Math.round((je(e, t) - je(e, n)) / lt);
|
|
745
747
|
}
|
|
746
|
-
function
|
|
748
|
+
function xa(e, t, n, { locale: o = le, timezone: r } = {}) {
|
|
747
749
|
const s = new Date(t);
|
|
748
750
|
if (Number.isNaN(s.getTime())) return t;
|
|
749
|
-
const i = yt(o, r), c =
|
|
751
|
+
const i = yt(o, r), c = _a(i, s), d = i.time.format(s), p = c ? e("timeWithZone", { time: d, zone: c }) : d, h = Wn(i, s, n);
|
|
750
752
|
if (h === 0) return e("dateTimeToday", { time: p });
|
|
751
753
|
if (h === -1) return e("dateTimeYesterday", { time: p });
|
|
752
754
|
if (h === 1) return e("dateTimeTomorrow", { time: p });
|
|
753
755
|
const f = Yt(i, s) === Yt(i, n) ? i.day.format(s) : i.dayYear.format(s);
|
|
754
756
|
return e("dateTimeWithDate", { date: f, time: p });
|
|
755
757
|
}
|
|
756
|
-
function
|
|
757
|
-
return !Number.isInteger(e) || e < 1 ? null :
|
|
758
|
+
function Gn(e, t = le) {
|
|
759
|
+
return !Number.isInteger(e) || e < 1 ? null : Ca(t).format(e);
|
|
758
760
|
}
|
|
759
|
-
function
|
|
761
|
+
function Ra(e, t, n = le) {
|
|
760
762
|
if (!e || t === void 0) return null;
|
|
761
|
-
const o =
|
|
763
|
+
const o = Gn(t, n);
|
|
762
764
|
return o === null ? null : `${e}.${o}`;
|
|
763
765
|
}
|
|
764
|
-
function
|
|
766
|
+
function Na(e, t) {
|
|
765
767
|
return t == null ? null : e("pointsAbbreviated", { count: t });
|
|
766
768
|
}
|
|
767
|
-
function
|
|
769
|
+
function Oa(e, t) {
|
|
768
770
|
switch (t.type) {
|
|
769
771
|
case "must_view":
|
|
770
772
|
return e("requirementMustView");
|
|
@@ -782,40 +784,40 @@ function Na(e, t) {
|
|
|
782
784
|
return e("requirementUnknown");
|
|
783
785
|
}
|
|
784
786
|
}
|
|
785
|
-
function
|
|
787
|
+
function ka(e, t, n) {
|
|
786
788
|
return e("progressSummary", { met: t, count: n });
|
|
787
789
|
}
|
|
788
|
-
function
|
|
790
|
+
function Hc(e, t, n) {
|
|
789
791
|
return e("progressScreenReaderValue", { met: t, count: n });
|
|
790
792
|
}
|
|
791
|
-
function
|
|
793
|
+
function Fa(e) {
|
|
792
794
|
if (!e) return null;
|
|
793
|
-
const t = e.map((n) =>
|
|
795
|
+
const t = e.map((n) => xn(n)).filter((n) => n !== null);
|
|
794
796
|
return t.length === 0 ? null : t.reduce((n, o) => n + o, 0);
|
|
795
797
|
}
|
|
796
|
-
function
|
|
798
|
+
function Kc(e) {
|
|
797
799
|
if (!e) return null;
|
|
798
800
|
const t = e.filter((n) => n.status !== void 0 && n.status !== "complete");
|
|
799
|
-
return
|
|
801
|
+
return Fa(t);
|
|
800
802
|
}
|
|
801
|
-
function
|
|
803
|
+
function jn(e) {
|
|
802
804
|
return { hours: Math.floor(e / 60), mins: e % 60 };
|
|
803
805
|
}
|
|
804
|
-
function
|
|
805
|
-
const { hours: n, mins: o } =
|
|
806
|
+
function Hn(e, t) {
|
|
807
|
+
const { hours: n, mins: o } = jn(t);
|
|
806
808
|
return n > 0 && o > 0 ? e("estimatedDurationHoursAndMinutes", { hours: n, minutes: o }) : n > 0 ? e("estimatedDurationHours", { count: n }) : e("estimatedDurationMinutesAbbreviated", { count: o });
|
|
807
809
|
}
|
|
808
|
-
function
|
|
809
|
-
return e("estimatedDurationByline", { duration:
|
|
810
|
+
function qa(e, t) {
|
|
811
|
+
return e("estimatedDurationByline", { duration: Hn(e, t) });
|
|
810
812
|
}
|
|
811
|
-
function
|
|
812
|
-
return e("remainingDurationByline", { duration:
|
|
813
|
+
function za(e, t) {
|
|
814
|
+
return e("remainingDurationByline", { duration: Hn(e, t) });
|
|
813
815
|
}
|
|
814
|
-
function
|
|
815
|
-
const { hours: n, mins: o } =
|
|
816
|
+
function Ua(e, t) {
|
|
817
|
+
const { hours: n, mins: o } = jn(t);
|
|
816
818
|
return n > 0 && o > 0 ? e("durationHoursAndMinutes", { hours: n, minutes: o }) : n > 0 ? e("durationHours", { count: n }) : e("durationMinutes", { count: o });
|
|
817
819
|
}
|
|
818
|
-
const
|
|
820
|
+
const $a = "all", Ba = zn, Wa = {
|
|
819
821
|
all: {
|
|
820
822
|
label: "filterAll",
|
|
821
823
|
order: 10,
|
|
@@ -854,13 +856,13 @@ const za = "all", Ua = qn, $a = {
|
|
|
854
856
|
order: 40,
|
|
855
857
|
predicate: (e, { today: t, timezone: n }) => {
|
|
856
858
|
var o;
|
|
857
|
-
return
|
|
859
|
+
return $n((o = e.progress) == null ? void 0 : o.nextDueAt, t, n);
|
|
858
860
|
},
|
|
859
861
|
query: {
|
|
860
862
|
target: "module",
|
|
861
863
|
field: "dueWithinDays",
|
|
862
864
|
op: "within",
|
|
863
|
-
value:
|
|
865
|
+
value: Ba
|
|
864
866
|
}
|
|
865
867
|
},
|
|
866
868
|
missing: {
|
|
@@ -876,59 +878,59 @@ const za = "all", Ua = qn, $a = {
|
|
|
876
878
|
function It(e) {
|
|
877
879
|
return e == null ? void 0 : e.query;
|
|
878
880
|
}
|
|
879
|
-
function
|
|
881
|
+
function Kn(e) {
|
|
880
882
|
return (e == null ? void 0 : e.unfiltered) === !0;
|
|
881
883
|
}
|
|
882
884
|
function Jt(e) {
|
|
883
|
-
return e !== void 0 && !
|
|
885
|
+
return e !== void 0 && !Kn(e);
|
|
884
886
|
}
|
|
885
|
-
function
|
|
887
|
+
function Ga(e) {
|
|
886
888
|
return e !== void 0 && It(e) === void 0;
|
|
887
889
|
}
|
|
888
|
-
const
|
|
889
|
-
moduleLabel: (e, t, { locale: n }) =>
|
|
890
|
-
dateTime: (e, t, { t: n, locale: o, timezone: r }) =>
|
|
891
|
-
points: (e, { t }) =>
|
|
892
|
-
progress: (e, t, n, { t: o }) =>
|
|
893
|
-
},
|
|
890
|
+
const ja = {
|
|
891
|
+
moduleLabel: (e, t, { locale: n }) => Gn(e, n),
|
|
892
|
+
dateTime: (e, t, { t: n, locale: o, timezone: r }) => xa(n, e, t, { locale: o, timezone: r }),
|
|
893
|
+
points: (e, { t }) => Na(t, e),
|
|
894
|
+
progress: (e, t, n, { t: o }) => ka(o, t, n)
|
|
895
|
+
}, ne = { size: "xs", color: "mutedColor" }, Ha = {
|
|
894
896
|
assignment: {
|
|
895
897
|
label: "itemTypeAssignment",
|
|
896
898
|
order: 10,
|
|
897
|
-
icon: /* @__PURE__ */ l(
|
|
899
|
+
icon: /* @__PURE__ */ l(Ao, { ...ne })
|
|
898
900
|
},
|
|
899
|
-
quiz: { label: "itemTypeQuiz", order: 20, icon: /* @__PURE__ */ l(
|
|
901
|
+
quiz: { label: "itemTypeQuiz", order: 20, icon: /* @__PURE__ */ l(_o, { ...ne }) },
|
|
900
902
|
discussion: {
|
|
901
903
|
label: "itemTypeDiscussion",
|
|
902
904
|
order: 30,
|
|
903
|
-
icon: /* @__PURE__ */ l(
|
|
905
|
+
icon: /* @__PURE__ */ l(Co, { ...ne })
|
|
904
906
|
},
|
|
905
|
-
page: { label: "itemTypePage", order: 40, icon: /* @__PURE__ */ l(
|
|
906
|
-
file: { label: "itemTypeFile", order: 50, icon: /* @__PURE__ */ l(
|
|
907
|
+
page: { label: "itemTypePage", order: 40, icon: /* @__PURE__ */ l(Po, { ...ne }) },
|
|
908
|
+
file: { label: "itemTypeFile", order: 50, icon: /* @__PURE__ */ l(Eo, { ...ne }) },
|
|
907
909
|
external_url: {
|
|
908
910
|
label: "itemTypeExternalUrl",
|
|
909
911
|
order: 60,
|
|
910
|
-
icon: /* @__PURE__ */ l(vo, { ...
|
|
912
|
+
icon: /* @__PURE__ */ l(vo, { ...ne })
|
|
911
913
|
},
|
|
912
914
|
external_tool: {
|
|
913
915
|
label: "itemTypeExternalTool",
|
|
914
916
|
order: 70,
|
|
915
|
-
icon: /* @__PURE__ */ l(
|
|
917
|
+
icon: /* @__PURE__ */ l(wo, { ...ne })
|
|
916
918
|
},
|
|
917
919
|
sub_header: { label: "itemTypeSubHeader", order: 80, icon: null }
|
|
918
|
-
},
|
|
920
|
+
}, Yc = "type", Ka = { fontSizeMedium: "inherit" }, en = /* @__PURE__ */ l(pt, { ...ne });
|
|
919
921
|
function tn({ item: e, today: t }) {
|
|
920
|
-
return e.status !== "complete" && e.status !== "locked" &&
|
|
922
|
+
return e.status !== "complete" && e.status !== "locked" && Bn(e.dueAt, t);
|
|
921
923
|
}
|
|
922
|
-
const
|
|
924
|
+
const Ya = {
|
|
923
925
|
type: {
|
|
924
926
|
label: "metaFieldTypeLabel",
|
|
925
927
|
order: 10,
|
|
926
928
|
renderIcon: ({ item: e, config: t }) => {
|
|
927
|
-
const n =
|
|
929
|
+
const n = we(t.itemTypes, e.type);
|
|
928
930
|
return n ? n.renderIcon ? n.renderIcon({ item: e }) : n.icon : null;
|
|
929
931
|
},
|
|
930
932
|
render: ({ item: e, t, config: n }) => {
|
|
931
|
-
const o =
|
|
933
|
+
const o = we(n.itemTypes, e.type);
|
|
932
934
|
return o ? t(o.label) : null;
|
|
933
935
|
}
|
|
934
936
|
},
|
|
@@ -940,7 +942,7 @@ const Ha = {
|
|
|
940
942
|
requirement: {
|
|
941
943
|
label: "metaFieldRequirementLabel",
|
|
942
944
|
order: 30,
|
|
943
|
-
render: ({ item: e, t }) => e.completionRequirement ?
|
|
945
|
+
render: ({ item: e, t }) => e.completionRequirement ? Oa(t, e.completionRequirement) : null
|
|
944
946
|
},
|
|
945
947
|
dueAt: {
|
|
946
948
|
label: "metaFieldDueAtLabel",
|
|
@@ -950,20 +952,20 @@ const Ha = {
|
|
|
950
952
|
renderIcon: (e) => {
|
|
951
953
|
var n;
|
|
952
954
|
const t = (n = e.config.itemMeta.dueAt) == null ? void 0 : n.icon;
|
|
953
|
-
return t !== en || !tn(e) ? t : /* @__PURE__ */ l(pt, { ...
|
|
955
|
+
return t !== en || !tn(e) ? t : /* @__PURE__ */ l(pt, { ...ne, color: "errorColor" });
|
|
954
956
|
},
|
|
955
957
|
render: (e) => {
|
|
956
958
|
const { item: t, today: n, formatters: o } = e;
|
|
957
|
-
return t.dueAt ? tn(e) ? /* @__PURE__ */ l(ue, { color: "danger", themeOverride:
|
|
959
|
+
return t.dueAt ? tn(e) ? /* @__PURE__ */ l(ue, { color: "danger", themeOverride: Ka, children: o.pastDueByline(t.dueAt, n) }) : o.dueByline(t.dueAt, n) : null;
|
|
958
960
|
}
|
|
959
961
|
},
|
|
960
962
|
estimatedDuration: {
|
|
961
963
|
label: "metaFieldDurationLabel",
|
|
962
964
|
order: 50,
|
|
963
|
-
icon: /* @__PURE__ */ l(
|
|
965
|
+
icon: /* @__PURE__ */ l(Do, { ...ne }),
|
|
964
966
|
render: ({ item: e, t }) => {
|
|
965
|
-
const n =
|
|
966
|
-
return n === null ? null :
|
|
967
|
+
const n = xn(e);
|
|
968
|
+
return n === null ? null : Ua(t, n);
|
|
967
969
|
}
|
|
968
970
|
},
|
|
969
971
|
unpublished: {
|
|
@@ -972,11 +974,11 @@ const Ha = {
|
|
|
972
974
|
render: ({ item: e, t }) => e.published ? null : t("itemUnpublishedLabel")
|
|
973
975
|
}
|
|
974
976
|
}, Mt = {
|
|
975
|
-
formatters:
|
|
976
|
-
itemTypes:
|
|
977
|
+
formatters: ja,
|
|
978
|
+
itemTypes: Ha,
|
|
977
979
|
itemStatuses: {},
|
|
978
|
-
itemMeta:
|
|
979
|
-
filters:
|
|
980
|
+
itemMeta: Ya,
|
|
981
|
+
filters: Wa,
|
|
980
982
|
moduleActions: {},
|
|
981
983
|
itemActions: {},
|
|
982
984
|
navigation: {},
|
|
@@ -988,18 +990,18 @@ for (const e of Object.values(Mt)) {
|
|
|
988
990
|
Object.freeze(e);
|
|
989
991
|
for (const t of Object.values(e ?? {})) Object.freeze(t);
|
|
990
992
|
}
|
|
991
|
-
function
|
|
992
|
-
return
|
|
993
|
-
if (
|
|
993
|
+
function Qa(e, t) {
|
|
994
|
+
return On(e).filter((n) => {
|
|
995
|
+
if (Kn(n)) return !1;
|
|
994
996
|
const o = It(n);
|
|
995
|
-
return o === void 0 ? !0 : !
|
|
997
|
+
return o === void 0 ? !0 : !Wo(t, o);
|
|
996
998
|
}).map((n) => n.key);
|
|
997
999
|
}
|
|
998
1000
|
function nn(e) {
|
|
999
1001
|
return `[platform-modules] the adapter cannot serve filter(s): ${e.join(", ")}. Give the entry a query the adapter's capabilities declare, or mark it unfiltered.`;
|
|
1000
1002
|
}
|
|
1001
|
-
function
|
|
1002
|
-
const n =
|
|
1003
|
+
function Va(e, t) {
|
|
1004
|
+
const n = Qa(e, t);
|
|
1003
1005
|
if (n.length === 0) return e;
|
|
1004
1006
|
if (process.env.NODE_ENV !== "production")
|
|
1005
1007
|
throw new Error(nn(n));
|
|
@@ -1007,17 +1009,17 @@ function Ya(e, t) {
|
|
|
1007
1009
|
const o = Object.fromEntries(n.map((r) => [r, { ...e[r], hidden: !0 }]));
|
|
1008
1010
|
return { ...e, ...o };
|
|
1009
1011
|
}
|
|
1010
|
-
const
|
|
1011
|
-
function
|
|
1012
|
-
return /* @__PURE__ */ l(
|
|
1012
|
+
const Yn = dt(null);
|
|
1013
|
+
function Qc({ value: e, children: t }) {
|
|
1014
|
+
return /* @__PURE__ */ l(Yn.Provider, { value: e, children: t });
|
|
1013
1015
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1016
|
+
function Qe() {
|
|
1017
|
+
return Ye(Yn) ?? Mt;
|
|
1016
1018
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return
|
|
1019
|
+
function Vc(e) {
|
|
1020
|
+
return we(Qe().itemMeta, e) !== void 0;
|
|
1019
1021
|
}
|
|
1020
|
-
const
|
|
1022
|
+
const Oe = a.object({
|
|
1021
1023
|
label: a.string(),
|
|
1022
1024
|
order: a.number(),
|
|
1023
1025
|
hidden: a.boolean().optional()
|
|
@@ -1025,19 +1027,19 @@ const Re = a.object({
|
|
|
1025
1027
|
function ye(e) {
|
|
1026
1028
|
return a.record(a.string(), e);
|
|
1027
1029
|
}
|
|
1028
|
-
const
|
|
1030
|
+
const Za = ye(Oe.strict()), Tt = (e) => e == null || typeof e == "string" || typeof e == "number" || typeof e == "bigint" || typeof e == "boolean" || mt(e) || Array.isArray(e) && e.every(Tt), Qn = (e) => {
|
|
1029
1031
|
var t;
|
|
1030
1032
|
return e == null || typeof e == "function" && !((t = e.prototype) != null && t.isReactComponent);
|
|
1031
|
-
},
|
|
1033
|
+
}, Xa = Oe.extend({
|
|
1032
1034
|
icon: a.custom(Tt, { message: "icon must be a ReactNode" }),
|
|
1033
|
-
renderIcon: a.custom(
|
|
1035
|
+
renderIcon: a.custom(Qn, {
|
|
1034
1036
|
message: "renderIcon must be a function of the item, not a React component"
|
|
1035
1037
|
})
|
|
1036
|
-
}).strict(),
|
|
1038
|
+
}).strict(), Vn = (e) => {
|
|
1037
1039
|
var t;
|
|
1038
1040
|
return typeof e == "function" && !((t = e.prototype) != null && t.isReactComponent);
|
|
1039
|
-
}, on = (e) => e == null ||
|
|
1040
|
-
onSelect: a.custom(
|
|
1041
|
+
}, on = (e) => e == null || Vn(e), rn = Oe.extend({
|
|
1042
|
+
onSelect: a.custom(Vn, {
|
|
1041
1043
|
message: "onSelect must be a function taking an ActionContext"
|
|
1042
1044
|
}),
|
|
1043
1045
|
visible: a.custom(on, {
|
|
@@ -1047,31 +1049,31 @@ const Qa = ye(Re.strict()), Tt = (e) => e == null || typeof e == "string" || typ
|
|
|
1047
1049
|
message: "renderModal must be a function taking an ActionContext, not a React component"
|
|
1048
1050
|
})
|
|
1049
1051
|
}).strict();
|
|
1050
|
-
function
|
|
1052
|
+
function $e() {
|
|
1051
1053
|
return a.custom((e) => typeof e == "function", {
|
|
1052
1054
|
message: "Expected a function"
|
|
1053
1055
|
});
|
|
1054
1056
|
}
|
|
1055
|
-
const
|
|
1057
|
+
const Ja = Oe.extend({
|
|
1056
1058
|
render: a.custom((e) => typeof e == "function", {
|
|
1057
1059
|
message: "render must be a function taking a MetaFieldContext"
|
|
1058
1060
|
}),
|
|
1059
1061
|
icon: a.custom(Tt, { message: "icon must be a ReactNode" }),
|
|
1060
|
-
renderIcon: a.custom(
|
|
1062
|
+
renderIcon: a.custom(Qn, {
|
|
1061
1063
|
message: "renderIcon must be a function of the field context, not a React component"
|
|
1062
1064
|
})
|
|
1063
|
-
}).strict(),
|
|
1065
|
+
}).strict(), el = Oe.extend({
|
|
1064
1066
|
predicate: a.custom((e) => typeof e == "function", {
|
|
1065
1067
|
message: "predicate must be a function of the module and a FilterContext"
|
|
1066
1068
|
}),
|
|
1067
|
-
query:
|
|
1069
|
+
query: Bo.optional(),
|
|
1068
1070
|
unfiltered: a.boolean().optional()
|
|
1069
|
-
}).strict(),
|
|
1070
|
-
getItemHref:
|
|
1071
|
-
getItemEditHref:
|
|
1072
|
-
getModuleHref:
|
|
1073
|
-
onItemClick:
|
|
1074
|
-
}).strict(),
|
|
1071
|
+
}).strict(), xe = () => a.custom((e) => typeof e == "function", { message: "Expected a function" }).optional(), tl = a.object({
|
|
1072
|
+
getItemHref: xe(),
|
|
1073
|
+
getItemEditHref: xe(),
|
|
1074
|
+
getModuleHref: xe(),
|
|
1075
|
+
onItemClick: xe()
|
|
1076
|
+
}).strict(), nl = a.object({
|
|
1075
1077
|
createModule: a.boolean().optional(),
|
|
1076
1078
|
updateModule: a.boolean().optional(),
|
|
1077
1079
|
deleteModule: a.boolean().optional(),
|
|
@@ -1081,26 +1083,26 @@ const Za = Re.extend({
|
|
|
1081
1083
|
updateModuleItem: a.boolean().optional(),
|
|
1082
1084
|
deleteModuleItem: a.boolean().optional(),
|
|
1083
1085
|
reorderModuleItems: a.boolean().optional()
|
|
1084
|
-
}).strict(),
|
|
1086
|
+
}).strict(), Zc = a.object({
|
|
1085
1087
|
formatters: a.object({
|
|
1086
|
-
moduleLabel:
|
|
1087
|
-
dateTime:
|
|
1088
|
-
points:
|
|
1089
|
-
progress:
|
|
1088
|
+
moduleLabel: $e(),
|
|
1089
|
+
dateTime: $e(),
|
|
1090
|
+
points: $e(),
|
|
1091
|
+
progress: $e()
|
|
1090
1092
|
}).strict(),
|
|
1091
|
-
itemTypes: ye(
|
|
1092
|
-
itemStatuses:
|
|
1093
|
-
itemMeta: ye(
|
|
1094
|
-
filters: ye(
|
|
1093
|
+
itemTypes: ye(Xa),
|
|
1094
|
+
itemStatuses: Za,
|
|
1095
|
+
itemMeta: ye(Ja),
|
|
1096
|
+
filters: ye(el),
|
|
1095
1097
|
moduleActions: ye(rn),
|
|
1096
1098
|
itemActions: ye(rn),
|
|
1097
|
-
navigation:
|
|
1098
|
-
permissions:
|
|
1099
|
-
notify:
|
|
1099
|
+
navigation: tl,
|
|
1100
|
+
permissions: nl,
|
|
1101
|
+
notify: xe()
|
|
1100
1102
|
});
|
|
1101
|
-
function
|
|
1102
|
-
const { formatters: e } =
|
|
1103
|
-
return
|
|
1103
|
+
function Zn() {
|
|
1104
|
+
const { formatters: e } = Qe(), { t, locale: n, timezone: o } = X();
|
|
1105
|
+
return G(() => {
|
|
1104
1106
|
const r = { t, locale: n, timezone: o }, s = (i, c) => e.dateTime(i, c, r);
|
|
1105
1107
|
return {
|
|
1106
1108
|
moduleLabel: (i, c) => e.moduleLabel(i, c, r) || null,
|
|
@@ -1108,15 +1110,15 @@ function Vn() {
|
|
|
1108
1110
|
pastDueByline: (i, c) => t("pastDueByline", { when: s(i, c) }),
|
|
1109
1111
|
unlockByline: (i, c) => t("unlockByline", { when: s(i, c) }),
|
|
1110
1112
|
unlockedByline: (i, c) => t("unlockedByline", { when: s(i, c) }),
|
|
1111
|
-
estimatedDurationByline: (i) =>
|
|
1112
|
-
remainingDurationByline: (i) =>
|
|
1113
|
+
estimatedDurationByline: (i) => qa(t, i),
|
|
1114
|
+
remainingDurationByline: (i) => za(t, i),
|
|
1113
1115
|
points: (i) => e.points(i, r),
|
|
1114
1116
|
progress: (i, c, d) => e.progress(i, c, d, r)
|
|
1115
1117
|
};
|
|
1116
1118
|
}, [e, t, n, o]);
|
|
1117
1119
|
}
|
|
1118
|
-
const St = 10,
|
|
1119
|
-
function
|
|
1120
|
+
const St = 10, ol = 4, rl = 20, Xn = 100, sl = 4, il = 4, wt = 5 * 60 * 1e3, Jn = 20;
|
|
1121
|
+
function eo(e) {
|
|
1120
1122
|
const {
|
|
1121
1123
|
courseId: t,
|
|
1122
1124
|
adapter: n,
|
|
@@ -1150,7 +1152,7 @@ function Jn(e) {
|
|
|
1150
1152
|
refetchOnWindowFocus: !1
|
|
1151
1153
|
};
|
|
1152
1154
|
}
|
|
1153
|
-
function
|
|
1155
|
+
function al(e) {
|
|
1154
1156
|
const { courseId: t, moduleId: n, adapter: o, page: r, pageSize: s, view: i, staleTime: c, enabled: d, limit: p } = e;
|
|
1155
1157
|
return {
|
|
1156
1158
|
queryKey: Ne.items(t, n, { view: i, pageSize: s, page: r }),
|
|
@@ -1168,28 +1170,28 @@ function sc(e) {
|
|
|
1168
1170
|
refetchOnWindowFocus: !1
|
|
1169
1171
|
};
|
|
1170
1172
|
}
|
|
1171
|
-
const
|
|
1172
|
-
function
|
|
1173
|
+
const He = { request: { kind: "first" }, page: 1 };
|
|
1174
|
+
function Re(e, t) {
|
|
1173
1175
|
return e === null ? 1 : Math.max(1, Math.ceil(e / t));
|
|
1174
1176
|
}
|
|
1175
|
-
function
|
|
1177
|
+
function ll(e, t, n, o) {
|
|
1176
1178
|
switch (e) {
|
|
1177
1179
|
case "first":
|
|
1178
|
-
return
|
|
1180
|
+
return He;
|
|
1179
1181
|
case "previous":
|
|
1180
|
-
return t === 2 ?
|
|
1182
|
+
return t === 2 ? He : n.hasPreviousPage && n.startCursor !== null ? { request: { kind: "before", cursor: n.startCursor }, page: t - 1 } : null;
|
|
1181
1183
|
case "next":
|
|
1182
1184
|
return n.hasNextPage && n.endCursor !== null ? { request: { kind: "after", cursor: n.endCursor }, page: t + 1 } : null;
|
|
1183
1185
|
case "last": {
|
|
1184
1186
|
const r = n.totalCount;
|
|
1185
1187
|
return r === null ? null : {
|
|
1186
1188
|
request: { kind: "last", count: r % o || o },
|
|
1187
|
-
page:
|
|
1189
|
+
page: Re(r, o)
|
|
1188
1190
|
};
|
|
1189
1191
|
}
|
|
1190
1192
|
}
|
|
1191
1193
|
}
|
|
1192
|
-
const tt = { kind: "first" },
|
|
1194
|
+
const tt = { kind: "first" }, cl = {
|
|
1193
1195
|
hasNextPage: !1,
|
|
1194
1196
|
endCursor: null,
|
|
1195
1197
|
hasPreviousPage: !1,
|
|
@@ -1197,8 +1199,8 @@ const tt = { kind: "first" }, ac = {
|
|
|
1197
1199
|
totalCount: null,
|
|
1198
1200
|
totalNrOfPages: null
|
|
1199
1201
|
};
|
|
1200
|
-
function
|
|
1201
|
-
var
|
|
1202
|
+
function ul(e) {
|
|
1203
|
+
var J, se, ce;
|
|
1202
1204
|
const {
|
|
1203
1205
|
courseId: t,
|
|
1204
1206
|
adapter: n,
|
|
@@ -1209,14 +1211,14 @@ function cc(e) {
|
|
|
1209
1211
|
inlineItemsFirst: c,
|
|
1210
1212
|
inlineFirst: d,
|
|
1211
1213
|
view: p,
|
|
1212
|
-
staleTime: h =
|
|
1214
|
+
staleTime: h = wt,
|
|
1213
1215
|
enabled: g = !0
|
|
1214
|
-
} = e, [f, M] =
|
|
1216
|
+
} = e, [f, M] = oe(tt), [x, k] = oe(1), A = JSON.stringify([t, p, o, r, s]), S = _(A);
|
|
1215
1217
|
me(() => {
|
|
1216
|
-
S.current !== A && (S.current = A, M(tt),
|
|
1218
|
+
S.current !== A && (S.current = A, M(tt), k(1));
|
|
1217
1219
|
}, [A]);
|
|
1218
|
-
const
|
|
1219
|
-
...
|
|
1220
|
+
const v = Tn({
|
|
1221
|
+
...eo({
|
|
1220
1222
|
courseId: t,
|
|
1221
1223
|
adapter: n,
|
|
1222
1224
|
page: f,
|
|
@@ -1232,40 +1234,39 @@ function cc(e) {
|
|
|
1232
1234
|
}),
|
|
1233
1235
|
// `useItemsMode` shares `modulesQueryOptions`, and `inlineFirst` is out of that key.
|
|
1234
1236
|
placeholderData: Mn
|
|
1235
|
-
}),
|
|
1236
|
-
((
|
|
1237
|
+
}), R = _(null);
|
|
1238
|
+
((J = v.data) == null ? void 0 : J.pageInfo.totalCount) != null && (R.current = v.data.pageInfo.totalCount);
|
|
1237
1239
|
const D = _(1);
|
|
1238
|
-
|
|
1239
|
-
const E = D.current,
|
|
1240
|
-
M(tt),
|
|
1241
|
-
}, []),
|
|
1242
|
-
!
|
|
1243
|
-
}, [
|
|
1244
|
-
!
|
|
1245
|
-
}, [
|
|
1246
|
-
const
|
|
1247
|
-
M({ kind: "last", count:
|
|
1248
|
-
}, [o,
|
|
1240
|
+
v.isPlaceholderData || (D.current = x);
|
|
1241
|
+
const E = D.current, w = ((se = v.data) == null ? void 0 : se.pageInfo) ?? cl, T = ((ce = v.data) == null ? void 0 : ce.modules) ?? [], L = w.totalCount, Q = Re(L, o), j = O(() => {
|
|
1242
|
+
M(tt), k(1);
|
|
1243
|
+
}, []), H = w.hasPreviousPage, K = w.startCursor, I = O(() => {
|
|
1244
|
+
!H || K === null || (M({ kind: "before", cursor: K }), k(E - 1));
|
|
1245
|
+
}, [H, K, E]), q = w.hasNextPage, C = w.endCursor, re = O(() => {
|
|
1246
|
+
!q || C === null || (M({ kind: "after", cursor: C }), k(E + 1));
|
|
1247
|
+
}, [q, C, E]), $ = O(() => {
|
|
1248
|
+
const ee = R.current, V = ee !== null && ee > 0 && ee % o || o;
|
|
1249
|
+
M({ kind: "last", count: V }), k(Q);
|
|
1250
|
+
}, [o, Q]);
|
|
1249
1251
|
return {
|
|
1250
1252
|
modules: T,
|
|
1251
|
-
pageInfo:
|
|
1253
|
+
pageInfo: w,
|
|
1252
1254
|
page: E,
|
|
1253
|
-
pageCount:
|
|
1254
|
-
hasNextPage:
|
|
1255
|
-
hasPreviousPage:
|
|
1256
|
-
goToFirstPage:
|
|
1255
|
+
pageCount: Q,
|
|
1256
|
+
hasNextPage: q,
|
|
1257
|
+
hasPreviousPage: H,
|
|
1258
|
+
goToFirstPage: j,
|
|
1257
1259
|
goToPreviousPage: I,
|
|
1258
1260
|
goToNextPage: re,
|
|
1259
1261
|
goToLastPage: $,
|
|
1260
|
-
isLoading:
|
|
1261
|
-
isPending:
|
|
1262
|
-
isPlaceholderData:
|
|
1263
|
-
error:
|
|
1262
|
+
isLoading: v.isLoading,
|
|
1263
|
+
isPending: v.isPending,
|
|
1264
|
+
isPlaceholderData: v.isPlaceholderData,
|
|
1265
|
+
error: v.error
|
|
1264
1266
|
};
|
|
1265
1267
|
}
|
|
1266
|
-
const
|
|
1267
|
-
function
|
|
1268
|
-
if (e.pageInfo.hasNextPage) return "onDemand";
|
|
1268
|
+
const dl = { kind: "first" };
|
|
1269
|
+
function ml(e, t, n = Nn) {
|
|
1269
1270
|
let o = 0, r = 0;
|
|
1270
1271
|
for (const s of e.modules) {
|
|
1271
1272
|
if (s.itemCount > t) return "onDemand";
|
|
@@ -1273,23 +1274,23 @@ function uc(e, t, n = Nn) {
|
|
|
1273
1274
|
}
|
|
1274
1275
|
return o > t * 2 ? "onDemand" : Math.max(e.modules.length, 1) * Math.max(r, 1) <= n ? "inline" : "onDemand";
|
|
1275
1276
|
}
|
|
1276
|
-
function
|
|
1277
|
+
function pl(e) {
|
|
1277
1278
|
const {
|
|
1278
1279
|
courseId: t,
|
|
1279
1280
|
adapter: n,
|
|
1280
1281
|
mode: o = "auto",
|
|
1281
|
-
inlineThreshold: r =
|
|
1282
|
+
inlineThreshold: r = Xn,
|
|
1282
1283
|
nodeBudget: s = n.inlineNodeBudget ?? Nn,
|
|
1283
1284
|
pageSize: i = St,
|
|
1284
1285
|
filter: c,
|
|
1285
1286
|
dueRange: d,
|
|
1286
1287
|
view: p,
|
|
1287
|
-
staleTime: h =
|
|
1288
|
+
staleTime: h = wt
|
|
1288
1289
|
} = e, g = o === "auto", f = Tn(
|
|
1289
|
-
|
|
1290
|
+
eo({
|
|
1290
1291
|
courseId: t,
|
|
1291
1292
|
adapter: n,
|
|
1292
|
-
page:
|
|
1293
|
+
page: dl,
|
|
1293
1294
|
pageSize: i,
|
|
1294
1295
|
includeItems: !1,
|
|
1295
1296
|
filter: c,
|
|
@@ -1317,25 +1318,25 @@ function dc(e) {
|
|
|
1317
1318
|
};
|
|
1318
1319
|
const M = f.data;
|
|
1319
1320
|
return M ? {
|
|
1320
|
-
resolvedMode:
|
|
1321
|
+
resolvedMode: ml(M, r, s),
|
|
1321
1322
|
isResolving: !1,
|
|
1322
1323
|
probed: !0,
|
|
1323
1324
|
error: null,
|
|
1324
|
-
inlineShape:
|
|
1325
|
+
inlineShape: gl(M)
|
|
1325
1326
|
} : { resolvedMode: null, isResolving: !0, probed: !0, error: null, inlineShape: null };
|
|
1326
1327
|
}
|
|
1327
|
-
function
|
|
1328
|
+
function gl(e) {
|
|
1328
1329
|
let t = 1;
|
|
1329
1330
|
for (const n of e.modules)
|
|
1330
1331
|
n.itemCount > t && (t = n.itemCount);
|
|
1331
1332
|
return { moduleCount: Math.max(e.modules.length, 1), maxItemCount: t };
|
|
1332
1333
|
}
|
|
1333
|
-
const
|
|
1334
|
+
const fl = `(max-width: ${So.mobileOnly.maxWidth})`;
|
|
1334
1335
|
function sn() {
|
|
1335
|
-
return typeof window > "u" || typeof window.matchMedia != "function" ? null : window.matchMedia(
|
|
1336
|
+
return typeof window > "u" || typeof window.matchMedia != "function" ? null : window.matchMedia(fl);
|
|
1336
1337
|
}
|
|
1337
|
-
function
|
|
1338
|
-
const [e, t] =
|
|
1338
|
+
function hl() {
|
|
1339
|
+
const [e, t] = oe(() => {
|
|
1339
1340
|
var n;
|
|
1340
1341
|
return ((n = sn()) == null ? void 0 : n.matches) ?? !1;
|
|
1341
1342
|
});
|
|
@@ -1347,38 +1348,38 @@ function gc() {
|
|
|
1347
1348
|
return n.addEventListener("change", o), () => n.removeEventListener("change", o);
|
|
1348
1349
|
}, []), e;
|
|
1349
1350
|
}
|
|
1350
|
-
const nt = "\0",
|
|
1351
|
-
function
|
|
1351
|
+
const nt = "\0", bl = /* @__PURE__ */ new Map();
|
|
1352
|
+
function yl(e, t, {
|
|
1352
1353
|
pageSize: n,
|
|
1353
|
-
retainCollapsedLimit: o =
|
|
1354
|
+
retainCollapsedLimit: o = Jn,
|
|
1354
1355
|
partition: r = ""
|
|
1355
1356
|
}) {
|
|
1356
|
-
const s = Sn(), i = _(/* @__PURE__ */ new Map()), c = _(/* @__PURE__ */ new Map()), d = `${n}${nt}${r}`, p = _(d), [h, g] =
|
|
1357
|
+
const s = Sn(), i = _(/* @__PURE__ */ new Map()), c = _(/* @__PURE__ */ new Map()), d = `${n}${nt}${r}`, p = _(d), [h, g] = oe(bl), f = e.join(nt), M = G(() => f === "" ? [] : f.split(nt), [f]);
|
|
1357
1358
|
me(() => {
|
|
1358
|
-
const S = i.current,
|
|
1359
|
-
p.current !== d && (
|
|
1360
|
-
const
|
|
1359
|
+
const S = i.current, v = c.current;
|
|
1360
|
+
p.current !== d && (v.clear(), p.current = d);
|
|
1361
|
+
const R = () => {
|
|
1361
1362
|
g((T) => {
|
|
1362
1363
|
const L = /* @__PURE__ */ new Map();
|
|
1363
|
-
let
|
|
1364
|
-
for (const [
|
|
1365
|
-
const
|
|
1366
|
-
if (C && C.result ===
|
|
1367
|
-
L.set(
|
|
1364
|
+
let Q = T.size !== S.size;
|
|
1365
|
+
for (const [j, H] of S) {
|
|
1366
|
+
const K = H.getCurrentResult(), I = v.get(j), q = I ? K.isPlaceholderData ? I.shownPage : I.page : 1, C = T.get(j);
|
|
1367
|
+
if (C && C.result === K && C.page === q) {
|
|
1368
|
+
L.set(j, C);
|
|
1368
1369
|
continue;
|
|
1369
1370
|
}
|
|
1370
|
-
L.set(
|
|
1371
|
+
L.set(j, { result: K, page: q }), Q = !0;
|
|
1371
1372
|
}
|
|
1372
|
-
return
|
|
1373
|
+
return Q ? L : T;
|
|
1373
1374
|
});
|
|
1374
|
-
}, D = (T) => (
|
|
1375
|
+
}, D = (T) => (v.get(T) ?? He).request, E = new Set(M);
|
|
1375
1376
|
for (const T of M) {
|
|
1376
1377
|
if (S.has(T)) continue;
|
|
1377
|
-
const L = new
|
|
1378
|
+
const L = new Io(
|
|
1378
1379
|
s,
|
|
1379
1380
|
t(T, !0, D(T))
|
|
1380
1381
|
);
|
|
1381
|
-
S.set(T, L), L.subscribe(
|
|
1382
|
+
S.set(T, L), L.subscribe(R);
|
|
1382
1383
|
}
|
|
1383
1384
|
for (const [T, L] of S)
|
|
1384
1385
|
L.setOptions(t(T, E.has(T), D(T)));
|
|
@@ -1386,107 +1387,107 @@ function hc(e, t, {
|
|
|
1386
1387
|
const L = S.get(T);
|
|
1387
1388
|
L && (S.delete(T), S.set(T, L));
|
|
1388
1389
|
}
|
|
1389
|
-
let
|
|
1390
|
-
if (
|
|
1390
|
+
let w = S.size - E.size;
|
|
1391
|
+
if (w > o)
|
|
1391
1392
|
for (const [T, L] of S) {
|
|
1392
|
-
if (
|
|
1393
|
-
E.has(T) || (L.destroy(), S.delete(T),
|
|
1393
|
+
if (w <= o) break;
|
|
1394
|
+
E.has(T) || (L.destroy(), S.delete(T), v.delete(T), w -= 1);
|
|
1394
1395
|
}
|
|
1395
|
-
|
|
1396
|
+
R();
|
|
1396
1397
|
}, [s, t, M, o, d]), me(() => {
|
|
1397
1398
|
const S = i.current;
|
|
1398
1399
|
return () => {
|
|
1399
|
-
for (const
|
|
1400
|
+
for (const v of S.values()) v.destroy();
|
|
1400
1401
|
S.clear();
|
|
1401
1402
|
};
|
|
1402
1403
|
}, []);
|
|
1403
1404
|
const x = _(n);
|
|
1404
1405
|
x.current = n;
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1407
|
-
const A =
|
|
1408
|
-
const
|
|
1409
|
-
if (!
|
|
1410
|
-
const E = c.current.get(S) ??
|
|
1411
|
-
!
|
|
1412
|
-
|
|
1406
|
+
const k = _(t);
|
|
1407
|
+
k.current = t;
|
|
1408
|
+
const A = O((S, v) => {
|
|
1409
|
+
const R = i.current.get(S), D = R == null ? void 0 : R.getCurrentResult();
|
|
1410
|
+
if (!R || !(D != null && D.data) || D.isPlaceholderData) return;
|
|
1411
|
+
const E = c.current.get(S) ?? He, w = ll(v, E.page, D.data.pageInfo, x.current);
|
|
1412
|
+
!w || w.page === E.page || (c.current.set(S, { ...w, shownPage: E.page }), R.setOptions(
|
|
1413
|
+
k.current(S, R.options.enabled !== !1, w.request)
|
|
1413
1414
|
));
|
|
1414
1415
|
}, []);
|
|
1415
1416
|
return { entries: h, goToPage: A };
|
|
1416
1417
|
}
|
|
1417
|
-
const
|
|
1418
|
-
function
|
|
1418
|
+
const Il = [];
|
|
1419
|
+
function Xc(e) {
|
|
1419
1420
|
var Lt, xt;
|
|
1420
1421
|
const {
|
|
1421
1422
|
courseId: t,
|
|
1422
1423
|
adapter: n,
|
|
1423
1424
|
view: o,
|
|
1424
1425
|
itemsMode: r = "auto",
|
|
1425
|
-
inlineThreshold: s =
|
|
1426
|
+
inlineThreshold: s = Xn,
|
|
1426
1427
|
pageSize: i = St,
|
|
1427
|
-
mobilePageSize: c =
|
|
1428
|
-
itemPageSize: d =
|
|
1429
|
-
itemConcurrency: p =
|
|
1430
|
-
retainCollapsedLimit: h =
|
|
1431
|
-
staleTime: g =
|
|
1428
|
+
mobilePageSize: c = ol,
|
|
1429
|
+
itemPageSize: d = rl,
|
|
1430
|
+
itemConcurrency: p = sl,
|
|
1431
|
+
retainCollapsedLimit: h = Jn,
|
|
1432
|
+
staleTime: g = wt,
|
|
1432
1433
|
initialExpandedModuleIds: f,
|
|
1433
|
-
initialFilter: M =
|
|
1434
|
+
initialFilter: M = $a,
|
|
1434
1435
|
today: x
|
|
1435
|
-
} = e,
|
|
1436
|
-
() =>
|
|
1436
|
+
} = e, k = hl() ? c : i, A = Sn(), S = Qe(), [v, R] = oe(M), D = G(
|
|
1437
|
+
() => Va(S.filters, n.capabilities),
|
|
1437
1438
|
[S.filters, n.capabilities]
|
|
1438
|
-
), E =
|
|
1439
|
-
() => (
|
|
1440
|
-
[
|
|
1441
|
-
),
|
|
1439
|
+
), E = we(D, v), w = It(E), { timezone: T } = X(), [L] = oe(() => /* @__PURE__ */ new Date()), Q = x ?? L, j = G(
|
|
1440
|
+
() => (w == null ? void 0 : w.op) === "within" ? La(Q, Number(w.value), T) : void 0,
|
|
1441
|
+
[w == null ? void 0 : w.op, w == null ? void 0 : w.value, Q, T]
|
|
1442
|
+
), H = pl({
|
|
1442
1443
|
courseId: t,
|
|
1443
1444
|
adapter: n,
|
|
1444
1445
|
mode: r,
|
|
1445
1446
|
inlineThreshold: s,
|
|
1446
|
-
pageSize:
|
|
1447
|
-
filter:
|
|
1448
|
-
dueRange:
|
|
1447
|
+
pageSize: k,
|
|
1448
|
+
filter: w,
|
|
1449
|
+
dueRange: j,
|
|
1449
1450
|
view: o,
|
|
1450
1451
|
staleTime: g
|
|
1451
|
-
}),
|
|
1452
|
+
}), K = H.resolvedMode, I = ul({
|
|
1452
1453
|
courseId: t,
|
|
1453
1454
|
adapter: n,
|
|
1454
|
-
pageSize:
|
|
1455
|
-
filter:
|
|
1456
|
-
dueRange:
|
|
1455
|
+
pageSize: k,
|
|
1456
|
+
filter: w,
|
|
1457
|
+
dueRange: j,
|
|
1457
1458
|
view: o,
|
|
1458
1459
|
staleTime: g,
|
|
1459
|
-
includeItems:
|
|
1460
|
-
inlineItemsFirst: (Lt =
|
|
1461
|
-
inlineFirst: (xt =
|
|
1462
|
-
enabled:
|
|
1463
|
-
}), [
|
|
1460
|
+
includeItems: K === "inline",
|
|
1461
|
+
inlineItemsFirst: (Lt = H.inlineShape) == null ? void 0 : Lt.maxItemCount,
|
|
1462
|
+
inlineFirst: (xt = H.inlineShape) == null ? void 0 : xt.moduleCount,
|
|
1463
|
+
enabled: K !== null
|
|
1464
|
+
}), [q, C] = oe(
|
|
1464
1465
|
() => f ?? []
|
|
1465
|
-
), re = f === void 0, $ = _(!1),
|
|
1466
|
-
se.current =
|
|
1466
|
+
), re = f === void 0, $ = _(!1), J = Jt(E), se = _(J);
|
|
1467
|
+
se.current = J;
|
|
1467
1468
|
const ce = _(I.hasNextPage);
|
|
1468
1469
|
ce.current = I.hasNextPage;
|
|
1469
|
-
const
|
|
1470
|
-
|
|
1471
|
-
!re || $.current ||
|
|
1470
|
+
const ee = _(I.isPlaceholderData);
|
|
1471
|
+
ee.current = I.isPlaceholderData, me(() => {
|
|
1472
|
+
!re || $.current || J || I.isPlaceholderData || C((u) => {
|
|
1472
1473
|
const m = new Set(u), b = [...u];
|
|
1473
1474
|
for (const P of I.modules)
|
|
1474
1475
|
P.collapsed === !1 && !m.has(P.id) && b.push(P.id);
|
|
1475
1476
|
return b.length === u.length ? u : b;
|
|
1476
1477
|
});
|
|
1477
|
-
}, [I.modules, I.isPlaceholderData, re,
|
|
1478
|
-
const
|
|
1478
|
+
}, [I.modules, I.isPlaceholderData, re, J]);
|
|
1479
|
+
const V = G(() => {
|
|
1479
1480
|
const u = /* @__PURE__ */ new Map();
|
|
1480
1481
|
for (const m of I.modules) u.set(m.id, m);
|
|
1481
1482
|
return u;
|
|
1482
|
-
}, [I.modules]),
|
|
1483
|
-
() =>
|
|
1484
|
-
const m =
|
|
1483
|
+
}, [I.modules]), ie = G(
|
|
1484
|
+
() => q.filter((u) => {
|
|
1485
|
+
const m = V.get(u);
|
|
1485
1486
|
return m !== void 0 && m.items === void 0;
|
|
1486
1487
|
}),
|
|
1487
|
-
[
|
|
1488
|
-
),
|
|
1489
|
-
(u, m, b) =>
|
|
1488
|
+
[q, V]
|
|
1489
|
+
), ve = G(() => new Set(ie), [ie]), Ee = G(() => kt(p), [p]), ke = O(
|
|
1490
|
+
(u, m, b) => al({
|
|
1490
1491
|
courseId: t,
|
|
1491
1492
|
moduleId: u,
|
|
1492
1493
|
adapter: n,
|
|
@@ -1495,133 +1496,133 @@ function Yl(e) {
|
|
|
1495
1496
|
view: o,
|
|
1496
1497
|
staleTime: g,
|
|
1497
1498
|
enabled: m,
|
|
1498
|
-
limit:
|
|
1499
|
+
limit: Ee
|
|
1499
1500
|
}),
|
|
1500
|
-
[t, n, d, o, g,
|
|
1501
|
-
),
|
|
1501
|
+
[t, n, d, o, g, Ee]
|
|
1502
|
+
), Pe = yl(ie, ke, {
|
|
1502
1503
|
pageSize: d,
|
|
1503
1504
|
retainCollapsedLimit: h,
|
|
1504
1505
|
partition: JSON.stringify([t, o])
|
|
1505
|
-
}),
|
|
1506
|
+
}), Ce = G(() => kt(il), []), [Fe, y] = oe(0), B = O((u) => (y((m) => m + 1), u.finally(() => y((m) => m - 1))), []), F = _(/* @__PURE__ */ new Map()), pe = _(Promise.resolve()), te = O(
|
|
1506
1507
|
(u, m, b) => {
|
|
1507
1508
|
if (se.current) return;
|
|
1508
1509
|
const P = n.setModuleCollapsed;
|
|
1509
1510
|
if (!P) return;
|
|
1510
|
-
const
|
|
1511
|
-
() =>
|
|
1512
|
-
),
|
|
1511
|
+
const z = Promise.all([pe.current, F.current.get(u)]).then(
|
|
1512
|
+
() => Ce(() => P({ courseId: t, moduleId: u, collapsed: m }))
|
|
1513
|
+
), U = ((b == null ? void 0 : b.track) === !0 ? B(z) : z).catch((Z) => {
|
|
1513
1514
|
console.warn(
|
|
1514
|
-
`[platform-modules] failed to persist module ${u} collapsed=${m}: ${String(
|
|
1515
|
+
`[platform-modules] failed to persist module ${u} collapsed=${m}: ${String(Z)}`
|
|
1515
1516
|
);
|
|
1516
1517
|
}).finally(() => {
|
|
1517
|
-
|
|
1518
|
+
F.current.get(u) === U && F.current.delete(u);
|
|
1518
1519
|
});
|
|
1519
|
-
|
|
1520
|
+
F.current.set(u, U);
|
|
1520
1521
|
},
|
|
1521
|
-
[n, t,
|
|
1522
|
-
),
|
|
1522
|
+
[n, t, Ce, B]
|
|
1523
|
+
), qe = O(
|
|
1523
1524
|
(u, m) => {
|
|
1524
1525
|
const b = n.setAllModulesCollapsed;
|
|
1525
|
-
if (!(!se.current && !ce.current && !
|
|
1526
|
-
for (const
|
|
1526
|
+
if (!(!se.current && !ce.current && !ee.current && b !== void 0)) {
|
|
1527
|
+
for (const U of m) te(U, u, { track: !0 });
|
|
1527
1528
|
return;
|
|
1528
1529
|
}
|
|
1529
|
-
const
|
|
1530
|
-
Promise.all([
|
|
1530
|
+
const z = B(
|
|
1531
|
+
Promise.all([pe.current, ...F.current.values()]).then(
|
|
1531
1532
|
() => b({ courseId: t, collapsed: u })
|
|
1532
1533
|
)
|
|
1533
|
-
).catch((
|
|
1534
|
+
).catch((U) => {
|
|
1534
1535
|
console.warn(
|
|
1535
|
-
`[platform-modules] failed to persist all modules collapsed=${u}: ${String(
|
|
1536
|
+
`[platform-modules] failed to persist all modules collapsed=${u}: ${String(U)}`
|
|
1536
1537
|
);
|
|
1537
1538
|
});
|
|
1538
|
-
|
|
1539
|
+
pe.current = z;
|
|
1539
1540
|
},
|
|
1540
|
-
[n, t,
|
|
1541
|
-
), Ze =
|
|
1541
|
+
[n, t, te, B]
|
|
1542
|
+
), Ze = O(
|
|
1542
1543
|
(u, m) => {
|
|
1543
1544
|
$.current = !0, C(
|
|
1544
1545
|
(b) => b.includes(u) ? b : [...b, u]
|
|
1545
|
-
), (m == null ? void 0 : m.persist) !== !1 &&
|
|
1546
|
+
), (m == null ? void 0 : m.persist) !== !1 && te(u, !1);
|
|
1546
1547
|
},
|
|
1547
|
-
[
|
|
1548
|
-
),
|
|
1548
|
+
[te]
|
|
1549
|
+
), _e = O(
|
|
1549
1550
|
(u, m) => {
|
|
1550
|
-
$.current = !0, C((b) => b.filter((P) => P !== u)), A.cancelQueries({ queryKey:
|
|
1551
|
+
$.current = !0, C((b) => b.filter((P) => P !== u)), A.cancelQueries({ queryKey: Ge(t, u) }), (m == null ? void 0 : m.persist) !== !1 && te(u, !0);
|
|
1551
1552
|
},
|
|
1552
|
-
[A, t,
|
|
1553
|
-
), co =
|
|
1553
|
+
[A, t, te]
|
|
1554
|
+
), co = O(
|
|
1554
1555
|
(u) => {
|
|
1555
1556
|
$.current = !0, C((m) => {
|
|
1556
|
-
const b = new Set(m), P = u.filter((
|
|
1557
|
+
const b = new Set(m), P = u.filter((z) => !b.has(z));
|
|
1557
1558
|
return P.length === 0 ? m : [...m, ...P];
|
|
1558
1559
|
});
|
|
1559
|
-
for (const m of u)
|
|
1560
|
+
for (const m of u) te(m, !1, { track: !0 });
|
|
1560
1561
|
},
|
|
1561
|
-
[
|
|
1562
|
-
),
|
|
1562
|
+
[te]
|
|
1563
|
+
), uo = O(
|
|
1563
1564
|
(u) => {
|
|
1564
1565
|
$.current = !0;
|
|
1565
1566
|
const m = new Set(u);
|
|
1566
1567
|
C((b) => {
|
|
1567
|
-
const P = b.filter((
|
|
1568
|
+
const P = b.filter((z) => !m.has(z));
|
|
1568
1569
|
return P.length === b.length ? b : P;
|
|
1569
1570
|
});
|
|
1570
1571
|
for (const b of m)
|
|
1571
|
-
A.cancelQueries({ queryKey:
|
|
1572
|
+
A.cancelQueries({ queryKey: Ge(t, b) }), te(b, !0, { track: !0 });
|
|
1572
1573
|
},
|
|
1573
|
-
[A, t,
|
|
1574
|
-
), ge = _(
|
|
1575
|
-
ge.current =
|
|
1576
|
-
const
|
|
1574
|
+
[A, t, te]
|
|
1575
|
+
), ge = _(q);
|
|
1576
|
+
ge.current = q;
|
|
1577
|
+
const mo = O(() => {
|
|
1577
1578
|
$.current = !0;
|
|
1578
1579
|
const u = ge.current;
|
|
1579
1580
|
if (u.length !== 0) {
|
|
1580
1581
|
for (const m of u)
|
|
1581
|
-
A.cancelQueries({ queryKey:
|
|
1582
|
-
C([]),
|
|
1582
|
+
A.cancelQueries({ queryKey: Ge(t, m) });
|
|
1583
|
+
C([]), qe(!0, u);
|
|
1583
1584
|
}
|
|
1584
|
-
}, [A, t,
|
|
1585
|
+
}, [A, t, qe]), po = O(() => {
|
|
1585
1586
|
$.current = !0;
|
|
1586
1587
|
const u = I.modules.map((m) => m.id);
|
|
1587
|
-
u.length !== 0 && (C(u),
|
|
1588
|
-
}, [I.modules,
|
|
1589
|
-
Xe.current =
|
|
1590
|
-
const fe = _(null),
|
|
1588
|
+
u.length !== 0 && (C(u), qe(!1, u));
|
|
1589
|
+
}, [I.modules, qe]), Xe = _(v);
|
|
1590
|
+
Xe.current = v;
|
|
1591
|
+
const fe = _(null), go = O(
|
|
1591
1592
|
(u) => {
|
|
1592
1593
|
if (u === Xe.current) return;
|
|
1593
|
-
if (Xe.current = u, Jt(
|
|
1594
|
+
if (Xe.current = u, Jt(we(D, u))) {
|
|
1594
1595
|
fe.current === null && (fe.current = ge.current);
|
|
1595
1596
|
const b = $.current;
|
|
1596
|
-
for (const P of ge.current)
|
|
1597
|
+
for (const P of ge.current) _e(P, { persist: !1 });
|
|
1597
1598
|
$.current = b;
|
|
1598
1599
|
} else fe.current !== null && (C(fe.current), ge.current = fe.current, fe.current = null);
|
|
1599
|
-
|
|
1600
|
+
R(u);
|
|
1600
1601
|
},
|
|
1601
|
-
[D,
|
|
1602
|
-
),
|
|
1602
|
+
[D, _e]
|
|
1603
|
+
), fo = O(
|
|
1603
1604
|
(u) => {
|
|
1604
|
-
ge.current.includes(u) ?
|
|
1605
|
+
ge.current.includes(u) ? _e(u) : Ze(u);
|
|
1605
1606
|
},
|
|
1606
|
-
[
|
|
1607
|
-
), Et = _(
|
|
1608
|
-
Et.current =
|
|
1609
|
-
const [Pt,
|
|
1607
|
+
[_e, Ze]
|
|
1608
|
+
), Et = _(V);
|
|
1609
|
+
Et.current = V;
|
|
1610
|
+
const [Pt, ho] = oe(() => /* @__PURE__ */ new Map()), Ct = Pe.goToPage, he = O(
|
|
1610
1611
|
(u, m) => {
|
|
1611
|
-
var
|
|
1612
|
-
const b = (
|
|
1612
|
+
var z;
|
|
1613
|
+
const b = (z = Et.current.get(u)) == null ? void 0 : z.items;
|
|
1613
1614
|
if (b === void 0) {
|
|
1614
1615
|
Ct(u, m);
|
|
1615
1616
|
return;
|
|
1616
1617
|
}
|
|
1617
|
-
const P =
|
|
1618
|
-
|
|
1619
|
-
const
|
|
1620
|
-
return
|
|
1618
|
+
const P = Re(b.length, d);
|
|
1619
|
+
ho((U) => {
|
|
1620
|
+
const Z = Math.min(U.get(u) ?? 1, P), Ae = m === "first" ? 1 : m === "last" ? P : Math.min(Math.max(Z + (m === "next" ? 1 : -1), 1), P);
|
|
1621
|
+
return Ae === Z ? U : new Map(U).set(u, Ae);
|
|
1621
1622
|
});
|
|
1622
1623
|
},
|
|
1623
1624
|
[Ct, d]
|
|
1624
|
-
), Je =
|
|
1625
|
+
), Je = G(() => /* @__PURE__ */ new Map(), [he]), _t = O(
|
|
1625
1626
|
(u) => {
|
|
1626
1627
|
let m = Je.get(u);
|
|
1627
1628
|
return m || (m = {
|
|
@@ -1632,90 +1633,90 @@ function Yl(e) {
|
|
|
1632
1633
|
}, Je.set(u, m)), m;
|
|
1633
1634
|
},
|
|
1634
1635
|
[Je, he]
|
|
1635
|
-
), At =
|
|
1636
|
+
), At = Pe.entries, Dt = _(/* @__PURE__ */ new Map()), bo = O(
|
|
1636
1637
|
(u) => {
|
|
1637
|
-
var
|
|
1638
|
-
const m =
|
|
1639
|
-
if (
|
|
1640
|
-
return
|
|
1641
|
-
const
|
|
1638
|
+
var Rt, Nt;
|
|
1639
|
+
const m = V.get(u), b = At.get(u), P = ve.has(u), z = Pt.get(u), U = _t(u), Z = Dt.current.get(u);
|
|
1640
|
+
if (Z && Z.items === (m == null ? void 0 : m.items) && Z.entry === b && Z.active === P && Z.inlinePage === z && Z.navigation === U)
|
|
1641
|
+
return Z.value;
|
|
1642
|
+
const Ae = (De) => (Dt.current.set(u, {
|
|
1642
1643
|
items: m == null ? void 0 : m.items,
|
|
1643
1644
|
entry: b,
|
|
1644
1645
|
active: P,
|
|
1645
|
-
inlinePage:
|
|
1646
|
-
navigation:
|
|
1647
|
-
value:
|
|
1648
|
-
}),
|
|
1646
|
+
inlinePage: z,
|
|
1647
|
+
navigation: U,
|
|
1648
|
+
value: De
|
|
1649
|
+
}), De);
|
|
1649
1650
|
if ((m == null ? void 0 : m.items) !== void 0) {
|
|
1650
|
-
const
|
|
1651
|
-
return
|
|
1651
|
+
const De = Re(m.items.length, d), Ot = Math.min(z ?? 1, De), et = (Ot - 1) * d;
|
|
1652
|
+
return Ae({
|
|
1652
1653
|
items: m.items.slice(et, et + d),
|
|
1653
1654
|
page: Ot,
|
|
1654
|
-
pageCount:
|
|
1655
|
-
itemOffset: m.items.slice(0, et).filter((
|
|
1656
|
-
...
|
|
1655
|
+
pageCount: De,
|
|
1656
|
+
itemOffset: m.items.slice(0, et).filter((yo) => yo.type !== "sub_header").length,
|
|
1657
|
+
...U,
|
|
1657
1658
|
isLoading: !1,
|
|
1658
1659
|
isRefreshing: !1,
|
|
1659
1660
|
error: null,
|
|
1660
1661
|
source: "inline"
|
|
1661
1662
|
});
|
|
1662
1663
|
}
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1665
|
-
items: ((
|
|
1666
|
-
page:
|
|
1664
|
+
const W = b == null ? void 0 : b.result, ze = (b == null ? void 0 : b.page) ?? 1, be = (Rt = W == null ? void 0 : W.data) == null ? void 0 : Rt.pageInfo;
|
|
1665
|
+
return Ae({
|
|
1666
|
+
items: ((Nt = W == null ? void 0 : W.data) == null ? void 0 : Nt.items) ?? Il,
|
|
1667
|
+
page: ze,
|
|
1667
1668
|
pageCount: Math.max(
|
|
1668
|
-
|
|
1669
|
-
be != null && be.hasNextPage ?
|
|
1669
|
+
Re((be == null ? void 0 : be.totalCount) ?? null, d),
|
|
1670
|
+
be != null && be.hasNextPage ? ze + 1 : ze
|
|
1670
1671
|
),
|
|
1671
|
-
itemOffset: (
|
|
1672
|
-
...
|
|
1673
|
-
isLoading:
|
|
1674
|
-
isRefreshing: (
|
|
1675
|
-
error: (
|
|
1672
|
+
itemOffset: (ze - 1) * d,
|
|
1673
|
+
...U,
|
|
1674
|
+
isLoading: W ? W.isLoading : P,
|
|
1675
|
+
isRefreshing: (W == null ? void 0 : W.isPlaceholderData) ?? !1,
|
|
1676
|
+
error: (W == null ? void 0 : W.error) ?? null,
|
|
1676
1677
|
source: "onDemand"
|
|
1677
1678
|
});
|
|
1678
1679
|
},
|
|
1679
|
-
[
|
|
1680
|
+
[V, At, ve, Pt, _t, d]
|
|
1680
1681
|
);
|
|
1681
1682
|
return {
|
|
1682
1683
|
modules: I.modules,
|
|
1683
1684
|
pageInfo: I.pageInfo,
|
|
1684
1685
|
page: I.page,
|
|
1685
1686
|
pageCount: I.pageCount,
|
|
1686
|
-
pageSize:
|
|
1687
|
+
pageSize: k,
|
|
1687
1688
|
hasNextPage: I.hasNextPage,
|
|
1688
1689
|
hasPreviousPage: I.hasPreviousPage,
|
|
1689
1690
|
goToFirstPage: I.goToFirstPage,
|
|
1690
1691
|
goToPreviousPage: I.goToPreviousPage,
|
|
1691
1692
|
goToNextPage: I.goToNextPage,
|
|
1692
1693
|
goToLastPage: I.goToLastPage,
|
|
1693
|
-
isLoading: (
|
|
1694
|
+
isLoading: (H.isResolving || I.isPending) && !I.isPlaceholderData,
|
|
1694
1695
|
isRefreshing: I.isPlaceholderData,
|
|
1695
|
-
error: I.error ??
|
|
1696
|
-
itemsMode:
|
|
1697
|
-
getItems:
|
|
1696
|
+
error: I.error ?? H.error,
|
|
1697
|
+
itemsMode: K,
|
|
1698
|
+
getItems: bo,
|
|
1698
1699
|
expandModule: Ze,
|
|
1699
|
-
collapseModule:
|
|
1700
|
+
collapseModule: _e,
|
|
1700
1701
|
expandModules: co,
|
|
1701
|
-
collapseModules:
|
|
1702
|
-
collapseAllModules:
|
|
1703
|
-
expandAllModules:
|
|
1704
|
-
toggleModule:
|
|
1705
|
-
expandedModuleIds:
|
|
1706
|
-
filter:
|
|
1707
|
-
setFilter:
|
|
1702
|
+
collapseModules: uo,
|
|
1703
|
+
collapseAllModules: mo,
|
|
1704
|
+
expandAllModules: po,
|
|
1705
|
+
toggleModule: fo,
|
|
1706
|
+
expandedModuleIds: q,
|
|
1707
|
+
filter: v,
|
|
1708
|
+
setFilter: go,
|
|
1708
1709
|
filterEntry: E,
|
|
1709
|
-
filterPredicate:
|
|
1710
|
-
isPersistingCollapsed:
|
|
1710
|
+
filterPredicate: Ga(E) ? E == null ? void 0 : E.predicate : void 0,
|
|
1711
|
+
isPersistingCollapsed: Fe > 0
|
|
1711
1712
|
};
|
|
1712
1713
|
}
|
|
1713
|
-
const
|
|
1714
|
+
const Ml = 20, Tl = 4.5, an = 7, Sl = 5, wl = 20, to = "#000000", no = "#FFFFFF", oo = {
|
|
1714
1715
|
primary: { semantic: "base", textKey: "baseTextColor", borderKey: "baseBorderColor" },
|
|
1715
1716
|
info: { semantic: "info", textKey: "infoTextColor", borderKey: "infoBorderColor" },
|
|
1716
1717
|
success: { semantic: "success", textKey: "successTextColor", borderKey: "successBorderColor" },
|
|
1717
1718
|
warning: { semantic: "warning", textKey: "warningTextColor", borderKey: "warningBorderColor" }
|
|
1718
|
-
},
|
|
1719
|
+
}, vl = {
|
|
1719
1720
|
card: {
|
|
1720
1721
|
primary: { fill: "#E8EAEC", stroke: "#8D959F", text: "#273540" },
|
|
1721
1722
|
info: { fill: "#D5E4F2", stroke: "#2B7ABC", text: "#23649A" },
|
|
@@ -1729,62 +1730,62 @@ const yc = 20, Ic = 4.5, an = 7, Mc = 5, Tc = 20, eo = "#000000", to = "#FFFFFF"
|
|
|
1729
1730
|
warning: { fill: "#EBD2C4", stroke: "#CF4A00", text: "#A13900" }
|
|
1730
1731
|
}
|
|
1731
1732
|
};
|
|
1732
|
-
function
|
|
1733
|
-
const n =
|
|
1733
|
+
function El(e, t) {
|
|
1734
|
+
const n = qo(
|
|
1734
1735
|
st(e),
|
|
1735
|
-
st(
|
|
1736
|
+
st(zo(t, Ml))
|
|
1736
1737
|
);
|
|
1737
1738
|
return Pn(n);
|
|
1738
1739
|
}
|
|
1739
|
-
function
|
|
1740
|
-
const o = de(n, t) >= an ? an :
|
|
1741
|
-
return Math.min(o, Math.max(de(e,
|
|
1740
|
+
function Pl(e, t, n) {
|
|
1741
|
+
const o = de(n, t) >= an ? an : Tl;
|
|
1742
|
+
return Math.min(o, Math.max(de(e, to), de(e, no)));
|
|
1742
1743
|
}
|
|
1743
|
-
function
|
|
1744
|
-
const o =
|
|
1744
|
+
function Cl(e, t, n) {
|
|
1745
|
+
const o = Pl(e, t, n);
|
|
1745
1746
|
if (de(e, t) >= o) return t;
|
|
1746
|
-
const r = de(e,
|
|
1747
|
+
const r = de(e, to) > de(e, no) ? Uo : $o;
|
|
1747
1748
|
let s = t;
|
|
1748
|
-
for (let i = 0; i <
|
|
1749
|
-
s = r(s,
|
|
1749
|
+
for (let i = 0; i < wl && de(e, s) < o; i++)
|
|
1750
|
+
s = r(s, Sl);
|
|
1750
1751
|
return Pn(s);
|
|
1751
1752
|
}
|
|
1752
|
-
function
|
|
1753
|
+
function _l(e) {
|
|
1753
1754
|
return rt(e) && st(e).a === 1;
|
|
1754
1755
|
}
|
|
1755
|
-
function
|
|
1756
|
+
function ln(e, t) {
|
|
1756
1757
|
var n;
|
|
1757
1758
|
return t === "card" ? (n = e == null ? void 0 : e.elevatedSurface) == null ? void 0 : n.base : e == null ? void 0 : e.muted;
|
|
1758
1759
|
}
|
|
1759
|
-
function
|
|
1760
|
+
function cn(e, t, n, o) {
|
|
1760
1761
|
var i, c, d, p;
|
|
1761
|
-
const r =
|
|
1762
|
+
const r = vl[n][e], s = t;
|
|
1762
1763
|
try {
|
|
1763
1764
|
const h = s == null ? void 0 : s.newTheme, g = (i = h == null ? void 0 : h.semantics) == null ? void 0 : i.call(h, h.primitives);
|
|
1764
1765
|
if (!g) return r;
|
|
1765
|
-
const { semantic: f } =
|
|
1766
|
-
if (!
|
|
1767
|
-
const A =
|
|
1768
|
-
return { fill: A, stroke: x, text:
|
|
1766
|
+
const { semantic: f } = oo[e], M = ln((p = (d = (c = s == null ? void 0 : s.themeOverride) == null ? void 0 : c.semantics) == null ? void 0 : d.color) == null ? void 0 : p.background, n) ?? ln(g.color.background, n) ?? "", x = o.stroke ?? g.color.stroke[f], k = o.label ?? g.color.text[f];
|
|
1767
|
+
if (!_l(M) || !rt(x) || !rt(k)) return r;
|
|
1768
|
+
const A = El(M, x);
|
|
1769
|
+
return { fill: A, stroke: x, text: Cl(A, k, M) };
|
|
1769
1770
|
} catch {
|
|
1770
1771
|
return r;
|
|
1771
1772
|
}
|
|
1772
1773
|
}
|
|
1773
1774
|
const un = /* @__PURE__ */ new WeakMap();
|
|
1774
|
-
function
|
|
1775
|
+
function ro(e, t, n, o = {}) {
|
|
1775
1776
|
if (typeof t != "object" || t === null)
|
|
1776
|
-
return
|
|
1777
|
+
return cn(e, t, n, o);
|
|
1777
1778
|
let r = un.get(t);
|
|
1778
1779
|
r === void 0 && (r = /* @__PURE__ */ new Map(), un.set(t, r));
|
|
1779
1780
|
const s = `${n}:${e}:${o.stroke ?? ""}:${o.label ?? ""}`, i = r.get(s);
|
|
1780
1781
|
if (i !== void 0) return i;
|
|
1781
|
-
const c =
|
|
1782
|
+
const c = cn(e, t, n, o);
|
|
1782
1783
|
return r.set(s, c), c;
|
|
1783
1784
|
}
|
|
1784
|
-
function
|
|
1785
|
-
const { textKey: n, borderKey: o } =
|
|
1785
|
+
function Be(e, t) {
|
|
1786
|
+
const { textKey: n, borderKey: o } = oo[e];
|
|
1786
1787
|
return (r, s) => {
|
|
1787
|
-
const i = r, { fill: c, stroke: d, text: p } =
|
|
1788
|
+
const i = r, { fill: c, stroke: d, text: p } = ro(e, s, t, {
|
|
1788
1789
|
stroke: i == null ? void 0 : i[o],
|
|
1789
1790
|
label: i == null ? void 0 : i[n]
|
|
1790
1791
|
});
|
|
@@ -1793,34 +1794,34 @@ function $e(e, t) {
|
|
|
1793
1794
|
}
|
|
1794
1795
|
function dn(e) {
|
|
1795
1796
|
return {
|
|
1796
|
-
primary:
|
|
1797
|
-
info:
|
|
1798
|
-
success:
|
|
1799
|
-
warning:
|
|
1797
|
+
primary: Be("primary", e),
|
|
1798
|
+
info: Be("info", e),
|
|
1799
|
+
success: Be("success", e),
|
|
1800
|
+
warning: Be("warning", e)
|
|
1800
1801
|
};
|
|
1801
1802
|
}
|
|
1802
|
-
const
|
|
1803
|
+
const Al = {
|
|
1803
1804
|
card: dn("card"),
|
|
1804
1805
|
row: dn("row")
|
|
1805
|
-
},
|
|
1806
|
+
}, Dl = "#9242B4", Ll = "#9E58BD";
|
|
1806
1807
|
function mn(e) {
|
|
1807
1808
|
return (t, n) => {
|
|
1808
1809
|
var i, c, d, p;
|
|
1809
|
-
const { fill: o, stroke: r, text: s } =
|
|
1810
|
-
stroke: ((c = (i = n.colors) == null ? void 0 : i.contrasts) == null ? void 0 : c.violet4570) ??
|
|
1811
|
-
label: ((p = (d = n.colors) == null ? void 0 : d.contrasts) == null ? void 0 : p.violet5790) ??
|
|
1810
|
+
const { fill: o, stroke: r, text: s } = ro("primary", n, e, {
|
|
1811
|
+
stroke: ((c = (i = n.colors) == null ? void 0 : i.contrasts) == null ? void 0 : c.violet4570) ?? Ll,
|
|
1812
|
+
label: ((p = (d = n.colors) == null ? void 0 : d.contrasts) == null ? void 0 : p.violet5790) ?? Dl
|
|
1812
1813
|
});
|
|
1813
1814
|
return { backgroundColor: o, baseTextColor: s, baseBorderColor: r };
|
|
1814
1815
|
};
|
|
1815
1816
|
}
|
|
1816
|
-
const
|
|
1817
|
+
const so = {
|
|
1817
1818
|
tone: "primary",
|
|
1818
1819
|
icon: /* @__PURE__ */ l(pt, { size: "sm" }),
|
|
1819
1820
|
themes: {
|
|
1820
1821
|
card: mn("card"),
|
|
1821
1822
|
row: mn("row")
|
|
1822
1823
|
}
|
|
1823
|
-
},
|
|
1824
|
+
}, xl = {
|
|
1824
1825
|
not_started: { tone: "primary", icon: /* @__PURE__ */ l(bt, { size: "sm" }) },
|
|
1825
1826
|
in_progress: { tone: "info", icon: /* @__PURE__ */ l(ht, { size: "sm" }) },
|
|
1826
1827
|
complete: { tone: "success", icon: /* @__PURE__ */ l(ft, { size: "sm" }) },
|
|
@@ -1828,7 +1829,7 @@ const ro = {
|
|
|
1828
1829
|
incomplete: { tone: "warning", icon: /* @__PURE__ */ l(Te, { size: "sm" }) },
|
|
1829
1830
|
missing_and_incomplete: { tone: "warning", icon: /* @__PURE__ */ l(Te, { size: "sm" }) },
|
|
1830
1831
|
locked: { tone: "primary", icon: /* @__PURE__ */ l(gt, { size: "sm" }) }
|
|
1831
|
-
},
|
|
1832
|
+
}, Rl = {
|
|
1832
1833
|
not_started: { tone: "primary", icon: /* @__PURE__ */ l(bt, { size: "sm" }) },
|
|
1833
1834
|
in_progress: { tone: "info", icon: /* @__PURE__ */ l(ht, { size: "sm" }) },
|
|
1834
1835
|
complete: { tone: "success", icon: /* @__PURE__ */ l(ft, { size: "sm" }) },
|
|
@@ -1836,7 +1837,7 @@ const ro = {
|
|
|
1836
1837
|
missing: { tone: "warning", icon: /* @__PURE__ */ l(Te, { size: "sm" }) },
|
|
1837
1838
|
locked: { tone: "primary", icon: /* @__PURE__ */ l(gt, { size: "sm" }) }
|
|
1838
1839
|
};
|
|
1839
|
-
function
|
|
1840
|
+
function io(e, t, n, o) {
|
|
1840
1841
|
switch (t) {
|
|
1841
1842
|
case "not_started":
|
|
1842
1843
|
return e("moduleStatusNotStarted");
|
|
@@ -1857,7 +1858,7 @@ function so(e, t, n, o) {
|
|
|
1857
1858
|
return e("moduleStatusLocked");
|
|
1858
1859
|
}
|
|
1859
1860
|
}
|
|
1860
|
-
function
|
|
1861
|
+
function Nl(e, t) {
|
|
1861
1862
|
switch (t) {
|
|
1862
1863
|
case "not_started":
|
|
1863
1864
|
return e("itemStatusNotStarted");
|
|
@@ -1873,54 +1874,62 @@ function xc(e, t) {
|
|
|
1873
1874
|
return e("itemStatusLocked");
|
|
1874
1875
|
}
|
|
1875
1876
|
}
|
|
1876
|
-
function
|
|
1877
|
+
function Ve(e, t, n, o) {
|
|
1877
1878
|
var r;
|
|
1878
1879
|
return /* @__PURE__ */ l(
|
|
1879
|
-
|
|
1880
|
+
Oo,
|
|
1880
1881
|
{
|
|
1881
1882
|
color: e.tone,
|
|
1882
1883
|
renderIcon: e.icon,
|
|
1883
|
-
themeOverride: ((r = e.themes) == null ? void 0 : r[o]) ??
|
|
1884
|
+
themeOverride: ((r = e.themes) == null ? void 0 : r[o]) ?? Al[o][e.tone],
|
|
1884
1885
|
"data-testid": n,
|
|
1885
1886
|
children: t
|
|
1886
1887
|
}
|
|
1887
1888
|
);
|
|
1888
1889
|
}
|
|
1889
|
-
function
|
|
1890
|
+
function Jc({
|
|
1890
1891
|
status: e,
|
|
1891
1892
|
missingCount: t,
|
|
1892
1893
|
incompleteCount: n
|
|
1893
1894
|
}) {
|
|
1894
|
-
const { t: o } =
|
|
1895
|
-
return
|
|
1896
|
-
|
|
1897
|
-
|
|
1895
|
+
const { t: o } = X();
|
|
1896
|
+
return Ve(
|
|
1897
|
+
xl[e],
|
|
1898
|
+
io(o, e, t, n),
|
|
1898
1899
|
"module-status-pill",
|
|
1899
1900
|
"card"
|
|
1900
1901
|
);
|
|
1901
1902
|
}
|
|
1902
|
-
function
|
|
1903
|
-
const { t } =
|
|
1904
|
-
return
|
|
1905
|
-
|
|
1906
|
-
|
|
1903
|
+
function Ol({ status: e }) {
|
|
1904
|
+
const { t } = X();
|
|
1905
|
+
return Ve(
|
|
1906
|
+
Rl[e],
|
|
1907
|
+
Nl(t, e),
|
|
1907
1908
|
"item-status-pill",
|
|
1908
1909
|
"row"
|
|
1909
1910
|
);
|
|
1910
1911
|
}
|
|
1911
|
-
function
|
|
1912
|
-
const { t: e } =
|
|
1913
|
-
return
|
|
1912
|
+
function eu() {
|
|
1913
|
+
const { t: e } = X();
|
|
1914
|
+
return Ve(so, e("moduleStatusDueSoon"), "module-due-soon-pill", "card");
|
|
1914
1915
|
}
|
|
1915
|
-
function
|
|
1916
|
-
const { t: e } =
|
|
1917
|
-
return
|
|
1916
|
+
function kl() {
|
|
1917
|
+
const { t: e } = X();
|
|
1918
|
+
return Ve(so, e("itemStatusDueSoon"), "item-due-soon-pill", "row");
|
|
1918
1919
|
}
|
|
1919
|
-
function
|
|
1920
|
-
const e =
|
|
1920
|
+
function tu() {
|
|
1921
|
+
const { t: e } = X();
|
|
1922
|
+
return /* @__PURE__ */ l(Cn, { text: e("moduleRequiredPill"), size: "small", "data-testid": "module-required-pill" });
|
|
1923
|
+
}
|
|
1924
|
+
function Fl() {
|
|
1925
|
+
const { t: e } = X();
|
|
1926
|
+
return /* @__PURE__ */ l(Cn, { text: e("itemRequiredTag"), size: "small", "data-testid": "item-required-pill" });
|
|
1927
|
+
}
|
|
1928
|
+
function ql() {
|
|
1929
|
+
const e = vn();
|
|
1921
1930
|
return "key" in e && e.key === "canvas-high-contrast" ? "inline" : "standalone";
|
|
1922
1931
|
}
|
|
1923
|
-
const
|
|
1932
|
+
const ao = 2.75, zl = `${ao}rem`, pn = "0.065em", Se = "0.8em", Ul = "0.28em", gn = "1px", $l = "0.57em", lo = {
|
|
1924
1933
|
display: "inline-block",
|
|
1925
1934
|
paddingLeft: Se,
|
|
1926
1935
|
marginLeft: `-${Se}`,
|
|
@@ -1928,8 +1937,8 @@ const io = 2.75, kc = `${io}rem`, pn = "0.065em", Se = "0.8em", Fc = "0.28em", g
|
|
|
1928
1937
|
backgroundRepeat: "no-repeat",
|
|
1929
1938
|
backgroundSize: `${Se} 100%`,
|
|
1930
1939
|
backgroundPosition: "left center"
|
|
1931
|
-
},
|
|
1932
|
-
...
|
|
1940
|
+
}, Bl = {
|
|
1941
|
+
...lo,
|
|
1933
1942
|
backgroundImage: "none",
|
|
1934
1943
|
borderLeft: `${gn} solid`,
|
|
1935
1944
|
paddingLeft: `calc(${Se} / 2 - ${gn})`,
|
|
@@ -1938,8 +1947,8 @@ const io = 2.75, kc = `${io}rem`, pn = "0.065em", Se = "0.8em", Fc = "0.28em", g
|
|
|
1938
1947
|
function fn() {
|
|
1939
1948
|
return typeof window > "u" || typeof window.matchMedia != "function" ? null : window.matchMedia("(forced-colors: active)");
|
|
1940
1949
|
}
|
|
1941
|
-
function
|
|
1942
|
-
const [e, t] =
|
|
1950
|
+
function Wl() {
|
|
1951
|
+
const [e, t] = oe(() => {
|
|
1943
1952
|
var n;
|
|
1944
1953
|
return ((n = fn()) == null ? void 0 : n.matches) ?? !1;
|
|
1945
1954
|
});
|
|
@@ -1949,39 +1958,39 @@ function Uc() {
|
|
|
1949
1958
|
t(n.matches);
|
|
1950
1959
|
const o = (r) => t(r.matches);
|
|
1951
1960
|
return n.addEventListener("change", o), () => n.removeEventListener("change", o);
|
|
1952
|
-
}, []), e ?
|
|
1961
|
+
}, []), e ? Bl : lo;
|
|
1953
1962
|
}
|
|
1954
|
-
const
|
|
1963
|
+
const Gl = {
|
|
1955
1964
|
overflowX: "clip",
|
|
1956
1965
|
overflowWrap: "anywhere",
|
|
1957
1966
|
lineHeight: 0
|
|
1958
|
-
},
|
|
1959
|
-
...
|
|
1960
|
-
marginTop: `-${
|
|
1961
|
-
}, hn = { marginTop: `${
|
|
1967
|
+
}, jl = "#6A7883", vt = 0.5, Ke = { display: "block" }, Hl = { ...Ke, marginTop: `${vt}rem` }, Kl = {
|
|
1968
|
+
...Ke,
|
|
1969
|
+
marginTop: `-${vt}rem`
|
|
1970
|
+
}, hn = { marginTop: `${vt}rem` }, bn = { display: "inline-block" }, Yl = {
|
|
1962
1971
|
display: "-webkit-box",
|
|
1963
1972
|
WebkitLineClamp: 2,
|
|
1964
1973
|
WebkitBoxOrient: "vertical",
|
|
1965
1974
|
overflow: "hidden"
|
|
1966
|
-
},
|
|
1967
|
-
marginRight: `calc(${Se} - ${
|
|
1968
|
-
},
|
|
1975
|
+
}, Ql = {
|
|
1976
|
+
marginRight: `calc(${Se} - ${Ul})`
|
|
1977
|
+
}, Vl = {
|
|
1969
1978
|
display: "inline-flex",
|
|
1970
1979
|
alignItems: "center",
|
|
1971
1980
|
height: "1lh",
|
|
1972
1981
|
verticalAlign: "top",
|
|
1973
|
-
marginInlineEnd:
|
|
1982
|
+
marginInlineEnd: $l
|
|
1974
1983
|
};
|
|
1975
1984
|
function Me(e) {
|
|
1976
|
-
return e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Me) : mt(e) && e.type ===
|
|
1985
|
+
return e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Me) : mt(e) && e.type === wn ? Me(e.props.children) : !1;
|
|
1977
1986
|
}
|
|
1978
|
-
const
|
|
1979
|
-
function
|
|
1987
|
+
const Zl = 1.5, Xl = 0.25, Jl = 0.5;
|
|
1988
|
+
function ec(e, t) {
|
|
1980
1989
|
var o, r;
|
|
1981
|
-
const n =
|
|
1990
|
+
const n = vn();
|
|
1982
1991
|
return ("colors" in n ? (r = (o = n.colors) == null ? void 0 : o.contrasts) == null ? void 0 : r[e] : void 0) ?? t;
|
|
1983
1992
|
}
|
|
1984
|
-
function
|
|
1993
|
+
function tc({
|
|
1985
1994
|
item: e,
|
|
1986
1995
|
today: t,
|
|
1987
1996
|
attachedAbove: n,
|
|
@@ -1990,11 +1999,11 @@ function Xc({
|
|
|
1990
1999
|
moduleLabel: s,
|
|
1991
2000
|
itemNumber: i
|
|
1992
2001
|
}) {
|
|
1993
|
-
var
|
|
1994
|
-
const { t: c, locale: d, timezone: p } =
|
|
2002
|
+
var Fe;
|
|
2003
|
+
const { t: c, locale: d, timezone: p } = X(), h = nr(), g = ql(), f = ec("grey4570", jl), M = Wl(), x = _(null), k = Zn(), A = Qe(), { navigation: S } = A, v = G(() => On(A.itemMeta), [A.itemMeta]), R = e.title || c("itemUntitled");
|
|
1995
2004
|
if (e.type === "sub_header")
|
|
1996
2005
|
return /* @__PURE__ */ l(
|
|
1997
|
-
|
|
2006
|
+
ae,
|
|
1998
2007
|
{
|
|
1999
2008
|
as: "div",
|
|
2000
2009
|
padding: r ? "x-small small" : "x-small mediumSmall",
|
|
@@ -2008,17 +2017,17 @@ function Xc({
|
|
|
2008
2017
|
transform: "uppercase",
|
|
2009
2018
|
"data-testid": "module-item-title",
|
|
2010
2019
|
"data-sub-header": "true",
|
|
2011
|
-
children:
|
|
2020
|
+
children: R
|
|
2012
2021
|
}
|
|
2013
2022
|
)
|
|
2014
2023
|
}
|
|
2015
2024
|
);
|
|
2016
|
-
const D =
|
|
2017
|
-
h(`item-click-${e.type}`),
|
|
2018
|
-
},
|
|
2025
|
+
const D = Ra(s, i, d), E = D ? c("itemNameWithLabel", { label: D, name: R }) : R, w = ((Fe = S.getItemHref) == null ? void 0 : Fe.call(S, e)) ?? e.url ?? null, T = e.status === "locked", L = T ? null : w, Q = e.status !== void 0 && e.status !== "complete" && !T && $n(e.dueAt, t, p), j = S.onItemClick, H = (y) => {
|
|
2026
|
+
h(`item-click-${e.type}`), j == null || j(e, y);
|
|
2027
|
+
}, K = (y) => {
|
|
2019
2028
|
var F;
|
|
2020
|
-
const
|
|
2021
|
-
!
|
|
2029
|
+
const B = x.current;
|
|
2030
|
+
!B || B.contains(y.target) || (F = window.getSelection()) != null && F.toString().trim() || B.dispatchEvent(
|
|
2022
2031
|
new window.MouseEvent("click", {
|
|
2023
2032
|
bubbles: !0,
|
|
2024
2033
|
cancelable: !0,
|
|
@@ -2028,115 +2037,121 @@ function Xc({
|
|
|
2028
2037
|
altKey: y.altKey
|
|
2029
2038
|
})
|
|
2030
2039
|
);
|
|
2031
|
-
}, I = { item: e, t: c, today: t, locale: d, timezone: p, formatters:
|
|
2040
|
+
}, I = { item: e, t: c, today: t, locale: d, timezone: p, formatters: k, config: A }, q = v.map((y) => ({
|
|
2032
2041
|
key: y.key,
|
|
2033
2042
|
node: y.render(I),
|
|
2034
2043
|
icon: y.renderIcon ? y.renderIcon(I) : y.icon
|
|
2035
2044
|
})).filter((y) => !Me(y.node)), C = [];
|
|
2036
2045
|
let re;
|
|
2037
|
-
const $ = r ?
|
|
2038
|
-
for (const y of
|
|
2039
|
-
if (y !==
|
|
2046
|
+
const $ = r ? q.find((y) => y.key === "dueAt" && !Me(y.icon)) : void 0, J = $ && q.find((y) => y.key === "estimatedDuration");
|
|
2047
|
+
for (const y of q)
|
|
2048
|
+
if (y !== J)
|
|
2040
2049
|
if (!Me(y.icon) && (r || !re)) {
|
|
2041
|
-
const
|
|
2042
|
-
C.push(
|
|
2050
|
+
const B = y === $ && J ? [y, J] : [y];
|
|
2051
|
+
C.push(B), re ?? (re = B);
|
|
2043
2052
|
} else re ? re.push(y) : C.length === 0 ? C.push([y]) : C[0].push(y);
|
|
2044
|
-
const se = r ? { ...bn, ...hn } : bn, ce = r ? { ...M, ...hn } : M, V =
|
|
2045
|
-
|
|
2046
|
-
e.status ? /* @__PURE__ */ l(
|
|
2047
|
-
] }) : null,
|
|
2053
|
+
const se = r ? { ...bn, ...hn } : bn, ce = r ? { ...M, ...hn } : M, ee = e.completionRequirement ? /* @__PURE__ */ l(Fl, {}) : null, V = Q || e.status ? /* @__PURE__ */ Y(N, { alignItems: "center", gap: "x-small", wrap: r ? "wrap" : "no-wrap", children: [
|
|
2054
|
+
Q ? /* @__PURE__ */ l(N.Item, { children: /* @__PURE__ */ l(kl, {}) }) : null,
|
|
2055
|
+
e.status ? /* @__PURE__ */ l(N.Item, { children: /* @__PURE__ */ l(Ol, { status: e.status }) }) : null
|
|
2056
|
+
] }) : null, ie = r && ee ? /* @__PURE__ */ Y(N, { direction: "column", alignItems: "start", gap: "x-small", children: [
|
|
2057
|
+
/* @__PURE__ */ l(N.Item, { children: ee }),
|
|
2058
|
+
V ? /* @__PURE__ */ l(N.Item, { children: V }) : null
|
|
2059
|
+
] }) : V, ve = r ? /* @__PURE__ */ l("span", { style: Yl, "data-title-clamp": "", children: E }) : E, Ee = {
|
|
2048
2060
|
weight: "bold",
|
|
2049
2061
|
size: r ? "medium" : "small",
|
|
2050
2062
|
lineHeight: "condensed",
|
|
2051
2063
|
"data-testid": "module-item-title"
|
|
2052
|
-
},
|
|
2064
|
+
}, ke = L ? /* @__PURE__ */ Y(
|
|
2053
2065
|
No,
|
|
2054
2066
|
{
|
|
2055
2067
|
href: L,
|
|
2056
2068
|
elementRef: (y) => {
|
|
2057
2069
|
x.current = y;
|
|
2058
2070
|
},
|
|
2059
|
-
onClick:
|
|
2071
|
+
onClick: H,
|
|
2060
2072
|
forceButtonRole: !1,
|
|
2061
2073
|
variant: g,
|
|
2062
2074
|
display: r ? "block" : void 0,
|
|
2063
2075
|
target: e.newTab ? "_blank" : void 0,
|
|
2064
2076
|
rel: e.newTab ? "noopener noreferrer" : void 0,
|
|
2065
2077
|
children: [
|
|
2066
|
-
/* @__PURE__ */ l(ue, { ...
|
|
2078
|
+
/* @__PURE__ */ l(ue, { ...Ee, color: "primary", children: ve }),
|
|
2067
2079
|
e.newTab ? /* @__PURE__ */ l(En, { children: ` ${c("opensInNewWindow")}` }) : null
|
|
2068
2080
|
]
|
|
2069
2081
|
}
|
|
2070
2082
|
) : /* @__PURE__ */ l(
|
|
2071
2083
|
ue,
|
|
2072
2084
|
{
|
|
2073
|
-
...
|
|
2085
|
+
...Ee,
|
|
2074
2086
|
color: T ? "secondary" : "primary",
|
|
2075
2087
|
"data-locked": T ? "true" : void 0,
|
|
2076
|
-
children:
|
|
2088
|
+
children: ve
|
|
2077
2089
|
}
|
|
2078
|
-
),
|
|
2090
|
+
), Pe = n ? "none" : "large", Ce = o ? "none" : "large";
|
|
2079
2091
|
return /* @__PURE__ */ l(
|
|
2080
|
-
|
|
2092
|
+
ae,
|
|
2081
2093
|
{
|
|
2082
2094
|
as: "div",
|
|
2083
2095
|
background: "secondary",
|
|
2084
|
-
borderRadius: `${
|
|
2096
|
+
borderRadius: `${Pe} ${Pe} ${Ce} ${Ce}`,
|
|
2085
2097
|
padding: r ? "small" : "mediumSmall",
|
|
2086
2098
|
margin: n ? "0" : "x-small 0 0 0",
|
|
2087
2099
|
cursor: L ? "pointer" : void 0,
|
|
2088
|
-
onClick: L ?
|
|
2100
|
+
onClick: L ? K : void 0,
|
|
2089
2101
|
"data-testid": `module-item-${e.id}`,
|
|
2090
|
-
children: /* @__PURE__ */ l("div", { style: { paddingInlineStart: `${Math.max(e.indent - 1, 0) *
|
|
2091
|
-
/* @__PURE__ */ l(
|
|
2102
|
+
children: /* @__PURE__ */ l("div", { style: { paddingInlineStart: `${Math.max(e.indent - 1, 0) * ao}rem` }, children: /* @__PURE__ */ Y(N, { alignItems: "start", gap: "mediumSmall", children: [
|
|
2103
|
+
/* @__PURE__ */ l(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ Y(N, { alignItems: "center", children: [
|
|
2092
2104
|
e.indent > 0 ? /* @__PURE__ */ l(
|
|
2093
|
-
|
|
2105
|
+
N.Item,
|
|
2094
2106
|
{
|
|
2095
|
-
size:
|
|
2107
|
+
size: zl,
|
|
2096
2108
|
textAlign: "center",
|
|
2097
2109
|
"data-testid": "item-nest-arrow",
|
|
2098
|
-
children: /* @__PURE__ */ l("span", { style: { color: f }, children: /* @__PURE__ */ l(
|
|
2110
|
+
children: /* @__PURE__ */ l("span", { style: { color: f }, children: /* @__PURE__ */ l(Lo, { size: "md", color: "inherit" }) })
|
|
2099
2111
|
}
|
|
2100
2112
|
) : null,
|
|
2101
|
-
/* @__PURE__ */
|
|
2113
|
+
/* @__PURE__ */ Y(N.Item, { shouldGrow: !0, shouldShrink: !0, children: [
|
|
2102
2114
|
/* @__PURE__ */ l(
|
|
2103
2115
|
"div",
|
|
2104
2116
|
{
|
|
2105
2117
|
style: {
|
|
2106
|
-
lineHeight: r ? 0 : `${
|
|
2107
|
-
marginBottom:
|
|
2118
|
+
lineHeight: r ? 0 : `${Zl}rem`,
|
|
2119
|
+
marginBottom: q.length === 0 ? 0 : `${r ? Jl : Xl}rem`
|
|
2108
2120
|
},
|
|
2109
|
-
children:
|
|
2121
|
+
children: !r && ee ? /* @__PURE__ */ Y(N, { alignItems: "center", gap: "x-small", wrap: "wrap", children: [
|
|
2122
|
+
/* @__PURE__ */ l(N.Item, { shouldShrink: !0, children: ke }),
|
|
2123
|
+
/* @__PURE__ */ l(N.Item, { children: ee })
|
|
2124
|
+
] }) : ke
|
|
2110
2125
|
}
|
|
2111
2126
|
),
|
|
2112
|
-
/* @__PURE__ */ l("div", { style:
|
|
2127
|
+
/* @__PURE__ */ l("div", { style: Gl, children: /* @__PURE__ */ l(
|
|
2113
2128
|
ue,
|
|
2114
2129
|
{
|
|
2115
2130
|
size: r ? "small" : "x-small",
|
|
2116
2131
|
lineHeight: "default",
|
|
2117
2132
|
color: "secondary",
|
|
2118
2133
|
"data-testid": "module-item-meta",
|
|
2119
|
-
children: C.map((y,
|
|
2134
|
+
children: C.map((y, B) => /* @__PURE__ */ l(
|
|
2120
2135
|
"span",
|
|
2121
2136
|
{
|
|
2122
|
-
style: r ?
|
|
2137
|
+
style: r ? B > 0 ? Ke : Kl : C.length > 1 ? B > 0 ? Hl : Ke : void 0,
|
|
2123
2138
|
"data-testid": "meta-line",
|
|
2124
|
-
children: y.map((F,
|
|
2125
|
-
|
|
2126
|
-
/* @__PURE__ */
|
|
2139
|
+
children: y.map((F, pe) => /* @__PURE__ */ Y(wn, { children: [
|
|
2140
|
+
pe > 0 ? /* @__PURE__ */ l("span", { style: Ql, children: " " }) : null,
|
|
2141
|
+
/* @__PURE__ */ Y(
|
|
2127
2142
|
"span",
|
|
2128
2143
|
{
|
|
2129
|
-
style:
|
|
2144
|
+
style: pe > 0 ? ce : se,
|
|
2130
2145
|
"data-testid": "meta-fact",
|
|
2131
2146
|
"data-fact-key": F.key,
|
|
2132
2147
|
children: [
|
|
2133
2148
|
Me(F.icon) ? null : /* @__PURE__ */ l(
|
|
2134
2149
|
"span",
|
|
2135
2150
|
{
|
|
2136
|
-
style:
|
|
2151
|
+
style: Vl,
|
|
2137
2152
|
"aria-hidden": "true",
|
|
2138
2153
|
"data-testid": `meta-icon-${F.key}`,
|
|
2139
|
-
children: r && mt(F.icon) && F.icon.props.size === "xs" ?
|
|
2154
|
+
children: r && mt(F.icon) && F.icon.props.size === "xs" ? To(F.icon, { size: "sm" }) : F.icon
|
|
2140
2155
|
}
|
|
2141
2156
|
),
|
|
2142
2157
|
F.node
|
|
@@ -2149,16 +2164,16 @@ function Xc({
|
|
|
2149
2164
|
))
|
|
2150
2165
|
}
|
|
2151
2166
|
) }),
|
|
2152
|
-
r &&
|
|
2167
|
+
r && ie ? /* @__PURE__ */ l(ae, { as: "div", margin: "x-small 0 0 0", children: ie }) : null
|
|
2153
2168
|
] })
|
|
2154
2169
|
] }) }),
|
|
2155
|
-
!r &&
|
|
2170
|
+
!r && ie ? /* @__PURE__ */ l(N.Item, { children: ie }) : null
|
|
2156
2171
|
] }) })
|
|
2157
2172
|
}
|
|
2158
2173
|
);
|
|
2159
2174
|
}
|
|
2160
|
-
const
|
|
2161
|
-
function
|
|
2175
|
+
const nu = Mo(tc);
|
|
2176
|
+
function nc(e) {
|
|
2162
2177
|
switch (e) {
|
|
2163
2178
|
case "complete":
|
|
2164
2179
|
return "complete";
|
|
@@ -2183,7 +2198,7 @@ function ot(e) {
|
|
|
2183
2198
|
};
|
|
2184
2199
|
};
|
|
2185
2200
|
}
|
|
2186
|
-
const
|
|
2201
|
+
const oc = {
|
|
2187
2202
|
missing: {
|
|
2188
2203
|
background: "primary-inverse",
|
|
2189
2204
|
borderWidth: "none",
|
|
@@ -2213,7 +2228,7 @@ const el = {
|
|
|
2213
2228
|
icon: /* @__PURE__ */ l(gt, { size: "sm", color: "baseColor" })
|
|
2214
2229
|
}
|
|
2215
2230
|
};
|
|
2216
|
-
function
|
|
2231
|
+
function rc(e) {
|
|
2217
2232
|
var i, c, d;
|
|
2218
2233
|
let t = 0, n = 0, o = 0;
|
|
2219
2234
|
for (const p of e)
|
|
@@ -2227,29 +2242,29 @@ function tl(e) {
|
|
|
2227
2242
|
percent: s
|
|
2228
2243
|
};
|
|
2229
2244
|
}
|
|
2230
|
-
const ut = 32,
|
|
2231
|
-
function
|
|
2232
|
-
const o =
|
|
2245
|
+
const ut = 32, sc = "4px", ic = 4, Le = { none: 0, small: 1, medium: 2 }, ac = 6, lc = 8, yn = 2, We = 3;
|
|
2246
|
+
function cc(e, t, n) {
|
|
2247
|
+
const o = ic + n / 2, r = e ? ut / 2 : o, s = t ? ut / 2 : o;
|
|
2233
2248
|
return `${r}px ${s}px ${s}px ${r}px`;
|
|
2234
2249
|
}
|
|
2235
|
-
function
|
|
2250
|
+
function uc({
|
|
2236
2251
|
module: e,
|
|
2237
2252
|
isFirst: t,
|
|
2238
2253
|
isLast: n,
|
|
2239
2254
|
onClick: o
|
|
2240
2255
|
}) {
|
|
2241
2256
|
var f, M, x;
|
|
2242
|
-
const { t: r } =
|
|
2257
|
+
const { t: r } = X(), i = Zn().moduleLabel(e.position, e), c = i ? r("moduleNameWithLabel", { label: i, name: e.name }) : e.name, d = ((f = e.progress) == null ? void 0 : f.status) ?? "not_started", p = nc(d), h = r("moduleProgressSegmentLabel", {
|
|
2243
2258
|
name: c,
|
|
2244
|
-
status:
|
|
2259
|
+
status: io(
|
|
2245
2260
|
r,
|
|
2246
2261
|
d,
|
|
2247
2262
|
((M = e.progress) == null ? void 0 : M.missingCount) ?? 0,
|
|
2248
2263
|
((x = e.progress) == null ? void 0 : x.incompleteCount) ?? 0
|
|
2249
2264
|
)
|
|
2250
|
-
}), g =
|
|
2251
|
-
return /* @__PURE__ */ l(
|
|
2252
|
-
|
|
2265
|
+
}), g = oc[p];
|
|
2266
|
+
return /* @__PURE__ */ l(N.Item, { shouldGrow: !0, shouldShrink: !0, size: "0", children: /* @__PURE__ */ l(Fo, { renderTip: c, children: () => /* @__PURE__ */ Y(
|
|
2267
|
+
ae,
|
|
2253
2268
|
{
|
|
2254
2269
|
as: "button",
|
|
2255
2270
|
type: "button",
|
|
@@ -2258,7 +2273,7 @@ function al({
|
|
|
2258
2273
|
height: `${ut}px`,
|
|
2259
2274
|
padding: "0",
|
|
2260
2275
|
position: "relative",
|
|
2261
|
-
borderRadius:
|
|
2276
|
+
borderRadius: cc(t, n, Le[g.borderWidth]),
|
|
2262
2277
|
borderWidth: g.borderWidth,
|
|
2263
2278
|
borderColor: "secondary",
|
|
2264
2279
|
background: g.background,
|
|
@@ -2267,7 +2282,7 @@ function al({
|
|
|
2267
2282
|
onClick: o ? () => o(e.id) : void 0,
|
|
2268
2283
|
"data-testid": `modules-progress-segment-${e.id}`,
|
|
2269
2284
|
children: [
|
|
2270
|
-
/* @__PURE__ */ l(
|
|
2285
|
+
/* @__PURE__ */ l(N, { as: "span", height: "100%", justifyItems: "center", alignItems: "center", children: g.icon }),
|
|
2271
2286
|
/* @__PURE__ */ l(En, { children: h }),
|
|
2272
2287
|
/* @__PURE__ */ l(
|
|
2273
2288
|
"span",
|
|
@@ -2276,10 +2291,10 @@ function al({
|
|
|
2276
2291
|
"data-testid": `modules-progress-hit-area-${e.id}`,
|
|
2277
2292
|
style: {
|
|
2278
2293
|
position: "absolute",
|
|
2279
|
-
top: `-${
|
|
2280
|
-
bottom: `-${
|
|
2281
|
-
left: `${yn -
|
|
2282
|
-
right: `${yn -
|
|
2294
|
+
top: `-${ac + Le[g.borderWidth]}px`,
|
|
2295
|
+
bottom: `-${lc + Le[g.borderWidth]}px`,
|
|
2296
|
+
left: `${yn - Le[g.borderWidth]}px`,
|
|
2297
|
+
right: `${yn - Le[g.borderWidth]}px`
|
|
2283
2298
|
}
|
|
2284
2299
|
}
|
|
2285
2300
|
)
|
|
@@ -2287,7 +2302,7 @@ function al({
|
|
|
2287
2302
|
}
|
|
2288
2303
|
) }) });
|
|
2289
2304
|
}
|
|
2290
|
-
function
|
|
2305
|
+
function ou({
|
|
2291
2306
|
modules: e,
|
|
2292
2307
|
onModuleClick: t,
|
|
2293
2308
|
hasMoreModules: n = !1,
|
|
@@ -2295,7 +2310,7 @@ function Xl({
|
|
|
2295
2310
|
continuesAfter: r = !1,
|
|
2296
2311
|
pagination: s
|
|
2297
2312
|
}) {
|
|
2298
|
-
const { t: i } =
|
|
2313
|
+
const { t: i } = X(), c = G(() => rc(e), [e]);
|
|
2299
2314
|
if (!e.some((g) => g.progress !== void 0) || c.totalModules === 0) return null;
|
|
2300
2315
|
const p = i("moduleProgressOverviewSummary", {
|
|
2301
2316
|
count: c.totalModules,
|
|
@@ -2308,10 +2323,10 @@ function Xl({
|
|
|
2308
2323
|
totalItems: c.totalItems
|
|
2309
2324
|
})
|
|
2310
2325
|
}) : null;
|
|
2311
|
-
return /* @__PURE__ */
|
|
2312
|
-
n ? null : /* @__PURE__ */ l(
|
|
2313
|
-
/* @__PURE__ */ l(
|
|
2314
|
-
|
|
2326
|
+
return /* @__PURE__ */ Y(ae, { as: "div", margin: "0 0 small 0", "data-testid": "modules-progress-overview", children: [
|
|
2327
|
+
n ? null : /* @__PURE__ */ l(N, { wrap: "wrap", children: /* @__PURE__ */ Y(N.Item, { children: [
|
|
2328
|
+
/* @__PURE__ */ l(ae, { as: "span", margin: "0 x-small 0 0", children: /* @__PURE__ */ l(
|
|
2329
|
+
ko,
|
|
2315
2330
|
{
|
|
2316
2331
|
level: "reset",
|
|
2317
2332
|
variant: "titleSection",
|
|
@@ -2321,15 +2336,15 @@ function Xl({
|
|
|
2321
2336
|
) }),
|
|
2322
2337
|
/* @__PURE__ */ l(ue, { variant: "content", "data-testid": "modules-progress-overview-summary", children: h ? `${p} ${h}` : p })
|
|
2323
2338
|
] }) }),
|
|
2324
|
-
/* @__PURE__ */ l(
|
|
2325
|
-
|
|
2339
|
+
/* @__PURE__ */ l(ae, { as: "div", margin: "xx-small 0 0 0", children: /* @__PURE__ */ l(
|
|
2340
|
+
N,
|
|
2326
2341
|
{
|
|
2327
|
-
gap:
|
|
2342
|
+
gap: sc,
|
|
2328
2343
|
role: "group",
|
|
2329
2344
|
"aria-label": i("moduleProgressOverviewGroupLabel"),
|
|
2330
2345
|
"data-testid": "modules-progress-overview-segments",
|
|
2331
2346
|
children: e.map((g, f) => /* @__PURE__ */ l(
|
|
2332
|
-
|
|
2347
|
+
uc,
|
|
2333
2348
|
{
|
|
2334
2349
|
module: g,
|
|
2335
2350
|
isFirst: f === 0 && !o,
|
|
@@ -2340,7 +2355,7 @@ function Xl({
|
|
|
2340
2355
|
))
|
|
2341
2356
|
}
|
|
2342
2357
|
) }),
|
|
2343
|
-
s ? /* @__PURE__ */ l(
|
|
2358
|
+
s ? /* @__PURE__ */ l(dc, { pagination: s, shownCount: e.length }) : null
|
|
2344
2359
|
] });
|
|
2345
2360
|
}
|
|
2346
2361
|
function In({
|
|
@@ -2354,8 +2369,8 @@ function In({
|
|
|
2354
2369
|
"data-testid": t,
|
|
2355
2370
|
style: {
|
|
2356
2371
|
display: "inline-flex",
|
|
2357
|
-
padding: `0 ${
|
|
2358
|
-
margin: `0 -${
|
|
2372
|
+
padding: `0 ${We}px ${We}px`,
|
|
2373
|
+
margin: `0 -${We}px -${We}px`
|
|
2359
2374
|
},
|
|
2360
2375
|
onClick: (o) => {
|
|
2361
2376
|
var r;
|
|
@@ -2365,11 +2380,11 @@ function In({
|
|
|
2365
2380
|
}
|
|
2366
2381
|
);
|
|
2367
2382
|
}
|
|
2368
|
-
function
|
|
2383
|
+
function dc({
|
|
2369
2384
|
pagination: e,
|
|
2370
2385
|
shownCount: t
|
|
2371
2386
|
}) {
|
|
2372
|
-
const { t: n } =
|
|
2387
|
+
const { t: n } = X(), { rangeStart: o, totalCount: r, hasPreviousPage: s, hasNextPage: i, disabled: c = !1 } = e, d = _(null), p = _(null), h = _(null);
|
|
2373
2388
|
me(() => {
|
|
2374
2389
|
var M, x;
|
|
2375
2390
|
if (c) return;
|
|
@@ -2379,8 +2394,8 @@ function cl({
|
|
|
2379
2394
|
const g = (f) => {
|
|
2380
2395
|
c || (h.current = f, f === "next" ? e.onNextPage() : e.onPreviousPage());
|
|
2381
2396
|
};
|
|
2382
|
-
return /* @__PURE__ */ l(
|
|
2383
|
-
|
|
2397
|
+
return /* @__PURE__ */ l(ae, { as: "div", margin: "x-small 0 0 0", children: /* @__PURE__ */ Y(
|
|
2398
|
+
N,
|
|
2384
2399
|
{
|
|
2385
2400
|
as: "nav",
|
|
2386
2401
|
justifyItems: "space-between",
|
|
@@ -2395,7 +2410,7 @@ function cl({
|
|
|
2395
2410
|
size: "small",
|
|
2396
2411
|
withBackground: !1,
|
|
2397
2412
|
withBorder: !1,
|
|
2398
|
-
renderIcon: /* @__PURE__ */ l(
|
|
2413
|
+
renderIcon: /* @__PURE__ */ l(xo, {}),
|
|
2399
2414
|
screenReaderLabel: n("paginationPreviousPage"),
|
|
2400
2415
|
interaction: s ? "enabled" : "disabled",
|
|
2401
2416
|
elementRef: (f) => {
|
|
@@ -2415,7 +2430,7 @@ function cl({
|
|
|
2415
2430
|
size: "small",
|
|
2416
2431
|
withBackground: !1,
|
|
2417
2432
|
withBorder: !1,
|
|
2418
|
-
renderIcon: /* @__PURE__ */ l(
|
|
2433
|
+
renderIcon: /* @__PURE__ */ l(Ro, {}),
|
|
2419
2434
|
screenReaderLabel: n("paginationNextPage"),
|
|
2420
2435
|
interaction: i ? "enabled" : "disabled",
|
|
2421
2436
|
elementRef: (f) => {
|
|
@@ -2429,104 +2444,105 @@ function cl({
|
|
|
2429
2444
|
) });
|
|
2430
2445
|
}
|
|
2431
2446
|
export {
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2447
|
+
Yo as $,
|
|
2448
|
+
Fa as A,
|
|
2449
|
+
Gl as B,
|
|
2450
|
+
Ql as C,
|
|
2451
|
+
so as D,
|
|
2452
|
+
eu as E,
|
|
2453
|
+
Kc as F,
|
|
2454
|
+
Hc as G,
|
|
2455
|
+
nu as H,
|
|
2441
2456
|
Nn as I,
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2457
|
+
Zo as J,
|
|
2458
|
+
er as K,
|
|
2459
|
+
Jo as L,
|
|
2460
|
+
Rc as M,
|
|
2461
|
+
Xo as N,
|
|
2462
|
+
jc as O,
|
|
2463
|
+
Qc as P,
|
|
2464
|
+
Uc as Q,
|
|
2465
|
+
Xc as R,
|
|
2466
|
+
ou as S,
|
|
2467
|
+
$a as T,
|
|
2468
|
+
_n as U,
|
|
2469
|
+
Ko as V,
|
|
2455
2470
|
Bo as W,
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2471
|
+
Wo as X,
|
|
2472
|
+
An as Y,
|
|
2473
|
+
jo as Z,
|
|
2474
|
+
Go as _,
|
|
2475
|
+
xc as a,
|
|
2476
|
+
Vo as a0,
|
|
2477
|
+
Dn as a1,
|
|
2478
|
+
Ho as a2,
|
|
2479
|
+
Lc as a3,
|
|
2480
|
+
Qo as a4,
|
|
2466
2481
|
Ln as a5,
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2482
|
+
xn as a6,
|
|
2483
|
+
zc as a7,
|
|
2484
|
+
or as a8,
|
|
2485
|
+
rn as a9,
|
|
2486
|
+
cr as aA,
|
|
2487
|
+
kl as aB,
|
|
2488
|
+
Nl as aC,
|
|
2489
|
+
Ol as aD,
|
|
2490
|
+
io as aE,
|
|
2491
|
+
Fn as aF,
|
|
2492
|
+
le as aG,
|
|
2493
|
+
Ea as aH,
|
|
2494
|
+
Me as aI,
|
|
2495
|
+
ao as aJ,
|
|
2496
|
+
ot as aK,
|
|
2481
2497
|
Wa as aa,
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2498
|
+
ja as ab,
|
|
2499
|
+
Ba as ac,
|
|
2500
|
+
It as ad,
|
|
2501
|
+
el as ae,
|
|
2502
|
+
Va as af,
|
|
2503
|
+
Ga as ag,
|
|
2504
|
+
Xa as ah,
|
|
2505
|
+
Ja as ai,
|
|
2506
|
+
Oe as aj,
|
|
2507
|
+
ye as ak,
|
|
2508
|
+
Yc as al,
|
|
2509
|
+
Qa as am,
|
|
2510
|
+
Vc as an,
|
|
2511
|
+
we as ao,
|
|
2512
|
+
Xn as ap,
|
|
2513
|
+
sl as aq,
|
|
2514
|
+
rl as ar,
|
|
2515
|
+
ol as as,
|
|
2516
|
+
St as at,
|
|
2517
|
+
Jn as au,
|
|
2518
|
+
wt as av,
|
|
2519
|
+
ul as aw,
|
|
2520
|
+
Wc as ax,
|
|
2521
|
+
Ge as ay,
|
|
2522
|
+
Ne as az,
|
|
2507
2523
|
qt as b,
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2524
|
+
$c as c,
|
|
2525
|
+
Zc as d,
|
|
2526
|
+
Fc as e,
|
|
2527
|
+
kc as f,
|
|
2528
|
+
qc as g,
|
|
2513
2529
|
it as h,
|
|
2514
|
-
|
|
2530
|
+
Bc as i,
|
|
2515
2531
|
Mt as j,
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2532
|
+
Qe as k,
|
|
2533
|
+
xl as l,
|
|
2534
|
+
Gc as m,
|
|
2535
|
+
Vl as n,
|
|
2520
2536
|
Bt as o,
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2537
|
+
nr as p,
|
|
2538
|
+
Zn as q,
|
|
2539
|
+
ql as r,
|
|
2540
|
+
tu as s,
|
|
2541
|
+
Jc as t,
|
|
2542
|
+
X as u,
|
|
2543
|
+
On as v,
|
|
2544
|
+
Nc as w,
|
|
2545
|
+
$n as x,
|
|
2546
|
+
Oc as y,
|
|
2547
|
+
Wl as z
|
|
2532
2548
|
};
|