strapi-plugin-magic-sessionmanager 4.22.1 → 4.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +116 -82
  3. package/dist/admin/ActiveImpersonationsCard-CbyOAlrL.mjs +396 -0
  4. package/dist/admin/ActiveImpersonationsCard-D1CVmV-w.js +395 -0
  5. package/dist/admin/{Analytics-CIHgaURb.mjs → Analytics-DGAHD19E.mjs} +1 -1
  6. package/dist/admin/{Analytics-B7BAjApz.js → Analytics-_WA68oHb.js} +1 -1
  7. package/dist/admin/{App-DJkJC06E.js → App-CfhAQ17e.js} +304 -104
  8. package/dist/admin/{App-CPE-CQGz.mjs → App-VB66H73A.mjs} +276 -76
  9. package/dist/admin/ImpersonationTabBanner-B6Ps5-oe.mjs +244 -0
  10. package/dist/admin/ImpersonationTabBanner-DdwXNmh4.js +244 -0
  11. package/dist/admin/{OnlineUsersWidget-Dou2hxGY.mjs → OnlineUsersWidget-2u-fYMb7.mjs} +1 -1
  12. package/dist/admin/{OnlineUsersWidget-CcjNfzzf.js → OnlineUsersWidget-CmBqFLAA.js} +1 -1
  13. package/dist/admin/{Settings--eEiHv_a.js → Settings-BBs2FDp7.js} +27 -229
  14. package/dist/admin/{Settings-h_exWUiI.mjs → Settings-CKDNGJhl.mjs} +19 -221
  15. package/dist/admin/{de-Wz5Emtrb.mjs → de-CK-HuY41.mjs} +42 -4
  16. package/dist/admin/{de-oBmcAcXj.js → de-CSRQPn6F.js} +42 -4
  17. package/dist/admin/{en-B1TN5F62.js → en-DCtAgGEa.js} +42 -4
  18. package/dist/admin/{en-B_1Ka64U.mjs → en-KZ5ajaAR.mjs} +42 -4
  19. package/dist/admin/{es-CVgw4zsj.mjs → es-B7k8taWV.mjs} +42 -4
  20. package/dist/admin/{es-Bb515J0p.js → es-CKT00l4K.js} +42 -4
  21. package/dist/admin/{fr-yDdwunmg.js → fr-B2EdBFSb.js} +42 -4
  22. package/dist/admin/{fr-0AgMxTFc.mjs → fr-Q2gmYqCn.mjs} +42 -4
  23. package/dist/admin/{index-DVQ7tdTC.mjs → index-BPbs1GyP.mjs} +365 -57
  24. package/dist/admin/{index-qtN2dOm4.js → index-Cho0XGZ1.js} +319 -11
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +2 -2
  27. package/dist/admin/{pt-BAB07LY-.js → pt-CcMUcqDy.js} +42 -4
  28. package/dist/admin/{pt-DtM74ffN.mjs → pt-CmxZTaf2.mjs} +42 -4
  29. package/dist/admin/useBreakpoint-CoBfu0Ov.js +62 -0
  30. package/dist/admin/useBreakpoint-CuyIc2qy.mjs +63 -0
  31. package/dist/server/index.js +867 -10
  32. package/dist/server/index.mjs +867 -10
  33. package/package.json +6 -2
  34. package/dist/admin/dashboardModel-DNT_l-Bk.js +0 -169
  35. package/dist/admin/dashboardModel-fApbKGay.mjs +0 -170
@@ -0,0 +1,395 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const react = require("react");
4
+ const designSystem = require("@strapi/design-system");
5
+ const icons = require("@strapi/icons");
6
+ const symbols = require("@strapi/icons/symbols");
7
+ const StrapiAdmin = require("@strapi/strapi/admin");
8
+ const index = require("./index-Cho0XGZ1.js");
9
+ const SectionCard = require("./SectionCard-BlWv8CRt.js");
10
+ require("react-intl");
11
+ const RowActions = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", alignItems: "center", gap: 1, "data-row-actions": "", ...props, children });
12
+ const RISK_SOURCES = Object.freeze(["anonymous-ip", "asn-heuristic"]);
13
+ const RISK_SETTINGS_PATH = "/settings/magic-sessionmanager/general?tab=location-data";
14
+ const isRiskSource = (value) => RISK_SOURCES.includes(
15
+ /** @type {string} */
16
+ value
17
+ );
18
+ function getRiskAvailability(geoIpStatus) {
19
+ const risk = geoIpStatus?.risk;
20
+ if (!risk || typeof risk !== "object" || typeof risk.available !== "boolean") {
21
+ return { state: "unknown", source: null };
22
+ }
23
+ if (risk.available && isRiskSource(risk.source)) {
24
+ return { state: "available", source: risk.source };
25
+ }
26
+ return { state: "missing", source: null };
27
+ }
28
+ function riskDependentControl(saved, state) {
29
+ if (state !== "missing")
30
+ return { checked: Boolean(saved), disabled: false, savedOnButInactive: false };
31
+ return { checked: false, disabled: true, savedOnButInactive: Boolean(saved) };
32
+ }
33
+ const PAGE_SIZE_OPTIONS = Object.freeze(["10", "25", "50", "100"]);
34
+ const DEFAULT_PAGE_SIZE = "25";
35
+ const DASHBOARD_TABLE_COLUMNS = 7;
36
+ const DASHBOARD_COMPACT_TABLE_COLUMNS = 5;
37
+ const AUTO_REFRESH_INTERVAL_MS = 10 * 60 * 1e3;
38
+ const HOW_IT_WORKS_STORAGE_KEY = "magic-sessionmanager.dashboard.howSessionsWork";
39
+ const USER_EDIT_PATH = "/content-manager/collection-types/plugin::users-permissions.user/";
40
+ const readQueryText = (value) => {
41
+ if (typeof value !== "string") return "";
42
+ try {
43
+ return decodeURIComponent(value).trim();
44
+ } catch {
45
+ return value.trim();
46
+ }
47
+ };
48
+ function parseDashboardQuery(query = {}) {
49
+ const source = query || {};
50
+ const page = Number.parseInt(String(source.page ?? "1"), 10);
51
+ const pageSize = PAGE_SIZE_OPTIONS.includes(String(source.pageSize)) ? String(source.pageSize) : DEFAULT_PAGE_SIZE;
52
+ const status = index.isSessionFilter(source.status) ? (
53
+ /** @type {string} */
54
+ source.status
55
+ ) : index.DEFAULT_SESSION_FILTER;
56
+ const reason = status === "ended" && index.isEndReasonFilter(source.reason) ? (
57
+ /** @type {string} */
58
+ source.reason
59
+ ) : index.DEFAULT_END_REASON_FILTER;
60
+ const search = readQueryText(source.search) || readQueryText(source._q);
61
+ return { page: Number.isFinite(page) && page >= 1 ? page : 1, pageSize, status, reason, search };
62
+ }
63
+ function encodeSearchQuery(value) {
64
+ const text = typeof value === "string" ? value.trim() : "";
65
+ return text ? encodeURIComponent(text) : void 0;
66
+ }
67
+ function hasActiveFilters(state) {
68
+ if (!state) return false;
69
+ return state.status !== index.DEFAULT_SESSION_FILTER || Boolean(state.reason) && state.reason !== index.DEFAULT_END_REASON_FILTER || Boolean(state.search);
70
+ }
71
+ function getSessionUserLabels(session) {
72
+ const username = index.presentText(session?.user?.username);
73
+ const email = index.presentText(session?.user?.email);
74
+ const primary = username || email;
75
+ return {
76
+ primary,
77
+ secondary: username && email ? email : "",
78
+ accessible: primary || index.presentText(session?.id)
79
+ };
80
+ }
81
+ function getUserEditPath(session) {
82
+ const documentId = index.presentText(session?.user?.documentId);
83
+ return documentId ? `${USER_EDIT_PATH}${encodeURIComponent(documentId)}` : null;
84
+ }
85
+ function getExportDeviceInfo(session, unavailableValue = "") {
86
+ const device = index.getDevicePresentation(session);
87
+ return {
88
+ device: device.deviceType || unavailableValue,
89
+ browser: device.browser || unavailableValue,
90
+ browserVersion: device.browserVersion || "",
91
+ os: device.os || unavailableValue
92
+ };
93
+ }
94
+ function readDisclosureOpen(storage) {
95
+ try {
96
+ return storage?.getItem(HOW_IT_WORKS_STORAGE_KEY) === "open";
97
+ } catch {
98
+ return false;
99
+ }
100
+ }
101
+ function writeDisclosureOpen(storage, open) {
102
+ try {
103
+ storage?.setItem(HOW_IT_WORKS_STORAGE_KEY, open ? "open" : "closed");
104
+ } catch {
105
+ }
106
+ }
107
+ function getBrowserStorage() {
108
+ try {
109
+ return typeof window !== "undefined" ? window.localStorage : null;
110
+ } catch {
111
+ return null;
112
+ }
113
+ }
114
+ function shouldIsolateActionKey(key, fromInsideGroup) {
115
+ if (!fromInsideGroup) return true;
116
+ return key === "Enter" || key === " " || key === "Spacebar";
117
+ }
118
+ const FULL_TABLE_MIN_WIDTH = 1200;
119
+ function shouldUseCompactTable(listWidth, isBelowLarge) {
120
+ if (isBelowLarge) return true;
121
+ if (!Number.isFinite(listWidth) || listWidth <= 0) return false;
122
+ return listWidth < FULL_TABLE_MIN_WIDTH;
123
+ }
124
+ function shouldRedispatchEscape(key, fromInsideGroup) {
125
+ return !fromInsideGroup && key === "Escape";
126
+ }
127
+ function pickFocusSessionId(previousIds, currentIds, sessionId) {
128
+ const current = Array.isArray(currentIds) ? currentIds.map(String) : [];
129
+ if (current.length === 0) return null;
130
+ const target = String(sessionId);
131
+ if (current.includes(target)) return target;
132
+ const previous = Array.isArray(previousIds) ? previousIds.map(String) : [];
133
+ const index2 = previous.indexOf(target);
134
+ if (index2 >= 0) {
135
+ for (let next = index2 + 1; next < previous.length; next += 1) {
136
+ if (current.includes(previous[next])) return previous[next];
137
+ }
138
+ for (let before = index2 - 1; before >= 0; before -= 1) {
139
+ if (current.includes(previous[before])) return previous[before];
140
+ }
141
+ }
142
+ return current[0];
143
+ }
144
+ function getErrorStatus(error) {
145
+ const err = (
146
+ /** @type {any} */
147
+ error
148
+ );
149
+ const status = err?.status ?? err?.response?.status;
150
+ return typeof status === "number" ? status : null;
151
+ }
152
+ const TABLE_MIN_WIDTH = 720;
153
+ const keepActionKeys = (event) => {
154
+ if (shouldIsolateActionKey(event.key, true)) event.stopPropagation();
155
+ };
156
+ const ActiveImpersonationsCard = () => {
157
+ const { t } = index.useSettingsTranslate();
158
+ const { get, post } = StrapiAdmin.useFetchClient();
159
+ const { toggleNotification } = StrapiAdmin.useNotification();
160
+ const { formatDate } = index.useSessionFormatters();
161
+ const [widthRef, width] = index.useElementWidth();
162
+ const [rows, setRows] = react.useState(null);
163
+ const [error, setError] = react.useState(false);
164
+ const [refreshing, setRefreshing] = react.useState(false);
165
+ const refreshRef = react.useRef(null);
166
+ const requestRef = react.useRef(0);
167
+ const apply = react.useCallback(async (request, pending) => {
168
+ try {
169
+ const { data } = await pending;
170
+ if (request !== requestRef.current) return;
171
+ if (!Array.isArray(data?.data)) throw new Error("Invalid impersonation list");
172
+ setRows(data.data);
173
+ setError(false);
174
+ } catch (err) {
175
+ if (index.isCancelledRequest(err) || request !== requestRef.current) return;
176
+ index.logSafeAdminError("impersonation.list", err);
177
+ setError(true);
178
+ } finally {
179
+ if (request === requestRef.current) setRefreshing(false);
180
+ }
181
+ }, []);
182
+ const load = react.useCallback(() => {
183
+ const request = ++requestRef.current;
184
+ setRefreshing(true);
185
+ return apply(request, get(`/${index.pluginId}/impersonation/active`));
186
+ }, [apply, get]);
187
+ react.useEffect(() => {
188
+ apply(++requestRef.current, get(`/${index.pluginId}/impersonation/active`));
189
+ }, [apply, get]);
190
+ const end = async (row) => {
191
+ try {
192
+ await post(`/${index.pluginId}/impersonation/${row.id}/end`, {});
193
+ toggleNotification({
194
+ type: "success",
195
+ message: t("impersonation.ended", "Impersonation ended.")
196
+ });
197
+ } catch (err) {
198
+ index.logSafeAdminError("impersonation.end", err);
199
+ toggleNotification({
200
+ type: "danger",
201
+ message: t("impersonation.error.end", "The impersonation could not be ended.")
202
+ });
203
+ throw err;
204
+ } finally {
205
+ await load();
206
+ }
207
+ };
208
+ const endAction = (row) => /* @__PURE__ */ jsxRuntime.jsx(
209
+ index.ConfirmAction,
210
+ {
211
+ fallbackFocusRef: refreshRef,
212
+ title: t("impersonation.confirm.title", "End the impersonation of {user}?", {
213
+ user: label(row)
214
+ }),
215
+ body: t(
216
+ "impersonation.confirm.body",
217
+ "The short-lived sign-in stops working at once. This is recorded in the security log."
218
+ ),
219
+ confirmLabel: t("impersonation.end", "End impersonation"),
220
+ onConfirm: () => end(row),
221
+ trigger: /* @__PURE__ */ jsxRuntime.jsx(
222
+ designSystem.IconButton,
223
+ {
224
+ variant: "ghost",
225
+ label: t("impersonation.endLabel", "End impersonation of {user}", {
226
+ user: label(row)
227
+ }),
228
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.SignOut, {})
229
+ }
230
+ )
231
+ },
232
+ row.id
233
+ );
234
+ const label = (row) => row.targetLabel || (row.targetType === "admin" ? t("impersonation.list.adminFallback", "Admin #{id}", { id: row.targetId }) : row.targetId);
235
+ const kind = (row) => {
236
+ if (row.targetType !== "admin") return null;
237
+ if (row.handoff === "admin-session") {
238
+ return /* @__PURE__ */ jsxRuntime.jsx(
239
+ designSystem.Badge,
240
+ {
241
+ backgroundColor: row.allowChanges ? "danger100" : "primary100",
242
+ textColor: "neutral800",
243
+ children: row.allowChanges ? t("impersonation.list.kind.adminChanges", "Admin, signed in, changes allowed") : t("impersonation.list.kind.adminSignedIn", "Admin, signed in, read-only")
244
+ }
245
+ );
246
+ }
247
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Badge, { backgroundColor: "primary100", textColor: "neutral800", children: t("impersonation.list.kind.admin", "Admin, view only") });
248
+ };
249
+ const time = (iso) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "time", dateTime: iso, variant: "omega", textColor: "neutral800", children: formatDate(iso, { hour: "2-digit", minute: "2-digit" }) });
250
+ const startedBy = (row) => row.startedByYou ? t("impersonation.list.you", "You") : row.actorLabel || "—";
251
+ let content;
252
+ if (rows === null && !error) {
253
+ content = /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", padding: 6, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Loader, { small: true, children: t("impersonation.list.loading", "Loading impersonations…") }) });
254
+ } else if (error && rows === null) {
255
+ content = /* @__PURE__ */ jsxRuntime.jsx(
256
+ index.PersistentAlert,
257
+ {
258
+ variant: "danger",
259
+ closeLabel: t("common.close", "Close"),
260
+ title: t("impersonation.list.error", "Impersonations could not be loaded."),
261
+ action: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", onClick: load, children: t("common.tryAgain", "Try again") }),
262
+ children: t(
263
+ "impersonation.list.errorBody",
264
+ "Running impersonations still end on time; only this list is missing."
265
+ )
266
+ }
267
+ );
268
+ } else if (rows.length === 0) {
269
+ content = /* @__PURE__ */ jsxRuntime.jsx(
270
+ designSystem.EmptyStateLayout,
271
+ {
272
+ icon: /* @__PURE__ */ jsxRuntime.jsx(symbols.EmptyPermissions, { width: "16rem", height: "8rem" }),
273
+ content: t(
274
+ "impersonation.list.empty",
275
+ "No impersonation is running. Start one from a user’s entry in the Content Manager."
276
+ )
277
+ }
278
+ );
279
+ } else if (width === 0 || width >= TABLE_MIN_WIDTH) {
280
+ content = /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { hasRadius: true, borderColor: "neutral150", "data-impersonations-table": "", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Table, { colCount: 5, rowCount: rows.length + 1, "aria-busy": refreshing, children: [
281
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Thead, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Tr, { children: [
282
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Th, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.user", "User") }) }),
283
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Th, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.startedBy", "Started by") }) }),
284
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Th, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.reason", "Reason") }) }),
285
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Th, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.ends", "Ends") }) }),
286
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Th, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children: t("impersonation.list.col.actions", "Actions") }) })
287
+ ] }) }),
288
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tbody, { children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Tr, { "data-impersonation-row": "", children: [
289
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, wrap: "wrap", alignItems: "center", children: [
290
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral800", fontWeight: "semiBold", children: label(row) }),
291
+ kind(row)
292
+ ] }) }),
293
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral800", children: startedBy(row) }) }),
294
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { style: { maxWidth: 0, width: "40%" }, children: /* @__PURE__ */ jsxRuntime.jsx(
295
+ designSystem.Typography,
296
+ {
297
+ variant: "omega",
298
+ textColor: "neutral800",
299
+ tag: "p",
300
+ style: { overflowWrap: "anywhere" },
301
+ children: row.reason
302
+ }
303
+ ) }),
304
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: time(row.expiresAt) }),
305
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(RowActions, { onKeyDown: keepActionKeys, children: endAction(row) }) })
306
+ ] }, row.id)) })
307
+ ] }) });
308
+ } else {
309
+ content = /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, tag: "ul", "data-impersonations-list": "", children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { tag: "li", padding: 4, hasRadius: true, borderColor: "neutral150", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", alignItems: "flex-start", gap: 3, children: [
310
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "flex-start", gap: 1, minWidth: 0, children: [
311
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, wrap: "wrap", alignItems: "center", children: [
312
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral800", fontWeight: "semiBold", children: label(row) }),
313
+ kind(row)
314
+ ] }),
315
+ /* @__PURE__ */ jsxRuntime.jsx(
316
+ designSystem.Typography,
317
+ {
318
+ variant: "pi",
319
+ textColor: "neutral800",
320
+ tag: "p",
321
+ style: { overflowWrap: "anywhere" },
322
+ children: row.reason
323
+ }
324
+ ),
325
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: t("impersonation.list.summary", "{admin}, until {time}", {
326
+ admin: startedBy(row),
327
+ time: formatDate(row.expiresAt, { hour: "2-digit", minute: "2-digit" })
328
+ }) })
329
+ ] }),
330
+ /* @__PURE__ */ jsxRuntime.jsx(RowActions, { onKeyDown: keepActionKeys, children: endAction(row) })
331
+ ] }) }, row.id)) });
332
+ }
333
+ return /* @__PURE__ */ jsxRuntime.jsx(
334
+ SectionCard.SectionCard,
335
+ {
336
+ id: "active-impersonations",
337
+ title: t("impersonation.list.title", "Active impersonations"),
338
+ subtitle: t(
339
+ "impersonation.list.intro",
340
+ "Each one ends by itself at the time shown. End stops it at once."
341
+ ),
342
+ action: /* @__PURE__ */ jsxRuntime.jsx(
343
+ designSystem.Button,
344
+ {
345
+ ref: refreshRef,
346
+ variant: "tertiary",
347
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.ArrowClockwise, {}),
348
+ onClick: load,
349
+ loading: refreshing && rows !== null,
350
+ children: t("impersonation.list.refresh", "Refresh")
351
+ }
352
+ ),
353
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: widthRef, "aria-live": "polite", children: [
354
+ error && rows !== null ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 3, children: /* @__PURE__ */ jsxRuntime.jsx(
355
+ index.PersistentAlert,
356
+ {
357
+ variant: "warning",
358
+ closeLabel: t("common.close", "Close"),
359
+ title: t("impersonation.list.refreshErrorTitle", "Not refreshed"),
360
+ children: t(
361
+ "impersonation.list.refreshError",
362
+ "The list could not be refreshed. It shows the last known impersonations."
363
+ )
364
+ }
365
+ ) }) : null,
366
+ content
367
+ ] })
368
+ }
369
+ );
370
+ };
371
+ exports.AUTO_REFRESH_INTERVAL_MS = AUTO_REFRESH_INTERVAL_MS;
372
+ exports.ActiveImpersonationsCard = ActiveImpersonationsCard;
373
+ exports.DASHBOARD_COMPACT_TABLE_COLUMNS = DASHBOARD_COMPACT_TABLE_COLUMNS;
374
+ exports.DASHBOARD_TABLE_COLUMNS = DASHBOARD_TABLE_COLUMNS;
375
+ exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
376
+ exports.PAGE_SIZE_OPTIONS = PAGE_SIZE_OPTIONS;
377
+ exports.RISK_SETTINGS_PATH = RISK_SETTINGS_PATH;
378
+ exports.RowActions = RowActions;
379
+ exports.encodeSearchQuery = encodeSearchQuery;
380
+ exports.getBrowserStorage = getBrowserStorage;
381
+ exports.getErrorStatus = getErrorStatus;
382
+ exports.getExportDeviceInfo = getExportDeviceInfo;
383
+ exports.getRiskAvailability = getRiskAvailability;
384
+ exports.getSessionUserLabels = getSessionUserLabels;
385
+ exports.getUserEditPath = getUserEditPath;
386
+ exports.hasActiveFilters = hasActiveFilters;
387
+ exports.isRiskSource = isRiskSource;
388
+ exports.parseDashboardQuery = parseDashboardQuery;
389
+ exports.pickFocusSessionId = pickFocusSessionId;
390
+ exports.readDisclosureOpen = readDisclosureOpen;
391
+ exports.riskDependentControl = riskDependentControl;
392
+ exports.shouldIsolateActionKey = shouldIsolateActionKey;
393
+ exports.shouldRedispatchEscape = shouldRedispatchEscape;
394
+ exports.shouldUseCompactTable = shouldUseCompactTable;
395
+ exports.writeDisclosureOpen = writeDisclosureOpen;
@@ -7,7 +7,7 @@ import styled from "styled-components";
7
7
  import { Typography, Flex, LinkButton, Button, EmptyStateLayout, VisuallyHidden } from "@strapi/design-system";
8
8
  import { ArrowClockwise, ChartBubble, User, Clock, Calendar } from "@strapi/icons";
9
9
  import { EmptyDocuments } from "@strapi/icons/symbols";
10
- import { aN as normalizeDeviceType, u as useSessionFormatters, f as pluginId, F as isCancelledRequest, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, Q as PageShell, T as StatGrid, W as StatCard, au as EqualGrid, b as getTranslation, aO as getDeviceTypeMessage } from "./index-DVQ7tdTC.mjs";
10
+ import { aO as normalizeDeviceType, u as useSessionFormatters, f as pluginId, F as isCancelledRequest, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, Q as PageShell, T as StatGrid, W as StatCard, av as EqualGrid, b as getTranslation, aP as getDeviceTypeMessage } from "./index-BPbs1GyP.mjs";
11
11
  import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
12
12
  const ANALYTICS_UNKNOWN_KEY = "unknown";
13
13
  const VERSION_TOKEN = /^v?\d[\w.]*$/i;
@@ -9,7 +9,7 @@ const styled = require("styled-components");
9
9
  const designSystem = require("@strapi/design-system");
10
10
  const icons = require("@strapi/icons");
11
11
  const symbols = require("@strapi/icons/symbols");
12
- const index = require("./index-qtN2dOm4.js");
12
+ const index = require("./index-Cho0XGZ1.js");
13
13
  const SectionCard = require("./SectionCard-BlWv8CRt.js");
14
14
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
15
15
  const styled__default = /* @__PURE__ */ _interopDefault(styled);