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.
Files changed (107) hide show
  1. package/dist/{Approval-DoD-GRRH.mjs → Approval-D1TfISUL.mjs} +11 -21
  2. package/dist/Approval-D1TfISUL.mjs.map +1 -0
  3. package/dist/{LayoutTable-CRo43iWr.d.mts → ChatLayout-BmLySLXy.d.mts} +11 -18
  4. package/dist/ChatLayout-Tpuwo8-b.mjs +1622 -0
  5. package/dist/ChatLayout-Tpuwo8-b.mjs.map +1 -0
  6. package/dist/{DialogsContext-DLqA8RJ_.mjs → DialogsContext-D23fJjYR.mjs} +2 -3
  7. package/dist/DialogsContext-D23fJjYR.mjs.map +1 -0
  8. package/dist/{Email-CKUxOURX.d.mts → Email-Dz5k0UWE.d.mts} +1 -3
  9. package/dist/{Email-BzQQkbe9.mjs → Email-rnz3H0x3.mjs} +3 -5
  10. package/dist/Email-rnz3H0x3.mjs.map +1 -0
  11. package/dist/{Employee-agVPiGrJ.d.mts → Employee-C8xIlBxY.d.mts} +1 -7
  12. package/dist/{FileMeta-Be9viU7D.d.mts → FileMeta-B39e2FLC.d.mts} +1 -3
  13. package/dist/{FileMeta-DDqUju1Y.mjs → FileMeta-CPBWI_jA.mjs} +2 -3
  14. package/dist/FileMeta-CPBWI_jA.mjs.map +1 -0
  15. package/dist/{QueryClientParam-JcH0mJWl.d.mts → QueryClientParam-CTV1vj76.d.mts} +1 -3
  16. package/dist/RouterListItemButton-CF-8w-08.mjs +62 -0
  17. package/dist/RouterListItemButton-CF-8w-08.mjs.map +1 -0
  18. package/dist/{User-D4__w1I1.d.mts → User-aJksXItw.d.mts} +1 -3
  19. package/dist/{approval-L09uPzTU.mjs → approval-HB2w5jzc.mjs} +4 -5
  20. package/dist/approval-HB2w5jzc.mjs.map +1 -0
  21. package/dist/auth.d.mts +0 -4
  22. package/dist/auth.mjs +5 -6
  23. package/dist/auth.mjs.map +1 -1
  24. package/dist/components.d.mts +63 -33
  25. package/dist/components.mjs +658 -748
  26. package/dist/components.mjs.map +1 -1
  27. package/dist/{createApi-BhNkG4jz.mjs → createApi-CKgFi53y.mjs} +4 -6
  28. package/dist/createApi-CKgFi53y.mjs.map +1 -0
  29. package/dist/data/client.d.mts +2 -8
  30. package/dist/data/client.mjs +6 -9
  31. package/dist/data/client.mjs.map +1 -1
  32. package/dist/data/server.d.mts +2 -4
  33. package/dist/data/server.mjs +6 -7
  34. package/dist/data/server.mjs.map +1 -1
  35. package/dist/env-BwFl7nWc.mjs +48 -0
  36. package/dist/env-BwFl7nWc.mjs.map +1 -0
  37. package/dist/{file-Chlljz3o.mjs → file-X1sK4ok6.mjs} +7 -8
  38. package/dist/file-X1sK4ok6.mjs.map +1 -0
  39. package/dist/{file-Dl8JCcqy.mjs → file-tkfsnk5F.mjs} +8 -8
  40. package/dist/file-tkfsnk5F.mjs.map +1 -0
  41. package/dist/generatedChart-k7NEdi5Z.mjs +211 -0
  42. package/dist/generatedChart-k7NEdi5Z.mjs.map +1 -0
  43. package/dist/hooks.d.mts +30 -30
  44. package/dist/hooks.mjs +1828 -1304
  45. package/dist/hooks.mjs.map +1 -1
  46. package/dist/index.d.mts +11 -14
  47. package/dist/index.mjs +1273 -1051
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/middleware.d.mts +1 -7
  50. package/dist/middleware.mjs +5 -8
  51. package/dist/middleware.mjs.map +1 -1
  52. package/dist/models.d.mts +4 -32
  53. package/dist/models.mjs +7 -11
  54. package/dist/models.mjs.map +1 -1
  55. package/dist/{peoplesoft-D6q3cYsH.d.mts → peoplesoft-C-zPdRVj.d.mts} +3 -9
  56. package/dist/{peoplesoft-BhintHQz.mjs → peoplesoft-RnvfLbWH.mjs} +5 -25
  57. package/dist/peoplesoft-RnvfLbWH.mjs.map +1 -0
  58. package/dist/{providers-BvuZWkpD.mjs → providers-BfFg_3eo.mjs} +5 -23
  59. package/dist/providers-BfFg_3eo.mjs.map +1 -0
  60. package/dist/{tokens-XuFhVbh5.mjs → tokens-C4SErO-K.mjs} +12 -8
  61. package/dist/tokens-C4SErO-K.mjs.map +1 -0
  62. package/dist/{utils-CaeVFWF-.mjs → utils-C2MZoH9U.mjs} +8 -39
  63. package/dist/utils-C2MZoH9U.mjs.map +1 -0
  64. package/dist/{utils-Bhi0KiBx.d.mts → utils-CNYCSgip.d.mts} +3 -5
  65. package/dist/utils-DnMFybj3.mjs +27 -0
  66. package/dist/utils-DnMFybj3.mjs.map +1 -0
  67. package/dist/utils.d.mts +11 -2
  68. package/dist/utils.mjs +3 -5
  69. package/dist/vite.d.mts +0 -2
  70. package/dist/vite.mjs +2 -4
  71. package/dist/vite.mjs.map +1 -1
  72. package/package.json +131 -131
  73. package/skills/ai/SKILL.md +136 -39
  74. package/skills/client-db/SKILL.md +104 -90
  75. package/skills/db-schema/SKILL.md +28 -20
  76. package/skills/dialogs/SKILL.md +26 -38
  77. package/skills/forms/SKILL.md +133 -73
  78. package/skills/general/SKILL.md +99 -105
  79. package/skills/general/references/auth.md +70 -0
  80. package/skills/migrations/versions/migrate-v10-to-v11.md +30 -4
  81. package/skills/routing/SKILL.md +60 -58
  82. package/skills/scanning/SKILL.md +67 -0
  83. package/skills/server-functions/SKILL.md +71 -26
  84. package/skills/services/SKILL.md +4 -4
  85. package/skills/services/docs/approval.md +70 -24
  86. package/skills/services/docs/email.md +24 -3
  87. package/skills/services/docs/file.md +69 -27
  88. package/skills/services/docs/peoplesoft.md +55 -39
  89. package/skills/start/steps/03-apm-setup.md +9 -9
  90. package/skills/table/SKILL.md +250 -267
  91. package/dist/AggregatedCell-oGcwbetF.mjs +0 -559
  92. package/dist/AggregatedCell-oGcwbetF.mjs.map +0 -1
  93. package/dist/Approval-DoD-GRRH.mjs.map +0 -1
  94. package/dist/DialogsContext-DLqA8RJ_.mjs.map +0 -1
  95. package/dist/Email-BzQQkbe9.mjs.map +0 -1
  96. package/dist/FileMeta-DDqUju1Y.mjs.map +0 -1
  97. package/dist/RouterListItemButton-ULMlaQh6.mjs +0 -80
  98. package/dist/RouterListItemButton-ULMlaQh6.mjs.map +0 -1
  99. package/dist/approval-L09uPzTU.mjs.map +0 -1
  100. package/dist/createApi-BhNkG4jz.mjs.map +0 -1
  101. package/dist/file-Chlljz3o.mjs.map +0 -1
  102. package/dist/file-Dl8JCcqy.mjs.map +0 -1
  103. package/dist/peoplesoft-BhintHQz.mjs.map +0 -1
  104. package/dist/providers-BvuZWkpD.mjs.map +0 -1
  105. package/dist/tokens-XuFhVbh5.mjs.map +0 -1
  106. package/dist/utils-CaeVFWF-.mjs.map +0 -1
  107. package/skills/general/references/exports.md +0 -114
@@ -1,16 +1,16 @@
1
- import { d as sanitizeReturnTo, m as loginProvidersQueryOptions } from "./utils-CaeVFWF-.mjs";
2
- import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-ULMlaQh6.mjs";
3
- import { a as fileQueryOptions, i as fileMetasQueryOptions, n as deleteFileMutationOptions, o as fileThumbnailQueryOptions, r as downloadFileMutationOptions, s as openFileMutationOptions } from "./file-Chlljz3o.mjs";
4
- import { S as useDialogs, a as columnFlex, c as lookaheadRange, f as toClipboardText, i as columnAlign, p as DEFAULT_PAGE_SIZE_OPTIONS, r as cellSelectionSx, s as hasColumnLabel, t as AggregatedCell, u as pinnedSx } from "./AggregatedCell-oGcwbetF.mjs";
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, Link, 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";
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
- //#region src/components/core/account/LoginForm.tsx
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(36);
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 ($[1] !== t0) {
44
+ if ($[0] !== t0) {
49
45
  t1 = t0 === void 0 ? [] : t0;
50
- $[1] = t0;
51
- $[2] = t1;
52
- } else t1 = $[2];
46
+ $[0] = t0;
47
+ $[1] = t1;
48
+ } else t1 = $[1];
53
49
  const providers = t1;
54
50
  let t2;
55
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
51
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
56
52
  t2 = { select: _temp$2 };
57
- $[3] = t2;
58
- } else t2 = $[3];
53
+ $[2] = t2;
54
+ } else t2 = $[2];
59
55
  const search = useLocation(t2);
60
56
  let t3;
61
- if ($[4] !== search.returnTo) {
57
+ if ($[3] !== search.returnTo) {
62
58
  t3 = sanitizeReturnTo(search.returnTo);
63
- $[4] = search.returnTo;
64
- $[5] = t3;
65
- } else t3 = $[5];
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 ($[6] === Symbol.for("react.memo_cache_sentinel")) {
67
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
72
68
  t4 = () => setLastProvider(localStorage.getItem(LAST_PROVIDER_KEY));
73
69
  t5 = [];
74
- $[6] = t4;
75
- $[7] = t5;
70
+ $[5] = t4;
71
+ $[6] = t5;
76
72
  } else {
77
- t4 = $[6];
78
- t5 = $[7];
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 ($[8] !== returnTo) {
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
- $[8] = returnTo;
89
- $[9] = t6;
90
- } else t6 = $[9];
84
+ $[7] = returnTo;
85
+ $[8] = t6;
86
+ } else t6 = $[8];
91
87
  const signIn = t6;
92
88
  let t7;
93
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[10] = t7;
103
- } else t7 = $[10];
98
+ $[9] = t7;
99
+ } else t7 = $[9];
104
100
  let t8;
105
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
101
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
106
102
  t8 = [_temp2, _temp3];
107
- $[11] = t8;
108
- } else t8 = $[11];
103
+ $[10] = t8;
104
+ } else t8 = $[10];
109
105
  let t9;
110
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
106
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
111
107
  t9 = { p: {
112
108
  xs: 3,
113
109
  sm: 4
114
110
  } };
115
- $[12] = t9;
116
- } else t9 = $[12];
111
+ $[11] = t9;
112
+ } else t9 = $[11];
117
113
  let t10;
118
114
  let t11;
119
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[13] = t10;
129
- $[14] = t11;
124
+ $[12] = t10;
125
+ $[13] = t11;
130
126
  } else {
131
- t10 = $[13];
132
- t11 = $[14];
127
+ t10 = $[12];
128
+ t11 = $[13];
133
129
  }
134
130
  let t12;
135
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[15] = t12;
143
- } else t12 = $[15];
138
+ $[14] = t12;
139
+ } else t12 = $[14];
144
140
  let t13;
145
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
141
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
146
142
  t13 = { fontWeight: 700 };
147
- $[16] = t13;
148
- } else t13 = $[16];
143
+ $[15] = t13;
144
+ } else t13 = $[15];
149
145
  let t14;
150
- if ($[17] !== t) {
146
+ if ($[16] !== t) {
151
147
  t14 = t("Layout.LogIn");
152
- $[17] = t;
153
- $[18] = t14;
154
- } else t14 = $[18];
148
+ $[16] = t;
149
+ $[17] = t14;
150
+ } else t14 = $[17];
155
151
  let t15;
156
- if ($[19] !== t14) {
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
- $[19] = t14;
172
- $[20] = t15;
173
- } else t15 = $[20];
167
+ $[18] = t14;
168
+ $[19] = t15;
169
+ } else t15 = $[19];
174
170
  let t16;
175
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
171
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
176
172
  t16 = /* @__PURE__ */ jsx(Divider, { sx: { my: 3 } });
177
- $[21] = t16;
178
- } else t16 = $[21];
173
+ $[20] = t16;
174
+ } else t16 = $[20];
179
175
  let t17;
180
- if ($[22] !== preferred || $[23] !== providers || $[24] !== signIn || $[25] !== t) {
176
+ if ($[21] !== preferred || $[22] !== providers || $[23] !== signIn || $[24] !== t) {
181
177
  let t18;
182
- if ($[27] !== preferred || $[28] !== signIn || $[29] !== t) {
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
- $[27] = preferred;
203
- $[28] = signIn;
204
- $[29] = t;
205
- $[30] = t18;
206
- } else t18 = $[30];
198
+ $[26] = preferred;
199
+ $[27] = signIn;
200
+ $[28] = t;
201
+ $[29] = t18;
202
+ } else t18 = $[29];
207
203
  t17 = providers.map(t18);
208
- $[22] = preferred;
209
- $[23] = providers;
210
- $[24] = signIn;
211
- $[25] = t;
212
- $[26] = t17;
213
- } else t17 = $[26];
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 ($[31] !== t17) {
211
+ if ($[30] !== t17) {
216
212
  t18 = /* @__PURE__ */ jsx(Stack, {
217
213
  spacing: 1.5,
218
214
  children: t17
219
215
  });
220
- $[31] = t17;
221
- $[32] = t18;
222
- } else t18 = $[32];
216
+ $[30] = t17;
217
+ $[31] = t18;
218
+ } else t18 = $[31];
223
219
  let t19;
224
- if ($[33] !== t15 || $[34] !== t18) {
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
- $[33] = t15;
241
- $[34] = t18;
242
- $[35] = t19;
243
- } else t19 = $[35];
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
- //#endregion
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(16);
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 ($[1] !== t0) {
280
+ if ($[0] !== t0) {
290
281
  ({children, sx, ...props} = t0);
291
- $[1] = t0;
292
- $[2] = children;
293
- $[3] = props;
294
- $[4] = sx;
282
+ $[0] = t0;
283
+ $[1] = children;
284
+ $[2] = props;
285
+ $[3] = sx;
295
286
  } else {
296
- children = $[2];
297
- props = $[3];
298
- sx = $[4];
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 ($[5] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[5] = t1;
323
- } else t1 = $[5];
313
+ $[4] = t1;
314
+ } else t1 = $[4];
324
315
  const recompute = useEffectEvent(t1);
325
316
  let t2;
326
- if ($[6] !== recompute) {
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
- $[6] = recompute;
343
- $[7] = t2;
344
- } else t2 = $[7];
333
+ $[5] = recompute;
334
+ $[6] = t2;
335
+ } else t2 = $[6];
345
336
  let t3;
346
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
337
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
347
338
  t3 = [];
348
- $[8] = t3;
349
- } else t3 = $[8];
339
+ $[7] = t3;
340
+ } else t3 = $[7];
350
341
  useLayoutEffect(t2, t3);
351
342
  let t4;
352
- if ($[9] !== height || $[10] !== sx) {
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
- $[9] = height;
364
- $[10] = sx;
365
- $[11] = t4;
366
- } else t4 = $[11];
354
+ $[8] = height;
355
+ $[9] = sx;
356
+ $[10] = t4;
357
+ } else t4 = $[10];
367
358
  let t5;
368
- if ($[12] !== children || $[13] !== props || $[14] !== t4) {
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
- $[12] = children;
376
- $[13] = props;
377
- $[14] = t4;
378
- $[15] = t5;
379
- } else t5 = $[15];
366
+ $[11] = children;
367
+ $[12] = props;
368
+ $[13] = t4;
369
+ $[14] = t5;
370
+ } else t5 = $[14];
380
371
  return t5;
381
372
  };
382
- //#endregion
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(33);
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 ($[1] !== t0) {
391
+ if ($[0] !== t0) {
406
392
  ({sx, progress, ...props} = t0);
407
- $[1] = t0;
408
- $[2] = progress;
409
- $[3] = props;
410
- $[4] = sx;
393
+ $[0] = t0;
394
+ $[1] = progress;
395
+ $[2] = props;
396
+ $[3] = sx;
411
397
  } else {
412
- progress = $[2];
413
- props = $[3];
414
- sx = $[4];
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 ($[5] !== getRootProps || $[6] !== isDragAccept || $[7] !== isDragReject || $[8] !== isFocused || $[9] !== props.disabled || $[10] !== t1 || $[11] !== t2.palette.text.disabled || $[12] !== theme) {
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
- $[5] = getRootProps;
439
- $[6] = isDragAccept;
440
- $[7] = isDragReject;
441
- $[8] = isFocused;
442
- $[9] = props.disabled;
443
- $[10] = t1;
444
- $[11] = t2.palette.text.disabled;
445
- $[12] = theme;
446
- $[13] = T0;
447
- $[14] = t3;
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 = $[13];
450
- t3 = $[14];
435
+ T0 = $[12];
436
+ t3 = $[13];
451
437
  }
452
438
  let t4;
453
- if ($[15] !== getInputProps) {
439
+ if ($[14] !== getInputProps) {
454
440
  t4 = getInputProps();
455
- $[15] = getInputProps;
456
- $[16] = t4;
457
- } else t4 = $[16];
441
+ $[14] = getInputProps;
442
+ $[15] = t4;
443
+ } else t4 = $[15];
458
444
  let t5;
459
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
445
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
460
446
  t5 = { display: "none" };
461
- $[17] = t5;
462
- } else t5 = $[17];
447
+ $[16] = t5;
448
+ } else t5 = $[16];
463
449
  let t6;
464
- if ($[18] !== t4) {
450
+ if ($[17] !== t4) {
465
451
  t6 = /* @__PURE__ */ jsx("input", {
466
452
  ...t4,
467
453
  style: t5
468
454
  });
469
- $[18] = t4;
470
- $[19] = t6;
471
- } else t6 = $[19];
455
+ $[17] = t4;
456
+ $[18] = t6;
457
+ } else t6 = $[18];
472
458
  let t7;
473
- if ($[20] !== progress) {
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
- $[20] = progress;
481
- $[21] = t7;
482
- } else t7 = $[21];
466
+ $[19] = progress;
467
+ $[20] = t7;
468
+ } else t7 = $[20];
483
469
  let t8;
484
- if ($[22] !== t) {
470
+ if ($[21] !== t) {
485
471
  t8 = t("Layout.File.DragSomeFilesHereOrClickToSelectThem");
486
- $[22] = t;
487
- $[23] = t8;
488
- } else t8 = $[23];
472
+ $[21] = t;
473
+ $[22] = t8;
474
+ } else t8 = $[22];
489
475
  let t9;
490
- if ($[24] !== t8) {
476
+ if ($[23] !== t8) {
491
477
  t9 = /* @__PURE__ */ jsx(Typography, { children: t8 });
492
- $[24] = t8;
493
- $[25] = t9;
494
- } else t9 = $[25];
478
+ $[23] = t8;
479
+ $[24] = t9;
480
+ } else t9 = $[24];
495
481
  let t10;
496
- if ($[26] !== T0 || $[27] !== sx || $[28] !== t3 || $[29] !== t6 || $[30] !== t7 || $[31] !== t9) {
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
- $[26] = T0;
507
- $[27] = sx;
508
- $[28] = t3;
509
- $[29] = t6;
510
- $[30] = t7;
511
- $[31] = t9;
512
- $[32] = t10;
513
- } else t10 = $[32];
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
- //#endregion
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
- //#endregion
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(38);
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 ($[1] === Symbol.for("react.memo_cache_sentinel")) {
517
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
543
518
  t1 = { from: rootRouteId };
544
- $[1] = t1;
545
- } else t1 = $[1];
519
+ $[0] = t1;
520
+ } else t1 = $[0];
546
521
  const queryClient = useMatch(t1).context.queryClient;
547
522
  let t2;
548
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
523
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
549
524
  t2 = downloadFileMutationOptions();
550
- $[2] = t2;
551
- } else t2 = $[2];
525
+ $[1] = t2;
526
+ } else t2 = $[1];
552
527
  const { mutate: download, isPending: isDownloading } = useMutation(t2);
553
528
  let t3;
554
- if ($[3] !== queryClient) {
529
+ if ($[2] !== queryClient) {
555
530
  t3 = deleteFileMutationOptions({ queryClient });
556
- $[3] = queryClient;
557
- $[4] = t3;
558
- } else t3 = $[4];
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 ($[5] !== appName || $[6] !== download || $[7] !== meta.fileExtension || $[8] !== meta.fileName || $[9] !== meta.id || $[10] !== onClose) {
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
- $[5] = appName;
572
- $[6] = download;
573
- $[7] = meta.fileExtension;
574
- $[8] = meta.fileName;
575
- $[9] = meta.id;
576
- $[10] = onClose;
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 ($[12] !== alert || $[13] !== appName || $[14] !== confirm || $[15] !== deleteFile || $[16] !== fileMetas || $[17] !== meta || $[18] !== onClose || $[19] !== onDelete || $[20] !== t) {
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
- $[12] = alert;
604
- $[13] = appName;
605
- $[14] = confirm;
606
- $[15] = deleteFile;
607
- $[16] = fileMetas;
608
- $[17] = meta;
609
- $[18] = onClose;
610
- $[19] = onDelete;
611
- $[20] = t;
612
- $[21] = t5;
613
- } else t5 = $[21];
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 ($[22] !== actions?.download || $[23] !== handleOnDownload || $[24] !== isDownloading || $[25] !== t) {
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
- $[22] = actions?.download;
624
- $[23] = handleOnDownload;
625
- $[24] = isDownloading;
626
- $[25] = t;
627
- $[26] = t7;
628
- } else t7 = $[26];
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 ($[27] !== actions?.delete || $[28] !== handleOnDelete || $[29] !== isDeleting || $[30] !== t) {
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
- $[27] = actions?.delete;
637
- $[28] = handleOnDelete;
638
- $[29] = isDeleting;
639
- $[30] = t;
640
- $[31] = t8;
641
- } else t8 = $[31];
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 ($[32] !== anchorEl || $[33] !== onClose || $[34] !== t6 || $[35] !== t7 || $[36] !== t8) {
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
- $[32] = anchorEl;
651
- $[33] = onClose;
652
- $[34] = t6;
653
- $[35] = t7;
654
- $[36] = t8;
655
- $[37] = t9;
656
- } else t9 = $[37];
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
- //#endregion
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(13);
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 ($[1] !== sx) {
639
+ if ($[0] !== sx) {
672
640
  t1 = {
673
641
  overflow: "auto",
674
642
  ...sx
675
643
  };
676
- $[1] = sx;
677
- $[2] = t1;
678
- } else t1 = $[2];
644
+ $[0] = sx;
645
+ $[1] = t1;
646
+ } else t1 = $[1];
679
647
  let t2;
680
- if ($[3] !== fileMetas || $[4] !== itemBar || $[5] !== size) {
648
+ if ($[2] !== fileMetas || $[3] !== itemBar || $[4] !== size) {
681
649
  let t3;
682
- if ($[7] !== itemBar || $[8] !== size) {
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
- $[7] = itemBar;
689
- $[8] = size;
690
- $[9] = t3;
691
- } else t3 = $[9];
656
+ $[6] = itemBar;
657
+ $[7] = size;
658
+ $[8] = t3;
659
+ } else t3 = $[8];
692
660
  t2 = fileMetas.map(t3);
693
- $[3] = fileMetas;
694
- $[4] = itemBar;
695
- $[5] = size;
696
- $[6] = t2;
697
- } else t2 = $[6];
661
+ $[2] = fileMetas;
662
+ $[3] = itemBar;
663
+ $[4] = size;
664
+ $[5] = t2;
665
+ } else t2 = $[5];
698
666
  let t3;
699
- if ($[10] !== t1 || $[11] !== t2) {
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
- $[10] = t1;
707
- $[11] = t2;
708
- $[12] = t3;
709
- } else t3 = $[12];
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: (event_0) => setMenuAnchor(event_0.currentTarget),
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
- //#endregion
816
- //#region src/components/file/fileViewer/FileViewerList.tsx
783
+ // src/components/file/fileViewer/FileViewerList.tsx
817
784
  const FileViewerList = (t0) => {
818
- const $ = c(6);
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 ($[1] !== fileMetas) {
789
+ if ($[0] !== fileMetas) {
827
790
  t1 = fileMetas.map(_temp$1);
828
- $[1] = fileMetas;
829
- $[2] = t1;
830
- } else t1 = $[2];
791
+ $[0] = fileMetas;
792
+ $[1] = t1;
793
+ } else t1 = $[1];
831
794
  let t2;
832
- if ($[3] !== sx || $[4] !== t1) {
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
- $[3] = sx;
839
- $[4] = t1;
840
- $[5] = t2;
841
- } else t2 = $[5];
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
- //#endregion
905
- //#region src/components/file/fileViewer/ImageViewer.tsx
867
+ // src/components/file/fileViewer/ImageViewer.tsx
906
868
  const ImageViewer = (t0) => {
907
- const $ = c(56);
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 ($[1] !== appName || $[2] !== fileMetas || $[3] !== metaId) {
877
+ if ($[0] !== appName || $[1] !== fileMetas || $[2] !== metaId) {
920
878
  let t3;
921
- if ($[9] !== metaId) {
879
+ if ($[8] !== metaId) {
922
880
  t3 = (m) => m.id === metaId;
923
- $[9] = metaId;
924
- $[10] = t3;
925
- } else t3 = $[10];
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 ($[11] !== fileMetas || $[12] !== metaId) {
887
+ if ($[10] !== fileMetas || $[11] !== metaId) {
930
888
  images = fileMetas.filter(_temp);
931
889
  let t5;
932
- if ($[15] !== metaId) {
890
+ if ($[14] !== metaId) {
933
891
  t5 = (m_1) => m_1.id === metaId;
934
- $[15] = metaId;
935
- $[16] = t5;
936
- } else t5 = $[16];
892
+ $[14] = metaId;
893
+ $[15] = t5;
894
+ } else t5 = $[15];
937
895
  t4 = images.findIndex(t5);
938
- $[11] = fileMetas;
939
- $[12] = metaId;
940
- $[13] = images;
941
- $[14] = t4;
896
+ $[10] = fileMetas;
897
+ $[11] = metaId;
898
+ $[12] = images;
899
+ $[13] = t4;
942
900
  } else {
943
- images = $[13];
944
- t4 = $[14];
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
- $[1] = appName;
955
- $[2] = fileMetas;
956
- $[3] = metaId;
957
- $[4] = meta;
958
- $[5] = next;
959
- $[6] = previous;
960
- $[7] = t1;
961
- $[8] = t2;
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 = $[4];
964
- next = $[5];
965
- previous = $[6];
966
- t1 = $[7];
967
- t2 = $[8];
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 ($[17] !== t1 || $[18] !== t3) {
929
+ if ($[16] !== t1 || $[17] !== t3) {
972
930
  t4 = {
973
931
  ...t1,
974
932
  enabled: t3
975
933
  };
976
- $[17] = t1;
977
- $[18] = t3;
978
- $[19] = t4;
979
- } else t4 = $[19];
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 ($[20] !== setImageId) {
940
+ if ($[19] !== setImageId) {
983
941
  t5 = () => setImageId("");
984
- $[20] = setImageId;
985
- $[21] = t5;
986
- } else t5 = $[21];
942
+ $[19] = setImageId;
943
+ $[20] = t5;
944
+ } else t5 = $[20];
987
945
  const onClose = t5;
988
946
  let t6;
989
- if ($[22] !== metaId || $[23] !== next || $[24] !== onClose || $[25] !== previous || $[26] !== setImageId) {
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
- $[22] = metaId;
1006
- $[23] = next;
1007
- $[24] = onClose;
1008
- $[25] = previous;
1009
- $[26] = setImageId;
1010
- $[27] = t6;
1011
- } else t6 = $[27];
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 ($[28] !== metaId || $[29] !== next || $[30] !== previous) {
971
+ if ($[27] !== metaId || $[28] !== next || $[29] !== previous) {
1014
972
  t7 = [
1015
973
  metaId,
1016
974
  previous,
1017
975
  next
1018
976
  ];
1019
- $[28] = metaId;
1020
- $[29] = next;
1021
- $[30] = previous;
1022
- $[31] = t7;
1023
- } else t7 = $[31];
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 ($[32] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[32] = t8;
1034
- } else t8 = $[32];
991
+ $[31] = t8;
992
+ } else t8 = $[31];
1035
993
  const navSx = t8;
1036
994
  let t9;
1037
- if ($[33] !== meta.fileName) {
995
+ if ($[32] !== meta.fileName) {
1038
996
  t9 = { paper: { "aria-label": meta.fileName } };
1039
- $[33] = meta.fileName;
1040
- $[34] = t9;
1041
- } else t9 = $[34];
997
+ $[32] = meta.fileName;
998
+ $[33] = t9;
999
+ } else t9 = $[33];
1042
1000
  let t10;
1043
- if ($[35] !== isPending || $[36] !== meta.fileName || $[37] !== source) {
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
- $[35] = isPending;
1069
- $[36] = meta.fileName;
1070
- $[37] = source;
1071
- $[38] = t10;
1072
- } else t10 = $[38];
1026
+ $[34] = isPending;
1027
+ $[35] = meta.fileName;
1028
+ $[36] = source;
1029
+ $[37] = t10;
1030
+ } else t10 = $[37];
1073
1031
  let t11;
1074
- if ($[39] !== previous || $[40] !== setImageId) {
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
- $[39] = previous;
1086
- $[40] = setImageId;
1087
- $[41] = t11;
1088
- } else t11 = $[41];
1043
+ $[38] = previous;
1044
+ $[39] = setImageId;
1045
+ $[40] = t11;
1046
+ } else t11 = $[40];
1089
1047
  let t12;
1090
- if ($[42] !== next || $[43] !== setImageId) {
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
- $[42] = next;
1102
- $[43] = setImageId;
1103
- $[44] = t12;
1104
- } else t12 = $[44];
1059
+ $[41] = next;
1060
+ $[42] = setImageId;
1061
+ $[43] = t12;
1062
+ } else t12 = $[43];
1105
1063
  let t13;
1106
1064
  let t14;
1107
- if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[45] = t13;
1115
- $[46] = t14;
1072
+ $[44] = t13;
1073
+ $[45] = t14;
1116
1074
  } else {
1117
- t13 = $[45];
1118
- t14 = $[46];
1075
+ t13 = $[44];
1076
+ t14 = $[45];
1119
1077
  }
1120
1078
  let t15;
1121
- if ($[47] !== onClose) {
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
- $[47] = onClose;
1130
- $[48] = t15;
1131
- } else t15 = $[48];
1087
+ $[46] = onClose;
1088
+ $[47] = t15;
1089
+ } else t15 = $[47];
1132
1090
  let t16;
1133
- if ($[49] !== onClose || $[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t15 || $[54] !== t9) {
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
- $[49] = onClose;
1147
- $[50] = t10;
1148
- $[51] = t11;
1149
- $[52] = t12;
1150
- $[53] = t15;
1151
- $[54] = t9;
1152
- $[55] = t16;
1153
- } else t16 = $[55];
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
- //#endregion
1160
- //#region src/components/file/FileViewer.tsx
1117
+ // src/components/file/FileViewer.tsx
1161
1118
  const FileViewer = (t0) => {
1162
- const $ = c(22);
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 ($[1] !== appName || $[2] !== subId) {
1122
+ if ($[0] !== appName || $[1] !== subId) {
1170
1123
  t1 = fileMetasQueryOptions({
1171
1124
  appName,
1172
1125
  subId
1173
1126
  });
1174
- $[1] = appName;
1175
- $[2] = subId;
1176
- $[3] = t1;
1177
- } else t1 = $[3];
1127
+ $[0] = appName;
1128
+ $[1] = subId;
1129
+ $[2] = t1;
1130
+ } else t1 = $[2];
1178
1131
  const t2 = !!subId;
1179
1132
  let t3;
1180
- if ($[4] !== t1 || $[5] !== t2) {
1133
+ if ($[3] !== t1 || $[4] !== t2) {
1181
1134
  t3 = {
1182
1135
  ...t1,
1183
1136
  enabled: t2
1184
1137
  };
1185
- $[4] = t1;
1186
- $[5] = t2;
1187
- $[6] = t3;
1188
- } else t3 = $[6];
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 ($[7] !== t4) {
1144
+ if ($[6] !== t4) {
1192
1145
  t5 = t4 === void 0 ? [] : t4;
1193
- $[7] = t4;
1194
- $[8] = t5;
1195
- } else t5 = $[8];
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 ($[9] !== actions || $[10] !== appName || $[11] !== fileMetas || $[12] !== onDelete) {
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
- $[9] = actions;
1209
- $[10] = appName;
1210
- $[11] = fileMetas;
1211
- $[12] = onDelete;
1212
- $[13] = t6;
1213
- } else t6 = $[13];
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 ($[14] !== children) {
1168
+ if ($[13] !== children) {
1216
1169
  t7 = children({
1217
1170
  Grid: FileViewerGrid,
1218
1171
  List: FileViewerList
1219
1172
  });
1220
- $[14] = children;
1221
- $[15] = t7;
1222
- } else t7 = $[15];
1173
+ $[13] = children;
1174
+ $[14] = t7;
1175
+ } else t7 = $[14];
1223
1176
  let t8;
1224
- if ($[16] !== imageId) {
1177
+ if ($[15] !== imageId) {
1225
1178
  t8 = /* @__PURE__ */ jsx(ImageViewer, { metaId: imageId });
1226
- $[16] = imageId;
1227
- $[17] = t8;
1228
- } else t8 = $[17];
1179
+ $[15] = imageId;
1180
+ $[16] = t8;
1181
+ } else t8 = $[16];
1229
1182
  let t9;
1230
- if ($[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
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
- $[18] = t6;
1236
- $[19] = t7;
1237
- $[20] = t8;
1238
- $[21] = t9;
1239
- } else t9 = $[21];
1188
+ $[17] = t6;
1189
+ $[18] = t7;
1190
+ $[19] = t8;
1191
+ $[20] = t9;
1192
+ } else t9 = $[20];
1240
1193
  return t9;
1241
1194
  };
1242
- //#endregion
1243
- //#region src/components/router/RouterButton.tsx
1244
- const Component$3 = React.forwardRef(function ButtonComponent(props, reference) {
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 ($[1] !== props || $[2] !== reference) {
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
- $[1] = props;
1258
- $[2] = reference;
1259
- $[3] = t0;
1260
- } else t0 = $[3];
1205
+ $[0] = props;
1206
+ $[1] = reference;
1207
+ $[2] = t0;
1208
+ } else t0 = $[2];
1261
1209
  return t0;
1262
1210
  });
1263
- const CreatedComponent$3 = createLink(Component$3);
1211
+ const CreatedComponent$2 = createLink(Component$2);
1264
1212
  const RouterButton = (props) => {
1265
- const $ = c(3);
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 ($[1] !== props) {
1272
- t0 = /* @__PURE__ */ jsx(CreatedComponent$3, { ...props });
1273
- $[1] = props;
1274
- $[2] = t0;
1275
- } else t0 = $[2];
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
- //#endregion
1279
- //#region src/components/router/RouterFab.tsx
1280
- const Component$2 = React.forwardRef(function FabComponent(props, reference) {
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 ($[1] !== props || $[2] !== reference) {
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
- $[1] = props;
1294
- $[2] = reference;
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 RouterLink = (props) => {
1336
- const $ = c(3);
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 ($[1] !== props) {
1242
+ if ($[0] !== props) {
1343
1243
  t0 = /* @__PURE__ */ jsx(CreatedComponent$1, { ...props });
1344
- $[1] = props;
1345
- $[2] = t0;
1346
- } else t0 = $[2];
1244
+ $[0] = props;
1245
+ $[1] = t0;
1246
+ } else t0 = $[1];
1347
1247
  return t0;
1348
1248
  };
1349
- //#endregion
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(4);
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 ($[1] !== props || $[2] !== reference) {
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
- $[1] = props;
1365
- $[2] = reference;
1366
- $[3] = t0;
1367
- } else t0 = $[3];
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(3);
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 ($[1] !== props) {
1269
+ if ($[0] !== props) {
1379
1270
  t0 = /* @__PURE__ */ jsx(CreatedComponent, { ...props });
1380
- $[1] = props;
1381
- $[2] = t0;
1382
- } else t0 = $[2];
1271
+ $[0] = props;
1272
+ $[1] = t0;
1273
+ } else t0 = $[1];
1383
1274
  return t0;
1384
1275
  };
1385
- //#endregion
1386
- //#region src/components/router/RouterNotFound.tsx
1276
+ // src/components/router/RouterNotFound.tsx
1387
1277
  function RouterNotFound() {
1388
- const $ = c(9);
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 ($[1] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[1] = t0;
1402
- } else t0 = $[1];
1287
+ $[0] = t0;
1288
+ } else t0 = $[0];
1403
1289
  let t1;
1404
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[2] = t1;
1412
- } else t1 = $[2];
1297
+ $[1] = t1;
1298
+ } else t1 = $[1];
1413
1299
  let t2;
1414
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[3] = t2;
1425
- } else t2 = $[3];
1310
+ $[2] = t2;
1311
+ } else t2 = $[2];
1426
1312
  let t3;
1427
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[4] = t3;
1436
- } else t3 = $[4];
1321
+ $[3] = t3;
1322
+ } else t3 = $[3];
1437
1323
  let t4;
1438
- if ($[5] !== t) {
1324
+ if ($[4] !== t) {
1439
1325
  t4 = t("Layout.ThisPageCouldNotBeFound");
1440
- $[5] = t;
1441
- $[6] = t4;
1442
- } else t4 = $[6];
1326
+ $[4] = t;
1327
+ $[5] = t4;
1328
+ } else t4 = $[5];
1443
1329
  let t5;
1444
- if ($[7] !== t4) {
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
- $[7] = t4;
1462
- $[8] = t5;
1463
- } else t5 = $[8];
1347
+ $[6] = t4;
1348
+ $[7] = t5;
1349
+ } else t5 = $[7];
1464
1350
  return t5;
1465
1351
  }
1466
- //#endregion
1467
- //#region src/components/router/RouterError.tsx
1352
+ // src/components/router/RouterError.tsx
1468
1353
  const RouterError = (t0) => {
1469
- const $ = c(12);
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 ($[1] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[1] = t1;
1484
- } else t1 = $[1];
1364
+ $[0] = t1;
1365
+ } else t1 = $[0];
1485
1366
  let t2;
1486
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[2] = t2;
1494
- } else t2 = $[2];
1374
+ $[1] = t2;
1375
+ } else t2 = $[1];
1495
1376
  let t3;
1496
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1377
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1497
1378
  t3 = {
1498
1379
  fontWeight: 500,
1499
1380
  lineHeight: 1
1500
1381
  };
1501
- $[3] = t3;
1502
- } else t3 = $[3];
1382
+ $[2] = t3;
1383
+ } else t3 = $[2];
1503
1384
  const t4 = isError && error.name || "500";
1504
1385
  let t5;
1505
- if ($[4] !== t4) {
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
- $[4] = t4;
1513
- $[5] = t5;
1514
- } else t5 = $[5];
1393
+ $[3] = t4;
1394
+ $[4] = t5;
1395
+ } else t5 = $[4];
1515
1396
  let t6;
1516
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[6] = t6;
1525
- } else t6 = $[6];
1405
+ $[5] = t6;
1406
+ } else t6 = $[5];
1526
1407
  const t7 = isError ? error.message : String(error);
1527
1408
  let t8;
1528
- if ($[7] !== t7) {
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
- $[7] = t7;
1535
- $[8] = t8;
1536
- } else t8 = $[8];
1415
+ $[6] = t7;
1416
+ $[7] = t8;
1417
+ } else t8 = $[7];
1537
1418
  let t9;
1538
- if ($[9] !== t5 || $[10] !== t8) {
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
- $[9] = t5;
1552
- $[10] = t8;
1553
- $[11] = t9;
1554
- } else t9 = $[11];
1432
+ $[8] = t5;
1433
+ $[9] = t8;
1434
+ $[10] = t9;
1435
+ } else t9 = $[10];
1555
1436
  return t9;
1556
1437
  };
1557
- //#endregion
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((column_0) => columnFlex(column_0) > 0);
1652
- const totalFlex = flexColumns.reduce((total, column_1) => total + columnFlex(column_1), 0);
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((column_2) => [column_2.id, Math.floor(flexSpace * columnFlex(column_2) / totalFlex)]);
1655
- const flexFits = flexColumns.every((column_3, index) => column_3.getSize() + flexDeltas[index][1] >= (column_3.columnDef.minSize ?? 20));
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((total_0, delta) => total_0 + delta, table.getTotalSize());
1658
- const renderedWidth = (column_4) => column_4.getSize() + (flexWidths.get(column_4.id) ?? 0);
1659
- const headerWidth = (header) => header.column.getLeafColumns().reduce((width, column_5) => width + (flexWidths.get(column_5.id) ?? 0), header.getSize());
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: (index_0) => rows[index_0].id,
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: (index_1) => renderedWidth(centerColumns[index_1]),
1676
- getItemKey: (index_2) => centerColumns[index_2].id,
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((row_0) => row_0.id === focusedRowId);
1582
+ const rowIndex = rows.findIndex((row) => row.id === focusedRowId);
1703
1583
  if (rowIndex >= 0) rowVirtualizer.scrollToIndex(rowIndex);
1704
- const columnIndex = centerColumns.findIndex((column_6) => column_6.id === focusedColumnId);
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 = (width_0) => width_0 > 0 ? /* @__PURE__ */ jsx(TableCell, {
1665
+ const skippedColumns = (width) => width > 0 ? /* @__PURE__ */ jsx(TableCell, {
1786
1666
  "aria-hidden": true,
1787
- style: { width: width_0 },
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: (header_0) => {
1793
- const align = columnAlign(header_0.column);
1794
- const labelled = hasColumnLabel(header_0.column);
1673
+ children: (header) => {
1674
+ const align = columnAlign(header.column);
1675
+ const labelled = hasColumnLabel(header.column);
1795
1676
  return /* @__PURE__ */ jsxs(TableCell, {
1796
- colSpan: header_0.colSpan,
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: header_0.column.getIsSorted(),
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(header_0),
1686
+ width: headerWidth(header),
1805
1687
  whiteSpace: "nowrap",
1806
1688
  overflow: "hidden",
1807
1689
  ...labelled ? CELL_SX : UTILITY_SX,
1808
- ...pinnedSx(header_0.column, true)
1690
+ ...pinnedSx(header.column, true)
1809
1691
  },
1810
- children: [header_0.isPlaceholder ? null : /* @__PURE__ */ jsxs(Box, {
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(header_0.HeaderSortLabel, { children: /* @__PURE__ */ jsx(header_0.FlexRender, {}) })
1831
- }), !disableColumnMenu && /* @__PURE__ */ jsx(header_0.HeaderMenu, { disableGrouping: pagination })]
1832
- }), /* @__PURE__ */ jsx(header_0.HeaderResizeHandle, {})]
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: (cell_0) => cell_0.getIsCovered() ? null : /* @__PURE__ */ jsx(TableCell, {
1839
- align: columnAlign(cell_0.column),
1840
- rowSpan: cell_0.getRowSpan(),
1841
- colSpan: cell_0.getColSpan(),
1842
- tabIndex: cell_0.getCanSelect() ? cell_0.getTabIndex() : void 0,
1843
- onMouseDown: cell_0.getSelectionStartHandler(),
1844
- onMouseEnter: cell_0.getSelectionExtendHandler(),
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: cell_0.getCanSelect() ? "none" : void 0,
1851
- ...hasColumnLabel(cell_0.column) ? CELL_SX : UTILITY_SX,
1852
- ...pinnedSx(cell_0.column),
1853
- ...cellSelectionSx(cell_0)
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: cell_0.getIsGrouped() ? /* @__PURE__ */ jsx(cell_0.GroupCell, {}) : cell_0.row.getIsGrouped() && !cell_0.getIsAggregated() ? null : /* @__PURE__ */ jsx(cell_0.FlexRender, {})
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 = (row_1, index_3) => {
1873
- const cells = windowColumns(row_1.getVisibleCells());
1874
- const focusableCells = row_1.getVisibleCells().some((cell_1) => cell_1.getCanSelect());
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": index_3,
1765
+ "data-index": index,
1878
1766
  hover: true,
1879
- selected: row_1.getIsSelected(),
1767
+ selected: row.getIsSelected(),
1880
1768
  tabIndex: rowAction && !focusableCells ? 0 : void 0,
1881
- onClick: onRowClick && (() => onRowClick(row_1)),
1882
- onDoubleClick: onRowDoubleClick && (() => onRowDoubleClick(row_1)),
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(row_1);
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
- }, row_1.id);
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 = (index_4) => `${index_4}:${rows[index_4].id}`;
1912
- const bodyRows = virtualRows.map(({ index: index_5 }) => rowCache.current.get(cacheKey(index_5)) ?? renderRow(rows[index_5], index_5));
1913
- rowCache.current = new Map(virtualRows.map(({ index: index_6 }, i) => [cacheKey(index_6), bodyRows[i]]));
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
- sx: {
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
- ...sx
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, { children: headerGroups.map((headerGroup, groupIndex_0) => {
1966
- const headers = windowColumns(headerGroup.headers.filter((header_1) => header_1.column.getIsVisible()));
1967
- return /* @__PURE__ */ jsxs(TableRow, {
1968
- sx: { height: COLUMN_HEADER_HEIGHT },
1969
- children: [
1970
- headers.start.map((h_0) => renderHeader(h_0, groupIndex_0)),
1971
- skippedColumns(paddingStart),
1972
- headers.center.map((h_1) => renderHeader(h_1, groupIndex_0)),
1973
- skippedColumns(paddingEnd),
1974
- headers.end.map((h_2) => renderHeader(h_2, groupIndex_0)),
1975
- /* @__PURE__ */ jsx(TableCell, {
1976
- "aria-hidden": true,
1977
- sx: {
1978
- p: 0,
1979
- position: "sticky",
1980
- top: groupIndex_0 * COLUMN_HEADER_HEIGHT,
1981
- zIndex: 3,
1982
- bgcolor: "background.paper"
1983
- }
1984
- })
1985
- ]
1986
- }, headerGroup.id);
1987
- }) }),
1988
- /* @__PURE__ */ jsxs(TableBody, { children: [loading ? /* @__PURE__ */ jsx(table.Skeleton, { rowHeight: ROW_HEIGHT }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
1989
- skippedRows(paddingTop),
1990
- bodyRows,
1991
- skippedRows(paddingBottom)
1992
- ] }), isEmpty && /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, {
1993
- colSpan: visibleColumnCount + 1,
1994
- sx: {
1995
- border: 0,
1996
- p: 0
1997
- },
1998
- children: /* @__PURE__ */ jsx(Box, {
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
- position: "absolute",
2001
- top: headerHeight,
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__ */ jsxs(Box, {
1897
+ children: /* @__PURE__ */ jsx(Box, {
1898
+ className: layoutTableClasses.overlay,
2011
1899
  sx: {
2012
- position: "sticky",
1900
+ position: "absolute",
1901
+ top: headerHeight,
2013
1902
  left: 0,
2014
- width: containerWidth,
2015
- height: "100%",
2016
- display: "flex",
2017
- flexDirection: "column",
2018
- alignItems: "center",
2019
- justifyContent: "center",
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: [/* @__PURE__ */ jsxs("svg", {
2023
- fill: "currentColor",
2024
- width: 96,
2025
- viewBox: "0 0 452 257",
2026
- "aria-hidden": true,
2027
- focusable: "false",
2028
- children: [
2029
- /* @__PURE__ */ jsx("path", {
2030
- className: "no-rows-primary",
2031
- 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"
2032
- }),
2033
- /* @__PURE__ */ jsx("path", {
2034
- className: "no-rows-primary",
2035
- 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"
2036
- }),
2037
- /* @__PURE__ */ jsx("path", {
2038
- className: "no-rows-primary",
2039
- 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"
2040
- }),
2041
- /* @__PURE__ */ jsx("path", {
2042
- className: "no-rows-secondary",
2043
- 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"
2044
- })
2045
- ]
2046
- }), /* @__PURE__ */ jsx(Box, { children: t("Layout.Table.NoRows") })]
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, { pageSizeOptions })
1978
+ pagination && pageSizeOffered && /* @__PURE__ */ jsx(table.Pagination, {
1979
+ className: layoutTableClasses.pagination,
1980
+ pageSizeOptions
1981
+ })
2071
1982
  ]
2072
1983
  }) });
2073
1984
  }
2074
- //#endregion
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