wcz-layout 10.1.10 → 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 (80) hide show
  1. package/dist/Approval-D1TfISUL.mjs.map +1 -1
  2. package/dist/{LayoutTable-CxQNMuwo.d.mts → ChatLayout-BmLySLXy.d.mts} +11 -2
  3. package/dist/ChatLayout-Tpuwo8-b.mjs +1622 -0
  4. package/dist/ChatLayout-Tpuwo8-b.mjs.map +1 -0
  5. package/dist/DialogsContext-D23fJjYR.mjs.map +1 -1
  6. package/dist/Email-rnz3H0x3.mjs.map +1 -1
  7. package/dist/FileMeta-CPBWI_jA.mjs.map +1 -1
  8. package/dist/RouterListItemButton-CF-8w-08.mjs +62 -0
  9. package/dist/RouterListItemButton-CF-8w-08.mjs.map +1 -0
  10. package/dist/{approval-ByDIMRhe.mjs → approval-HB2w5jzc.mjs} +2 -2
  11. package/dist/approval-HB2w5jzc.mjs.map +1 -0
  12. package/dist/auth.mjs +4 -4
  13. package/dist/auth.mjs.map +1 -1
  14. package/dist/components.d.mts +3 -2
  15. package/dist/components.mjs +522 -627
  16. package/dist/components.mjs.map +1 -1
  17. package/dist/{createApi-L3ypB1gH.mjs → createApi-CKgFi53y.mjs} +3 -4
  18. package/dist/createApi-CKgFi53y.mjs.map +1 -0
  19. package/dist/data/client.mjs +3 -4
  20. package/dist/data/client.mjs.map +1 -1
  21. package/dist/data/server.mjs +4 -4
  22. package/dist/data/server.mjs.map +1 -1
  23. package/dist/env-BwFl7nWc.mjs +48 -0
  24. package/dist/env-BwFl7nWc.mjs.map +1 -0
  25. package/dist/{file-CwumKq_P.mjs → file-X1sK4ok6.mjs} +5 -4
  26. package/dist/file-X1sK4ok6.mjs.map +1 -0
  27. package/dist/{file-B4Q_bGLN.mjs → file-tkfsnk5F.mjs} +6 -5
  28. package/dist/file-tkfsnk5F.mjs.map +1 -0
  29. package/dist/generatedChart-k7NEdi5Z.mjs +211 -0
  30. package/dist/generatedChart-k7NEdi5Z.mjs.map +1 -0
  31. package/dist/hooks.d.mts +30 -2
  32. package/dist/hooks.mjs +1750 -1227
  33. package/dist/hooks.mjs.map +1 -1
  34. package/dist/index.d.mts +9 -2
  35. package/dist/index.mjs +1250 -1010
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/middleware.mjs +2 -2
  38. package/dist/middleware.mjs.map +1 -1
  39. package/dist/models.d.mts +2 -2
  40. package/dist/models.mjs.map +1 -1
  41. package/dist/{peoplesoft-D1jPlXr9.mjs → peoplesoft-RnvfLbWH.mjs} +4 -23
  42. package/dist/peoplesoft-RnvfLbWH.mjs.map +1 -0
  43. package/dist/{providers-gKUqnVV5.mjs → providers-BfFg_3eo.mjs} +4 -20
  44. package/dist/providers-BfFg_3eo.mjs.map +1 -0
  45. package/dist/{tokens-DODxwvZ2.mjs → tokens-C4SErO-K.mjs} +10 -4
  46. package/dist/tokens-C4SErO-K.mjs.map +1 -0
  47. package/dist/{utils-obBGIuT3.mjs → utils-C2MZoH9U.mjs} +4 -31
  48. package/dist/utils-C2MZoH9U.mjs.map +1 -0
  49. package/dist/{utils-giYfiv39.d.mts → utils-CNYCSgip.d.mts} +2 -2
  50. package/dist/utils-DnMFybj3.mjs +27 -0
  51. package/dist/utils-DnMFybj3.mjs.map +1 -0
  52. package/dist/utils.d.mts +11 -2
  53. package/dist/utils.mjs +3 -5
  54. package/dist/vite.mjs.map +1 -1
  55. package/package.json +19 -21
  56. package/skills/ai/SKILL.md +156 -97
  57. package/skills/client-db/SKILL.md +104 -90
  58. package/skills/db-schema/SKILL.md +28 -20
  59. package/skills/dialogs/SKILL.md +26 -38
  60. package/skills/forms/SKILL.md +133 -73
  61. package/skills/general/SKILL.md +111 -126
  62. package/skills/general/references/auth.md +3 -7
  63. package/skills/routing/SKILL.md +60 -66
  64. package/skills/server-functions/SKILL.md +71 -26
  65. package/skills/services/SKILL.md +1 -1
  66. package/skills/services/docs/approval.md +4 -4
  67. package/skills/table/SKILL.md +113 -130
  68. package/dist/AggregatedCell-3CIdlmt6.mjs +0 -615
  69. package/dist/AggregatedCell-3CIdlmt6.mjs.map +0 -1
  70. package/dist/RouterListItemButton-B-cQ1XwU.mjs +0 -78
  71. package/dist/RouterListItemButton-B-cQ1XwU.mjs.map +0 -1
  72. package/dist/approval-ByDIMRhe.mjs.map +0 -1
  73. package/dist/createApi-L3ypB1gH.mjs.map +0 -1
  74. package/dist/file-B4Q_bGLN.mjs.map +0 -1
  75. package/dist/file-CwumKq_P.mjs.map +0 -1
  76. package/dist/peoplesoft-D1jPlXr9.mjs.map +0 -1
  77. package/dist/providers-gKUqnVV5.mjs.map +0 -1
  78. package/dist/tokens-DODxwvZ2.mjs.map +0 -1
  79. package/dist/utils-obBGIuT3.mjs.map +0 -1
  80. package/skills/general/references/exports.md +0 -117
@@ -1,16 +1,16 @@
1
- import { d as sanitizeReturnTo, m as loginProvidersQueryOptions } from "./utils-obBGIuT3.mjs";
2
- import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-B-cQ1XwU.mjs";
3
- import { a as fileQueryOptions, i as fileMetasQueryOptions, n as deleteFileMutationOptions, o as fileThumbnailQueryOptions, r as downloadFileMutationOptions, s as openFileMutationOptions } from "./file-CwumKq_P.mjs";
4
- import { T as useDialogs, a as columnAlign, c as hasColumnLabel, f as pinnedClass, g as DEFAULT_PAGE_SIZE_OPTIONS, h as toClipboardText, i as classNames, l as layoutTableClasses, o as columnFlex, p as pinnedSx, r as cellSelectionSx, t as AggregatedCell, u as lookaheadRange } from "./AggregatedCell-3CIdlmt6.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";
@@ -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) {
@@ -277,29 +273,25 @@ const getAncestors = (element) => {
277
273
  };
278
274
  const px = (value) => Number.parseFloat(value) || 0;
279
275
  const Fullscreen = (t0) => {
280
- const $ = c(16);
281
- if ($[0] !== "8cbf7a32d40cad26f487ed7c5e0b8451044a6d7e404e9591bd3919c6daa7488f") {
282
- for (let $i = 0; $i < 16; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
283
- $[0] = "8cbf7a32d40cad26f487ed7c5e0b8451044a6d7e404e9591bd3919c6daa7488f";
284
- }
276
+ const $ = c(15);
285
277
  let children;
286
278
  let props;
287
279
  let sx;
288
- if ($[1] !== t0) {
280
+ if ($[0] !== t0) {
289
281
  ({children, sx, ...props} = t0);
290
- $[1] = t0;
291
- $[2] = children;
292
- $[3] = props;
293
- $[4] = sx;
282
+ $[0] = t0;
283
+ $[1] = children;
284
+ $[2] = props;
285
+ $[3] = sx;
294
286
  } else {
295
- children = $[2];
296
- props = $[3];
297
- sx = $[4];
287
+ children = $[1];
288
+ props = $[2];
289
+ sx = $[3];
298
290
  }
299
291
  const reference = useRef(null);
300
292
  const [height, setHeight] = useState();
301
293
  let t1;
302
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
294
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
303
295
  t1 = () => {
304
296
  const element = reference.current;
305
297
  if (!element) return;
@@ -318,11 +310,11 @@ const Fullscreen = (t0) => {
318
310
  }
319
311
  setHeight(Math.max(0, Math.floor(containerHeight - offsetTop - trailing)));
320
312
  };
321
- $[5] = t1;
322
- } else t1 = $[5];
313
+ $[4] = t1;
314
+ } else t1 = $[4];
323
315
  const recompute = useEffectEvent(t1);
324
316
  let t2;
325
- if ($[6] !== recompute) {
317
+ if ($[5] !== recompute) {
326
318
  t2 = () => {
327
319
  const element_0 = reference.current;
328
320
  if (!element_0) return;
@@ -338,17 +330,17 @@ const Fullscreen = (t0) => {
338
330
  ro.disconnect();
339
331
  };
340
332
  };
341
- $[6] = recompute;
342
- $[7] = t2;
343
- } else t2 = $[7];
333
+ $[5] = recompute;
334
+ $[6] = t2;
335
+ } else t2 = $[6];
344
336
  let t3;
345
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
337
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
346
338
  t3 = [];
347
- $[8] = t3;
348
- } else t3 = $[8];
339
+ $[7] = t3;
340
+ } else t3 = $[7];
349
341
  useLayoutEffect(t2, t3);
350
342
  let t4;
351
- if ($[9] !== height || $[10] !== sx) {
343
+ if ($[8] !== height || $[9] !== sx) {
352
344
  t4 = {
353
345
  display: "flex",
354
346
  flexDirection: "column",
@@ -359,23 +351,23 @@ const Fullscreen = (t0) => {
359
351
  height,
360
352
  ...sx
361
353
  };
362
- $[9] = height;
363
- $[10] = sx;
364
- $[11] = t4;
365
- } else t4 = $[11];
354
+ $[8] = height;
355
+ $[9] = sx;
356
+ $[10] = t4;
357
+ } else t4 = $[10];
366
358
  let t5;
367
- if ($[12] !== children || $[13] !== props || $[14] !== t4) {
359
+ if ($[11] !== children || $[12] !== props || $[13] !== t4) {
368
360
  t5 = /* @__PURE__ */ jsx(Box, {
369
361
  ref: reference,
370
362
  sx: t4,
371
363
  ...props,
372
364
  children
373
365
  });
374
- $[12] = children;
375
- $[13] = props;
376
- $[14] = t4;
377
- $[15] = t5;
378
- } else t5 = $[15];
366
+ $[11] = children;
367
+ $[12] = props;
368
+ $[13] = t4;
369
+ $[14] = t5;
370
+ } else t5 = $[14];
379
371
  return t5;
380
372
  };
381
373
  // src/components/file/Dropzone.tsx
@@ -392,24 +384,20 @@ const baseStyle = {
392
384
  cursor: "pointer"
393
385
  };
394
386
  const Dropzone = (t0) => {
395
- const $ = c(33);
396
- if ($[0] !== "5f7e412e732333f86e343ff1dbc3882283622c609fd4ce6a961ebef933e25fd9") {
397
- for (let $i = 0; $i < 33; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
398
- $[0] = "5f7e412e732333f86e343ff1dbc3882283622c609fd4ce6a961ebef933e25fd9";
399
- }
387
+ const $ = c(32);
400
388
  let progress;
401
389
  let props;
402
390
  let sx;
403
- if ($[1] !== t0) {
391
+ if ($[0] !== t0) {
404
392
  ({sx, progress, ...props} = t0);
405
- $[1] = t0;
406
- $[2] = progress;
407
- $[3] = props;
408
- $[4] = sx;
393
+ $[0] = t0;
394
+ $[1] = progress;
395
+ $[2] = props;
396
+ $[3] = sx;
409
397
  } else {
410
- progress = $[2];
411
- props = $[3];
412
- sx = $[4];
398
+ progress = $[1];
399
+ props = $[2];
400
+ sx = $[3];
413
401
  }
414
402
  const { getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone(props);
415
403
  const { t } = useTranslation();
@@ -418,7 +406,7 @@ const Dropzone = (t0) => {
418
406
  const t2 = theme.vars || theme;
419
407
  let T0;
420
408
  let t3;
421
- 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) {
422
410
  const style = {
423
411
  ...baseStyle,
424
412
  cursor: t1,
@@ -433,65 +421,65 @@ const Dropzone = (t0) => {
433
421
  role: "button",
434
422
  "aria-disabled": props.disabled || void 0
435
423
  });
436
- $[5] = getRootProps;
437
- $[6] = isDragAccept;
438
- $[7] = isDragReject;
439
- $[8] = isFocused;
440
- $[9] = props.disabled;
441
- $[10] = t1;
442
- $[11] = t2.palette.text.disabled;
443
- $[12] = theme;
444
- $[13] = T0;
445
- $[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;
446
434
  } else {
447
- T0 = $[13];
448
- t3 = $[14];
435
+ T0 = $[12];
436
+ t3 = $[13];
449
437
  }
450
438
  let t4;
451
- if ($[15] !== getInputProps) {
439
+ if ($[14] !== getInputProps) {
452
440
  t4 = getInputProps();
453
- $[15] = getInputProps;
454
- $[16] = t4;
455
- } else t4 = $[16];
441
+ $[14] = getInputProps;
442
+ $[15] = t4;
443
+ } else t4 = $[15];
456
444
  let t5;
457
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
445
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
458
446
  t5 = { display: "none" };
459
- $[17] = t5;
460
- } else t5 = $[17];
447
+ $[16] = t5;
448
+ } else t5 = $[16];
461
449
  let t6;
462
- if ($[18] !== t4) {
450
+ if ($[17] !== t4) {
463
451
  t6 = /* @__PURE__ */ jsx("input", {
464
452
  ...t4,
465
453
  style: t5
466
454
  });
467
- $[18] = t4;
468
- $[19] = t6;
469
- } else t6 = $[19];
455
+ $[17] = t4;
456
+ $[18] = t6;
457
+ } else t6 = $[18];
470
458
  let t7;
471
- if ($[20] !== progress) {
459
+ if ($[19] !== progress) {
472
460
  t7 = progress ? /* @__PURE__ */ jsx(CircularProgress, {
473
461
  size: 24,
474
462
  variant: "determinate",
475
463
  value: progress,
476
464
  "aria-label": "Uploading"
477
465
  }) : /* @__PURE__ */ jsx(CloudUpload, {});
478
- $[20] = progress;
479
- $[21] = t7;
480
- } else t7 = $[21];
466
+ $[19] = progress;
467
+ $[20] = t7;
468
+ } else t7 = $[20];
481
469
  let t8;
482
- if ($[22] !== t) {
470
+ if ($[21] !== t) {
483
471
  t8 = t("Layout.File.DragSomeFilesHereOrClickToSelectThem");
484
- $[22] = t;
485
- $[23] = t8;
486
- } else t8 = $[23];
472
+ $[21] = t;
473
+ $[22] = t8;
474
+ } else t8 = $[22];
487
475
  let t9;
488
- if ($[24] !== t8) {
476
+ if ($[23] !== t8) {
489
477
  t9 = /* @__PURE__ */ jsx(Typography, { children: t8 });
490
- $[24] = t8;
491
- $[25] = t9;
492
- } else t9 = $[25];
478
+ $[23] = t8;
479
+ $[24] = t9;
480
+ } else t9 = $[24];
493
481
  let t10;
494
- 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) {
495
483
  t10 = /* @__PURE__ */ jsxs(T0, {
496
484
  ...t3,
497
485
  sx,
@@ -501,60 +489,51 @@ const Dropzone = (t0) => {
501
489
  t9
502
490
  ]
503
491
  });
504
- $[26] = T0;
505
- $[27] = sx;
506
- $[28] = t3;
507
- $[29] = t6;
508
- $[30] = t7;
509
- $[31] = t9;
510
- $[32] = t10;
511
- } 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];
512
500
  return t10;
513
501
  };
514
502
  // src/contexts/FileContext.ts
515
503
  const FileContext = createContext(null);
516
504
  const useFile = () => {
517
- const $ = c(1);
518
- if ($[0] !== "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9") {
519
- for (let $i = 0; $i < 1; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
520
- $[0] = "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9";
521
- }
522
505
  const context = useContext(FileContext);
523
506
  if (!context) throw new Error("FileViewer components must be used within FileViewer");
524
507
  return context;
525
508
  };
526
509
  // src/components/file/fileViewer/common/ActionsMenu.tsx
527
510
  const ActionsMenu = (t0) => {
528
- const $ = c(38);
529
- if ($[0] !== "7ed2ca73a1b83560ce36924119f722bc2853d54808eacf915e739dac0ddf031e") {
530
- for (let $i = 0; $i < 38; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
531
- $[0] = "7ed2ca73a1b83560ce36924119f722bc2853d54808eacf915e739dac0ddf031e";
532
- }
511
+ const $ = c(35);
533
512
  const { meta, anchorEl, onClose } = t0;
534
513
  const { t } = useTranslation();
535
514
  const { fileMetas, onDelete, actions, appName } = useFile();
536
515
  const { alert, confirm } = useDialogs();
537
516
  let t1;
538
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
517
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
539
518
  t1 = { from: rootRouteId };
540
- $[1] = t1;
541
- } else t1 = $[1];
519
+ $[0] = t1;
520
+ } else t1 = $[0];
542
521
  const queryClient = useMatch(t1).context.queryClient;
543
522
  let t2;
544
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
523
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
545
524
  t2 = downloadFileMutationOptions();
546
- $[2] = t2;
547
- } else t2 = $[2];
525
+ $[1] = t2;
526
+ } else t2 = $[1];
548
527
  const { mutate: download, isPending: isDownloading } = useMutation(t2);
549
528
  let t3;
550
- if ($[3] !== queryClient) {
529
+ if ($[2] !== queryClient) {
551
530
  t3 = deleteFileMutationOptions({ queryClient });
552
- $[3] = queryClient;
553
- $[4] = t3;
554
- } else t3 = $[4];
531
+ $[2] = queryClient;
532
+ $[3] = t3;
533
+ } else t3 = $[3];
555
534
  const { mutateAsync: deleteFile, isPending: isDeleting } = useMutation(t3);
556
535
  let t4;
557
- 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) {
558
537
  t4 = () => {
559
538
  onClose();
560
539
  download({
@@ -564,17 +543,15 @@ const ActionsMenu = (t0) => {
564
543
  fileExtension: meta.fileExtension
565
544
  });
566
545
  };
567
- $[5] = appName;
568
- $[6] = download;
569
- $[7] = meta.fileExtension;
570
- $[8] = meta.fileName;
571
- $[9] = meta.id;
572
- $[10] = onClose;
573
- $[11] = t4;
574
- } else t4 = $[11];
546
+ $[4] = appName;
547
+ $[5] = download;
548
+ $[6] = meta;
549
+ $[7] = onClose;
550
+ $[8] = t4;
551
+ } else t4 = $[8];
575
552
  const handleOnDownload = t4;
576
553
  let t5;
577
- 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) {
578
555
  t5 = async () => {
579
556
  onClose();
580
557
  if (!await confirm(t("Layout.File.AreYouSureYouWantToDelete", { name: meta.fileName }), {
@@ -596,112 +573,108 @@ const ActionsMenu = (t0) => {
596
573
  deletedFileMeta: meta
597
574
  });
598
575
  };
599
- $[12] = alert;
600
- $[13] = appName;
601
- $[14] = confirm;
602
- $[15] = deleteFile;
603
- $[16] = fileMetas;
604
- $[17] = meta;
605
- $[18] = onClose;
606
- $[19] = onDelete;
607
- $[20] = t;
608
- $[21] = t5;
609
- } 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];
610
587
  const handleOnDelete = t5;
611
588
  const t6 = !!anchorEl;
612
589
  let t7;
613
- if ($[22] !== actions?.download || $[23] !== handleOnDownload || $[24] !== isDownloading || $[25] !== t) {
590
+ if ($[19] !== actions?.download || $[20] !== handleOnDownload || $[21] !== isDownloading || $[22] !== t) {
614
591
  t7 = actions?.download !== false && /* @__PURE__ */ jsxs(MenuItem, {
615
592
  onClick: handleOnDownload,
616
593
  disabled: isDownloading,
617
594
  children: [/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(FileDownload, {}) }), /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Download") })]
618
595
  });
619
- $[22] = actions?.download;
620
- $[23] = handleOnDownload;
621
- $[24] = isDownloading;
622
- $[25] = t;
623
- $[26] = t7;
624
- } else t7 = $[26];
596
+ $[19] = actions?.download;
597
+ $[20] = handleOnDownload;
598
+ $[21] = isDownloading;
599
+ $[22] = t;
600
+ $[23] = t7;
601
+ } else t7 = $[23];
625
602
  let t8;
626
- if ($[27] !== actions?.delete || $[28] !== handleOnDelete || $[29] !== isDeleting || $[30] !== t) {
603
+ if ($[24] !== actions?.delete || $[25] !== handleOnDelete || $[26] !== isDeleting || $[27] !== t) {
627
604
  t8 = actions?.delete !== false && /* @__PURE__ */ jsxs(MenuItem, {
628
605
  onClick: handleOnDelete,
629
606
  disabled: isDeleting,
630
607
  children: [/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Delete, {}) }), /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Delete") })]
631
608
  });
632
- $[27] = actions?.delete;
633
- $[28] = handleOnDelete;
634
- $[29] = isDeleting;
635
- $[30] = t;
636
- $[31] = t8;
637
- } else t8 = $[31];
609
+ $[24] = actions?.delete;
610
+ $[25] = handleOnDelete;
611
+ $[26] = isDeleting;
612
+ $[27] = t;
613
+ $[28] = t8;
614
+ } else t8 = $[28];
638
615
  let t9;
639
- if ($[32] !== anchorEl || $[33] !== onClose || $[34] !== t6 || $[35] !== t7 || $[36] !== t8) {
616
+ if ($[29] !== anchorEl || $[30] !== onClose || $[31] !== t6 || $[32] !== t7 || $[33] !== t8) {
640
617
  t9 = /* @__PURE__ */ jsxs(Menu, {
641
618
  anchorEl,
642
619
  open: t6,
643
620
  onClose,
644
621
  children: [t7, t8]
645
622
  });
646
- $[32] = anchorEl;
647
- $[33] = onClose;
648
- $[34] = t6;
649
- $[35] = t7;
650
- $[36] = t8;
651
- $[37] = t9;
652
- } 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];
653
630
  return t9;
654
631
  };
655
632
  // src/components/file/fileViewer/FileViewerGrid.tsx
656
633
  const IMAGE_SIZE = 150;
657
634
  const FileViewerGrid = (t0) => {
658
- const $ = c(13);
659
- if ($[0] !== "d34a3a98fae1ee0c7bd956efc6c660c0dd0cdc0eff211c4027f8000d5ce89d2b") {
660
- for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
661
- $[0] = "d34a3a98fae1ee0c7bd956efc6c660c0dd0cdc0eff211c4027f8000d5ce89d2b";
662
- }
635
+ const $ = c(12);
663
636
  const { sx, size, itemBar } = t0;
664
637
  const { fileMetas } = useFile();
665
638
  let t1;
666
- if ($[1] !== sx) {
639
+ if ($[0] !== sx) {
667
640
  t1 = {
668
641
  overflow: "auto",
669
642
  ...sx
670
643
  };
671
- $[1] = sx;
672
- $[2] = t1;
673
- } else t1 = $[2];
644
+ $[0] = sx;
645
+ $[1] = t1;
646
+ } else t1 = $[1];
674
647
  let t2;
675
- if ($[3] !== fileMetas || $[4] !== itemBar || $[5] !== size) {
648
+ if ($[2] !== fileMetas || $[3] !== itemBar || $[4] !== size) {
676
649
  let t3;
677
- if ($[7] !== itemBar || $[8] !== size) {
650
+ if ($[6] !== itemBar || $[7] !== size) {
678
651
  t3 = (fileMeta) => /* @__PURE__ */ jsx(GridFileViewerItem, {
679
652
  meta: fileMeta,
680
653
  size,
681
654
  itemBar
682
655
  }, fileMeta.id);
683
- $[7] = itemBar;
684
- $[8] = size;
685
- $[9] = t3;
686
- } else t3 = $[9];
656
+ $[6] = itemBar;
657
+ $[7] = size;
658
+ $[8] = t3;
659
+ } else t3 = $[8];
687
660
  t2 = fileMetas.map(t3);
688
- $[3] = fileMetas;
689
- $[4] = itemBar;
690
- $[5] = size;
691
- $[6] = t2;
692
- } else t2 = $[6];
661
+ $[2] = fileMetas;
662
+ $[3] = itemBar;
663
+ $[4] = size;
664
+ $[5] = t2;
665
+ } else t2 = $[5];
693
666
  let t3;
694
- if ($[10] !== t1 || $[11] !== t2) {
667
+ if ($[9] !== t1 || $[10] !== t2) {
695
668
  t3 = /* @__PURE__ */ jsx(Stack, {
696
669
  direction: "row",
697
670
  spacing: 1,
698
671
  sx: t1,
699
672
  children: t2
700
673
  });
701
- $[10] = t1;
702
- $[11] = t2;
703
- $[12] = t3;
704
- } else t3 = $[12];
674
+ $[9] = t1;
675
+ $[10] = t2;
676
+ $[11] = t3;
677
+ } else t3 = $[11];
705
678
  return t3;
706
679
  };
707
680
  const GridFileViewerItem = ({ meta, size, itemBar }) => {
@@ -795,7 +768,7 @@ const GridFileViewerItem = ({ meta, size, itemBar }) => {
795
768
  }),
796
769
  actionIcon: hasActions && /* @__PURE__ */ jsx(IconButton, {
797
770
  sx: { color: grey[100] },
798
- onClick: (event_0) => setMenuAnchor(event_0.currentTarget),
771
+ onClick: (event) => setMenuAnchor(event.currentTarget),
799
772
  "aria-label": `Actions for ${fileName}`,
800
773
  "aria-haspopup": "menu",
801
774
  children: /* @__PURE__ */ jsx(MoreVert, {})
@@ -809,30 +782,26 @@ const GridFileViewerItem = ({ meta, size, itemBar }) => {
809
782
  };
810
783
  // src/components/file/fileViewer/FileViewerList.tsx
811
784
  const FileViewerList = (t0) => {
812
- const $ = c(6);
813
- if ($[0] !== "def12bfee125db96c0e25478a726cf153aa928252368ec27de2bcba8f364adae") {
814
- for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
815
- $[0] = "def12bfee125db96c0e25478a726cf153aa928252368ec27de2bcba8f364adae";
816
- }
785
+ const $ = c(5);
817
786
  const { sx } = t0;
818
787
  const { fileMetas } = useFile();
819
788
  let t1;
820
- if ($[1] !== fileMetas) {
789
+ if ($[0] !== fileMetas) {
821
790
  t1 = fileMetas.map(_temp$1);
822
- $[1] = fileMetas;
823
- $[2] = t1;
824
- } else t1 = $[2];
791
+ $[0] = fileMetas;
792
+ $[1] = t1;
793
+ } else t1 = $[1];
825
794
  let t2;
826
- if ($[3] !== sx || $[4] !== t1) {
795
+ if ($[2] !== sx || $[3] !== t1) {
827
796
  t2 = /* @__PURE__ */ jsx(List, {
828
797
  dense: true,
829
798
  sx,
830
799
  children: t1
831
800
  });
832
- $[3] = sx;
833
- $[4] = t1;
834
- $[5] = t2;
835
- } else t2 = $[5];
801
+ $[2] = sx;
802
+ $[3] = t1;
803
+ $[4] = t2;
804
+ } else t2 = $[4];
836
805
  return t2;
837
806
  };
838
807
  const ListFileViewerItem = ({ meta }) => {
@@ -897,11 +866,7 @@ function _temp$1(fileMeta) {
897
866
  }
898
867
  // src/components/file/fileViewer/ImageViewer.tsx
899
868
  const ImageViewer = (t0) => {
900
- const $ = c(56);
901
- if ($[0] !== "c362b5d42dedaecf837e96525daab6341b34e31726fb1413e37d4a5eb8122071") {
902
- for (let $i = 0; $i < 56; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
903
- $[0] = "c362b5d42dedaecf837e96525daab6341b34e31726fb1413e37d4a5eb8122071";
904
- }
869
+ const $ = c(55);
905
870
  const { metaId } = t0;
906
871
  const { fileMetas, setImageId, appName } = useFile();
907
872
  let meta;
@@ -909,32 +874,32 @@ const ImageViewer = (t0) => {
909
874
  let previous;
910
875
  let t1;
911
876
  let t2;
912
- if ($[1] !== appName || $[2] !== fileMetas || $[3] !== metaId) {
877
+ if ($[0] !== appName || $[1] !== fileMetas || $[2] !== metaId) {
913
878
  let t3;
914
- if ($[9] !== metaId) {
879
+ if ($[8] !== metaId) {
915
880
  t3 = (m) => m.id === metaId;
916
- $[9] = metaId;
917
- $[10] = t3;
918
- } else t3 = $[10];
881
+ $[8] = metaId;
882
+ $[9] = t3;
883
+ } else t3 = $[9];
919
884
  meta = fileMetas.find(t3);
920
885
  let images;
921
886
  let t4;
922
- if ($[11] !== fileMetas || $[12] !== metaId) {
887
+ if ($[10] !== fileMetas || $[11] !== metaId) {
923
888
  images = fileMetas.filter(_temp);
924
889
  let t5;
925
- if ($[15] !== metaId) {
890
+ if ($[14] !== metaId) {
926
891
  t5 = (m_1) => m_1.id === metaId;
927
- $[15] = metaId;
928
- $[16] = t5;
929
- } else t5 = $[16];
892
+ $[14] = metaId;
893
+ $[15] = t5;
894
+ } else t5 = $[15];
930
895
  t4 = images.findIndex(t5);
931
- $[11] = fileMetas;
932
- $[12] = metaId;
933
- $[13] = images;
934
- $[14] = t4;
896
+ $[10] = fileMetas;
897
+ $[11] = metaId;
898
+ $[12] = images;
899
+ $[13] = t4;
935
900
  } else {
936
- images = $[13];
937
- t4 = $[14];
901
+ images = $[12];
902
+ t4 = $[13];
938
903
  }
939
904
  const index = t4;
940
905
  previous = index > 0 ? images[index - 1] : void 0;
@@ -944,42 +909,42 @@ const ImageViewer = (t0) => {
944
909
  id: meta?.id ?? "",
945
910
  appName
946
911
  });
947
- $[1] = appName;
948
- $[2] = fileMetas;
949
- $[3] = metaId;
950
- $[4] = meta;
951
- $[5] = next;
952
- $[6] = previous;
953
- $[7] = t1;
954
- $[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;
955
920
  } else {
956
- meta = $[4];
957
- next = $[5];
958
- previous = $[6];
959
- t1 = $[7];
960
- t2 = $[8];
921
+ meta = $[3];
922
+ next = $[4];
923
+ previous = $[5];
924
+ t1 = $[6];
925
+ t2 = $[7];
961
926
  }
962
927
  const t3 = !!meta;
963
928
  let t4;
964
- if ($[17] !== t1 || $[18] !== t3) {
929
+ if ($[16] !== t1 || $[17] !== t3) {
965
930
  t4 = {
966
931
  ...t1,
967
932
  enabled: t3
968
933
  };
969
- $[17] = t1;
970
- $[18] = t3;
971
- $[19] = t4;
972
- } else t4 = $[19];
934
+ $[16] = t1;
935
+ $[17] = t3;
936
+ $[18] = t4;
937
+ } else t4 = $[18];
973
938
  const { data: source, isPending } = t2(t4);
974
939
  let t5;
975
- if ($[20] !== setImageId) {
940
+ if ($[19] !== setImageId) {
976
941
  t5 = () => setImageId("");
977
- $[20] = setImageId;
978
- $[21] = t5;
979
- } else t5 = $[21];
942
+ $[19] = setImageId;
943
+ $[20] = t5;
944
+ } else t5 = $[20];
980
945
  const onClose = t5;
981
946
  let t6;
982
- if ($[22] !== metaId || $[23] !== next || $[24] !== onClose || $[25] !== previous || $[26] !== setImageId) {
947
+ if ($[21] !== metaId || $[22] !== next || $[23] !== onClose || $[24] !== previous || $[25] !== setImageId) {
983
948
  t6 = () => {
984
949
  if (!metaId) return;
985
950
  const handleOnKeydown = (event) => {
@@ -995,45 +960,45 @@ const ImageViewer = (t0) => {
995
960
  globalThis.addEventListener("keydown", handleOnKeydown);
996
961
  return () => globalThis.removeEventListener("keydown", handleOnKeydown);
997
962
  };
998
- $[22] = metaId;
999
- $[23] = next;
1000
- $[24] = onClose;
1001
- $[25] = previous;
1002
- $[26] = setImageId;
1003
- $[27] = t6;
1004
- } 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];
1005
970
  let t7;
1006
- if ($[28] !== metaId || $[29] !== next || $[30] !== previous) {
971
+ if ($[27] !== metaId || $[28] !== next || $[29] !== previous) {
1007
972
  t7 = [
1008
973
  metaId,
1009
974
  previous,
1010
975
  next
1011
976
  ];
1012
- $[28] = metaId;
1013
- $[29] = next;
1014
- $[30] = previous;
1015
- $[31] = t7;
1016
- } else t7 = $[31];
977
+ $[27] = metaId;
978
+ $[28] = next;
979
+ $[29] = previous;
980
+ $[30] = t7;
981
+ } else t7 = $[30];
1017
982
  useEffect(t6, t7);
1018
983
  if (!meta) return null;
1019
984
  let t8;
1020
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
985
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
1021
986
  t8 = {
1022
987
  position: "fixed",
1023
988
  top: "50%",
1024
989
  transform: "translateY(-50%)"
1025
990
  };
1026
- $[32] = t8;
1027
- } else t8 = $[32];
991
+ $[31] = t8;
992
+ } else t8 = $[31];
1028
993
  const navSx = t8;
1029
994
  let t9;
1030
- if ($[33] !== meta.fileName) {
995
+ if ($[32] !== meta.fileName) {
1031
996
  t9 = { paper: { "aria-label": meta.fileName } };
1032
- $[33] = meta.fileName;
1033
- $[34] = t9;
1034
- } else t9 = $[34];
997
+ $[32] = meta.fileName;
998
+ $[33] = t9;
999
+ } else t9 = $[33];
1035
1000
  let t10;
1036
- if ($[35] !== isPending || $[36] !== meta.fileName || $[37] !== source) {
1001
+ if ($[34] !== isPending || $[35] !== meta.fileName || $[36] !== source) {
1037
1002
  t10 = isPending ? /* @__PURE__ */ jsx(Skeleton, {
1038
1003
  variant: "rectangular",
1039
1004
  sx: {
@@ -1058,13 +1023,13 @@ const ImageViewer = (t0) => {
1058
1023
  }
1059
1024
  }
1060
1025
  });
1061
- $[35] = isPending;
1062
- $[36] = meta.fileName;
1063
- $[37] = source;
1064
- $[38] = t10;
1065
- } else t10 = $[38];
1026
+ $[34] = isPending;
1027
+ $[35] = meta.fileName;
1028
+ $[36] = source;
1029
+ $[37] = t10;
1030
+ } else t10 = $[37];
1066
1031
  let t11;
1067
- if ($[39] !== previous || $[40] !== setImageId) {
1032
+ if ($[38] !== previous || $[39] !== setImageId) {
1068
1033
  t11 = previous && /* @__PURE__ */ jsx(Fab, {
1069
1034
  size: "medium",
1070
1035
  onClick: () => setImageId(previous.id),
@@ -1075,12 +1040,12 @@ const ImageViewer = (t0) => {
1075
1040
  },
1076
1041
  children: /* @__PURE__ */ jsx(ChevronLeft, {})
1077
1042
  });
1078
- $[39] = previous;
1079
- $[40] = setImageId;
1080
- $[41] = t11;
1081
- } else t11 = $[41];
1043
+ $[38] = previous;
1044
+ $[39] = setImageId;
1045
+ $[40] = t11;
1046
+ } else t11 = $[40];
1082
1047
  let t12;
1083
- if ($[42] !== next || $[43] !== setImageId) {
1048
+ if ($[41] !== next || $[42] !== setImageId) {
1084
1049
  t12 = next && /* @__PURE__ */ jsx(Fab, {
1085
1050
  size: "medium",
1086
1051
  onClick: () => setImageId(next.id),
@@ -1091,27 +1056,27 @@ const ImageViewer = (t0) => {
1091
1056
  },
1092
1057
  children: /* @__PURE__ */ jsx(ChevronRight, {})
1093
1058
  });
1094
- $[42] = next;
1095
- $[43] = setImageId;
1096
- $[44] = t12;
1097
- } else t12 = $[44];
1059
+ $[41] = next;
1060
+ $[42] = setImageId;
1061
+ $[43] = t12;
1062
+ } else t12 = $[43];
1098
1063
  let t13;
1099
1064
  let t14;
1100
- if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
1065
+ if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
1101
1066
  t13 = {
1102
1067
  position: "fixed",
1103
1068
  top: 8,
1104
1069
  right: 8
1105
1070
  };
1106
1071
  t14 = /* @__PURE__ */ jsx(Close, {});
1107
- $[45] = t13;
1108
- $[46] = t14;
1072
+ $[44] = t13;
1073
+ $[45] = t14;
1109
1074
  } else {
1110
- t13 = $[45];
1111
- t14 = $[46];
1075
+ t13 = $[44];
1076
+ t14 = $[45];
1112
1077
  }
1113
1078
  let t15;
1114
- if ($[47] !== onClose) {
1079
+ if ($[46] !== onClose) {
1115
1080
  t15 = /* @__PURE__ */ jsx(Fab, {
1116
1081
  size: "medium",
1117
1082
  onClick: onClose,
@@ -1119,11 +1084,11 @@ const ImageViewer = (t0) => {
1119
1084
  sx: t13,
1120
1085
  children: t14
1121
1086
  });
1122
- $[47] = onClose;
1123
- $[48] = t15;
1124
- } else t15 = $[48];
1087
+ $[46] = onClose;
1088
+ $[47] = t15;
1089
+ } else t15 = $[47];
1125
1090
  let t16;
1126
- 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) {
1127
1092
  t16 = /* @__PURE__ */ jsxs(Dialog, {
1128
1093
  open: true,
1129
1094
  onClose,
@@ -1136,14 +1101,14 @@ const ImageViewer = (t0) => {
1136
1101
  t15
1137
1102
  ]
1138
1103
  });
1139
- $[49] = onClose;
1140
- $[50] = t10;
1141
- $[51] = t11;
1142
- $[52] = t12;
1143
- $[53] = t15;
1144
- $[54] = t9;
1145
- $[55] = t16;
1146
- } 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];
1147
1112
  return t16;
1148
1113
  };
1149
1114
  function _temp(m_0) {
@@ -1151,45 +1116,41 @@ function _temp(m_0) {
1151
1116
  }
1152
1117
  // src/components/file/FileViewer.tsx
1153
1118
  const FileViewer = (t0) => {
1154
- const $ = c(22);
1155
- if ($[0] !== "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e") {
1156
- for (let $i = 0; $i < 22; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1157
- $[0] = "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e";
1158
- }
1119
+ const $ = c(21);
1159
1120
  const { appName, subId, onDelete, actions, children } = t0;
1160
1121
  let t1;
1161
- if ($[1] !== appName || $[2] !== subId) {
1122
+ if ($[0] !== appName || $[1] !== subId) {
1162
1123
  t1 = fileMetasQueryOptions({
1163
1124
  appName,
1164
1125
  subId
1165
1126
  });
1166
- $[1] = appName;
1167
- $[2] = subId;
1168
- $[3] = t1;
1169
- } else t1 = $[3];
1127
+ $[0] = appName;
1128
+ $[1] = subId;
1129
+ $[2] = t1;
1130
+ } else t1 = $[2];
1170
1131
  const t2 = !!subId;
1171
1132
  let t3;
1172
- if ($[4] !== t1 || $[5] !== t2) {
1133
+ if ($[3] !== t1 || $[4] !== t2) {
1173
1134
  t3 = {
1174
1135
  ...t1,
1175
1136
  enabled: t2
1176
1137
  };
1177
- $[4] = t1;
1178
- $[5] = t2;
1179
- $[6] = t3;
1180
- } else t3 = $[6];
1138
+ $[3] = t1;
1139
+ $[4] = t2;
1140
+ $[5] = t3;
1141
+ } else t3 = $[5];
1181
1142
  const { data: t4 } = useQuery(t3);
1182
1143
  let t5;
1183
- if ($[7] !== t4) {
1144
+ if ($[6] !== t4) {
1184
1145
  t5 = t4 === void 0 ? [] : t4;
1185
- $[7] = t4;
1186
- $[8] = t5;
1187
- } else t5 = $[8];
1146
+ $[6] = t4;
1147
+ $[7] = t5;
1148
+ } else t5 = $[7];
1188
1149
  const fileMetas = t5;
1189
1150
  const [imageId, setImageId] = useState("");
1190
1151
  if (fileMetas.length === 0) return null;
1191
1152
  let t6;
1192
- if ($[9] !== actions || $[10] !== appName || $[11] !== fileMetas || $[12] !== onDelete) {
1153
+ if ($[8] !== actions || $[9] !== appName || $[10] !== fileMetas || $[11] !== onDelete) {
1193
1154
  t6 = {
1194
1155
  appName,
1195
1156
  fileMetas,
@@ -1197,208 +1158,146 @@ const FileViewer = (t0) => {
1197
1158
  actions,
1198
1159
  setImageId
1199
1160
  };
1200
- $[9] = actions;
1201
- $[10] = appName;
1202
- $[11] = fileMetas;
1203
- $[12] = onDelete;
1204
- $[13] = t6;
1205
- } else t6 = $[13];
1161
+ $[8] = actions;
1162
+ $[9] = appName;
1163
+ $[10] = fileMetas;
1164
+ $[11] = onDelete;
1165
+ $[12] = t6;
1166
+ } else t6 = $[12];
1206
1167
  let t7;
1207
- if ($[14] !== children) {
1168
+ if ($[13] !== children) {
1208
1169
  t7 = children({
1209
1170
  Grid: FileViewerGrid,
1210
1171
  List: FileViewerList
1211
1172
  });
1212
- $[14] = children;
1213
- $[15] = t7;
1214
- } else t7 = $[15];
1173
+ $[13] = children;
1174
+ $[14] = t7;
1175
+ } else t7 = $[14];
1215
1176
  let t8;
1216
- if ($[16] !== imageId) {
1177
+ if ($[15] !== imageId) {
1217
1178
  t8 = /* @__PURE__ */ jsx(ImageViewer, { metaId: imageId });
1218
- $[16] = imageId;
1219
- $[17] = t8;
1220
- } else t8 = $[17];
1179
+ $[15] = imageId;
1180
+ $[16] = t8;
1181
+ } else t8 = $[16];
1221
1182
  let t9;
1222
- if ($[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
1183
+ if ($[17] !== t6 || $[18] !== t7 || $[19] !== t8) {
1223
1184
  t9 = /* @__PURE__ */ jsxs(FileContext.Provider, {
1224
1185
  value: t6,
1225
1186
  children: [t7, t8]
1226
1187
  });
1227
- $[18] = t6;
1228
- $[19] = t7;
1229
- $[20] = t8;
1230
- $[21] = t9;
1231
- } else t9 = $[21];
1188
+ $[17] = t6;
1189
+ $[18] = t7;
1190
+ $[19] = t8;
1191
+ $[20] = t9;
1192
+ } else t9 = $[20];
1232
1193
  return t9;
1233
1194
  };
1234
1195
  // src/components/router/RouterButton.tsx
1235
- const Component$3 = React.forwardRef(function ButtonComponent(props, reference) {
1236
- const $ = c(4);
1237
- if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
1238
- for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1239
- $[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
1240
- }
1196
+ const Component$2 = React.forwardRef(function ButtonComponent(props, reference) {
1197
+ const $ = c(3);
1241
1198
  let t0;
1242
- if ($[1] !== props || $[2] !== reference) {
1199
+ if ($[0] !== props || $[1] !== reference) {
1243
1200
  t0 = /* @__PURE__ */ jsx(Button, {
1244
1201
  ref: reference,
1245
1202
  component: "a",
1246
1203
  ...props
1247
1204
  });
1248
- $[1] = props;
1249
- $[2] = reference;
1250
- $[3] = t0;
1251
- } else t0 = $[3];
1205
+ $[0] = props;
1206
+ $[1] = reference;
1207
+ $[2] = t0;
1208
+ } else t0 = $[2];
1252
1209
  return t0;
1253
1210
  });
1254
- const CreatedComponent$3 = createLink(Component$3);
1211
+ const CreatedComponent$2 = createLink(Component$2);
1255
1212
  const RouterButton = (props) => {
1256
- const $ = c(3);
1257
- if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
1258
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1259
- $[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
1260
- }
1213
+ const $ = c(2);
1261
1214
  let t0;
1262
- if ($[1] !== props) {
1263
- t0 = /* @__PURE__ */ jsx(CreatedComponent$3, { ...props });
1264
- $[1] = props;
1265
- $[2] = t0;
1266
- } else t0 = $[2];
1215
+ if ($[0] !== props) {
1216
+ t0 = /* @__PURE__ */ jsx(CreatedComponent$2, { ...props });
1217
+ $[0] = props;
1218
+ $[1] = t0;
1219
+ } else t0 = $[1];
1267
1220
  return t0;
1268
1221
  };
1269
1222
  // src/components/router/RouterFab.tsx
1270
- const Component$2 = React.forwardRef(function FabComponent(props, reference) {
1271
- const $ = c(4);
1272
- if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
1273
- for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1274
- $[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
1275
- }
1223
+ const Component$1 = React.forwardRef(function FabComponent(props, reference) {
1224
+ const $ = c(3);
1276
1225
  let t0;
1277
- if ($[1] !== props || $[2] !== reference) {
1226
+ if ($[0] !== props || $[1] !== reference) {
1278
1227
  t0 = /* @__PURE__ */ jsx(Fab, {
1279
1228
  ref: reference,
1280
1229
  component: "a",
1281
1230
  ...props
1282
1231
  });
1283
- $[1] = props;
1284
- $[2] = reference;
1285
- $[3] = t0;
1286
- } else t0 = $[3];
1287
- return t0;
1288
- });
1289
- const CreatedComponent$2 = createLink(Component$2);
1290
- const RouterFab = (props) => {
1291
- const $ = c(3);
1292
- if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
1293
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1294
- $[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
1295
- }
1296
- let t0;
1297
- if ($[1] !== props) {
1298
- t0 = /* @__PURE__ */ jsx(CreatedComponent$2, { ...props });
1299
- $[1] = props;
1232
+ $[0] = props;
1233
+ $[1] = reference;
1300
1234
  $[2] = t0;
1301
1235
  } else t0 = $[2];
1302
1236
  return t0;
1303
- };
1304
- // src/components/router/RouterLink.tsx
1305
- const Component$1 = React.forwardRef(function LinkComponent(props, reference) {
1306
- const $ = c(4);
1307
- if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
1308
- for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1309
- $[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
1310
- }
1311
- let t0;
1312
- if ($[1] !== props || $[2] !== reference) {
1313
- t0 = /* @__PURE__ */ jsx(Link, {
1314
- ref: reference,
1315
- ...props
1316
- });
1317
- $[1] = props;
1318
- $[2] = reference;
1319
- $[3] = t0;
1320
- } else t0 = $[3];
1321
- return t0;
1322
1237
  });
1323
1238
  const CreatedComponent$1 = createLink(Component$1);
1324
- const RouterLink = (props) => {
1325
- const $ = c(3);
1326
- if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
1327
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1328
- $[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
1329
- }
1239
+ const RouterFab = (props) => {
1240
+ const $ = c(2);
1330
1241
  let t0;
1331
- if ($[1] !== props) {
1242
+ if ($[0] !== props) {
1332
1243
  t0 = /* @__PURE__ */ jsx(CreatedComponent$1, { ...props });
1333
- $[1] = props;
1334
- $[2] = t0;
1335
- } else t0 = $[2];
1244
+ $[0] = props;
1245
+ $[1] = t0;
1246
+ } else t0 = $[1];
1336
1247
  return t0;
1337
1248
  };
1338
1249
  // src/components/router/RouterTab.tsx
1339
1250
  const Component = React.forwardRef(function TabComponent(props, reference) {
1340
- const $ = c(4);
1341
- if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
1342
- for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1343
- $[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
1344
- }
1251
+ const $ = c(3);
1345
1252
  let t0;
1346
- if ($[1] !== props || $[2] !== reference) {
1253
+ if ($[0] !== props || $[1] !== reference) {
1347
1254
  t0 = /* @__PURE__ */ jsx(Tab, {
1348
1255
  ref: reference,
1349
1256
  component: "a",
1350
1257
  ...props
1351
1258
  });
1352
- $[1] = props;
1353
- $[2] = reference;
1354
- $[3] = t0;
1355
- } else t0 = $[3];
1259
+ $[0] = props;
1260
+ $[1] = reference;
1261
+ $[2] = t0;
1262
+ } else t0 = $[2];
1356
1263
  return t0;
1357
1264
  });
1358
1265
  const CreatedComponent = createLink(Component);
1359
1266
  const RouterTab = (props) => {
1360
- const $ = c(3);
1361
- if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
1362
- for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1363
- $[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
1364
- }
1267
+ const $ = c(2);
1365
1268
  let t0;
1366
- if ($[1] !== props) {
1269
+ if ($[0] !== props) {
1367
1270
  t0 = /* @__PURE__ */ jsx(CreatedComponent, { ...props });
1368
- $[1] = props;
1369
- $[2] = t0;
1370
- } else t0 = $[2];
1271
+ $[0] = props;
1272
+ $[1] = t0;
1273
+ } else t0 = $[1];
1371
1274
  return t0;
1372
1275
  };
1373
1276
  // src/components/router/RouterNotFound.tsx
1374
1277
  function RouterNotFound() {
1375
- const $ = c(9);
1376
- if ($[0] !== "b85bee0f4f29e1fb858e96e13dc2fcbb04a6bbd08c5b88b6d4df66a8869ddb03") {
1377
- for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1378
- $[0] = "b85bee0f4f29e1fb858e96e13dc2fcbb04a6bbd08c5b88b6d4df66a8869ddb03";
1379
- }
1278
+ const $ = c(8);
1380
1279
  const { t } = useTranslation();
1381
1280
  let t0;
1382
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1281
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1383
1282
  t0 = {
1384
1283
  alignItems: "center",
1385
1284
  justifyContent: "center",
1386
1285
  px: 2
1387
1286
  };
1388
- $[1] = t0;
1389
- } else t0 = $[1];
1287
+ $[0] = t0;
1288
+ } else t0 = $[0];
1390
1289
  let t1;
1391
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1290
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1392
1291
  t1 = {
1393
1292
  display: "flex",
1394
1293
  alignItems: "center",
1395
1294
  m: 0,
1396
1295
  mb: 4
1397
1296
  };
1398
- $[2] = t1;
1399
- } else t1 = $[2];
1297
+ $[1] = t1;
1298
+ } else t1 = $[1];
1400
1299
  let t2;
1401
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1300
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1402
1301
  t2 = /* @__PURE__ */ jsx(Typography, {
1403
1302
  variant: "h3",
1404
1303
  component: "span",
@@ -1408,10 +1307,10 @@ function RouterNotFound() {
1408
1307
  },
1409
1308
  children: "404"
1410
1309
  });
1411
- $[3] = t2;
1412
- } else t2 = $[3];
1310
+ $[2] = t2;
1311
+ } else t2 = $[2];
1413
1312
  let t3;
1414
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
1313
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1415
1314
  t3 = /* @__PURE__ */ jsx(Divider, {
1416
1315
  component: "span",
1417
1316
  role: "presentation",
@@ -1419,16 +1318,16 @@ function RouterNotFound() {
1419
1318
  flexItem: true,
1420
1319
  sx: { mx: 3 }
1421
1320
  });
1422
- $[4] = t3;
1423
- } else t3 = $[4];
1321
+ $[3] = t3;
1322
+ } else t3 = $[3];
1424
1323
  let t4;
1425
- if ($[5] !== t) {
1324
+ if ($[4] !== t) {
1426
1325
  t4 = t("Layout.ThisPageCouldNotBeFound");
1427
- $[5] = t;
1428
- $[6] = t4;
1429
- } else t4 = $[6];
1326
+ $[4] = t;
1327
+ $[5] = t4;
1328
+ } else t4 = $[5];
1430
1329
  let t5;
1431
- if ($[7] !== t4) {
1330
+ if ($[6] !== t4) {
1432
1331
  t5 = /* @__PURE__ */ jsx(Fullscreen, {
1433
1332
  sx: t0,
1434
1333
  children: /* @__PURE__ */ jsxs(Box, {
@@ -1445,61 +1344,57 @@ function RouterNotFound() {
1445
1344
  ]
1446
1345
  })
1447
1346
  });
1448
- $[7] = t4;
1449
- $[8] = t5;
1450
- } else t5 = $[8];
1347
+ $[6] = t4;
1348
+ $[7] = t5;
1349
+ } else t5 = $[7];
1451
1350
  return t5;
1452
1351
  }
1453
1352
  // src/components/router/RouterError.tsx
1454
1353
  const RouterError = (t0) => {
1455
- const $ = c(12);
1456
- if ($[0] !== "99b46ee567229b93d88dd5dde9a07d2a370c1710d4e834f04c33ae486b9ec8a5") {
1457
- for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1458
- $[0] = "99b46ee567229b93d88dd5dde9a07d2a370c1710d4e834f04c33ae486b9ec8a5";
1459
- }
1354
+ const $ = c(11);
1460
1355
  const { error } = t0;
1461
1356
  const isError = error instanceof Error;
1462
1357
  let t1;
1463
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1358
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1464
1359
  t1 = {
1465
1360
  alignItems: "center",
1466
1361
  justifyContent: "center",
1467
1362
  px: 2
1468
1363
  };
1469
- $[1] = t1;
1470
- } else t1 = $[1];
1364
+ $[0] = t1;
1365
+ } else t1 = $[0];
1471
1366
  let t2;
1472
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1367
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1473
1368
  t2 = {
1474
1369
  display: "flex",
1475
1370
  alignItems: "center",
1476
1371
  m: 0,
1477
1372
  mb: 4
1478
1373
  };
1479
- $[2] = t2;
1480
- } else t2 = $[2];
1374
+ $[1] = t2;
1375
+ } else t2 = $[1];
1481
1376
  let t3;
1482
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1377
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1483
1378
  t3 = {
1484
1379
  fontWeight: 500,
1485
1380
  lineHeight: 1
1486
1381
  };
1487
- $[3] = t3;
1488
- } else t3 = $[3];
1382
+ $[2] = t3;
1383
+ } else t3 = $[2];
1489
1384
  const t4 = isError && error.name || "500";
1490
1385
  let t5;
1491
- if ($[4] !== t4) {
1386
+ if ($[3] !== t4) {
1492
1387
  t5 = /* @__PURE__ */ jsx(Typography, {
1493
1388
  variant: "h3",
1494
1389
  component: "span",
1495
1390
  sx: t3,
1496
1391
  children: t4
1497
1392
  });
1498
- $[4] = t4;
1499
- $[5] = t5;
1500
- } else t5 = $[5];
1393
+ $[3] = t4;
1394
+ $[4] = t5;
1395
+ } else t5 = $[4];
1501
1396
  let t6;
1502
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1397
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
1503
1398
  t6 = /* @__PURE__ */ jsx(Divider, {
1504
1399
  component: "span",
1505
1400
  role: "presentation",
@@ -1507,21 +1402,21 @@ const RouterError = (t0) => {
1507
1402
  flexItem: true,
1508
1403
  sx: { mx: 3 }
1509
1404
  });
1510
- $[6] = t6;
1511
- } else t6 = $[6];
1405
+ $[5] = t6;
1406
+ } else t6 = $[5];
1512
1407
  const t7 = isError ? error.message : String(error);
1513
1408
  let t8;
1514
- if ($[7] !== t7) {
1409
+ if ($[6] !== t7) {
1515
1410
  t8 = /* @__PURE__ */ jsx(Typography, {
1516
1411
  variant: "h5",
1517
1412
  component: "span",
1518
1413
  children: t7
1519
1414
  });
1520
- $[7] = t7;
1521
- $[8] = t8;
1522
- } else t8 = $[8];
1415
+ $[6] = t7;
1416
+ $[7] = t8;
1417
+ } else t8 = $[7];
1523
1418
  let t9;
1524
- if ($[9] !== t5 || $[10] !== t8) {
1419
+ if ($[8] !== t5 || $[9] !== t8) {
1525
1420
  t9 = /* @__PURE__ */ jsx(Fullscreen, {
1526
1421
  sx: t1,
1527
1422
  children: /* @__PURE__ */ jsxs(Box, {
@@ -1534,10 +1429,10 @@ const RouterError = (t0) => {
1534
1429
  ]
1535
1430
  })
1536
1431
  });
1537
- $[9] = t5;
1538
- $[10] = t8;
1539
- $[11] = t9;
1540
- } else t9 = $[11];
1432
+ $[8] = t5;
1433
+ $[9] = t8;
1434
+ $[10] = t9;
1435
+ } else t9 = $[10];
1541
1436
  return t9;
1542
1437
  };
1543
1438
  // src/components/table/LayoutTable.tsx
@@ -1633,22 +1528,22 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1633
1528
  observer.observe(container);
1634
1529
  return () => observer.disconnect();
1635
1530
  }, []);
1636
- const flexColumns = table.getVisibleLeafColumns().filter((column_0) => columnFlex(column_0) > 0);
1637
- 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);
1638
1533
  const flexSpace = containerWidth - table.getTotalSize();
1639
- const flexDeltas = flexColumns.map((column_2) => [column_2.id, Math.floor(flexSpace * columnFlex(column_2) / totalFlex)]);
1640
- 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));
1641
1536
  const flexWidths = new Map(flexFits ? flexDeltas : []);
1642
- const tableWidth = [...flexWidths.values()].reduce((total_0, delta) => total_0 + delta, table.getTotalSize());
1643
- const renderedWidth = (column_4) => column_4.getSize() + (flexWidths.get(column_4.id) ?? 0);
1644
- 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());
1645
1540
  const virtualizeColumns = headerGroups.length === 1 && !loading;
1646
1541
  const rowVirtualizer = useVirtualizer({
1647
1542
  count: rows.length,
1648
1543
  getScrollElement: () => containerRef.current,
1649
1544
  estimateSize: () => ROW_HEIGHT,
1650
1545
  measureElement: (element) => element.getBoundingClientRect().height,
1651
- getItemKey: (index_0) => rows[index_0].id,
1546
+ getItemKey: (index) => rows[index].id,
1652
1547
  overscan: ROW_OVERSCAN,
1653
1548
  rangeExtractor: (range) => lookaheadRange(range, rowVirtualizer.scrollDirection, ROW_LOOKAHEAD),
1654
1549
  scrollMargin: headerHeight,
@@ -1657,8 +1552,8 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1657
1552
  const columnVirtualizer = useVirtualizer({
1658
1553
  count: virtualizeColumns ? centerColumns.length : 0,
1659
1554
  getScrollElement: () => containerRef.current,
1660
- estimateSize: (index_1) => renderedWidth(centerColumns[index_1]),
1661
- getItemKey: (index_2) => centerColumns[index_2].id,
1555
+ estimateSize: (index) => renderedWidth(centerColumns[index]),
1556
+ getItemKey: (index) => centerColumns[index].id,
1662
1557
  horizontal: true,
1663
1558
  overscan: COLUMN_OVERSCAN,
1664
1559
  scrollPaddingStart: startPinnedWidth,
@@ -1684,9 +1579,9 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1684
1579
  });
1685
1580
  return;
1686
1581
  }
1687
- const rowIndex = rows.findIndex((row_0) => row_0.id === focusedRowId);
1582
+ const rowIndex = rows.findIndex((row) => row.id === focusedRowId);
1688
1583
  if (rowIndex >= 0) rowVirtualizer.scrollToIndex(rowIndex);
1689
- const columnIndex = centerColumns.findIndex((column_6) => column_6.id === focusedColumnId);
1584
+ const columnIndex = centerColumns.findIndex((column) => column.id === focusedColumnId);
1690
1585
  if (columnIndex >= 0) columnVirtualizer.scrollToIndex(columnIndex);
1691
1586
  }, [focusedRowId, focusedColumnId]);
1692
1587
  const hasCellSelection = table.state.cellSelection.length > 0;
@@ -1767,34 +1662,34 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1767
1662
  end: []
1768
1663
  };
1769
1664
  /** Absorbs the width of the columns the centre window skipped. */
1770
- const skippedColumns = (width_0) => width_0 > 0 ? /* @__PURE__ */ jsx(TableCell, {
1665
+ const skippedColumns = (width) => width > 0 ? /* @__PURE__ */ jsx(TableCell, {
1771
1666
  "aria-hidden": true,
1772
1667
  className: layoutTableClasses.cellOffset,
1773
- style: { width: width_0 },
1668
+ style: { width },
1774
1669
  sx: { p: 0 }
1775
1670
  }) : null;
1776
1671
  const renderHeader = (h, groupIndex) => /* @__PURE__ */ jsx(table.AppHeader, {
1777
1672
  header: h,
1778
- children: (header_0) => {
1779
- const align = columnAlign(header_0.column);
1780
- const labelled = hasColumnLabel(header_0.column);
1673
+ children: (header) => {
1674
+ const align = columnAlign(header.column);
1675
+ const labelled = hasColumnLabel(header.column);
1781
1676
  return /* @__PURE__ */ jsxs(TableCell, {
1782
- className: classNames(layoutTableClasses.columnHeader, header_0.column.getCanSort() && layoutTableClasses["columnHeader--sortable"], header_0.column.getIsSorted() && layoutTableClasses["columnHeader--sorted"], header_0.column.getIsFiltered() && layoutTableClasses["columnHeader--filtered"], pinnedClass(header_0.column, "columnHeader")),
1783
- 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,
1784
1679
  align,
1785
- sortDirection: header_0.column.getIsSorted(),
1680
+ sortDirection: header.column.getIsSorted(),
1786
1681
  sx: {
1787
1682
  position: "sticky",
1788
1683
  top: groupIndex * COLUMN_HEADER_HEIGHT,
1789
1684
  zIndex: 3,
1790
1685
  bgcolor: "background.paper",
1791
- width: headerWidth(header_0),
1686
+ width: headerWidth(header),
1792
1687
  whiteSpace: "nowrap",
1793
1688
  overflow: "hidden",
1794
1689
  ...labelled ? CELL_SX : UTILITY_SX,
1795
- ...pinnedSx(header_0.column, true)
1690
+ ...pinnedSx(header.column, true)
1796
1691
  },
1797
- children: [header_0.isPlaceholder ? null : /* @__PURE__ */ jsxs(Box, {
1692
+ children: [header.isPlaceholder ? null : /* @__PURE__ */ jsxs(Box, {
1798
1693
  className: layoutTableClasses.columnHeaderContent,
1799
1694
  sx: {
1800
1695
  display: "flex",
@@ -1816,34 +1711,34 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1816
1711
  textOverflow: "ellipsis"
1817
1712
  }
1818
1713
  },
1819
- children: /* @__PURE__ */ jsx(header_0.HeaderSortLabel, { children: /* @__PURE__ */ jsx(header_0.FlexRender, {}) })
1820
- }), !disableColumnMenu && /* @__PURE__ */ jsx(header_0.HeaderMenu, { disableGrouping: pagination })]
1821
- }), /* @__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, {})]
1822
1717
  });
1823
1718
  }
1824
1719
  }, h.id);
1825
- const cellClassName = (cell_0) => classNames(layoutTableClasses.cell, cell_0.getIsSelected() && layoutTableClasses["cell--selected"], cell_0.getIsGrouped() && layoutTableClasses["cell--grouped"], cell_0.getIsAggregated() && layoutTableClasses["cell--aggregated"], pinnedClass(cell_0.column, "cell"));
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"));
1826
1721
  const renderCell = (c) => /* @__PURE__ */ jsx(table.AppCell, {
1827
1722
  cell: c,
1828
- children: (cell_1) => cell_1.getIsCovered() ? null : /* @__PURE__ */ jsx(TableCell, {
1829
- className: cellClassName(cell_1),
1830
- align: columnAlign(cell_1.column),
1831
- rowSpan: cell_1.getRowSpan(),
1832
- colSpan: cell_1.getColSpan(),
1833
- tabIndex: cell_1.getCanSelect() ? cell_1.getTabIndex() : void 0,
1834
- onMouseDown: cell_1.getSelectionStartHandler(),
1835
- onMouseEnter: cell_1.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(),
1836
1731
  onMouseOver: titleIfTruncated,
1837
1732
  sx: {
1838
1733
  overflow: "hidden",
1839
1734
  textOverflow: "ellipsis",
1840
1735
  whiteSpace: "nowrap",
1841
- userSelect: cell_1.getCanSelect() ? "none" : void 0,
1842
- ...hasColumnLabel(cell_1.column) ? CELL_SX : UTILITY_SX,
1843
- ...pinnedSx(cell_1.column),
1844
- ...cellSelectionSx(cell_1)
1736
+ userSelect: cell.getCanSelect() ? "none" : void 0,
1737
+ ...hasColumnLabel(cell.column) ? CELL_SX : UTILITY_SX,
1738
+ ...pinnedSx(cell.column),
1739
+ ...cellSelectionSx(cell)
1845
1740
  },
1846
- children: cell_1.getIsGrouped() ? /* @__PURE__ */ jsx(cell_1.GroupCell, {}) : cell_1.row.getIsGrouped() && !cell_1.getIsAggregated() ? null : /* @__PURE__ */ jsx(cell_1.FlexRender, {})
1741
+ children: cell.getIsGrouped() ? /* @__PURE__ */ jsx(cell.GroupCell, {}) : cell.row.getIsGrouped() && !cell.getIsAggregated() ? null : /* @__PURE__ */ jsx(cell.FlexRender, {})
1847
1742
  })
1848
1743
  }, c.id);
1849
1744
  const renderFooter = (f) => /* @__PURE__ */ jsx(table.AppFooter, {
@@ -1861,21 +1756,21 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1861
1756
  })
1862
1757
  }, f.id);
1863
1758
  const rowAction = onRowClick ?? onRowDoubleClick;
1864
- const renderRow = (row_1, index_3) => {
1865
- const cells = windowColumns(row_1.getVisibleCells());
1866
- const focusableCells = row_1.getVisibleCells().some((cell_2) => cell_2.getCanSelect());
1759
+ const renderRow = (row, index) => {
1760
+ const cells = windowColumns(row.getVisibleCells());
1761
+ const focusableCells = row.getVisibleCells().some((cell) => cell.getCanSelect());
1867
1762
  return /* @__PURE__ */ jsxs(TableRow, {
1868
- className: classNames(layoutTableClasses.row, row_1.getIsGrouped() && layoutTableClasses["row--grouped"], row_1.getIsExpanded() && layoutTableClasses["row--expanded"], row_1.getIsPinned() && layoutTableClasses["row--pinned"]),
1763
+ className: classNames(layoutTableClasses.row, row.getIsGrouped() && layoutTableClasses["row--grouped"], row.getIsExpanded() && layoutTableClasses["row--expanded"], row.getIsPinned() && layoutTableClasses["row--pinned"]),
1869
1764
  ref: rowVirtualizer.measureElement,
1870
- "data-index": index_3,
1765
+ "data-index": index,
1871
1766
  hover: true,
1872
- selected: row_1.getIsSelected(),
1767
+ selected: row.getIsSelected(),
1873
1768
  tabIndex: rowAction && !focusableCells ? 0 : void 0,
1874
- onClick: onRowClick && (() => onRowClick(row_1)),
1875
- onDoubleClick: onRowDoubleClick && (() => onRowDoubleClick(row_1)),
1769
+ onClick: onRowClick && (() => onRowClick(row)),
1770
+ onDoubleClick: onRowDoubleClick && (() => onRowDoubleClick(row)),
1876
1771
  onKeyDown: rowAction && ((event) => {
1877
1772
  const target = event.target;
1878
- 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);
1879
1774
  }),
1880
1775
  sx: {
1881
1776
  height: ROW_HEIGHT,
@@ -1893,7 +1788,7 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1893
1788
  sx: { p: 0 }
1894
1789
  })
1895
1790
  ]
1896
- }, row_1.id);
1791
+ }, row.id);
1897
1792
  };
1898
1793
  const rowCache = useMemo(() => ({ current: /* @__PURE__ */ new Map() }), [
1899
1794
  table,
@@ -1902,9 +1797,9 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1902
1797
  paddingStart,
1903
1798
  paddingEnd
1904
1799
  ]);
1905
- const cacheKey = (index_4) => `${index_4}:${rows[index_4].id}`;
1906
- const bodyRows = virtualRows.map(({ index: index_5 }) => rowCache.current.get(cacheKey(index_5)) ?? renderRow(rows[index_5], index_5));
1907
- 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]]));
1908
1803
  /** Reserves the scroll height of the rows outside the virtual window. */
1909
1804
  const skippedRows = (height) => height > 0 ? /* @__PURE__ */ jsx(TableRow, {
1910
1805
  "aria-hidden": true,
@@ -1961,24 +1856,24 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
1961
1856
  children: [
1962
1857
  /* @__PURE__ */ jsx(TableHead, {
1963
1858
  className: layoutTableClasses.columnHeaders,
1964
- children: headerGroups.map((headerGroup, groupIndex_0) => {
1965
- const headers = windowColumns(headerGroup.headers.filter((header_1) => header_1.column.getIsVisible()));
1859
+ children: headerGroups.map((headerGroup, groupIndex) => {
1860
+ const headers = windowColumns(headerGroup.headers.filter((header) => header.column.getIsVisible()));
1966
1861
  return /* @__PURE__ */ jsxs(TableRow, {
1967
1862
  className: layoutTableClasses.columnHeaderRow,
1968
1863
  sx: { height: COLUMN_HEADER_HEIGHT },
1969
1864
  children: [
1970
- headers.start.map((h_0) => renderHeader(h_0, groupIndex_0)),
1865
+ headers.start.map((h) => renderHeader(h, groupIndex)),
1971
1866
  skippedColumns(paddingStart),
1972
- headers.center.map((h_1) => renderHeader(h_1, groupIndex_0)),
1867
+ headers.center.map((h) => renderHeader(h, groupIndex)),
1973
1868
  skippedColumns(paddingEnd),
1974
- headers.end.map((h_2) => renderHeader(h_2, groupIndex_0)),
1869
+ headers.end.map((h) => renderHeader(h, groupIndex)),
1975
1870
  /* @__PURE__ */ jsx(TableCell, {
1976
1871
  "aria-hidden": true,
1977
1872
  className: layoutTableClasses.filler,
1978
1873
  sx: {
1979
1874
  p: 0,
1980
1875
  position: "sticky",
1981
- top: groupIndex_0 * COLUMN_HEADER_HEIGHT,
1876
+ top: groupIndex * COLUMN_HEADER_HEIGHT,
1982
1877
  zIndex: 3,
1983
1878
  bgcolor: "background.paper"
1984
1879
  }
@@ -2056,7 +1951,7 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
2056
1951
  hasFooter && /* @__PURE__ */ jsx(TableFooter, {
2057
1952
  className: layoutTableClasses.footer,
2058
1953
  children: table.getFooterGroups().map((footerGroup) => {
2059
- const footers = windowColumns(footerGroup.headers.filter((header_2) => header_2.column.getIsVisible()));
1954
+ const footers = windowColumns(footerGroup.headers.filter((header) => header.column.getIsVisible()));
2060
1955
  return /* @__PURE__ */ jsxs(TableRow, {
2061
1956
  className: layoutTableClasses.footerRow,
2062
1957
  children: [
@@ -2087,6 +1982,6 @@ function LayoutTable({ table, loading = false, pagination = false, pageSizeOptio
2087
1982
  ]
2088
1983
  }) });
2089
1984
  }
2090
- export { AggregatedCell, Dropzone, FileViewer, Fullscreen, LayoutTable, LoginForm, RouterButton, RouterError, RouterFab, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, layoutTableClasses };
1985
+ export { AggregatedCell, ChatLayout, Dropzone, FileViewer, Fullscreen, LayoutTable, LoginForm, RouterButton, RouterError, RouterFab, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, layoutTableClasses };
2091
1986
 
2092
1987
  //# sourceMappingURL=components.mjs.map