wcz-layout 10.1.9 → 10.2.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/{Approval-DoD-GRRH.mjs → Approval-D1TfISUL.mjs} +11 -21
- package/dist/Approval-D1TfISUL.mjs.map +1 -0
- package/dist/{LayoutTable-CRo43iWr.d.mts → ChatLayout-BmLySLXy.d.mts} +11 -18
- package/dist/ChatLayout-Tpuwo8-b.mjs +1622 -0
- package/dist/ChatLayout-Tpuwo8-b.mjs.map +1 -0
- package/dist/{DialogsContext-DLqA8RJ_.mjs → DialogsContext-D23fJjYR.mjs} +2 -3
- package/dist/DialogsContext-D23fJjYR.mjs.map +1 -0
- package/dist/{Email-CKUxOURX.d.mts → Email-Dz5k0UWE.d.mts} +1 -3
- package/dist/{Email-BzQQkbe9.mjs → Email-rnz3H0x3.mjs} +3 -5
- package/dist/Email-rnz3H0x3.mjs.map +1 -0
- package/dist/{Employee-agVPiGrJ.d.mts → Employee-C8xIlBxY.d.mts} +1 -7
- package/dist/{FileMeta-Be9viU7D.d.mts → FileMeta-B39e2FLC.d.mts} +1 -3
- package/dist/{FileMeta-DDqUju1Y.mjs → FileMeta-CPBWI_jA.mjs} +2 -3
- package/dist/FileMeta-CPBWI_jA.mjs.map +1 -0
- package/dist/{QueryClientParam-JcH0mJWl.d.mts → QueryClientParam-CTV1vj76.d.mts} +1 -3
- package/dist/RouterListItemButton-CF-8w-08.mjs +62 -0
- package/dist/RouterListItemButton-CF-8w-08.mjs.map +1 -0
- package/dist/{User-D4__w1I1.d.mts → User-aJksXItw.d.mts} +1 -3
- package/dist/{approval-L09uPzTU.mjs → approval-HB2w5jzc.mjs} +4 -5
- package/dist/approval-HB2w5jzc.mjs.map +1 -0
- package/dist/auth.d.mts +0 -4
- package/dist/auth.mjs +5 -6
- package/dist/auth.mjs.map +1 -1
- package/dist/components.d.mts +63 -33
- package/dist/components.mjs +658 -748
- package/dist/components.mjs.map +1 -1
- package/dist/{createApi-BhNkG4jz.mjs → createApi-CKgFi53y.mjs} +4 -6
- package/dist/createApi-CKgFi53y.mjs.map +1 -0
- package/dist/data/client.d.mts +2 -8
- package/dist/data/client.mjs +6 -9
- package/dist/data/client.mjs.map +1 -1
- package/dist/data/server.d.mts +2 -4
- package/dist/data/server.mjs +6 -7
- package/dist/data/server.mjs.map +1 -1
- package/dist/env-BwFl7nWc.mjs +48 -0
- package/dist/env-BwFl7nWc.mjs.map +1 -0
- package/dist/{file-Chlljz3o.mjs → file-X1sK4ok6.mjs} +7 -8
- package/dist/file-X1sK4ok6.mjs.map +1 -0
- package/dist/{file-Dl8JCcqy.mjs → file-tkfsnk5F.mjs} +8 -8
- package/dist/file-tkfsnk5F.mjs.map +1 -0
- package/dist/generatedChart-k7NEdi5Z.mjs +211 -0
- package/dist/generatedChart-k7NEdi5Z.mjs.map +1 -0
- package/dist/hooks.d.mts +30 -30
- package/dist/hooks.mjs +1828 -1304
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.d.mts +11 -14
- package/dist/index.mjs +1273 -1051
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.d.mts +1 -7
- package/dist/middleware.mjs +5 -8
- package/dist/middleware.mjs.map +1 -1
- package/dist/models.d.mts +4 -32
- package/dist/models.mjs +7 -11
- package/dist/models.mjs.map +1 -1
- package/dist/{peoplesoft-D6q3cYsH.d.mts → peoplesoft-C-zPdRVj.d.mts} +3 -9
- package/dist/{peoplesoft-BhintHQz.mjs → peoplesoft-RnvfLbWH.mjs} +5 -25
- package/dist/peoplesoft-RnvfLbWH.mjs.map +1 -0
- package/dist/{providers-BvuZWkpD.mjs → providers-BfFg_3eo.mjs} +5 -23
- package/dist/providers-BfFg_3eo.mjs.map +1 -0
- package/dist/{tokens-XuFhVbh5.mjs → tokens-C4SErO-K.mjs} +12 -8
- package/dist/tokens-C4SErO-K.mjs.map +1 -0
- package/dist/{utils-CaeVFWF-.mjs → utils-C2MZoH9U.mjs} +8 -39
- package/dist/utils-C2MZoH9U.mjs.map +1 -0
- package/dist/{utils-Bhi0KiBx.d.mts → utils-CNYCSgip.d.mts} +3 -5
- package/dist/utils-DnMFybj3.mjs +27 -0
- package/dist/utils-DnMFybj3.mjs.map +1 -0
- package/dist/utils.d.mts +11 -2
- package/dist/utils.mjs +3 -5
- package/dist/vite.d.mts +0 -2
- package/dist/vite.mjs +2 -4
- package/dist/vite.mjs.map +1 -1
- package/package.json +131 -131
- package/skills/ai/SKILL.md +136 -39
- package/skills/client-db/SKILL.md +104 -90
- package/skills/db-schema/SKILL.md +28 -20
- package/skills/dialogs/SKILL.md +26 -38
- package/skills/forms/SKILL.md +133 -73
- package/skills/general/SKILL.md +99 -105
- package/skills/general/references/auth.md +70 -0
- package/skills/migrations/versions/migrate-v10-to-v11.md +30 -4
- package/skills/routing/SKILL.md +60 -58
- package/skills/scanning/SKILL.md +67 -0
- package/skills/server-functions/SKILL.md +71 -26
- package/skills/services/SKILL.md +4 -4
- package/skills/services/docs/approval.md +70 -24
- package/skills/services/docs/email.md +24 -3
- package/skills/services/docs/file.md +69 -27
- package/skills/services/docs/peoplesoft.md +55 -39
- package/skills/start/steps/03-apm-setup.md +9 -9
- package/skills/table/SKILL.md +250 -267
- package/dist/AggregatedCell-oGcwbetF.mjs +0 -559
- package/dist/AggregatedCell-oGcwbetF.mjs.map +0 -1
- package/dist/Approval-DoD-GRRH.mjs.map +0 -1
- package/dist/DialogsContext-DLqA8RJ_.mjs.map +0 -1
- package/dist/Email-BzQQkbe9.mjs.map +0 -1
- package/dist/FileMeta-DDqUju1Y.mjs.map +0 -1
- package/dist/RouterListItemButton-ULMlaQh6.mjs +0 -80
- package/dist/RouterListItemButton-ULMlaQh6.mjs.map +0 -1
- package/dist/approval-L09uPzTU.mjs.map +0 -1
- package/dist/createApi-BhNkG4jz.mjs.map +0 -1
- package/dist/file-Chlljz3o.mjs.map +0 -1
- package/dist/file-Dl8JCcqy.mjs.map +0 -1
- package/dist/peoplesoft-BhintHQz.mjs.map +0 -1
- package/dist/providers-BvuZWkpD.mjs.map +0 -1
- package/dist/tokens-XuFhVbh5.mjs.map +0 -1
- package/dist/utils-CaeVFWF-.mjs.map +0 -1
- package/skills/general/references/exports.md +0 -114
package/dist/components.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { d as sanitizeReturnTo, m as loginProvidersQueryOptions } from "./utils-
|
|
2
|
-
import { n as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
1
|
+
import { d as sanitizeReturnTo, m as loginProvidersQueryOptions } from "./utils-C2MZoH9U.mjs";
|
|
2
|
+
import { a as fileQueryOptions, i as fileMetasQueryOptions, n as deleteFileMutationOptions, o as fileThumbnailQueryOptions, r as downloadFileMutationOptions, s as openFileMutationOptions } from "./file-X1sK4ok6.mjs";
|
|
3
|
+
import { D as RouterLink, O as useDialogs, _ as toClipboardText, a as cellSelectionSx, c as columnFlex, d as layoutTableClasses, f as lookaheadRange, h as pinnedSx, m as pinnedClass, o as classNames, r as AggregatedCell, s as columnAlign, t as ChatLayout, u as hasColumnLabel, v as DEFAULT_PAGE_SIZE_OPTIONS } from "./ChatLayout-Tpuwo8-b.mjs";
|
|
4
|
+
import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-CF-8w-08.mjs";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { Box, Button, ButtonBase, Card, CardContent, CircularProgress, Dialog, Divider, Fab, IconButton, ImageListItem, ImageListItemBar,
|
|
6
|
+
import { Box, Button, ButtonBase, Card, CardContent, CircularProgress, Dialog, Divider, Fab, IconButton, ImageListItem, ImageListItemBar, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Menu, MenuItem, Paper, Skeleton, Stack, Tab, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TableRow, Tooltip, Typography, alpha, useTheme } from "@mui/material";
|
|
7
7
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import React, { Fragment, createContext, useContext, useEffect, useEffectEvent, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
10
10
|
import { manifest } from "virtual:wcz-layout";
|
|
11
11
|
import { createLink, rootRouteId, useLocation, useMatch } from "@tanstack/react-router";
|
|
12
|
-
import ChevronRight from "@mui/icons-material/ChevronRight";
|
|
13
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import ChevronRight from "@mui/icons-material/ChevronRight";
|
|
14
14
|
import Close from "@mui/icons-material/Close";
|
|
15
15
|
import CloudQueue from "@mui/icons-material/CloudQueue";
|
|
16
16
|
import Microsoft from "@mui/icons-material/Microsoft";
|
|
@@ -27,7 +27,7 @@ import SmartDisplay from "@mui/icons-material/SmartDisplay";
|
|
|
27
27
|
import ChevronLeft from "@mui/icons-material/ChevronLeft";
|
|
28
28
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
29
29
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
30
|
-
|
|
30
|
+
// src/components/core/account/LoginForm.tsx
|
|
31
31
|
const LAST_PROVIDER_KEY = "auth-provider";
|
|
32
32
|
const PROVIDER_ICON = {
|
|
33
33
|
entra: /* @__PURE__ */ jsx(Microsoft, {}),
|
|
@@ -38,59 +38,55 @@ const PROVIDER_ICON = {
|
|
|
38
38
|
* and it reads `?returnTo` from the URL itself, so it takes no props.
|
|
39
39
|
*/
|
|
40
40
|
const LoginForm = () => {
|
|
41
|
-
const $ = c(
|
|
42
|
-
if ($[0] !== "5f14f2dd7f994bdd88840e3f375e9ee4b049c4d266a9eaf4b3e2533ff17cc7c6") {
|
|
43
|
-
for (let $i = 0; $i < 36; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
44
|
-
$[0] = "5f14f2dd7f994bdd88840e3f375e9ee4b049c4d266a9eaf4b3e2533ff17cc7c6";
|
|
45
|
-
}
|
|
41
|
+
const $ = c(35);
|
|
46
42
|
const { data: t0 } = useQuery(loginProvidersQueryOptions);
|
|
47
43
|
let t1;
|
|
48
|
-
if ($[
|
|
44
|
+
if ($[0] !== t0) {
|
|
49
45
|
t1 = t0 === void 0 ? [] : t0;
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
52
|
-
} else t1 = $[
|
|
46
|
+
$[0] = t0;
|
|
47
|
+
$[1] = t1;
|
|
48
|
+
} else t1 = $[1];
|
|
53
49
|
const providers = t1;
|
|
54
50
|
let t2;
|
|
55
|
-
if ($[
|
|
51
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
56
52
|
t2 = { select: _temp$2 };
|
|
57
|
-
$[
|
|
58
|
-
} else t2 = $[
|
|
53
|
+
$[2] = t2;
|
|
54
|
+
} else t2 = $[2];
|
|
59
55
|
const search = useLocation(t2);
|
|
60
56
|
let t3;
|
|
61
|
-
if ($[
|
|
57
|
+
if ($[3] !== search.returnTo) {
|
|
62
58
|
t3 = sanitizeReturnTo(search.returnTo);
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
} else t3 = $[
|
|
59
|
+
$[3] = search.returnTo;
|
|
60
|
+
$[4] = t3;
|
|
61
|
+
} else t3 = $[4];
|
|
66
62
|
const returnTo = t3;
|
|
67
63
|
const { t } = useTranslation();
|
|
68
64
|
const [lastProvider, setLastProvider] = useState(null);
|
|
69
65
|
let t4;
|
|
70
66
|
let t5;
|
|
71
|
-
if ($[
|
|
67
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
72
68
|
t4 = () => setLastProvider(localStorage.getItem(LAST_PROVIDER_KEY));
|
|
73
69
|
t5 = [];
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
70
|
+
$[5] = t4;
|
|
71
|
+
$[6] = t5;
|
|
76
72
|
} else {
|
|
77
|
-
t4 = $[
|
|
78
|
-
t5 = $[
|
|
73
|
+
t4 = $[5];
|
|
74
|
+
t5 = $[6];
|
|
79
75
|
}
|
|
80
76
|
useEffect(t4, t5);
|
|
81
77
|
const preferred = lastProvider ?? (providers.length === 1 ? providers[0].id : null);
|
|
82
78
|
let t6;
|
|
83
|
-
if ($[
|
|
79
|
+
if ($[7] !== returnTo) {
|
|
84
80
|
t6 = (provider) => () => {
|
|
85
81
|
localStorage.setItem(LAST_PROVIDER_KEY, provider);
|
|
86
82
|
location.href = `/auth/login?provider=${provider}&returnTo=${encodeURIComponent(returnTo)}`;
|
|
87
83
|
};
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
} else t6 = $[
|
|
84
|
+
$[7] = returnTo;
|
|
85
|
+
$[8] = t6;
|
|
86
|
+
} else t6 = $[8];
|
|
91
87
|
const signIn = t6;
|
|
92
88
|
let t7;
|
|
93
|
-
if ($[
|
|
89
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
94
90
|
t7 = {
|
|
95
91
|
minHeight: "100%",
|
|
96
92
|
display: "flex",
|
|
@@ -99,24 +95,24 @@ const LoginForm = () => {
|
|
|
99
95
|
px: 2,
|
|
100
96
|
py: 6
|
|
101
97
|
};
|
|
102
|
-
$[
|
|
103
|
-
} else t7 = $[
|
|
98
|
+
$[9] = t7;
|
|
99
|
+
} else t7 = $[9];
|
|
104
100
|
let t8;
|
|
105
|
-
if ($[
|
|
101
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
106
102
|
t8 = [_temp2, _temp3];
|
|
107
|
-
$[
|
|
108
|
-
} else t8 = $[
|
|
103
|
+
$[10] = t8;
|
|
104
|
+
} else t8 = $[10];
|
|
109
105
|
let t9;
|
|
110
|
-
if ($[
|
|
106
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
111
107
|
t9 = { p: {
|
|
112
108
|
xs: 3,
|
|
113
109
|
sm: 4
|
|
114
110
|
} };
|
|
115
|
-
$[
|
|
116
|
-
} else t9 = $[
|
|
111
|
+
$[11] = t9;
|
|
112
|
+
} else t9 = $[11];
|
|
117
113
|
let t10;
|
|
118
114
|
let t11;
|
|
119
|
-
if ($[
|
|
115
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
120
116
|
t10 = { alignItems: "center" };
|
|
121
117
|
t11 = /* @__PURE__ */ jsx(Box, {
|
|
122
118
|
component: "img",
|
|
@@ -125,35 +121,35 @@ const LoginForm = () => {
|
|
|
125
121
|
width: 48,
|
|
126
122
|
height: 48
|
|
127
123
|
});
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
124
|
+
$[12] = t10;
|
|
125
|
+
$[13] = t11;
|
|
130
126
|
} else {
|
|
131
|
-
t10 = $[
|
|
132
|
-
t11 = $[
|
|
127
|
+
t10 = $[12];
|
|
128
|
+
t11 = $[13];
|
|
133
129
|
}
|
|
134
130
|
let t12;
|
|
135
|
-
if ($[
|
|
131
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
136
132
|
t12 = /* @__PURE__ */ jsx(Typography, {
|
|
137
133
|
variant: "body2",
|
|
138
134
|
color: "text.secondary",
|
|
139
135
|
sx: { fontWeight: 600 },
|
|
140
136
|
children: manifest.name
|
|
141
137
|
});
|
|
142
|
-
$[
|
|
143
|
-
} else t12 = $[
|
|
138
|
+
$[14] = t12;
|
|
139
|
+
} else t12 = $[14];
|
|
144
140
|
let t13;
|
|
145
|
-
if ($[
|
|
141
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
146
142
|
t13 = { fontWeight: 700 };
|
|
147
|
-
$[
|
|
148
|
-
} else t13 = $[
|
|
143
|
+
$[15] = t13;
|
|
144
|
+
} else t13 = $[15];
|
|
149
145
|
let t14;
|
|
150
|
-
if ($[
|
|
146
|
+
if ($[16] !== t) {
|
|
151
147
|
t14 = t("Layout.LogIn");
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
} else t14 = $[
|
|
148
|
+
$[16] = t;
|
|
149
|
+
$[17] = t14;
|
|
150
|
+
} else t14 = $[17];
|
|
155
151
|
let t15;
|
|
156
|
-
if ($[
|
|
152
|
+
if ($[18] !== t14) {
|
|
157
153
|
t15 = /* @__PURE__ */ jsxs(Stack, {
|
|
158
154
|
direction: "row",
|
|
159
155
|
spacing: 2,
|
|
@@ -168,18 +164,18 @@ const LoginForm = () => {
|
|
|
168
164
|
})]
|
|
169
165
|
})]
|
|
170
166
|
});
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
} else t15 = $[
|
|
167
|
+
$[18] = t14;
|
|
168
|
+
$[19] = t15;
|
|
169
|
+
} else t15 = $[19];
|
|
174
170
|
let t16;
|
|
175
|
-
if ($[
|
|
171
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
176
172
|
t16 = /* @__PURE__ */ jsx(Divider, { sx: { my: 3 } });
|
|
177
|
-
$[
|
|
178
|
-
} else t16 = $[
|
|
173
|
+
$[20] = t16;
|
|
174
|
+
} else t16 = $[20];
|
|
179
175
|
let t17;
|
|
180
|
-
if ($[
|
|
176
|
+
if ($[21] !== preferred || $[22] !== providers || $[23] !== signIn || $[24] !== t) {
|
|
181
177
|
let t18;
|
|
182
|
-
if ($[
|
|
178
|
+
if ($[26] !== preferred || $[27] !== signIn || $[28] !== t) {
|
|
183
179
|
t18 = (t19) => {
|
|
184
180
|
const { id, label } = t19;
|
|
185
181
|
return /* @__PURE__ */ jsx(Button, {
|
|
@@ -199,29 +195,29 @@ const LoginForm = () => {
|
|
|
199
195
|
children: t("Layout.ContinueWith", { provider: label })
|
|
200
196
|
}, id);
|
|
201
197
|
};
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
} else t18 = $[
|
|
198
|
+
$[26] = preferred;
|
|
199
|
+
$[27] = signIn;
|
|
200
|
+
$[28] = t;
|
|
201
|
+
$[29] = t18;
|
|
202
|
+
} else t18 = $[29];
|
|
207
203
|
t17 = providers.map(t18);
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
} else t17 = $[
|
|
204
|
+
$[21] = preferred;
|
|
205
|
+
$[22] = providers;
|
|
206
|
+
$[23] = signIn;
|
|
207
|
+
$[24] = t;
|
|
208
|
+
$[25] = t17;
|
|
209
|
+
} else t17 = $[25];
|
|
214
210
|
let t18;
|
|
215
|
-
if ($[
|
|
211
|
+
if ($[30] !== t17) {
|
|
216
212
|
t18 = /* @__PURE__ */ jsx(Stack, {
|
|
217
213
|
spacing: 1.5,
|
|
218
214
|
children: t17
|
|
219
215
|
});
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
} else t18 = $[
|
|
216
|
+
$[30] = t17;
|
|
217
|
+
$[31] = t18;
|
|
218
|
+
} else t18 = $[31];
|
|
223
219
|
let t19;
|
|
224
|
-
if ($[
|
|
220
|
+
if ($[32] !== t15 || $[33] !== t18) {
|
|
225
221
|
t19 = /* @__PURE__ */ jsx(Box, {
|
|
226
222
|
sx: t7,
|
|
227
223
|
children: /* @__PURE__ */ jsx(Card, {
|
|
@@ -237,10 +233,10 @@ const LoginForm = () => {
|
|
|
237
233
|
})
|
|
238
234
|
})
|
|
239
235
|
});
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
} else t19 = $[
|
|
236
|
+
$[32] = t15;
|
|
237
|
+
$[33] = t18;
|
|
238
|
+
$[34] = t19;
|
|
239
|
+
} else t19 = $[34];
|
|
244
240
|
return t19;
|
|
245
241
|
};
|
|
246
242
|
function _temp$2(location) {
|
|
@@ -261,8 +257,7 @@ function _temp3(theme_0) {
|
|
|
261
257
|
boxShadow: `0 20px 50px ${alpha(theme_0.palette.common.black, .28)}`
|
|
262
258
|
});
|
|
263
259
|
}
|
|
264
|
-
|
|
265
|
-
//#region src/components/core/Fullscreen.tsx
|
|
260
|
+
// src/components/core/Fullscreen.tsx
|
|
266
261
|
const isScrollContainer = (element) => /auto|scroll|overlay/.test(getComputedStyle(element).overflowY);
|
|
267
262
|
/** Ancestors up to and including the nearest scroll container (or the root element). */
|
|
268
263
|
const getAncestors = (element) => {
|
|
@@ -278,29 +273,25 @@ const getAncestors = (element) => {
|
|
|
278
273
|
};
|
|
279
274
|
const px = (value) => Number.parseFloat(value) || 0;
|
|
280
275
|
const Fullscreen = (t0) => {
|
|
281
|
-
const $ = c(
|
|
282
|
-
if ($[0] !== "cdd4a640a8b589854800244f48bf8da4e96389b39ccb325b032a153ec0414e39") {
|
|
283
|
-
for (let $i = 0; $i < 16; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
284
|
-
$[0] = "cdd4a640a8b589854800244f48bf8da4e96389b39ccb325b032a153ec0414e39";
|
|
285
|
-
}
|
|
276
|
+
const $ = c(15);
|
|
286
277
|
let children;
|
|
287
278
|
let props;
|
|
288
279
|
let sx;
|
|
289
|
-
if ($[
|
|
280
|
+
if ($[0] !== t0) {
|
|
290
281
|
({children, sx, ...props} = t0);
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
282
|
+
$[0] = t0;
|
|
283
|
+
$[1] = children;
|
|
284
|
+
$[2] = props;
|
|
285
|
+
$[3] = sx;
|
|
295
286
|
} else {
|
|
296
|
-
children = $[
|
|
297
|
-
props = $[
|
|
298
|
-
sx = $[
|
|
287
|
+
children = $[1];
|
|
288
|
+
props = $[2];
|
|
289
|
+
sx = $[3];
|
|
299
290
|
}
|
|
300
291
|
const reference = useRef(null);
|
|
301
292
|
const [height, setHeight] = useState();
|
|
302
293
|
let t1;
|
|
303
|
-
if ($[
|
|
294
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
304
295
|
t1 = () => {
|
|
305
296
|
const element = reference.current;
|
|
306
297
|
if (!element) return;
|
|
@@ -319,11 +310,11 @@ const Fullscreen = (t0) => {
|
|
|
319
310
|
}
|
|
320
311
|
setHeight(Math.max(0, Math.floor(containerHeight - offsetTop - trailing)));
|
|
321
312
|
};
|
|
322
|
-
$[
|
|
323
|
-
} else t1 = $[
|
|
313
|
+
$[4] = t1;
|
|
314
|
+
} else t1 = $[4];
|
|
324
315
|
const recompute = useEffectEvent(t1);
|
|
325
316
|
let t2;
|
|
326
|
-
if ($[
|
|
317
|
+
if ($[5] !== recompute) {
|
|
327
318
|
t2 = () => {
|
|
328
319
|
const element_0 = reference.current;
|
|
329
320
|
if (!element_0) return;
|
|
@@ -339,17 +330,17 @@ const Fullscreen = (t0) => {
|
|
|
339
330
|
ro.disconnect();
|
|
340
331
|
};
|
|
341
332
|
};
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
} else t2 = $[
|
|
333
|
+
$[5] = recompute;
|
|
334
|
+
$[6] = t2;
|
|
335
|
+
} else t2 = $[6];
|
|
345
336
|
let t3;
|
|
346
|
-
if ($[
|
|
337
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
347
338
|
t3 = [];
|
|
348
|
-
$[
|
|
349
|
-
} else t3 = $[
|
|
339
|
+
$[7] = t3;
|
|
340
|
+
} else t3 = $[7];
|
|
350
341
|
useLayoutEffect(t2, t3);
|
|
351
342
|
let t4;
|
|
352
|
-
if ($[
|
|
343
|
+
if ($[8] !== height || $[9] !== sx) {
|
|
353
344
|
t4 = {
|
|
354
345
|
display: "flex",
|
|
355
346
|
flexDirection: "column",
|
|
@@ -360,27 +351,26 @@ const Fullscreen = (t0) => {
|
|
|
360
351
|
height,
|
|
361
352
|
...sx
|
|
362
353
|
};
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
} else t4 = $[
|
|
354
|
+
$[8] = height;
|
|
355
|
+
$[9] = sx;
|
|
356
|
+
$[10] = t4;
|
|
357
|
+
} else t4 = $[10];
|
|
367
358
|
let t5;
|
|
368
|
-
if ($[
|
|
359
|
+
if ($[11] !== children || $[12] !== props || $[13] !== t4) {
|
|
369
360
|
t5 = /* @__PURE__ */ jsx(Box, {
|
|
370
361
|
ref: reference,
|
|
371
362
|
sx: t4,
|
|
372
363
|
...props,
|
|
373
364
|
children
|
|
374
365
|
});
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
} else t5 = $[
|
|
366
|
+
$[11] = children;
|
|
367
|
+
$[12] = props;
|
|
368
|
+
$[13] = t4;
|
|
369
|
+
$[14] = t5;
|
|
370
|
+
} else t5 = $[14];
|
|
380
371
|
return t5;
|
|
381
372
|
};
|
|
382
|
-
|
|
383
|
-
//#region src/components/file/Dropzone.tsx
|
|
373
|
+
// src/components/file/Dropzone.tsx
|
|
384
374
|
const baseStyle = {
|
|
385
375
|
flex: 1,
|
|
386
376
|
display: "flex",
|
|
@@ -394,24 +384,20 @@ const baseStyle = {
|
|
|
394
384
|
cursor: "pointer"
|
|
395
385
|
};
|
|
396
386
|
const Dropzone = (t0) => {
|
|
397
|
-
const $ = c(
|
|
398
|
-
if ($[0] !== "5f7e412e732333f86e343ff1dbc3882283622c609fd4ce6a961ebef933e25fd9") {
|
|
399
|
-
for (let $i = 0; $i < 33; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
400
|
-
$[0] = "5f7e412e732333f86e343ff1dbc3882283622c609fd4ce6a961ebef933e25fd9";
|
|
401
|
-
}
|
|
387
|
+
const $ = c(32);
|
|
402
388
|
let progress;
|
|
403
389
|
let props;
|
|
404
390
|
let sx;
|
|
405
|
-
if ($[
|
|
391
|
+
if ($[0] !== t0) {
|
|
406
392
|
({sx, progress, ...props} = t0);
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
393
|
+
$[0] = t0;
|
|
394
|
+
$[1] = progress;
|
|
395
|
+
$[2] = props;
|
|
396
|
+
$[3] = sx;
|
|
411
397
|
} else {
|
|
412
|
-
progress = $[
|
|
413
|
-
props = $[
|
|
414
|
-
sx = $[
|
|
398
|
+
progress = $[1];
|
|
399
|
+
props = $[2];
|
|
400
|
+
sx = $[3];
|
|
415
401
|
}
|
|
416
402
|
const { getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone(props);
|
|
417
403
|
const { t } = useTranslation();
|
|
@@ -420,7 +406,7 @@ const Dropzone = (t0) => {
|
|
|
420
406
|
const t2 = theme.vars || theme;
|
|
421
407
|
let T0;
|
|
422
408
|
let t3;
|
|
423
|
-
if ($[
|
|
409
|
+
if ($[4] !== getRootProps || $[5] !== isDragAccept || $[6] !== isDragReject || $[7] !== isFocused || $[8] !== props.disabled || $[9] !== t1 || $[10] !== t2.palette.text.disabled || $[11] !== theme) {
|
|
424
410
|
const style = {
|
|
425
411
|
...baseStyle,
|
|
426
412
|
cursor: t1,
|
|
@@ -435,65 +421,65 @@ const Dropzone = (t0) => {
|
|
|
435
421
|
role: "button",
|
|
436
422
|
"aria-disabled": props.disabled || void 0
|
|
437
423
|
});
|
|
438
|
-
$[
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
424
|
+
$[4] = getRootProps;
|
|
425
|
+
$[5] = isDragAccept;
|
|
426
|
+
$[6] = isDragReject;
|
|
427
|
+
$[7] = isFocused;
|
|
428
|
+
$[8] = props.disabled;
|
|
429
|
+
$[9] = t1;
|
|
430
|
+
$[10] = t2.palette.text.disabled;
|
|
431
|
+
$[11] = theme;
|
|
432
|
+
$[12] = T0;
|
|
433
|
+
$[13] = t3;
|
|
448
434
|
} else {
|
|
449
|
-
T0 = $[
|
|
450
|
-
t3 = $[
|
|
435
|
+
T0 = $[12];
|
|
436
|
+
t3 = $[13];
|
|
451
437
|
}
|
|
452
438
|
let t4;
|
|
453
|
-
if ($[
|
|
439
|
+
if ($[14] !== getInputProps) {
|
|
454
440
|
t4 = getInputProps();
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
} else t4 = $[
|
|
441
|
+
$[14] = getInputProps;
|
|
442
|
+
$[15] = t4;
|
|
443
|
+
} else t4 = $[15];
|
|
458
444
|
let t5;
|
|
459
|
-
if ($[
|
|
445
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
460
446
|
t5 = { display: "none" };
|
|
461
|
-
$[
|
|
462
|
-
} else t5 = $[
|
|
447
|
+
$[16] = t5;
|
|
448
|
+
} else t5 = $[16];
|
|
463
449
|
let t6;
|
|
464
|
-
if ($[
|
|
450
|
+
if ($[17] !== t4) {
|
|
465
451
|
t6 = /* @__PURE__ */ jsx("input", {
|
|
466
452
|
...t4,
|
|
467
453
|
style: t5
|
|
468
454
|
});
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
} else t6 = $[
|
|
455
|
+
$[17] = t4;
|
|
456
|
+
$[18] = t6;
|
|
457
|
+
} else t6 = $[18];
|
|
472
458
|
let t7;
|
|
473
|
-
if ($[
|
|
459
|
+
if ($[19] !== progress) {
|
|
474
460
|
t7 = progress ? /* @__PURE__ */ jsx(CircularProgress, {
|
|
475
461
|
size: 24,
|
|
476
462
|
variant: "determinate",
|
|
477
463
|
value: progress,
|
|
478
464
|
"aria-label": "Uploading"
|
|
479
465
|
}) : /* @__PURE__ */ jsx(CloudUpload, {});
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
} else t7 = $[
|
|
466
|
+
$[19] = progress;
|
|
467
|
+
$[20] = t7;
|
|
468
|
+
} else t7 = $[20];
|
|
483
469
|
let t8;
|
|
484
|
-
if ($[
|
|
470
|
+
if ($[21] !== t) {
|
|
485
471
|
t8 = t("Layout.File.DragSomeFilesHereOrClickToSelectThem");
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
} else t8 = $[
|
|
472
|
+
$[21] = t;
|
|
473
|
+
$[22] = t8;
|
|
474
|
+
} else t8 = $[22];
|
|
489
475
|
let t9;
|
|
490
|
-
if ($[
|
|
476
|
+
if ($[23] !== t8) {
|
|
491
477
|
t9 = /* @__PURE__ */ jsx(Typography, { children: t8 });
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
} else t9 = $[
|
|
478
|
+
$[23] = t8;
|
|
479
|
+
$[24] = t9;
|
|
480
|
+
} else t9 = $[24];
|
|
495
481
|
let t10;
|
|
496
|
-
if ($[
|
|
482
|
+
if ($[25] !== T0 || $[26] !== sx || $[27] !== t3 || $[28] !== t6 || $[29] !== t7 || $[30] !== t9) {
|
|
497
483
|
t10 = /* @__PURE__ */ jsxs(T0, {
|
|
498
484
|
...t3,
|
|
499
485
|
sx,
|
|
@@ -503,62 +489,51 @@ const Dropzone = (t0) => {
|
|
|
503
489
|
t9
|
|
504
490
|
]
|
|
505
491
|
});
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
508
|
-
$[
|
|
509
|
-
$[
|
|
510
|
-
$[
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
513
|
-
} else t10 = $[
|
|
492
|
+
$[25] = T0;
|
|
493
|
+
$[26] = sx;
|
|
494
|
+
$[27] = t3;
|
|
495
|
+
$[28] = t6;
|
|
496
|
+
$[29] = t7;
|
|
497
|
+
$[30] = t9;
|
|
498
|
+
$[31] = t10;
|
|
499
|
+
} else t10 = $[31];
|
|
514
500
|
return t10;
|
|
515
501
|
};
|
|
516
|
-
|
|
517
|
-
//#region src/contexts/FileContext.ts
|
|
502
|
+
// src/contexts/FileContext.ts
|
|
518
503
|
const FileContext = createContext(null);
|
|
519
504
|
const useFile = () => {
|
|
520
|
-
const $ = c(1);
|
|
521
|
-
if ($[0] !== "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9") {
|
|
522
|
-
for (let $i = 0; $i < 1; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
523
|
-
$[0] = "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9";
|
|
524
|
-
}
|
|
525
505
|
const context = useContext(FileContext);
|
|
526
506
|
if (!context) throw new Error("FileViewer components must be used within FileViewer");
|
|
527
507
|
return context;
|
|
528
508
|
};
|
|
529
|
-
|
|
530
|
-
//#region src/components/file/fileViewer/common/ActionsMenu.tsx
|
|
509
|
+
// src/components/file/fileViewer/common/ActionsMenu.tsx
|
|
531
510
|
const ActionsMenu = (t0) => {
|
|
532
|
-
const $ = c(
|
|
533
|
-
if ($[0] !== "7ed2ca73a1b83560ce36924119f722bc2853d54808eacf915e739dac0ddf031e") {
|
|
534
|
-
for (let $i = 0; $i < 38; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
535
|
-
$[0] = "7ed2ca73a1b83560ce36924119f722bc2853d54808eacf915e739dac0ddf031e";
|
|
536
|
-
}
|
|
511
|
+
const $ = c(35);
|
|
537
512
|
const { meta, anchorEl, onClose } = t0;
|
|
538
513
|
const { t } = useTranslation();
|
|
539
514
|
const { fileMetas, onDelete, actions, appName } = useFile();
|
|
540
515
|
const { alert, confirm } = useDialogs();
|
|
541
516
|
let t1;
|
|
542
|
-
if ($[
|
|
517
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
543
518
|
t1 = { from: rootRouteId };
|
|
544
|
-
$[
|
|
545
|
-
} else t1 = $[
|
|
519
|
+
$[0] = t1;
|
|
520
|
+
} else t1 = $[0];
|
|
546
521
|
const queryClient = useMatch(t1).context.queryClient;
|
|
547
522
|
let t2;
|
|
548
|
-
if ($[
|
|
523
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
549
524
|
t2 = downloadFileMutationOptions();
|
|
550
|
-
$[
|
|
551
|
-
} else t2 = $[
|
|
525
|
+
$[1] = t2;
|
|
526
|
+
} else t2 = $[1];
|
|
552
527
|
const { mutate: download, isPending: isDownloading } = useMutation(t2);
|
|
553
528
|
let t3;
|
|
554
|
-
if ($[
|
|
529
|
+
if ($[2] !== queryClient) {
|
|
555
530
|
t3 = deleteFileMutationOptions({ queryClient });
|
|
556
|
-
$[
|
|
557
|
-
$[
|
|
558
|
-
} else t3 = $[
|
|
531
|
+
$[2] = queryClient;
|
|
532
|
+
$[3] = t3;
|
|
533
|
+
} else t3 = $[3];
|
|
559
534
|
const { mutateAsync: deleteFile, isPending: isDeleting } = useMutation(t3);
|
|
560
535
|
let t4;
|
|
561
|
-
if ($[
|
|
536
|
+
if ($[4] !== appName || $[5] !== download || $[6] !== meta || $[7] !== onClose) {
|
|
562
537
|
t4 = () => {
|
|
563
538
|
onClose();
|
|
564
539
|
download({
|
|
@@ -568,17 +543,15 @@ const ActionsMenu = (t0) => {
|
|
|
568
543
|
fileExtension: meta.fileExtension
|
|
569
544
|
});
|
|
570
545
|
};
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
573
|
-
$[
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
576
|
-
|
|
577
|
-
$[11] = t4;
|
|
578
|
-
} else t4 = $[11];
|
|
546
|
+
$[4] = appName;
|
|
547
|
+
$[5] = download;
|
|
548
|
+
$[6] = meta;
|
|
549
|
+
$[7] = onClose;
|
|
550
|
+
$[8] = t4;
|
|
551
|
+
} else t4 = $[8];
|
|
579
552
|
const handleOnDownload = t4;
|
|
580
553
|
let t5;
|
|
581
|
-
if ($[
|
|
554
|
+
if ($[9] !== alert || $[10] !== appName || $[11] !== confirm || $[12] !== deleteFile || $[13] !== fileMetas || $[14] !== meta || $[15] !== onClose || $[16] !== onDelete || $[17] !== t) {
|
|
582
555
|
t5 = async () => {
|
|
583
556
|
onClose();
|
|
584
557
|
if (!await confirm(t("Layout.File.AreYouSureYouWantToDelete", { name: meta.fileName }), {
|
|
@@ -600,113 +573,108 @@ const ActionsMenu = (t0) => {
|
|
|
600
573
|
deletedFileMeta: meta
|
|
601
574
|
});
|
|
602
575
|
};
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
613
|
-
} else t5 = $[
|
|
576
|
+
$[9] = alert;
|
|
577
|
+
$[10] = appName;
|
|
578
|
+
$[11] = confirm;
|
|
579
|
+
$[12] = deleteFile;
|
|
580
|
+
$[13] = fileMetas;
|
|
581
|
+
$[14] = meta;
|
|
582
|
+
$[15] = onClose;
|
|
583
|
+
$[16] = onDelete;
|
|
584
|
+
$[17] = t;
|
|
585
|
+
$[18] = t5;
|
|
586
|
+
} else t5 = $[18];
|
|
614
587
|
const handleOnDelete = t5;
|
|
615
588
|
const t6 = !!anchorEl;
|
|
616
589
|
let t7;
|
|
617
|
-
if ($[
|
|
590
|
+
if ($[19] !== actions?.download || $[20] !== handleOnDownload || $[21] !== isDownloading || $[22] !== t) {
|
|
618
591
|
t7 = actions?.download !== false && /* @__PURE__ */ jsxs(MenuItem, {
|
|
619
592
|
onClick: handleOnDownload,
|
|
620
593
|
disabled: isDownloading,
|
|
621
594
|
children: [/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(FileDownload, {}) }), /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Download") })]
|
|
622
595
|
});
|
|
623
|
-
$[
|
|
624
|
-
$[
|
|
625
|
-
$[
|
|
626
|
-
$[
|
|
627
|
-
$[
|
|
628
|
-
} else t7 = $[
|
|
596
|
+
$[19] = actions?.download;
|
|
597
|
+
$[20] = handleOnDownload;
|
|
598
|
+
$[21] = isDownloading;
|
|
599
|
+
$[22] = t;
|
|
600
|
+
$[23] = t7;
|
|
601
|
+
} else t7 = $[23];
|
|
629
602
|
let t8;
|
|
630
|
-
if ($[
|
|
603
|
+
if ($[24] !== actions?.delete || $[25] !== handleOnDelete || $[26] !== isDeleting || $[27] !== t) {
|
|
631
604
|
t8 = actions?.delete !== false && /* @__PURE__ */ jsxs(MenuItem, {
|
|
632
605
|
onClick: handleOnDelete,
|
|
633
606
|
disabled: isDeleting,
|
|
634
607
|
children: [/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Delete, {}) }), /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Delete") })]
|
|
635
608
|
});
|
|
636
|
-
$[
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
} else t8 = $[
|
|
609
|
+
$[24] = actions?.delete;
|
|
610
|
+
$[25] = handleOnDelete;
|
|
611
|
+
$[26] = isDeleting;
|
|
612
|
+
$[27] = t;
|
|
613
|
+
$[28] = t8;
|
|
614
|
+
} else t8 = $[28];
|
|
642
615
|
let t9;
|
|
643
|
-
if ($[
|
|
616
|
+
if ($[29] !== anchorEl || $[30] !== onClose || $[31] !== t6 || $[32] !== t7 || $[33] !== t8) {
|
|
644
617
|
t9 = /* @__PURE__ */ jsxs(Menu, {
|
|
645
618
|
anchorEl,
|
|
646
619
|
open: t6,
|
|
647
620
|
onClose,
|
|
648
621
|
children: [t7, t8]
|
|
649
622
|
});
|
|
650
|
-
$[
|
|
651
|
-
$[
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
$[
|
|
655
|
-
$[
|
|
656
|
-
} else t9 = $[
|
|
623
|
+
$[29] = anchorEl;
|
|
624
|
+
$[30] = onClose;
|
|
625
|
+
$[31] = t6;
|
|
626
|
+
$[32] = t7;
|
|
627
|
+
$[33] = t8;
|
|
628
|
+
$[34] = t9;
|
|
629
|
+
} else t9 = $[34];
|
|
657
630
|
return t9;
|
|
658
631
|
};
|
|
659
|
-
|
|
660
|
-
//#region src/components/file/fileViewer/FileViewerGrid.tsx
|
|
632
|
+
// src/components/file/fileViewer/FileViewerGrid.tsx
|
|
661
633
|
const IMAGE_SIZE = 150;
|
|
662
634
|
const FileViewerGrid = (t0) => {
|
|
663
|
-
const $ = c(
|
|
664
|
-
if ($[0] !== "0b6106e2d976834ad6da1be7ac64269b20131a7e8bed012e78cb98b5ae12e94c") {
|
|
665
|
-
for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
666
|
-
$[0] = "0b6106e2d976834ad6da1be7ac64269b20131a7e8bed012e78cb98b5ae12e94c";
|
|
667
|
-
}
|
|
635
|
+
const $ = c(12);
|
|
668
636
|
const { sx, size, itemBar } = t0;
|
|
669
637
|
const { fileMetas } = useFile();
|
|
670
638
|
let t1;
|
|
671
|
-
if ($[
|
|
639
|
+
if ($[0] !== sx) {
|
|
672
640
|
t1 = {
|
|
673
641
|
overflow: "auto",
|
|
674
642
|
...sx
|
|
675
643
|
};
|
|
676
|
-
$[
|
|
677
|
-
$[
|
|
678
|
-
} else t1 = $[
|
|
644
|
+
$[0] = sx;
|
|
645
|
+
$[1] = t1;
|
|
646
|
+
} else t1 = $[1];
|
|
679
647
|
let t2;
|
|
680
|
-
if ($[
|
|
648
|
+
if ($[2] !== fileMetas || $[3] !== itemBar || $[4] !== size) {
|
|
681
649
|
let t3;
|
|
682
|
-
if ($[
|
|
650
|
+
if ($[6] !== itemBar || $[7] !== size) {
|
|
683
651
|
t3 = (fileMeta) => /* @__PURE__ */ jsx(GridFileViewerItem, {
|
|
684
652
|
meta: fileMeta,
|
|
685
653
|
size,
|
|
686
654
|
itemBar
|
|
687
655
|
}, fileMeta.id);
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
} else t3 = $[
|
|
656
|
+
$[6] = itemBar;
|
|
657
|
+
$[7] = size;
|
|
658
|
+
$[8] = t3;
|
|
659
|
+
} else t3 = $[8];
|
|
692
660
|
t2 = fileMetas.map(t3);
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
695
|
-
$[
|
|
696
|
-
$[
|
|
697
|
-
} else t2 = $[
|
|
661
|
+
$[2] = fileMetas;
|
|
662
|
+
$[3] = itemBar;
|
|
663
|
+
$[4] = size;
|
|
664
|
+
$[5] = t2;
|
|
665
|
+
} else t2 = $[5];
|
|
698
666
|
let t3;
|
|
699
|
-
if ($[
|
|
667
|
+
if ($[9] !== t1 || $[10] !== t2) {
|
|
700
668
|
t3 = /* @__PURE__ */ jsx(Stack, {
|
|
701
669
|
direction: "row",
|
|
702
670
|
spacing: 1,
|
|
703
671
|
sx: t1,
|
|
704
672
|
children: t2
|
|
705
673
|
});
|
|
706
|
-
$[
|
|
707
|
-
$[
|
|
708
|
-
$[
|
|
709
|
-
} else t3 = $[
|
|
674
|
+
$[9] = t1;
|
|
675
|
+
$[10] = t2;
|
|
676
|
+
$[11] = t3;
|
|
677
|
+
} else t3 = $[11];
|
|
710
678
|
return t3;
|
|
711
679
|
};
|
|
712
680
|
const GridFileViewerItem = ({ meta, size, itemBar }) => {
|
|
@@ -714,7 +682,7 @@ const GridFileViewerItem = ({ meta, size, itemBar }) => {
|
|
|
714
682
|
const [hovered, setHovered] = useState(false);
|
|
715
683
|
const [focused, setFocused] = useState(false);
|
|
716
684
|
const [menuAnchor, setMenuAnchor] = useState(null);
|
|
717
|
-
const { ref, inView } = useInView();
|
|
685
|
+
const { ref, inView } = useInView({ triggerOnce: true });
|
|
718
686
|
const queryClient = useQueryClient();
|
|
719
687
|
const target = useRef(null);
|
|
720
688
|
const side = size ?? IMAGE_SIZE;
|
|
@@ -800,7 +768,7 @@ const GridFileViewerItem = ({ meta, size, itemBar }) => {
|
|
|
800
768
|
}),
|
|
801
769
|
actionIcon: hasActions && /* @__PURE__ */ jsx(IconButton, {
|
|
802
770
|
sx: { color: grey[100] },
|
|
803
|
-
onClick: (
|
|
771
|
+
onClick: (event) => setMenuAnchor(event.currentTarget),
|
|
804
772
|
"aria-label": `Actions for ${fileName}`,
|
|
805
773
|
"aria-haspopup": "menu",
|
|
806
774
|
children: /* @__PURE__ */ jsx(MoreVert, {})
|
|
@@ -812,33 +780,28 @@ const GridFileViewerItem = ({ meta, size, itemBar }) => {
|
|
|
812
780
|
onClose: () => setMenuAnchor(null)
|
|
813
781
|
})] });
|
|
814
782
|
};
|
|
815
|
-
|
|
816
|
-
//#region src/components/file/fileViewer/FileViewerList.tsx
|
|
783
|
+
// src/components/file/fileViewer/FileViewerList.tsx
|
|
817
784
|
const FileViewerList = (t0) => {
|
|
818
|
-
const $ = c(
|
|
819
|
-
if ($[0] !== "def12bfee125db96c0e25478a726cf153aa928252368ec27de2bcba8f364adae") {
|
|
820
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
821
|
-
$[0] = "def12bfee125db96c0e25478a726cf153aa928252368ec27de2bcba8f364adae";
|
|
822
|
-
}
|
|
785
|
+
const $ = c(5);
|
|
823
786
|
const { sx } = t0;
|
|
824
787
|
const { fileMetas } = useFile();
|
|
825
788
|
let t1;
|
|
826
|
-
if ($[
|
|
789
|
+
if ($[0] !== fileMetas) {
|
|
827
790
|
t1 = fileMetas.map(_temp$1);
|
|
828
|
-
$[
|
|
829
|
-
$[
|
|
830
|
-
} else t1 = $[
|
|
791
|
+
$[0] = fileMetas;
|
|
792
|
+
$[1] = t1;
|
|
793
|
+
} else t1 = $[1];
|
|
831
794
|
let t2;
|
|
832
|
-
if ($[
|
|
795
|
+
if ($[2] !== sx || $[3] !== t1) {
|
|
833
796
|
t2 = /* @__PURE__ */ jsx(List, {
|
|
834
797
|
dense: true,
|
|
835
798
|
sx,
|
|
836
799
|
children: t1
|
|
837
800
|
});
|
|
838
|
-
$[
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
} else t2 = $[
|
|
801
|
+
$[2] = sx;
|
|
802
|
+
$[3] = t1;
|
|
803
|
+
$[4] = t2;
|
|
804
|
+
} else t2 = $[4];
|
|
842
805
|
return t2;
|
|
843
806
|
};
|
|
844
807
|
const ListFileViewerItem = ({ meta }) => {
|
|
@@ -901,14 +864,9 @@ const ListFileViewerItem = ({ meta }) => {
|
|
|
901
864
|
function _temp$1(fileMeta) {
|
|
902
865
|
return /* @__PURE__ */ jsx(ListFileViewerItem, { meta: fileMeta }, fileMeta.id);
|
|
903
866
|
}
|
|
904
|
-
|
|
905
|
-
//#region src/components/file/fileViewer/ImageViewer.tsx
|
|
867
|
+
// src/components/file/fileViewer/ImageViewer.tsx
|
|
906
868
|
const ImageViewer = (t0) => {
|
|
907
|
-
const $ = c(
|
|
908
|
-
if ($[0] !== "c362b5d42dedaecf837e96525daab6341b34e31726fb1413e37d4a5eb8122071") {
|
|
909
|
-
for (let $i = 0; $i < 56; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
910
|
-
$[0] = "c362b5d42dedaecf837e96525daab6341b34e31726fb1413e37d4a5eb8122071";
|
|
911
|
-
}
|
|
869
|
+
const $ = c(55);
|
|
912
870
|
const { metaId } = t0;
|
|
913
871
|
const { fileMetas, setImageId, appName } = useFile();
|
|
914
872
|
let meta;
|
|
@@ -916,32 +874,32 @@ const ImageViewer = (t0) => {
|
|
|
916
874
|
let previous;
|
|
917
875
|
let t1;
|
|
918
876
|
let t2;
|
|
919
|
-
if ($[
|
|
877
|
+
if ($[0] !== appName || $[1] !== fileMetas || $[2] !== metaId) {
|
|
920
878
|
let t3;
|
|
921
|
-
if ($[
|
|
879
|
+
if ($[8] !== metaId) {
|
|
922
880
|
t3 = (m) => m.id === metaId;
|
|
923
|
-
$[
|
|
924
|
-
$[
|
|
925
|
-
} else t3 = $[
|
|
881
|
+
$[8] = metaId;
|
|
882
|
+
$[9] = t3;
|
|
883
|
+
} else t3 = $[9];
|
|
926
884
|
meta = fileMetas.find(t3);
|
|
927
885
|
let images;
|
|
928
886
|
let t4;
|
|
929
|
-
if ($[
|
|
887
|
+
if ($[10] !== fileMetas || $[11] !== metaId) {
|
|
930
888
|
images = fileMetas.filter(_temp);
|
|
931
889
|
let t5;
|
|
932
|
-
if ($[
|
|
890
|
+
if ($[14] !== metaId) {
|
|
933
891
|
t5 = (m_1) => m_1.id === metaId;
|
|
934
|
-
$[
|
|
935
|
-
$[
|
|
936
|
-
} else t5 = $[
|
|
892
|
+
$[14] = metaId;
|
|
893
|
+
$[15] = t5;
|
|
894
|
+
} else t5 = $[15];
|
|
937
895
|
t4 = images.findIndex(t5);
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
940
|
-
$[
|
|
941
|
-
$[
|
|
896
|
+
$[10] = fileMetas;
|
|
897
|
+
$[11] = metaId;
|
|
898
|
+
$[12] = images;
|
|
899
|
+
$[13] = t4;
|
|
942
900
|
} else {
|
|
943
|
-
images = $[
|
|
944
|
-
t4 = $[
|
|
901
|
+
images = $[12];
|
|
902
|
+
t4 = $[13];
|
|
945
903
|
}
|
|
946
904
|
const index = t4;
|
|
947
905
|
previous = index > 0 ? images[index - 1] : void 0;
|
|
@@ -951,42 +909,42 @@ const ImageViewer = (t0) => {
|
|
|
951
909
|
id: meta?.id ?? "",
|
|
952
910
|
appName
|
|
953
911
|
});
|
|
954
|
-
$[
|
|
955
|
-
$[
|
|
956
|
-
$[
|
|
957
|
-
$[
|
|
958
|
-
$[
|
|
959
|
-
$[
|
|
960
|
-
$[
|
|
961
|
-
$[
|
|
912
|
+
$[0] = appName;
|
|
913
|
+
$[1] = fileMetas;
|
|
914
|
+
$[2] = metaId;
|
|
915
|
+
$[3] = meta;
|
|
916
|
+
$[4] = next;
|
|
917
|
+
$[5] = previous;
|
|
918
|
+
$[6] = t1;
|
|
919
|
+
$[7] = t2;
|
|
962
920
|
} else {
|
|
963
|
-
meta = $[
|
|
964
|
-
next = $[
|
|
965
|
-
previous = $[
|
|
966
|
-
t1 = $[
|
|
967
|
-
t2 = $[
|
|
921
|
+
meta = $[3];
|
|
922
|
+
next = $[4];
|
|
923
|
+
previous = $[5];
|
|
924
|
+
t1 = $[6];
|
|
925
|
+
t2 = $[7];
|
|
968
926
|
}
|
|
969
927
|
const t3 = !!meta;
|
|
970
928
|
let t4;
|
|
971
|
-
if ($[
|
|
929
|
+
if ($[16] !== t1 || $[17] !== t3) {
|
|
972
930
|
t4 = {
|
|
973
931
|
...t1,
|
|
974
932
|
enabled: t3
|
|
975
933
|
};
|
|
976
|
-
$[
|
|
977
|
-
$[
|
|
978
|
-
$[
|
|
979
|
-
} else t4 = $[
|
|
934
|
+
$[16] = t1;
|
|
935
|
+
$[17] = t3;
|
|
936
|
+
$[18] = t4;
|
|
937
|
+
} else t4 = $[18];
|
|
980
938
|
const { data: source, isPending } = t2(t4);
|
|
981
939
|
let t5;
|
|
982
|
-
if ($[
|
|
940
|
+
if ($[19] !== setImageId) {
|
|
983
941
|
t5 = () => setImageId("");
|
|
984
|
-
$[
|
|
985
|
-
$[
|
|
986
|
-
} else t5 = $[
|
|
942
|
+
$[19] = setImageId;
|
|
943
|
+
$[20] = t5;
|
|
944
|
+
} else t5 = $[20];
|
|
987
945
|
const onClose = t5;
|
|
988
946
|
let t6;
|
|
989
|
-
if ($[
|
|
947
|
+
if ($[21] !== metaId || $[22] !== next || $[23] !== onClose || $[24] !== previous || $[25] !== setImageId) {
|
|
990
948
|
t6 = () => {
|
|
991
949
|
if (!metaId) return;
|
|
992
950
|
const handleOnKeydown = (event) => {
|
|
@@ -1002,45 +960,45 @@ const ImageViewer = (t0) => {
|
|
|
1002
960
|
globalThis.addEventListener("keydown", handleOnKeydown);
|
|
1003
961
|
return () => globalThis.removeEventListener("keydown", handleOnKeydown);
|
|
1004
962
|
};
|
|
1005
|
-
$[
|
|
1006
|
-
$[
|
|
1007
|
-
$[
|
|
1008
|
-
$[
|
|
1009
|
-
$[
|
|
1010
|
-
$[
|
|
1011
|
-
} else t6 = $[
|
|
963
|
+
$[21] = metaId;
|
|
964
|
+
$[22] = next;
|
|
965
|
+
$[23] = onClose;
|
|
966
|
+
$[24] = previous;
|
|
967
|
+
$[25] = setImageId;
|
|
968
|
+
$[26] = t6;
|
|
969
|
+
} else t6 = $[26];
|
|
1012
970
|
let t7;
|
|
1013
|
-
if ($[
|
|
971
|
+
if ($[27] !== metaId || $[28] !== next || $[29] !== previous) {
|
|
1014
972
|
t7 = [
|
|
1015
973
|
metaId,
|
|
1016
974
|
previous,
|
|
1017
975
|
next
|
|
1018
976
|
];
|
|
1019
|
-
$[
|
|
1020
|
-
$[
|
|
1021
|
-
$[
|
|
1022
|
-
$[
|
|
1023
|
-
} else t7 = $[
|
|
977
|
+
$[27] = metaId;
|
|
978
|
+
$[28] = next;
|
|
979
|
+
$[29] = previous;
|
|
980
|
+
$[30] = t7;
|
|
981
|
+
} else t7 = $[30];
|
|
1024
982
|
useEffect(t6, t7);
|
|
1025
983
|
if (!meta) return null;
|
|
1026
984
|
let t8;
|
|
1027
|
-
if ($[
|
|
985
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1028
986
|
t8 = {
|
|
1029
987
|
position: "fixed",
|
|
1030
988
|
top: "50%",
|
|
1031
989
|
transform: "translateY(-50%)"
|
|
1032
990
|
};
|
|
1033
|
-
$[
|
|
1034
|
-
} else t8 = $[
|
|
991
|
+
$[31] = t8;
|
|
992
|
+
} else t8 = $[31];
|
|
1035
993
|
const navSx = t8;
|
|
1036
994
|
let t9;
|
|
1037
|
-
if ($[
|
|
995
|
+
if ($[32] !== meta.fileName) {
|
|
1038
996
|
t9 = { paper: { "aria-label": meta.fileName } };
|
|
1039
|
-
$[
|
|
1040
|
-
$[
|
|
1041
|
-
} else t9 = $[
|
|
997
|
+
$[32] = meta.fileName;
|
|
998
|
+
$[33] = t9;
|
|
999
|
+
} else t9 = $[33];
|
|
1042
1000
|
let t10;
|
|
1043
|
-
if ($[
|
|
1001
|
+
if ($[34] !== isPending || $[35] !== meta.fileName || $[36] !== source) {
|
|
1044
1002
|
t10 = isPending ? /* @__PURE__ */ jsx(Skeleton, {
|
|
1045
1003
|
variant: "rectangular",
|
|
1046
1004
|
sx: {
|
|
@@ -1065,13 +1023,13 @@ const ImageViewer = (t0) => {
|
|
|
1065
1023
|
}
|
|
1066
1024
|
}
|
|
1067
1025
|
});
|
|
1068
|
-
$[
|
|
1069
|
-
$[
|
|
1070
|
-
$[
|
|
1071
|
-
$[
|
|
1072
|
-
} else t10 = $[
|
|
1026
|
+
$[34] = isPending;
|
|
1027
|
+
$[35] = meta.fileName;
|
|
1028
|
+
$[36] = source;
|
|
1029
|
+
$[37] = t10;
|
|
1030
|
+
} else t10 = $[37];
|
|
1073
1031
|
let t11;
|
|
1074
|
-
if ($[
|
|
1032
|
+
if ($[38] !== previous || $[39] !== setImageId) {
|
|
1075
1033
|
t11 = previous && /* @__PURE__ */ jsx(Fab, {
|
|
1076
1034
|
size: "medium",
|
|
1077
1035
|
onClick: () => setImageId(previous.id),
|
|
@@ -1082,12 +1040,12 @@ const ImageViewer = (t0) => {
|
|
|
1082
1040
|
},
|
|
1083
1041
|
children: /* @__PURE__ */ jsx(ChevronLeft, {})
|
|
1084
1042
|
});
|
|
1085
|
-
$[
|
|
1086
|
-
$[
|
|
1087
|
-
$[
|
|
1088
|
-
} else t11 = $[
|
|
1043
|
+
$[38] = previous;
|
|
1044
|
+
$[39] = setImageId;
|
|
1045
|
+
$[40] = t11;
|
|
1046
|
+
} else t11 = $[40];
|
|
1089
1047
|
let t12;
|
|
1090
|
-
if ($[
|
|
1048
|
+
if ($[41] !== next || $[42] !== setImageId) {
|
|
1091
1049
|
t12 = next && /* @__PURE__ */ jsx(Fab, {
|
|
1092
1050
|
size: "medium",
|
|
1093
1051
|
onClick: () => setImageId(next.id),
|
|
@@ -1098,27 +1056,27 @@ const ImageViewer = (t0) => {
|
|
|
1098
1056
|
},
|
|
1099
1057
|
children: /* @__PURE__ */ jsx(ChevronRight, {})
|
|
1100
1058
|
});
|
|
1101
|
-
$[
|
|
1102
|
-
$[
|
|
1103
|
-
$[
|
|
1104
|
-
} else t12 = $[
|
|
1059
|
+
$[41] = next;
|
|
1060
|
+
$[42] = setImageId;
|
|
1061
|
+
$[43] = t12;
|
|
1062
|
+
} else t12 = $[43];
|
|
1105
1063
|
let t13;
|
|
1106
1064
|
let t14;
|
|
1107
|
-
if ($[
|
|
1065
|
+
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1108
1066
|
t13 = {
|
|
1109
1067
|
position: "fixed",
|
|
1110
1068
|
top: 8,
|
|
1111
1069
|
right: 8
|
|
1112
1070
|
};
|
|
1113
1071
|
t14 = /* @__PURE__ */ jsx(Close, {});
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1072
|
+
$[44] = t13;
|
|
1073
|
+
$[45] = t14;
|
|
1116
1074
|
} else {
|
|
1117
|
-
t13 = $[
|
|
1118
|
-
t14 = $[
|
|
1075
|
+
t13 = $[44];
|
|
1076
|
+
t14 = $[45];
|
|
1119
1077
|
}
|
|
1120
1078
|
let t15;
|
|
1121
|
-
if ($[
|
|
1079
|
+
if ($[46] !== onClose) {
|
|
1122
1080
|
t15 = /* @__PURE__ */ jsx(Fab, {
|
|
1123
1081
|
size: "medium",
|
|
1124
1082
|
onClick: onClose,
|
|
@@ -1126,11 +1084,11 @@ const ImageViewer = (t0) => {
|
|
|
1126
1084
|
sx: t13,
|
|
1127
1085
|
children: t14
|
|
1128
1086
|
});
|
|
1129
|
-
$[
|
|
1130
|
-
$[
|
|
1131
|
-
} else t15 = $[
|
|
1087
|
+
$[46] = onClose;
|
|
1088
|
+
$[47] = t15;
|
|
1089
|
+
} else t15 = $[47];
|
|
1132
1090
|
let t16;
|
|
1133
|
-
if ($[
|
|
1091
|
+
if ($[48] !== onClose || $[49] !== t10 || $[50] !== t11 || $[51] !== t12 || $[52] !== t15 || $[53] !== t9) {
|
|
1134
1092
|
t16 = /* @__PURE__ */ jsxs(Dialog, {
|
|
1135
1093
|
open: true,
|
|
1136
1094
|
onClose,
|
|
@@ -1143,61 +1101,56 @@ const ImageViewer = (t0) => {
|
|
|
1143
1101
|
t15
|
|
1144
1102
|
]
|
|
1145
1103
|
});
|
|
1146
|
-
$[
|
|
1147
|
-
$[
|
|
1148
|
-
$[
|
|
1149
|
-
$[
|
|
1150
|
-
$[
|
|
1151
|
-
$[
|
|
1152
|
-
$[
|
|
1153
|
-
} else t16 = $[
|
|
1104
|
+
$[48] = onClose;
|
|
1105
|
+
$[49] = t10;
|
|
1106
|
+
$[50] = t11;
|
|
1107
|
+
$[51] = t12;
|
|
1108
|
+
$[52] = t15;
|
|
1109
|
+
$[53] = t9;
|
|
1110
|
+
$[54] = t16;
|
|
1111
|
+
} else t16 = $[54];
|
|
1154
1112
|
return t16;
|
|
1155
1113
|
};
|
|
1156
1114
|
function _temp(m_0) {
|
|
1157
1115
|
return m_0.mediaType === "image";
|
|
1158
1116
|
}
|
|
1159
|
-
|
|
1160
|
-
//#region src/components/file/FileViewer.tsx
|
|
1117
|
+
// src/components/file/FileViewer.tsx
|
|
1161
1118
|
const FileViewer = (t0) => {
|
|
1162
|
-
const $ = c(
|
|
1163
|
-
if ($[0] !== "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e") {
|
|
1164
|
-
for (let $i = 0; $i < 22; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1165
|
-
$[0] = "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e";
|
|
1166
|
-
}
|
|
1119
|
+
const $ = c(21);
|
|
1167
1120
|
const { appName, subId, onDelete, actions, children } = t0;
|
|
1168
1121
|
let t1;
|
|
1169
|
-
if ($[
|
|
1122
|
+
if ($[0] !== appName || $[1] !== subId) {
|
|
1170
1123
|
t1 = fileMetasQueryOptions({
|
|
1171
1124
|
appName,
|
|
1172
1125
|
subId
|
|
1173
1126
|
});
|
|
1174
|
-
$[
|
|
1175
|
-
$[
|
|
1176
|
-
$[
|
|
1177
|
-
} else t1 = $[
|
|
1127
|
+
$[0] = appName;
|
|
1128
|
+
$[1] = subId;
|
|
1129
|
+
$[2] = t1;
|
|
1130
|
+
} else t1 = $[2];
|
|
1178
1131
|
const t2 = !!subId;
|
|
1179
1132
|
let t3;
|
|
1180
|
-
if ($[
|
|
1133
|
+
if ($[3] !== t1 || $[4] !== t2) {
|
|
1181
1134
|
t3 = {
|
|
1182
1135
|
...t1,
|
|
1183
1136
|
enabled: t2
|
|
1184
1137
|
};
|
|
1185
|
-
$[
|
|
1186
|
-
$[
|
|
1187
|
-
$[
|
|
1188
|
-
} else t3 = $[
|
|
1138
|
+
$[3] = t1;
|
|
1139
|
+
$[4] = t2;
|
|
1140
|
+
$[5] = t3;
|
|
1141
|
+
} else t3 = $[5];
|
|
1189
1142
|
const { data: t4 } = useQuery(t3);
|
|
1190
1143
|
let t5;
|
|
1191
|
-
if ($[
|
|
1144
|
+
if ($[6] !== t4) {
|
|
1192
1145
|
t5 = t4 === void 0 ? [] : t4;
|
|
1193
|
-
$[
|
|
1194
|
-
$[
|
|
1195
|
-
} else t5 = $[
|
|
1146
|
+
$[6] = t4;
|
|
1147
|
+
$[7] = t5;
|
|
1148
|
+
} else t5 = $[7];
|
|
1196
1149
|
const fileMetas = t5;
|
|
1197
1150
|
const [imageId, setImageId] = useState("");
|
|
1198
1151
|
if (fileMetas.length === 0) return null;
|
|
1199
1152
|
let t6;
|
|
1200
|
-
if ($[
|
|
1153
|
+
if ($[8] !== actions || $[9] !== appName || $[10] !== fileMetas || $[11] !== onDelete) {
|
|
1201
1154
|
t6 = {
|
|
1202
1155
|
appName,
|
|
1203
1156
|
fileMetas,
|
|
@@ -1205,213 +1158,146 @@ const FileViewer = (t0) => {
|
|
|
1205
1158
|
actions,
|
|
1206
1159
|
setImageId
|
|
1207
1160
|
};
|
|
1208
|
-
$[
|
|
1209
|
-
$[
|
|
1210
|
-
$[
|
|
1211
|
-
$[
|
|
1212
|
-
$[
|
|
1213
|
-
} else t6 = $[
|
|
1161
|
+
$[8] = actions;
|
|
1162
|
+
$[9] = appName;
|
|
1163
|
+
$[10] = fileMetas;
|
|
1164
|
+
$[11] = onDelete;
|
|
1165
|
+
$[12] = t6;
|
|
1166
|
+
} else t6 = $[12];
|
|
1214
1167
|
let t7;
|
|
1215
|
-
if ($[
|
|
1168
|
+
if ($[13] !== children) {
|
|
1216
1169
|
t7 = children({
|
|
1217
1170
|
Grid: FileViewerGrid,
|
|
1218
1171
|
List: FileViewerList
|
|
1219
1172
|
});
|
|
1220
|
-
$[
|
|
1221
|
-
$[
|
|
1222
|
-
} else t7 = $[
|
|
1173
|
+
$[13] = children;
|
|
1174
|
+
$[14] = t7;
|
|
1175
|
+
} else t7 = $[14];
|
|
1223
1176
|
let t8;
|
|
1224
|
-
if ($[
|
|
1177
|
+
if ($[15] !== imageId) {
|
|
1225
1178
|
t8 = /* @__PURE__ */ jsx(ImageViewer, { metaId: imageId });
|
|
1226
|
-
$[
|
|
1227
|
-
$[
|
|
1228
|
-
} else t8 = $[
|
|
1179
|
+
$[15] = imageId;
|
|
1180
|
+
$[16] = t8;
|
|
1181
|
+
} else t8 = $[16];
|
|
1229
1182
|
let t9;
|
|
1230
|
-
if ($[
|
|
1183
|
+
if ($[17] !== t6 || $[18] !== t7 || $[19] !== t8) {
|
|
1231
1184
|
t9 = /* @__PURE__ */ jsxs(FileContext.Provider, {
|
|
1232
1185
|
value: t6,
|
|
1233
1186
|
children: [t7, t8]
|
|
1234
1187
|
});
|
|
1235
|
-
$[
|
|
1236
|
-
$[
|
|
1237
|
-
$[
|
|
1238
|
-
$[
|
|
1239
|
-
} else t9 = $[
|
|
1188
|
+
$[17] = t6;
|
|
1189
|
+
$[18] = t7;
|
|
1190
|
+
$[19] = t8;
|
|
1191
|
+
$[20] = t9;
|
|
1192
|
+
} else t9 = $[20];
|
|
1240
1193
|
return t9;
|
|
1241
1194
|
};
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
const
|
|
1245
|
-
const $ = c(4);
|
|
1246
|
-
if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
|
|
1247
|
-
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1248
|
-
$[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
|
|
1249
|
-
}
|
|
1195
|
+
// src/components/router/RouterButton.tsx
|
|
1196
|
+
const Component$2 = React.forwardRef(function ButtonComponent(props, reference) {
|
|
1197
|
+
const $ = c(3);
|
|
1250
1198
|
let t0;
|
|
1251
|
-
if ($[
|
|
1199
|
+
if ($[0] !== props || $[1] !== reference) {
|
|
1252
1200
|
t0 = /* @__PURE__ */ jsx(Button, {
|
|
1253
1201
|
ref: reference,
|
|
1254
1202
|
component: "a",
|
|
1255
1203
|
...props
|
|
1256
1204
|
});
|
|
1257
|
-
$[
|
|
1258
|
-
$[
|
|
1259
|
-
$[
|
|
1260
|
-
} else t0 = $[
|
|
1205
|
+
$[0] = props;
|
|
1206
|
+
$[1] = reference;
|
|
1207
|
+
$[2] = t0;
|
|
1208
|
+
} else t0 = $[2];
|
|
1261
1209
|
return t0;
|
|
1262
1210
|
});
|
|
1263
|
-
const CreatedComponent$
|
|
1211
|
+
const CreatedComponent$2 = createLink(Component$2);
|
|
1264
1212
|
const RouterButton = (props) => {
|
|
1265
|
-
const $ = c(
|
|
1266
|
-
if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
|
|
1267
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1268
|
-
$[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
|
|
1269
|
-
}
|
|
1213
|
+
const $ = c(2);
|
|
1270
1214
|
let t0;
|
|
1271
|
-
if ($[
|
|
1272
|
-
t0 = /* @__PURE__ */ jsx(CreatedComponent$
|
|
1273
|
-
$[
|
|
1274
|
-
$[
|
|
1275
|
-
} else t0 = $[
|
|
1215
|
+
if ($[0] !== props) {
|
|
1216
|
+
t0 = /* @__PURE__ */ jsx(CreatedComponent$2, { ...props });
|
|
1217
|
+
$[0] = props;
|
|
1218
|
+
$[1] = t0;
|
|
1219
|
+
} else t0 = $[1];
|
|
1276
1220
|
return t0;
|
|
1277
1221
|
};
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
const
|
|
1281
|
-
const $ = c(4);
|
|
1282
|
-
if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
|
|
1283
|
-
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1284
|
-
$[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
|
|
1285
|
-
}
|
|
1222
|
+
// src/components/router/RouterFab.tsx
|
|
1223
|
+
const Component$1 = React.forwardRef(function FabComponent(props, reference) {
|
|
1224
|
+
const $ = c(3);
|
|
1286
1225
|
let t0;
|
|
1287
|
-
if ($[
|
|
1226
|
+
if ($[0] !== props || $[1] !== reference) {
|
|
1288
1227
|
t0 = /* @__PURE__ */ jsx(Fab, {
|
|
1289
1228
|
ref: reference,
|
|
1290
1229
|
component: "a",
|
|
1291
1230
|
...props
|
|
1292
1231
|
});
|
|
1293
|
-
$[
|
|
1294
|
-
$[
|
|
1295
|
-
$[3] = t0;
|
|
1296
|
-
} else t0 = $[3];
|
|
1297
|
-
return t0;
|
|
1298
|
-
});
|
|
1299
|
-
const CreatedComponent$2 = createLink(Component$2);
|
|
1300
|
-
const RouterFab = (props) => {
|
|
1301
|
-
const $ = c(3);
|
|
1302
|
-
if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
|
|
1303
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1304
|
-
$[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
|
|
1305
|
-
}
|
|
1306
|
-
let t0;
|
|
1307
|
-
if ($[1] !== props) {
|
|
1308
|
-
t0 = /* @__PURE__ */ jsx(CreatedComponent$2, { ...props });
|
|
1309
|
-
$[1] = props;
|
|
1232
|
+
$[0] = props;
|
|
1233
|
+
$[1] = reference;
|
|
1310
1234
|
$[2] = t0;
|
|
1311
1235
|
} else t0 = $[2];
|
|
1312
1236
|
return t0;
|
|
1313
|
-
};
|
|
1314
|
-
//#endregion
|
|
1315
|
-
//#region src/components/router/RouterLink.tsx
|
|
1316
|
-
const Component$1 = React.forwardRef(function LinkComponent(props, reference) {
|
|
1317
|
-
const $ = c(4);
|
|
1318
|
-
if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
|
|
1319
|
-
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1320
|
-
$[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
|
|
1321
|
-
}
|
|
1322
|
-
let t0;
|
|
1323
|
-
if ($[1] !== props || $[2] !== reference) {
|
|
1324
|
-
t0 = /* @__PURE__ */ jsx(Link, {
|
|
1325
|
-
ref: reference,
|
|
1326
|
-
...props
|
|
1327
|
-
});
|
|
1328
|
-
$[1] = props;
|
|
1329
|
-
$[2] = reference;
|
|
1330
|
-
$[3] = t0;
|
|
1331
|
-
} else t0 = $[3];
|
|
1332
|
-
return t0;
|
|
1333
1237
|
});
|
|
1334
1238
|
const CreatedComponent$1 = createLink(Component$1);
|
|
1335
|
-
const
|
|
1336
|
-
const $ = c(
|
|
1337
|
-
if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
|
|
1338
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1339
|
-
$[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
|
|
1340
|
-
}
|
|
1239
|
+
const RouterFab = (props) => {
|
|
1240
|
+
const $ = c(2);
|
|
1341
1241
|
let t0;
|
|
1342
|
-
if ($[
|
|
1242
|
+
if ($[0] !== props) {
|
|
1343
1243
|
t0 = /* @__PURE__ */ jsx(CreatedComponent$1, { ...props });
|
|
1344
|
-
$[
|
|
1345
|
-
$[
|
|
1346
|
-
} else t0 = $[
|
|
1244
|
+
$[0] = props;
|
|
1245
|
+
$[1] = t0;
|
|
1246
|
+
} else t0 = $[1];
|
|
1347
1247
|
return t0;
|
|
1348
1248
|
};
|
|
1349
|
-
|
|
1350
|
-
//#region src/components/router/RouterTab.tsx
|
|
1249
|
+
// src/components/router/RouterTab.tsx
|
|
1351
1250
|
const Component = React.forwardRef(function TabComponent(props, reference) {
|
|
1352
|
-
const $ = c(
|
|
1353
|
-
if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
|
|
1354
|
-
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1355
|
-
$[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
|
|
1356
|
-
}
|
|
1251
|
+
const $ = c(3);
|
|
1357
1252
|
let t0;
|
|
1358
|
-
if ($[
|
|
1253
|
+
if ($[0] !== props || $[1] !== reference) {
|
|
1359
1254
|
t0 = /* @__PURE__ */ jsx(Tab, {
|
|
1360
1255
|
ref: reference,
|
|
1361
1256
|
component: "a",
|
|
1362
1257
|
...props
|
|
1363
1258
|
});
|
|
1364
|
-
$[
|
|
1365
|
-
$[
|
|
1366
|
-
$[
|
|
1367
|
-
} else t0 = $[
|
|
1259
|
+
$[0] = props;
|
|
1260
|
+
$[1] = reference;
|
|
1261
|
+
$[2] = t0;
|
|
1262
|
+
} else t0 = $[2];
|
|
1368
1263
|
return t0;
|
|
1369
1264
|
});
|
|
1370
1265
|
const CreatedComponent = createLink(Component);
|
|
1371
1266
|
const RouterTab = (props) => {
|
|
1372
|
-
const $ = c(
|
|
1373
|
-
if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
|
|
1374
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1375
|
-
$[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
|
|
1376
|
-
}
|
|
1267
|
+
const $ = c(2);
|
|
1377
1268
|
let t0;
|
|
1378
|
-
if ($[
|
|
1269
|
+
if ($[0] !== props) {
|
|
1379
1270
|
t0 = /* @__PURE__ */ jsx(CreatedComponent, { ...props });
|
|
1380
|
-
$[
|
|
1381
|
-
$[
|
|
1382
|
-
} else t0 = $[
|
|
1271
|
+
$[0] = props;
|
|
1272
|
+
$[1] = t0;
|
|
1273
|
+
} else t0 = $[1];
|
|
1383
1274
|
return t0;
|
|
1384
1275
|
};
|
|
1385
|
-
|
|
1386
|
-
//#region src/components/router/RouterNotFound.tsx
|
|
1276
|
+
// src/components/router/RouterNotFound.tsx
|
|
1387
1277
|
function RouterNotFound() {
|
|
1388
|
-
const $ = c(
|
|
1389
|
-
if ($[0] !== "b85bee0f4f29e1fb858e96e13dc2fcbb04a6bbd08c5b88b6d4df66a8869ddb03") {
|
|
1390
|
-
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1391
|
-
$[0] = "b85bee0f4f29e1fb858e96e13dc2fcbb04a6bbd08c5b88b6d4df66a8869ddb03";
|
|
1392
|
-
}
|
|
1278
|
+
const $ = c(8);
|
|
1393
1279
|
const { t } = useTranslation();
|
|
1394
1280
|
let t0;
|
|
1395
|
-
if ($[
|
|
1281
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1396
1282
|
t0 = {
|
|
1397
1283
|
alignItems: "center",
|
|
1398
1284
|
justifyContent: "center",
|
|
1399
1285
|
px: 2
|
|
1400
1286
|
};
|
|
1401
|
-
$[
|
|
1402
|
-
} else t0 = $[
|
|
1287
|
+
$[0] = t0;
|
|
1288
|
+
} else t0 = $[0];
|
|
1403
1289
|
let t1;
|
|
1404
|
-
if ($[
|
|
1290
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1405
1291
|
t1 = {
|
|
1406
1292
|
display: "flex",
|
|
1407
1293
|
alignItems: "center",
|
|
1408
1294
|
m: 0,
|
|
1409
1295
|
mb: 4
|
|
1410
1296
|
};
|
|
1411
|
-
$[
|
|
1412
|
-
} else t1 = $[
|
|
1297
|
+
$[1] = t1;
|
|
1298
|
+
} else t1 = $[1];
|
|
1413
1299
|
let t2;
|
|
1414
|
-
if ($[
|
|
1300
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1415
1301
|
t2 = /* @__PURE__ */ jsx(Typography, {
|
|
1416
1302
|
variant: "h3",
|
|
1417
1303
|
component: "span",
|
|
@@ -1421,10 +1307,10 @@ function RouterNotFound() {
|
|
|
1421
1307
|
},
|
|
1422
1308
|
children: "404"
|
|
1423
1309
|
});
|
|
1424
|
-
$[
|
|
1425
|
-
} else t2 = $[
|
|
1310
|
+
$[2] = t2;
|
|
1311
|
+
} else t2 = $[2];
|
|
1426
1312
|
let t3;
|
|
1427
|
-
if ($[
|
|
1313
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1428
1314
|
t3 = /* @__PURE__ */ jsx(Divider, {
|
|
1429
1315
|
component: "span",
|
|
1430
1316
|
role: "presentation",
|
|
@@ -1432,16 +1318,16 @@ function RouterNotFound() {
|
|
|
1432
1318
|
flexItem: true,
|
|
1433
1319
|
sx: { mx: 3 }
|
|
1434
1320
|
});
|
|
1435
|
-
$[
|
|
1436
|
-
} else t3 = $[
|
|
1321
|
+
$[3] = t3;
|
|
1322
|
+
} else t3 = $[3];
|
|
1437
1323
|
let t4;
|
|
1438
|
-
if ($[
|
|
1324
|
+
if ($[4] !== t) {
|
|
1439
1325
|
t4 = t("Layout.ThisPageCouldNotBeFound");
|
|
1440
|
-
$[
|
|
1441
|
-
$[
|
|
1442
|
-
} else t4 = $[
|
|
1326
|
+
$[4] = t;
|
|
1327
|
+
$[5] = t4;
|
|
1328
|
+
} else t4 = $[5];
|
|
1443
1329
|
let t5;
|
|
1444
|
-
if ($[
|
|
1330
|
+
if ($[6] !== t4) {
|
|
1445
1331
|
t5 = /* @__PURE__ */ jsx(Fullscreen, {
|
|
1446
1332
|
sx: t0,
|
|
1447
1333
|
children: /* @__PURE__ */ jsxs(Box, {
|
|
@@ -1458,62 +1344,57 @@ function RouterNotFound() {
|
|
|
1458
1344
|
]
|
|
1459
1345
|
})
|
|
1460
1346
|
});
|
|
1461
|
-
$[
|
|
1462
|
-
$[
|
|
1463
|
-
} else t5 = $[
|
|
1347
|
+
$[6] = t4;
|
|
1348
|
+
$[7] = t5;
|
|
1349
|
+
} else t5 = $[7];
|
|
1464
1350
|
return t5;
|
|
1465
1351
|
}
|
|
1466
|
-
|
|
1467
|
-
//#region src/components/router/RouterError.tsx
|
|
1352
|
+
// src/components/router/RouterError.tsx
|
|
1468
1353
|
const RouterError = (t0) => {
|
|
1469
|
-
const $ = c(
|
|
1470
|
-
if ($[0] !== "99b46ee567229b93d88dd5dde9a07d2a370c1710d4e834f04c33ae486b9ec8a5") {
|
|
1471
|
-
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1472
|
-
$[0] = "99b46ee567229b93d88dd5dde9a07d2a370c1710d4e834f04c33ae486b9ec8a5";
|
|
1473
|
-
}
|
|
1354
|
+
const $ = c(11);
|
|
1474
1355
|
const { error } = t0;
|
|
1475
1356
|
const isError = error instanceof Error;
|
|
1476
1357
|
let t1;
|
|
1477
|
-
if ($[
|
|
1358
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1478
1359
|
t1 = {
|
|
1479
1360
|
alignItems: "center",
|
|
1480
1361
|
justifyContent: "center",
|
|
1481
1362
|
px: 2
|
|
1482
1363
|
};
|
|
1483
|
-
$[
|
|
1484
|
-
} else t1 = $[
|
|
1364
|
+
$[0] = t1;
|
|
1365
|
+
} else t1 = $[0];
|
|
1485
1366
|
let t2;
|
|
1486
|
-
if ($[
|
|
1367
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1487
1368
|
t2 = {
|
|
1488
1369
|
display: "flex",
|
|
1489
1370
|
alignItems: "center",
|
|
1490
1371
|
m: 0,
|
|
1491
1372
|
mb: 4
|
|
1492
1373
|
};
|
|
1493
|
-
$[
|
|
1494
|
-
} else t2 = $[
|
|
1374
|
+
$[1] = t2;
|
|
1375
|
+
} else t2 = $[1];
|
|
1495
1376
|
let t3;
|
|
1496
|
-
if ($[
|
|
1377
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1497
1378
|
t3 = {
|
|
1498
1379
|
fontWeight: 500,
|
|
1499
1380
|
lineHeight: 1
|
|
1500
1381
|
};
|
|
1501
|
-
$[
|
|
1502
|
-
} else t3 = $[
|
|
1382
|
+
$[2] = t3;
|
|
1383
|
+
} else t3 = $[2];
|
|
1503
1384
|
const t4 = isError && error.name || "500";
|
|
1504
1385
|
let t5;
|
|
1505
|
-
if ($[
|
|
1386
|
+
if ($[3] !== t4) {
|
|
1506
1387
|
t5 = /* @__PURE__ */ jsx(Typography, {
|
|
1507
1388
|
variant: "h3",
|
|
1508
1389
|
component: "span",
|
|
1509
1390
|
sx: t3,
|
|
1510
1391
|
children: t4
|
|
1511
1392
|
});
|
|
1512
|
-
$[
|
|
1513
|
-
$[
|
|
1514
|
-
} else t5 = $[
|
|
1393
|
+
$[3] = t4;
|
|
1394
|
+
$[4] = t5;
|
|
1395
|
+
} else t5 = $[4];
|
|
1515
1396
|
let t6;
|
|
1516
|
-
if ($[
|
|
1397
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1517
1398
|
t6 = /* @__PURE__ */ jsx(Divider, {
|
|
1518
1399
|
component: "span",
|
|
1519
1400
|
role: "presentation",
|
|
@@ -1521,21 +1402,21 @@ const RouterError = (t0) => {
|
|
|
1521
1402
|
flexItem: true,
|
|
1522
1403
|
sx: { mx: 3 }
|
|
1523
1404
|
});
|
|
1524
|
-
$[
|
|
1525
|
-
} else t6 = $[
|
|
1405
|
+
$[5] = t6;
|
|
1406
|
+
} else t6 = $[5];
|
|
1526
1407
|
const t7 = isError ? error.message : String(error);
|
|
1527
1408
|
let t8;
|
|
1528
|
-
if ($[
|
|
1409
|
+
if ($[6] !== t7) {
|
|
1529
1410
|
t8 = /* @__PURE__ */ jsx(Typography, {
|
|
1530
1411
|
variant: "h5",
|
|
1531
1412
|
component: "span",
|
|
1532
1413
|
children: t7
|
|
1533
1414
|
});
|
|
1534
|
-
$[
|
|
1535
|
-
$[
|
|
1536
|
-
} else t8 = $[
|
|
1415
|
+
$[6] = t7;
|
|
1416
|
+
$[7] = t8;
|
|
1417
|
+
} else t8 = $[7];
|
|
1537
1418
|
let t9;
|
|
1538
|
-
if ($[
|
|
1419
|
+
if ($[8] !== t5 || $[9] !== t8) {
|
|
1539
1420
|
t9 = /* @__PURE__ */ jsx(Fullscreen, {
|
|
1540
1421
|
sx: t1,
|
|
1541
1422
|
children: /* @__PURE__ */ jsxs(Box, {
|
|
@@ -1548,14 +1429,13 @@ const RouterError = (t0) => {
|
|
|
1548
1429
|
]
|
|
1549
1430
|
})
|
|
1550
1431
|
});
|
|
1551
|
-
$[
|
|
1552
|
-
$[
|
|
1553
|
-
$[
|
|
1554
|
-
} else t9 = $[
|
|
1432
|
+
$[8] = t5;
|
|
1433
|
+
$[9] = t8;
|
|
1434
|
+
$[10] = t9;
|
|
1435
|
+
} else t9 = $[10];
|
|
1555
1436
|
return t9;
|
|
1556
1437
|
};
|
|
1557
|
-
|
|
1558
|
-
//#region src/components/table/LayoutTable.tsx
|
|
1438
|
+
// src/components/table/LayoutTable.tsx
|
|
1559
1439
|
const ROW_HEIGHT = 52;
|
|
1560
1440
|
const COLUMN_HEADER_HEIGHT = 56;
|
|
1561
1441
|
/** Rows and columns kept mounted past the viewport edge so scrolling never shows a gap. */
|
|
@@ -1648,22 +1528,22 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1648
1528
|
observer.observe(container);
|
|
1649
1529
|
return () => observer.disconnect();
|
|
1650
1530
|
}, []);
|
|
1651
|
-
const flexColumns = table.getVisibleLeafColumns().filter((
|
|
1652
|
-
const totalFlex = flexColumns.reduce((total,
|
|
1531
|
+
const flexColumns = table.getVisibleLeafColumns().filter((column) => columnFlex(column) > 0);
|
|
1532
|
+
const totalFlex = flexColumns.reduce((total, column) => total + columnFlex(column), 0);
|
|
1653
1533
|
const flexSpace = containerWidth - table.getTotalSize();
|
|
1654
|
-
const flexDeltas = flexColumns.map((
|
|
1655
|
-
const flexFits = flexColumns.every((
|
|
1534
|
+
const flexDeltas = flexColumns.map((column) => [column.id, Math.floor(flexSpace * columnFlex(column) / totalFlex)]);
|
|
1535
|
+
const flexFits = flexColumns.every((column, index) => column.getSize() + flexDeltas[index][1] >= (column.columnDef.minSize ?? 20));
|
|
1656
1536
|
const flexWidths = new Map(flexFits ? flexDeltas : []);
|
|
1657
|
-
const tableWidth = [...flexWidths.values()].reduce((
|
|
1658
|
-
const renderedWidth = (
|
|
1659
|
-
const headerWidth = (header) => header.column.getLeafColumns().reduce((width,
|
|
1537
|
+
const tableWidth = [...flexWidths.values()].reduce((total, delta) => total + delta, table.getTotalSize());
|
|
1538
|
+
const renderedWidth = (column) => column.getSize() + (flexWidths.get(column.id) ?? 0);
|
|
1539
|
+
const headerWidth = (header) => header.column.getLeafColumns().reduce((width, column) => width + (flexWidths.get(column.id) ?? 0), header.getSize());
|
|
1660
1540
|
const virtualizeColumns = headerGroups.length === 1 && !loading;
|
|
1661
1541
|
const rowVirtualizer = useVirtualizer({
|
|
1662
1542
|
count: rows.length,
|
|
1663
1543
|
getScrollElement: () => containerRef.current,
|
|
1664
1544
|
estimateSize: () => ROW_HEIGHT,
|
|
1665
1545
|
measureElement: (element) => element.getBoundingClientRect().height,
|
|
1666
|
-
getItemKey: (
|
|
1546
|
+
getItemKey: (index) => rows[index].id,
|
|
1667
1547
|
overscan: ROW_OVERSCAN,
|
|
1668
1548
|
rangeExtractor: (range) => lookaheadRange(range, rowVirtualizer.scrollDirection, ROW_LOOKAHEAD),
|
|
1669
1549
|
scrollMargin: headerHeight,
|
|
@@ -1672,8 +1552,8 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1672
1552
|
const columnVirtualizer = useVirtualizer({
|
|
1673
1553
|
count: virtualizeColumns ? centerColumns.length : 0,
|
|
1674
1554
|
getScrollElement: () => containerRef.current,
|
|
1675
|
-
estimateSize: (
|
|
1676
|
-
getItemKey: (
|
|
1555
|
+
estimateSize: (index) => renderedWidth(centerColumns[index]),
|
|
1556
|
+
getItemKey: (index) => centerColumns[index].id,
|
|
1677
1557
|
horizontal: true,
|
|
1678
1558
|
overscan: COLUMN_OVERSCAN,
|
|
1679
1559
|
scrollPaddingStart: startPinnedWidth,
|
|
@@ -1699,9 +1579,9 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1699
1579
|
});
|
|
1700
1580
|
return;
|
|
1701
1581
|
}
|
|
1702
|
-
const rowIndex = rows.findIndex((
|
|
1582
|
+
const rowIndex = rows.findIndex((row) => row.id === focusedRowId);
|
|
1703
1583
|
if (rowIndex >= 0) rowVirtualizer.scrollToIndex(rowIndex);
|
|
1704
|
-
const columnIndex = centerColumns.findIndex((
|
|
1584
|
+
const columnIndex = centerColumns.findIndex((column) => column.id === focusedColumnId);
|
|
1705
1585
|
if (columnIndex >= 0) columnVirtualizer.scrollToIndex(columnIndex);
|
|
1706
1586
|
}, [focusedRowId, focusedColumnId]);
|
|
1707
1587
|
const hasCellSelection = table.state.cellSelection.length > 0;
|
|
@@ -1782,32 +1662,35 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1782
1662
|
end: []
|
|
1783
1663
|
};
|
|
1784
1664
|
/** Absorbs the width of the columns the centre window skipped. */
|
|
1785
|
-
const skippedColumns = (
|
|
1665
|
+
const skippedColumns = (width) => width > 0 ? /* @__PURE__ */ jsx(TableCell, {
|
|
1786
1666
|
"aria-hidden": true,
|
|
1787
|
-
|
|
1667
|
+
className: layoutTableClasses.cellOffset,
|
|
1668
|
+
style: { width },
|
|
1788
1669
|
sx: { p: 0 }
|
|
1789
1670
|
}) : null;
|
|
1790
1671
|
const renderHeader = (h, groupIndex) => /* @__PURE__ */ jsx(table.AppHeader, {
|
|
1791
1672
|
header: h,
|
|
1792
|
-
children: (
|
|
1793
|
-
const align = columnAlign(
|
|
1794
|
-
const labelled = hasColumnLabel(
|
|
1673
|
+
children: (header) => {
|
|
1674
|
+
const align = columnAlign(header.column);
|
|
1675
|
+
const labelled = hasColumnLabel(header.column);
|
|
1795
1676
|
return /* @__PURE__ */ jsxs(TableCell, {
|
|
1796
|
-
|
|
1677
|
+
className: classNames(layoutTableClasses.columnHeader, header.column.getCanSort() && layoutTableClasses["columnHeader--sortable"], header.column.getIsSorted() && layoutTableClasses["columnHeader--sorted"], header.column.getIsFiltered() && layoutTableClasses["columnHeader--filtered"], pinnedClass(header.column, "columnHeader")),
|
|
1678
|
+
colSpan: header.colSpan,
|
|
1797
1679
|
align,
|
|
1798
|
-
sortDirection:
|
|
1680
|
+
sortDirection: header.column.getIsSorted(),
|
|
1799
1681
|
sx: {
|
|
1800
1682
|
position: "sticky",
|
|
1801
1683
|
top: groupIndex * COLUMN_HEADER_HEIGHT,
|
|
1802
1684
|
zIndex: 3,
|
|
1803
1685
|
bgcolor: "background.paper",
|
|
1804
|
-
width: headerWidth(
|
|
1686
|
+
width: headerWidth(header),
|
|
1805
1687
|
whiteSpace: "nowrap",
|
|
1806
1688
|
overflow: "hidden",
|
|
1807
1689
|
...labelled ? CELL_SX : UTILITY_SX,
|
|
1808
|
-
...pinnedSx(
|
|
1690
|
+
...pinnedSx(header.column, true)
|
|
1809
1691
|
},
|
|
1810
|
-
children: [
|
|
1692
|
+
children: [header.isPlaceholder ? null : /* @__PURE__ */ jsxs(Box, {
|
|
1693
|
+
className: layoutTableClasses.columnHeaderContent,
|
|
1811
1694
|
sx: {
|
|
1812
1695
|
display: "flex",
|
|
1813
1696
|
alignItems: "center",
|
|
@@ -1815,6 +1698,7 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1815
1698
|
justifyContent: JUSTIFY[align]
|
|
1816
1699
|
},
|
|
1817
1700
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
1701
|
+
className: layoutTableClasses.columnHeaderTitleContainer,
|
|
1818
1702
|
sx: {
|
|
1819
1703
|
flex: labelled ? 1 : "0 1 auto",
|
|
1820
1704
|
minWidth: 0,
|
|
@@ -1827,37 +1711,40 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1827
1711
|
textOverflow: "ellipsis"
|
|
1828
1712
|
}
|
|
1829
1713
|
},
|
|
1830
|
-
children: /* @__PURE__ */ jsx(
|
|
1831
|
-
}), !disableColumnMenu && /* @__PURE__ */ jsx(
|
|
1832
|
-
}), /* @__PURE__ */ jsx(
|
|
1714
|
+
children: /* @__PURE__ */ jsx(header.HeaderSortLabel, { children: /* @__PURE__ */ jsx(header.FlexRender, {}) })
|
|
1715
|
+
}), !disableColumnMenu && /* @__PURE__ */ jsx(header.HeaderMenu, { disableGrouping: pagination })]
|
|
1716
|
+
}), /* @__PURE__ */ jsx(header.HeaderResizeHandle, {})]
|
|
1833
1717
|
});
|
|
1834
1718
|
}
|
|
1835
1719
|
}, h.id);
|
|
1720
|
+
const cellClassName = (cell) => classNames(layoutTableClasses.cell, cell.getIsSelected() && layoutTableClasses["cell--selected"], cell.getIsGrouped() && layoutTableClasses["cell--grouped"], cell.getIsAggregated() && layoutTableClasses["cell--aggregated"], pinnedClass(cell.column, "cell"));
|
|
1836
1721
|
const renderCell = (c) => /* @__PURE__ */ jsx(table.AppCell, {
|
|
1837
1722
|
cell: c,
|
|
1838
|
-
children: (
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1723
|
+
children: (cell) => cell.getIsCovered() ? null : /* @__PURE__ */ jsx(TableCell, {
|
|
1724
|
+
className: cellClassName(cell),
|
|
1725
|
+
align: columnAlign(cell.column),
|
|
1726
|
+
rowSpan: cell.getRowSpan(),
|
|
1727
|
+
colSpan: cell.getColSpan(),
|
|
1728
|
+
tabIndex: cell.getCanSelect() ? cell.getTabIndex() : void 0,
|
|
1729
|
+
onMouseDown: cell.getSelectionStartHandler(),
|
|
1730
|
+
onMouseEnter: cell.getSelectionExtendHandler(),
|
|
1845
1731
|
onMouseOver: titleIfTruncated,
|
|
1846
1732
|
sx: {
|
|
1847
1733
|
overflow: "hidden",
|
|
1848
1734
|
textOverflow: "ellipsis",
|
|
1849
1735
|
whiteSpace: "nowrap",
|
|
1850
|
-
userSelect:
|
|
1851
|
-
...hasColumnLabel(
|
|
1852
|
-
...pinnedSx(
|
|
1853
|
-
...cellSelectionSx(
|
|
1736
|
+
userSelect: cell.getCanSelect() ? "none" : void 0,
|
|
1737
|
+
...hasColumnLabel(cell.column) ? CELL_SX : UTILITY_SX,
|
|
1738
|
+
...pinnedSx(cell.column),
|
|
1739
|
+
...cellSelectionSx(cell)
|
|
1854
1740
|
},
|
|
1855
|
-
children:
|
|
1741
|
+
children: cell.getIsGrouped() ? /* @__PURE__ */ jsx(cell.GroupCell, {}) : cell.row.getIsGrouped() && !cell.getIsAggregated() ? null : /* @__PURE__ */ jsx(cell.FlexRender, {})
|
|
1856
1742
|
})
|
|
1857
1743
|
}, c.id);
|
|
1858
1744
|
const renderFooter = (f) => /* @__PURE__ */ jsx(table.AppFooter, {
|
|
1859
1745
|
header: f,
|
|
1860
1746
|
children: (footer) => /* @__PURE__ */ jsx(TableCell, {
|
|
1747
|
+
className: classNames(layoutTableClasses.footerCell, pinnedClass(footer.column, "cell")),
|
|
1861
1748
|
colSpan: footer.colSpan,
|
|
1862
1749
|
align: columnAlign(footer.column),
|
|
1863
1750
|
sx: {
|
|
@@ -1869,20 +1756,21 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1869
1756
|
})
|
|
1870
1757
|
}, f.id);
|
|
1871
1758
|
const rowAction = onRowClick ?? onRowDoubleClick;
|
|
1872
|
-
const renderRow = (
|
|
1873
|
-
const cells = windowColumns(
|
|
1874
|
-
const focusableCells =
|
|
1759
|
+
const renderRow = (row, index) => {
|
|
1760
|
+
const cells = windowColumns(row.getVisibleCells());
|
|
1761
|
+
const focusableCells = row.getVisibleCells().some((cell) => cell.getCanSelect());
|
|
1875
1762
|
return /* @__PURE__ */ jsxs(TableRow, {
|
|
1763
|
+
className: classNames(layoutTableClasses.row, row.getIsGrouped() && layoutTableClasses["row--grouped"], row.getIsExpanded() && layoutTableClasses["row--expanded"], row.getIsPinned() && layoutTableClasses["row--pinned"]),
|
|
1876
1764
|
ref: rowVirtualizer.measureElement,
|
|
1877
|
-
"data-index":
|
|
1765
|
+
"data-index": index,
|
|
1878
1766
|
hover: true,
|
|
1879
|
-
selected:
|
|
1767
|
+
selected: row.getIsSelected(),
|
|
1880
1768
|
tabIndex: rowAction && !focusableCells ? 0 : void 0,
|
|
1881
|
-
onClick: onRowClick && (() => onRowClick(
|
|
1882
|
-
onDoubleClick: onRowDoubleClick && (() => onRowDoubleClick(
|
|
1769
|
+
onClick: onRowClick && (() => onRowClick(row)),
|
|
1770
|
+
onDoubleClick: onRowDoubleClick && (() => onRowDoubleClick(row)),
|
|
1883
1771
|
onKeyDown: rowAction && ((event) => {
|
|
1884
1772
|
const target = event.target;
|
|
1885
|
-
if (event.key === "Enter" && (target === event.currentTarget || target.tagName === "TD")) rowAction(
|
|
1773
|
+
if (event.key === "Enter" && (target === event.currentTarget || target.tagName === "TD")) rowAction(row);
|
|
1886
1774
|
}),
|
|
1887
1775
|
sx: {
|
|
1888
1776
|
height: ROW_HEIGHT,
|
|
@@ -1896,10 +1784,11 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1896
1784
|
cells.end.map(renderCell),
|
|
1897
1785
|
/* @__PURE__ */ jsx(TableCell, {
|
|
1898
1786
|
"aria-hidden": true,
|
|
1787
|
+
className: layoutTableClasses.filler,
|
|
1899
1788
|
sx: { p: 0 }
|
|
1900
1789
|
})
|
|
1901
1790
|
]
|
|
1902
|
-
},
|
|
1791
|
+
}, row.id);
|
|
1903
1792
|
};
|
|
1904
1793
|
const rowCache = useMemo(() => ({ current: /* @__PURE__ */ new Map() }), [
|
|
1905
1794
|
table,
|
|
@@ -1908,12 +1797,13 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1908
1797
|
paddingStart,
|
|
1909
1798
|
paddingEnd
|
|
1910
1799
|
]);
|
|
1911
|
-
const cacheKey = (
|
|
1912
|
-
const bodyRows = virtualRows.map(({ index
|
|
1913
|
-
rowCache.current = new Map(virtualRows.map(({ index
|
|
1800
|
+
const cacheKey = (index) => `${index}:${rows[index].id}`;
|
|
1801
|
+
const bodyRows = virtualRows.map(({ index }) => rowCache.current.get(cacheKey(index)) ?? renderRow(rows[index], index));
|
|
1802
|
+
rowCache.current = new Map(virtualRows.map(({ index }, i) => [cacheKey(index), bodyRows[i]]));
|
|
1914
1803
|
/** Reserves the scroll height of the rows outside the virtual window. */
|
|
1915
1804
|
const skippedRows = (height) => height > 0 ? /* @__PURE__ */ jsx(TableRow, {
|
|
1916
1805
|
"aria-hidden": true,
|
|
1806
|
+
className: layoutTableClasses.rowOffset,
|
|
1917
1807
|
style: { height },
|
|
1918
1808
|
children: /* @__PURE__ */ jsx(TableCell, {
|
|
1919
1809
|
colSpan: visibleColumnCount + 1,
|
|
@@ -1925,18 +1815,19 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1925
1815
|
}) : null;
|
|
1926
1816
|
return /* @__PURE__ */ jsx(table.AppTable, { children: /* @__PURE__ */ jsxs(Paper, {
|
|
1927
1817
|
variant: "outlined",
|
|
1928
|
-
|
|
1818
|
+
className: layoutTableClasses.root,
|
|
1819
|
+
sx: [{
|
|
1929
1820
|
display: "flex",
|
|
1930
1821
|
flexDirection: "column",
|
|
1931
1822
|
height: "100%",
|
|
1932
1823
|
minHeight: 0,
|
|
1933
|
-
overflow: "hidden"
|
|
1934
|
-
|
|
1935
|
-
},
|
|
1824
|
+
overflow: "hidden"
|
|
1825
|
+
}, ...Array.isArray(sx) ? sx : [sx]],
|
|
1936
1826
|
children: [
|
|
1937
1827
|
showToolbar && /* @__PURE__ */ jsx(table.Toolbar, { ...toolbar }),
|
|
1938
1828
|
/* @__PURE__ */ jsx(TableContainer, {
|
|
1939
1829
|
ref: containerRef,
|
|
1830
|
+
className: layoutTableClasses.main,
|
|
1940
1831
|
sx: {
|
|
1941
1832
|
flex: 1,
|
|
1942
1833
|
minHeight: 0,
|
|
@@ -1946,6 +1837,7 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1946
1837
|
scrollPaddingInlineEnd: `${endPinnedWidth}px`
|
|
1947
1838
|
},
|
|
1948
1839
|
children: /* @__PURE__ */ jsxs(Table, {
|
|
1840
|
+
className: layoutTableClasses.table,
|
|
1949
1841
|
stickyHeader: true,
|
|
1950
1842
|
size: "small",
|
|
1951
1843
|
"aria-busy": loading,
|
|
@@ -1962,116 +1854,134 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
|
|
|
1962
1854
|
}
|
|
1963
1855
|
},
|
|
1964
1856
|
children: [
|
|
1965
|
-
/* @__PURE__ */ jsx(TableHead, {
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1857
|
+
/* @__PURE__ */ jsx(TableHead, {
|
|
1858
|
+
className: layoutTableClasses.columnHeaders,
|
|
1859
|
+
children: headerGroups.map((headerGroup, groupIndex) => {
|
|
1860
|
+
const headers = windowColumns(headerGroup.headers.filter((header) => header.column.getIsVisible()));
|
|
1861
|
+
return /* @__PURE__ */ jsxs(TableRow, {
|
|
1862
|
+
className: layoutTableClasses.columnHeaderRow,
|
|
1863
|
+
sx: { height: COLUMN_HEADER_HEIGHT },
|
|
1864
|
+
children: [
|
|
1865
|
+
headers.start.map((h) => renderHeader(h, groupIndex)),
|
|
1866
|
+
skippedColumns(paddingStart),
|
|
1867
|
+
headers.center.map((h) => renderHeader(h, groupIndex)),
|
|
1868
|
+
skippedColumns(paddingEnd),
|
|
1869
|
+
headers.end.map((h) => renderHeader(h, groupIndex)),
|
|
1870
|
+
/* @__PURE__ */ jsx(TableCell, {
|
|
1871
|
+
"aria-hidden": true,
|
|
1872
|
+
className: layoutTableClasses.filler,
|
|
1873
|
+
sx: {
|
|
1874
|
+
p: 0,
|
|
1875
|
+
position: "sticky",
|
|
1876
|
+
top: groupIndex * COLUMN_HEADER_HEIGHT,
|
|
1877
|
+
zIndex: 3,
|
|
1878
|
+
bgcolor: "background.paper"
|
|
1879
|
+
}
|
|
1880
|
+
})
|
|
1881
|
+
]
|
|
1882
|
+
}, headerGroup.id);
|
|
1883
|
+
})
|
|
1884
|
+
}),
|
|
1885
|
+
/* @__PURE__ */ jsxs(TableBody, {
|
|
1886
|
+
className: layoutTableClasses.body,
|
|
1887
|
+
children: [loading ? /* @__PURE__ */ jsx(table.Skeleton, { rowHeight: ROW_HEIGHT }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1888
|
+
skippedRows(paddingTop),
|
|
1889
|
+
bodyRows,
|
|
1890
|
+
skippedRows(paddingBottom)
|
|
1891
|
+
] }), isEmpty && /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, {
|
|
1892
|
+
colSpan: visibleColumnCount + 1,
|
|
1999
1893
|
sx: {
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
left: 0,
|
|
2003
|
-
bottom: 0,
|
|
2004
|
-
width: Math.max(tableWidth, containerWidth),
|
|
2005
|
-
color: "text.secondary",
|
|
2006
|
-
bgcolor: "background.paper",
|
|
2007
|
-
"& .no-rows-primary": { opacity: .7 },
|
|
2008
|
-
"& .no-rows-secondary": { opacity: .3 }
|
|
1894
|
+
border: 0,
|
|
1895
|
+
p: 0
|
|
2009
1896
|
},
|
|
2010
|
-
children: /* @__PURE__ */
|
|
1897
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
1898
|
+
className: layoutTableClasses.overlay,
|
|
2011
1899
|
sx: {
|
|
2012
|
-
position: "
|
|
1900
|
+
position: "absolute",
|
|
1901
|
+
top: headerHeight,
|
|
2013
1902
|
left: 0,
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
gap: 1
|
|
1903
|
+
bottom: 0,
|
|
1904
|
+
width: Math.max(tableWidth, containerWidth),
|
|
1905
|
+
color: "text.secondary",
|
|
1906
|
+
bgcolor: "background.paper",
|
|
1907
|
+
"& .no-rows-primary": { opacity: .7 },
|
|
1908
|
+
"& .no-rows-secondary": { opacity: .3 }
|
|
2021
1909
|
},
|
|
2022
|
-
children:
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
1910
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
1911
|
+
sx: {
|
|
1912
|
+
position: "sticky",
|
|
1913
|
+
left: 0,
|
|
1914
|
+
width: containerWidth,
|
|
1915
|
+
height: "100%",
|
|
1916
|
+
display: "flex",
|
|
1917
|
+
flexDirection: "column",
|
|
1918
|
+
alignItems: "center",
|
|
1919
|
+
justifyContent: "center",
|
|
1920
|
+
gap: 1
|
|
1921
|
+
},
|
|
1922
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
1923
|
+
fill: "currentColor",
|
|
1924
|
+
width: 96,
|
|
1925
|
+
viewBox: "0 0 452 257",
|
|
1926
|
+
"aria-hidden": true,
|
|
1927
|
+
focusable: "false",
|
|
1928
|
+
children: [
|
|
1929
|
+
/* @__PURE__ */ jsx("path", {
|
|
1930
|
+
className: "no-rows-primary",
|
|
1931
|
+
d: "M348 69c-46.392 0-84 37.608-84 84s37.608 84 84 84 84-37.608 84-84-37.608-84-84-84Zm-104 84c0-57.438 46.562-104 104-104s104 46.562 104 104-46.562 104-104 104-104-46.562-104-104Z"
|
|
1932
|
+
}),
|
|
1933
|
+
/* @__PURE__ */ jsx("path", {
|
|
1934
|
+
className: "no-rows-primary",
|
|
1935
|
+
d: "M308.929 113.929c3.905-3.905 10.237-3.905 14.142 0l63.64 63.64c3.905 3.905 3.905 10.236 0 14.142-3.906 3.905-10.237 3.905-14.142 0l-63.64-63.64c-3.905-3.905-3.905-10.237 0-14.142Z"
|
|
1936
|
+
}),
|
|
1937
|
+
/* @__PURE__ */ jsx("path", {
|
|
1938
|
+
className: "no-rows-primary",
|
|
1939
|
+
d: "M308.929 191.711c-3.905-3.906-3.905-10.237 0-14.142l63.64-63.64c3.905-3.905 10.236-3.905 14.142 0 3.905 3.905 3.905 10.237 0 14.142l-63.64 63.64c-3.905 3.905-10.237 3.905-14.142 0Z"
|
|
1940
|
+
}),
|
|
1941
|
+
/* @__PURE__ */ jsx("path", {
|
|
1942
|
+
className: "no-rows-secondary",
|
|
1943
|
+
d: "M0 10C0 4.477 4.477 0 10 0h380c5.523 0 10 4.477 10 10s-4.477 10-10 10H10C4.477 20 0 15.523 0 10ZM0 59c0-5.523 4.477-10 10-10h231c5.523 0 10 4.477 10 10s-4.477 10-10 10H10C4.477 69 0 64.523 0 59ZM0 106c0-5.523 4.477-10 10-10h203c5.523 0 10 4.477 10 10s-4.477 10-10 10H10c-5.523 0-10-4.477-10-10ZM0 153c0-5.523 4.477-10 10-10h195.5c5.523 0 10 4.477 10 10s-4.477 10-10 10H10c-5.523 0-10-4.477-10-10ZM0 200c0-5.523 4.477-10 10-10h203c5.523 0 10 4.477 10 10s-4.477 10-10 10H10c-5.523 0-10-4.477-10-10ZM0 247c0-5.523 4.477-10 10-10h231c5.523 0 10 4.477 10 10s-4.477 10-10 10H10c-5.523 0-10-4.477-10-10Z"
|
|
1944
|
+
})
|
|
1945
|
+
]
|
|
1946
|
+
}), /* @__PURE__ */ jsx(Box, { children: t("Layout.Table.NoRows") })]
|
|
1947
|
+
})
|
|
2047
1948
|
})
|
|
1949
|
+
}) })]
|
|
1950
|
+
}),
|
|
1951
|
+
hasFooter && /* @__PURE__ */ jsx(TableFooter, {
|
|
1952
|
+
className: layoutTableClasses.footer,
|
|
1953
|
+
children: table.getFooterGroups().map((footerGroup) => {
|
|
1954
|
+
const footers = windowColumns(footerGroup.headers.filter((header) => header.column.getIsVisible()));
|
|
1955
|
+
return /* @__PURE__ */ jsxs(TableRow, {
|
|
1956
|
+
className: layoutTableClasses.footerRow,
|
|
1957
|
+
children: [
|
|
1958
|
+
footers.start.map(renderFooter),
|
|
1959
|
+
skippedColumns(paddingStart),
|
|
1960
|
+
footers.center.map(renderFooter),
|
|
1961
|
+
skippedColumns(paddingEnd),
|
|
1962
|
+
footers.end.map(renderFooter),
|
|
1963
|
+
/* @__PURE__ */ jsx(TableCell, {
|
|
1964
|
+
"aria-hidden": true,
|
|
1965
|
+
className: layoutTableClasses.filler,
|
|
1966
|
+
sx: {
|
|
1967
|
+
p: 0,
|
|
1968
|
+
...FOOTER_SX
|
|
1969
|
+
}
|
|
1970
|
+
})
|
|
1971
|
+
]
|
|
1972
|
+
}, footerGroup.id);
|
|
2048
1973
|
})
|
|
2049
|
-
})
|
|
2050
|
-
hasFooter && /* @__PURE__ */ jsx(TableFooter, { children: table.getFooterGroups().map((footerGroup) => {
|
|
2051
|
-
const footers = windowColumns(footerGroup.headers.filter((header_2) => header_2.column.getIsVisible()));
|
|
2052
|
-
return /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
2053
|
-
footers.start.map(renderFooter),
|
|
2054
|
-
skippedColumns(paddingStart),
|
|
2055
|
-
footers.center.map(renderFooter),
|
|
2056
|
-
skippedColumns(paddingEnd),
|
|
2057
|
-
footers.end.map(renderFooter),
|
|
2058
|
-
/* @__PURE__ */ jsx(TableCell, {
|
|
2059
|
-
"aria-hidden": true,
|
|
2060
|
-
sx: {
|
|
2061
|
-
p: 0,
|
|
2062
|
-
...FOOTER_SX
|
|
2063
|
-
}
|
|
2064
|
-
})
|
|
2065
|
-
] }, footerGroup.id);
|
|
2066
|
-
}) })
|
|
1974
|
+
})
|
|
2067
1975
|
]
|
|
2068
1976
|
})
|
|
2069
1977
|
}),
|
|
2070
|
-
pagination && pageSizeOffered && /* @__PURE__ */ jsx(table.Pagination, {
|
|
1978
|
+
pagination && pageSizeOffered && /* @__PURE__ */ jsx(table.Pagination, {
|
|
1979
|
+
className: layoutTableClasses.pagination,
|
|
1980
|
+
pageSizeOptions
|
|
1981
|
+
})
|
|
2071
1982
|
]
|
|
2072
1983
|
}) });
|
|
2073
1984
|
}
|
|
2074
|
-
|
|
2075
|
-
export { AggregatedCell, Dropzone, FileViewer, Fullscreen, LayoutTable, LoginForm, RouterButton, RouterError, RouterFab, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab };
|
|
1985
|
+
export { AggregatedCell, ChatLayout, Dropzone, FileViewer, Fullscreen, LayoutTable, LoginForm, RouterButton, RouterError, RouterFab, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, layoutTableClasses };
|
|
2076
1986
|
|
|
2077
1987
|
//# sourceMappingURL=components.mjs.map
|