wcz-layout 6.7.2 → 9.4.2

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 (271) hide show
  1. package/dist/Approval-Co6D1BNq.mjs +194 -0
  2. package/dist/Approval-Co6D1BNq.mjs.map +1 -0
  3. package/dist/DialogsContext-DLqA8RJ_.mjs +7 -0
  4. package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -0
  5. package/dist/Email-BzQQkbe9.mjs +20 -0
  6. package/dist/Email-BzQQkbe9.mjs.map +1 -0
  7. package/dist/FileMeta-DDqUju1Y.mjs +19 -0
  8. package/dist/FileMeta-DDqUju1Y.mjs.map +1 -0
  9. package/dist/FileMeta-ILLTOjaM.d.mts +20 -0
  10. package/dist/NotificationContext-CgwUOeW0.mjs +7 -0
  11. package/dist/NotificationContext-CgwUOeW0.mjs.map +1 -0
  12. package/dist/QueryClientParam-CzaM3akD.d.mts +11 -0
  13. package/dist/RouterListItemButton-owZVvuC_.mjs +78 -0
  14. package/dist/RouterListItemButton-owZVvuC_.mjs.map +1 -0
  15. package/dist/User-1gKoYJvW.d.mts +12 -0
  16. package/dist/auth.d.mts +25 -0
  17. package/dist/auth.mjs +88 -0
  18. package/dist/auth.mjs.map +1 -0
  19. package/dist/authMiddleware--HdlhhZO.mjs +78 -0
  20. package/dist/authMiddleware--HdlhhZO.mjs.map +1 -0
  21. package/dist/components.d.mts +107 -0
  22. package/dist/components.mjs +1500 -0
  23. package/dist/components.mjs.map +1 -0
  24. package/dist/data/client.d.mts +3217 -0
  25. package/dist/data/client.mjs +187 -0
  26. package/dist/data/client.mjs.map +1 -0
  27. package/dist/data/server.d.mts +19 -0
  28. package/dist/data/server.mjs +16 -0
  29. package/dist/data/server.mjs.map +1 -0
  30. package/dist/entra-s4ZjHq5o.mjs +101 -0
  31. package/dist/entra-s4ZjHq5o.mjs.map +1 -0
  32. package/dist/env-CoveIivr.mjs +30 -0
  33. package/dist/env-CoveIivr.mjs.map +1 -0
  34. package/dist/file-C5-a_6W6.mjs +148 -0
  35. package/dist/file-C5-a_6W6.mjs.map +1 -0
  36. package/dist/file-DM1x40eJ.mjs +179 -0
  37. package/dist/file-DM1x40eJ.mjs.map +1 -0
  38. package/dist/hooks.d.mts +226 -0
  39. package/dist/hooks.mjs +1087 -0
  40. package/dist/hooks.mjs.map +1 -0
  41. package/dist/index.d.mts +48 -0
  42. package/dist/index.mjs +1944 -0
  43. package/dist/index.mjs.map +1 -0
  44. package/dist/middleware.d.mts +46 -0
  45. package/dist/middleware.mjs +27 -0
  46. package/dist/middleware.mjs.map +1 -0
  47. package/dist/models.d.mts +598 -0
  48. package/dist/models.mjs +74 -0
  49. package/dist/models.mjs.map +1 -0
  50. package/dist/msalServer-CkNOOjjH.mjs +44 -0
  51. package/dist/msalServer-CkNOOjjH.mjs.map +1 -0
  52. package/dist/peoplesoft-DIe8H1Nu.mjs +240 -0
  53. package/dist/peoplesoft-DIe8H1Nu.mjs.map +1 -0
  54. package/dist/peoplesoft-gKd-Jh5L.d.mts +1219 -0
  55. package/dist/useDialogs-BUzVrTSP.mjs +248 -0
  56. package/dist/useDialogs-BUzVrTSP.mjs.map +1 -0
  57. package/dist/user-Cen43mlr.d.mts +19 -0
  58. package/dist/utils-2XiozDlV.mjs +156 -0
  59. package/dist/utils-2XiozDlV.mjs.map +1 -0
  60. package/dist/utils-BuWEQOuy.d.mts +65 -0
  61. package/dist/utils.d.mts +5 -0
  62. package/dist/utils.mjs +5 -0
  63. package/dist/vite.d.mts +7 -0
  64. package/dist/vite.mjs +182 -0
  65. package/dist/vite.mjs.map +1 -0
  66. package/package.json +129 -62
  67. package/skills/client-db/SKILL.md +93 -0
  68. package/skills/data-grid/SKILL.md +142 -0
  69. package/skills/db-schema/SKILL.md +71 -0
  70. package/skills/dialogs/SKILL.md +79 -0
  71. package/skills/forms/SKILL.md +82 -0
  72. package/skills/general/SKILL.md +17 -0
  73. package/skills/notifications/SKILL.md +43 -0
  74. package/skills/routing/SKILL.md +128 -0
  75. package/skills/server-functions/SKILL.md +113 -0
  76. package/skills/services/SKILL.md +30 -0
  77. package/skills/services/docs/approval.md +257 -0
  78. package/skills/services/docs/email.md +32 -0
  79. package/skills/services/docs/file.md +81 -0
  80. package/skills/services/docs/peoplesoft.md +110 -0
  81. package/skills/start/SKILL.md +46 -0
  82. package/skills/start/steps/01-git-setup.md +11 -0
  83. package/skills/start/steps/02-project-name-setup.md +14 -0
  84. package/skills/start/steps/03-apm-setup.md +208 -0
  85. package/skills/start/steps/04-database-setup.md +39 -0
  86. package/skills/start/steps/05-entra-setup.md +59 -0
  87. package/skills/start/steps/06-vault-setup.md +70 -0
  88. package/skills/start/steps/07-generate-favicon.md +10 -0
  89. package/skills/start/steps/08-commit.md +15 -0
  90. package/dist/src/components/Layout.d.ts +0 -16
  91. package/dist/src/components/Layout.js +0 -122
  92. package/dist/src/components/Layout.js.map +0 -1
  93. package/dist/src/components/dataGrid/ChipInputCell.d.ts +0 -9
  94. package/dist/src/components/dataGrid/ChipInputCell.js +0 -17
  95. package/dist/src/components/dataGrid/ChipInputCell.js.map +0 -1
  96. package/dist/src/components/dataGrid/EditableColumnHeader.d.ts +0 -2
  97. package/dist/src/components/dataGrid/EditableColumnHeader.js +0 -7
  98. package/dist/src/components/dataGrid/EditableColumnHeader.js.map +0 -1
  99. package/dist/src/components/dataGrid/GridToolbar.d.ts +0 -8
  100. package/dist/src/components/dataGrid/GridToolbar.js +0 -40
  101. package/dist/src/components/dataGrid/GridToolbar.js.map +0 -1
  102. package/dist/src/components/dataGrid/TableContainer.d.ts +0 -3
  103. package/dist/src/components/dataGrid/TableContainer.js +0 -32
  104. package/dist/src/components/dataGrid/TableContainer.js.map +0 -1
  105. package/dist/src/components/form/FormAutocomplete.d.ts +0 -7
  106. package/dist/src/components/form/FormAutocomplete.js +0 -10
  107. package/dist/src/components/form/FormAutocomplete.js.map +0 -1
  108. package/dist/src/components/form/FormCheckbox.d.ts +0 -7
  109. package/dist/src/components/form/FormCheckbox.js +0 -11
  110. package/dist/src/components/form/FormCheckbox.js.map +0 -1
  111. package/dist/src/components/form/FormDatePicker.d.ts +0 -9
  112. package/dist/src/components/form/FormDatePicker.js +0 -19
  113. package/dist/src/components/form/FormDatePicker.js.map +0 -1
  114. package/dist/src/components/form/FormDateTimePicker.d.ts +0 -9
  115. package/dist/src/components/form/FormDateTimePicker.js +0 -19
  116. package/dist/src/components/form/FormDateTimePicker.js.map +0 -1
  117. package/dist/src/components/form/FormNumberField.d.ts +0 -12
  118. package/dist/src/components/form/FormNumberField.js +0 -12
  119. package/dist/src/components/form/FormNumberField.js.map +0 -1
  120. package/dist/src/components/form/FormRadioGroup.d.ts +0 -13
  121. package/dist/src/components/form/FormRadioGroup.js +0 -11
  122. package/dist/src/components/form/FormRadioGroup.js.map +0 -1
  123. package/dist/src/components/form/FormSlider.d.ts +0 -7
  124. package/dist/src/components/form/FormSlider.js +0 -11
  125. package/dist/src/components/form/FormSlider.js.map +0 -1
  126. package/dist/src/components/form/FormSubmitButton.d.ts +0 -5
  127. package/dist/src/components/form/FormSubmitButton.js +0 -13
  128. package/dist/src/components/form/FormSubmitButton.js.map +0 -1
  129. package/dist/src/components/form/FormSwitch.d.ts +0 -7
  130. package/dist/src/components/form/FormSwitch.js +0 -11
  131. package/dist/src/components/form/FormSwitch.js.map +0 -1
  132. package/dist/src/components/form/FormTextField.d.ts +0 -7
  133. package/dist/src/components/form/FormTextField.js +0 -11
  134. package/dist/src/components/form/FormTextField.js.map +0 -1
  135. package/dist/src/components/layout/AccountMenu.d.ts +0 -9
  136. package/dist/src/components/layout/AccountMenu.js +0 -44
  137. package/dist/src/components/layout/AccountMenu.js.map +0 -1
  138. package/dist/src/components/layout/DevelopmentBanner.d.ts +0 -7
  139. package/dist/src/components/layout/DevelopmentBanner.js +0 -29
  140. package/dist/src/components/layout/DevelopmentBanner.js.map +0 -1
  141. package/dist/src/components/layout/ErrorPage.d.ts +0 -2
  142. package/dist/src/components/layout/ErrorPage.js +0 -25
  143. package/dist/src/components/layout/ErrorPage.js.map +0 -1
  144. package/dist/src/components/layout/LayoutDialog.d.ts +0 -12
  145. package/dist/src/components/layout/LayoutDialog.js +0 -12
  146. package/dist/src/components/layout/LayoutDialog.js.map +0 -1
  147. package/dist/src/components/layout/LayoutSnackbar.d.ts +0 -8
  148. package/dist/src/components/layout/LayoutSnackbar.js +0 -25
  149. package/dist/src/components/layout/LayoutSnackbar.js.map +0 -1
  150. package/dist/src/components/layout/NavigationDrawer.d.ts +0 -11
  151. package/dist/src/components/layout/NavigationDrawer.js +0 -70
  152. package/dist/src/components/layout/NavigationDrawer.js.map +0 -1
  153. package/dist/src/components/layout/NotificationMenu.d.ts +0 -8
  154. package/dist/src/components/layout/NotificationMenu.js +0 -26
  155. package/dist/src/components/layout/NotificationMenu.js.map +0 -1
  156. package/dist/src/components/layout/TypographyWithIcon.d.ts +0 -7
  157. package/dist/src/components/layout/TypographyWithIcon.js +0 -22
  158. package/dist/src/components/layout/TypographyWithIcon.js.map +0 -1
  159. package/dist/src/components/layout/Unauthorized.d.ts +0 -2
  160. package/dist/src/components/layout/Unauthorized.js +0 -26
  161. package/dist/src/components/layout/Unauthorized.js.map +0 -1
  162. package/dist/src/contexts/LayoutContext.d.ts +0 -40
  163. package/dist/src/contexts/LayoutContext.js +0 -60
  164. package/dist/src/contexts/LayoutContext.js.map +0 -1
  165. package/dist/src/contexts/UserContext.d.ts +0 -24
  166. package/dist/src/contexts/UserContext.js +0 -55
  167. package/dist/src/contexts/UserContext.js.map +0 -1
  168. package/dist/src/hooks/FormHooks.d.ts +0 -46
  169. package/dist/src/hooks/FormHooks.js +0 -31
  170. package/dist/src/hooks/FormHooks.js.map +0 -1
  171. package/dist/src/hooks/UseSnackbar.d.ts +0 -10
  172. package/dist/src/hooks/UseSnackbar.js +0 -23
  173. package/dist/src/hooks/UseSnackbar.js.map +0 -1
  174. package/dist/src/hooks/UseUser.d.ts +0 -10
  175. package/dist/src/hooks/UseUser.js +0 -25
  176. package/dist/src/hooks/UseUser.js.map +0 -1
  177. package/dist/src/index.d.ts +0 -20
  178. package/dist/src/index.js +0 -15
  179. package/dist/src/index.js.map +0 -1
  180. package/dist/src/models/Error.d.ts +0 -6
  181. package/dist/src/models/Error.js +0 -2
  182. package/dist/src/models/Error.js.map +0 -1
  183. package/dist/src/models/KeycloakSettings.d.ts +0 -8
  184. package/dist/src/models/KeycloakSettings.js +0 -2
  185. package/dist/src/models/KeycloakSettings.js.map +0 -1
  186. package/dist/src/models/LayoutPaletteColorOptions.d.ts +0 -6
  187. package/dist/src/models/LayoutPaletteColorOptions.js +0 -2
  188. package/dist/src/models/LayoutPaletteColorOptions.js.map +0 -1
  189. package/dist/src/models/LayoutRoute.d.ts +0 -14
  190. package/dist/src/models/LayoutRoute.js +0 -2
  191. package/dist/src/models/LayoutRoute.js.map +0 -1
  192. package/dist/src/models/Notification.d.ts +0 -9
  193. package/dist/src/models/Notification.js +0 -2
  194. package/dist/src/models/Notification.js.map +0 -1
  195. package/dist/src/models/PeoplesoftDepartment.d.ts +0 -14
  196. package/dist/src/models/PeoplesoftDepartment.js +0 -2
  197. package/dist/src/models/PeoplesoftDepartment.js.map +0 -1
  198. package/dist/src/models/PeoplesoftEmployee.d.ts +0 -34
  199. package/dist/src/models/PeoplesoftEmployee.js +0 -2
  200. package/dist/src/models/PeoplesoftEmployee.js.map +0 -1
  201. package/dist/src/models/Snackbar.d.ts +0 -15
  202. package/dist/src/models/Snackbar.js +0 -2
  203. package/dist/src/models/Snackbar.js.map +0 -1
  204. package/dist/src/models/User.d.ts +0 -27
  205. package/dist/src/models/User.js +0 -11
  206. package/dist/src/models/User.js.map +0 -1
  207. package/dist/src/models/types/EmployeeCategoryGroup.d.ts +0 -1
  208. package/dist/src/models/types/EmployeeCategoryGroup.js +0 -2
  209. package/dist/src/models/types/EmployeeCategoryGroup.js.map +0 -1
  210. package/dist/src/models/types/EmployeeStatus.d.ts +0 -1
  211. package/dist/src/models/types/EmployeeStatus.js +0 -2
  212. package/dist/src/models/types/EmployeeStatus.js.map +0 -1
  213. package/dist/src/utils/Auth.d.ts +0 -12
  214. package/dist/src/utils/Auth.js +0 -49
  215. package/dist/src/utils/Auth.js.map +0 -1
  216. package/dist/src/utils/Fetches.d.ts +0 -5
  217. package/dist/src/utils/Fetches.js +0 -66
  218. package/dist/src/utils/Fetches.js.map +0 -1
  219. package/dist/src/utils/FormUtils.d.ts +0 -7
  220. package/dist/src/utils/FormUtils.js +0 -9
  221. package/dist/src/utils/FormUtils.js.map +0 -1
  222. package/dist/src/utils/Helpers.d.ts +0 -11
  223. package/dist/src/utils/Helpers.js +0 -26
  224. package/dist/src/utils/Helpers.js.map +0 -1
  225. package/dist/tsconfig.tsbuildinfo +0 -1
  226. package/src/components/Layout.tsx +0 -183
  227. package/src/components/dataGrid/ChipInputCell.tsx +0 -31
  228. package/src/components/dataGrid/EditableColumnHeader.tsx +0 -7
  229. package/src/components/dataGrid/GridToolbar.tsx +0 -63
  230. package/src/components/dataGrid/TableContainer.tsx +0 -39
  231. package/src/components/form/FormAutocomplete.tsx +0 -34
  232. package/src/components/form/FormCheckbox.tsx +0 -32
  233. package/src/components/form/FormDatePicker.tsx +0 -34
  234. package/src/components/form/FormDateTimePicker.tsx +0 -34
  235. package/src/components/form/FormNumberField.tsx +0 -33
  236. package/src/components/form/FormRadioGroup.tsx +0 -43
  237. package/src/components/form/FormSlider.tsx +0 -28
  238. package/src/components/form/FormSubmitButton.tsx +0 -29
  239. package/src/components/form/FormSwitch.tsx +0 -32
  240. package/src/components/form/FormTextField.tsx +0 -26
  241. package/src/components/layout/AccountMenu.tsx +0 -160
  242. package/src/components/layout/DevelopmentBanner.tsx +0 -54
  243. package/src/components/layout/ErrorPage.tsx +0 -34
  244. package/src/components/layout/LayoutDialog.tsx +0 -50
  245. package/src/components/layout/LayoutSnackbar.tsx +0 -44
  246. package/src/components/layout/NavigationDrawer.tsx +0 -131
  247. package/src/components/layout/NotificationMenu.tsx +0 -76
  248. package/src/components/layout/TypographyWithIcon.tsx +0 -35
  249. package/src/components/layout/Unauthorized.tsx +0 -37
  250. package/src/contexts/LayoutContext.tsx +0 -127
  251. package/src/contexts/UserContext.tsx +0 -88
  252. package/src/hooks/FormHooks.ts +0 -33
  253. package/src/hooks/UseSnackbar.tsx +0 -28
  254. package/src/hooks/UseUser.tsx +0 -29
  255. package/src/index.ts +0 -27
  256. package/src/models/Error.tsx +0 -6
  257. package/src/models/KeycloakSettings.ts +0 -8
  258. package/src/models/LayoutPaletteColorOptions.tsx +0 -7
  259. package/src/models/LayoutRoute.ts +0 -15
  260. package/src/models/Notification.ts +0 -10
  261. package/src/models/PeoplesoftDepartment.ts +0 -15
  262. package/src/models/PeoplesoftEmployee.ts +0 -35
  263. package/src/models/Snackbar.ts +0 -16
  264. package/src/models/User.ts +0 -13
  265. package/src/models/types/EmployeeCategoryGroup.ts +0 -1
  266. package/src/models/types/EmployeeStatus.ts +0 -1
  267. package/src/utils/Auth.ts +0 -58
  268. package/src/utils/Fetches.ts +0 -83
  269. package/src/utils/FormUtils.ts +0 -22
  270. package/src/utils/Helpers.ts +0 -27
  271. package/tsconfig.json +0 -29
@@ -0,0 +1,1500 @@
1
+ import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-owZVvuC_.mjs";
2
+ import { a as fileQueryOptions, i as fileMetasQueryOptions, n as deleteFileMutationOptions, o as fileThumbnailQueryOptions, r as downloadFileMutationOptions, s as openFileMutationOptions } from "./file-C5-a_6W6.mjs";
3
+ import { t as useDialogs } from "./useDialogs-BUzVrTSP.mjs";
4
+ import { c } from "react/compiler-runtime";
5
+ import { Box, Button, CircularProgress, Dialog, Divider, Fab, IconButton, ImageListItem, ImageListItemBar, Link, List, ListItemButton, ListItemIcon, ListItemText, Menu, Skeleton, Stack, Tab, Tooltip, Typography, useTheme } from "@mui/material";
6
+ import React, { Fragment, createContext, useContext, useEffect, useEffectEvent, useLayoutEffect, useRef, useState } from "react";
7
+ import { useTranslation } from "react-i18next";
8
+ import { createLink, rootRouteId, useMatch } from "@tanstack/react-router";
9
+ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import CloudUpload from "@mui/icons-material/CloudUpload";
12
+ import { useDropzone } from "react-dropzone";
13
+ import MoreVert from "@mui/icons-material/MoreVert";
14
+ import { grey } from "@mui/material/colors";
15
+ import { useInView } from "react-intersection-observer";
16
+ import Delete from "@mui/icons-material/Delete";
17
+ import FileDownload from "@mui/icons-material/FileDownload";
18
+ import AttachFile from "@mui/icons-material/AttachFile";
19
+ import Image from "@mui/icons-material/Image";
20
+ import SmartDisplay from "@mui/icons-material/SmartDisplay";
21
+ import Close from "@mui/icons-material/Close";
22
+ import Edit from "@mui/icons-material/Edit";
23
+ import { GridActionsCellItem } from "@mui/x-data-grid-premium";
24
+ //#region src/components/core/TypographyWithIcon.tsx
25
+ const TypographyWithIcon = (t0) => {
26
+ const $ = c(22);
27
+ if ($[0] !== "9c8023a1fff996854b80705f821f262546dcf4698b35bf44797fd667c170087f") {
28
+ for (let $i = 0; $i < 22; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
29
+ $[0] = "9c8023a1fff996854b80705f821f262546dcf4698b35bf44797fd667c170087f";
30
+ }
31
+ let children;
32
+ let endIcon;
33
+ let props;
34
+ let startIcon;
35
+ let sx;
36
+ let t1;
37
+ if ($[1] !== t0) {
38
+ ({startIcon, endIcon, children, gap: t1, sx, ...props} = t0);
39
+ $[1] = t0;
40
+ $[2] = children;
41
+ $[3] = endIcon;
42
+ $[4] = props;
43
+ $[5] = startIcon;
44
+ $[6] = sx;
45
+ $[7] = t1;
46
+ } else {
47
+ children = $[2];
48
+ endIcon = $[3];
49
+ props = $[4];
50
+ startIcon = $[5];
51
+ sx = $[6];
52
+ t1 = $[7];
53
+ }
54
+ const gap = t1 === void 0 ? 1 : t1;
55
+ let t2;
56
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
57
+ t2 = {
58
+ display: "block",
59
+ flexShrink: 0
60
+ };
61
+ $[8] = t2;
62
+ } else t2 = $[8];
63
+ let t3;
64
+ if ($[9] !== gap) {
65
+ t3 = {
66
+ display: "inline-flex",
67
+ alignItems: "center",
68
+ verticalAlign: "middle",
69
+ gap,
70
+ "& > svg": t2
71
+ };
72
+ $[9] = gap;
73
+ $[10] = t3;
74
+ } else t3 = $[10];
75
+ let t4;
76
+ if ($[11] !== sx) {
77
+ t4 = Array.isArray(sx) ? sx : [sx];
78
+ $[11] = sx;
79
+ $[12] = t4;
80
+ } else t4 = $[12];
81
+ let t5;
82
+ if ($[13] !== t3 || $[14] !== t4) {
83
+ t5 = [t3, ...t4];
84
+ $[13] = t3;
85
+ $[14] = t4;
86
+ $[15] = t5;
87
+ } else t5 = $[15];
88
+ let t6;
89
+ if ($[16] !== children || $[17] !== endIcon || $[18] !== props || $[19] !== startIcon || $[20] !== t5) {
90
+ t6 = /* @__PURE__ */ jsxs(Typography, {
91
+ component: "span",
92
+ sx: t5,
93
+ ...props,
94
+ children: [
95
+ startIcon,
96
+ children,
97
+ endIcon
98
+ ]
99
+ });
100
+ $[16] = children;
101
+ $[17] = endIcon;
102
+ $[18] = props;
103
+ $[19] = startIcon;
104
+ $[20] = t5;
105
+ $[21] = t6;
106
+ } else t6 = $[21];
107
+ return t6;
108
+ };
109
+ //#endregion
110
+ //#region src/components/core/Fullscreen.tsx
111
+ const Fullscreen = (t0) => {
112
+ const $ = c(16);
113
+ if ($[0] !== "2243979894039564df2fd1f70562faf7a7d5878eaeea3b472ad974fd8b0c233e") {
114
+ for (let $i = 0; $i < 16; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
115
+ $[0] = "2243979894039564df2fd1f70562faf7a7d5878eaeea3b472ad974fd8b0c233e";
116
+ }
117
+ let children;
118
+ let props;
119
+ let sx;
120
+ if ($[1] !== t0) {
121
+ ({children, sx, ...props} = t0);
122
+ $[1] = t0;
123
+ $[2] = children;
124
+ $[3] = props;
125
+ $[4] = sx;
126
+ } else {
127
+ children = $[2];
128
+ props = $[3];
129
+ sx = $[4];
130
+ }
131
+ const reference = useRef(null);
132
+ const [height, setHeight] = useState();
133
+ let t1;
134
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
135
+ t1 = () => {
136
+ if (!reference.current) return;
137
+ const top = reference.current.getBoundingClientRect().top;
138
+ const viewportHeight = window.visualViewport?.height ?? window.innerHeight;
139
+ const avail = Math.max(0, Math.floor(viewportHeight - top));
140
+ setHeight(avail);
141
+ };
142
+ $[5] = t1;
143
+ } else t1 = $[5];
144
+ const recompute = useEffectEvent(t1);
145
+ let t2;
146
+ if ($[6] !== recompute) {
147
+ t2 = () => {
148
+ const element = reference.current;
149
+ if (!element) return;
150
+ recompute();
151
+ window.addEventListener("resize", recompute);
152
+ const ro = new ResizeObserver(recompute);
153
+ ro.observe(document.documentElement);
154
+ ro.observe(document.body);
155
+ ro.observe(element);
156
+ return () => {
157
+ window.removeEventListener("resize", recompute);
158
+ ro.disconnect();
159
+ };
160
+ };
161
+ $[6] = recompute;
162
+ $[7] = t2;
163
+ } else t2 = $[7];
164
+ let t3;
165
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
166
+ t3 = [];
167
+ $[8] = t3;
168
+ } else t3 = $[8];
169
+ useLayoutEffect(t2, t3);
170
+ let t4;
171
+ if ($[9] !== height || $[10] !== sx) {
172
+ t4 = {
173
+ display: "flex",
174
+ flexDirection: "column",
175
+ boxSizing: "border-box",
176
+ minHeight: 0,
177
+ width: "100%",
178
+ overflow: "auto",
179
+ height,
180
+ ...sx
181
+ };
182
+ $[9] = height;
183
+ $[10] = sx;
184
+ $[11] = t4;
185
+ } else t4 = $[11];
186
+ let t5;
187
+ if ($[12] !== children || $[13] !== props || $[14] !== t4) {
188
+ t5 = /* @__PURE__ */ jsx(Box, {
189
+ ref: reference,
190
+ sx: t4,
191
+ ...props,
192
+ children
193
+ });
194
+ $[12] = children;
195
+ $[13] = props;
196
+ $[14] = t4;
197
+ $[15] = t5;
198
+ } else t5 = $[15];
199
+ return t5;
200
+ };
201
+ //#endregion
202
+ //#region src/components/file/Dropzone.tsx
203
+ const baseStyle = {
204
+ flex: 1,
205
+ display: "flex",
206
+ flexDirection: "column",
207
+ alignItems: "center",
208
+ padding: "20px",
209
+ borderWidth: 2,
210
+ borderRadius: 2,
211
+ borderStyle: "dashed",
212
+ outline: "none",
213
+ transition: "border .24s ease-in-out",
214
+ cursor: "pointer"
215
+ };
216
+ const Dropzone = (t0) => {
217
+ const $ = c(32);
218
+ if ($[0] !== "82c770c45377ab601777291a216aa1889d6ec92458acfb8e98e4900f981e436b") {
219
+ for (let $i = 0; $i < 32; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
220
+ $[0] = "82c770c45377ab601777291a216aa1889d6ec92458acfb8e98e4900f981e436b";
221
+ }
222
+ let progress;
223
+ let props;
224
+ let sx;
225
+ if ($[1] !== t0) {
226
+ ({sx, progress, ...props} = t0);
227
+ $[1] = t0;
228
+ $[2] = progress;
229
+ $[3] = props;
230
+ $[4] = sx;
231
+ } else {
232
+ progress = $[2];
233
+ props = $[3];
234
+ sx = $[4];
235
+ }
236
+ const { getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone(props);
237
+ const { t } = useTranslation();
238
+ const theme = useTheme();
239
+ const t1 = progress ? "progress" : props.disabled ? "not-allowed" : "pointer";
240
+ const t2 = theme.vars || theme;
241
+ let T0;
242
+ let t3;
243
+ if ($[5] !== getRootProps || $[6] !== isDragAccept || $[7] !== isDragReject || $[8] !== isFocused || $[9] !== t1 || $[10] !== t2.palette.text.disabled || $[11] !== theme) {
244
+ const style = {
245
+ ...baseStyle,
246
+ cursor: t1,
247
+ borderColor: t2.palette.text.disabled,
248
+ ...isFocused ? { borderColor: (theme.vars || theme).palette.primary.main } : {},
249
+ ...isDragAccept ? { borderColor: (theme.vars || theme).palette.success.main } : {},
250
+ ...isDragReject ? { borderColor: (theme.vars || theme).palette.error.main } : {}
251
+ };
252
+ T0 = Box;
253
+ t3 = getRootProps({ style });
254
+ $[5] = getRootProps;
255
+ $[6] = isDragAccept;
256
+ $[7] = isDragReject;
257
+ $[8] = isFocused;
258
+ $[9] = t1;
259
+ $[10] = t2.palette.text.disabled;
260
+ $[11] = theme;
261
+ $[12] = T0;
262
+ $[13] = t3;
263
+ } else {
264
+ T0 = $[12];
265
+ t3 = $[13];
266
+ }
267
+ let t4;
268
+ if ($[14] !== getInputProps) {
269
+ t4 = getInputProps();
270
+ $[14] = getInputProps;
271
+ $[15] = t4;
272
+ } else t4 = $[15];
273
+ let t5;
274
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
275
+ t5 = { display: "none" };
276
+ $[16] = t5;
277
+ } else t5 = $[16];
278
+ let t6;
279
+ if ($[17] !== t4) {
280
+ t6 = /* @__PURE__ */ jsx("input", {
281
+ ...t4,
282
+ style: t5
283
+ });
284
+ $[17] = t4;
285
+ $[18] = t6;
286
+ } else t6 = $[18];
287
+ let t7;
288
+ if ($[19] !== progress) {
289
+ t7 = progress ? /* @__PURE__ */ jsx(CircularProgress, {
290
+ size: 24,
291
+ variant: "determinate",
292
+ value: progress
293
+ }) : /* @__PURE__ */ jsx(CloudUpload, {});
294
+ $[19] = progress;
295
+ $[20] = t7;
296
+ } else t7 = $[20];
297
+ let t8;
298
+ if ($[21] !== t) {
299
+ t8 = t("Layout.File.DragSomeFilesHereOrClickToSelectThem");
300
+ $[21] = t;
301
+ $[22] = t8;
302
+ } else t8 = $[22];
303
+ let t9;
304
+ if ($[23] !== t8) {
305
+ t9 = /* @__PURE__ */ jsx(Typography, { children: t8 });
306
+ $[23] = t8;
307
+ $[24] = t9;
308
+ } else t9 = $[24];
309
+ let t10;
310
+ if ($[25] !== T0 || $[26] !== sx || $[27] !== t3 || $[28] !== t6 || $[29] !== t7 || $[30] !== t9) {
311
+ t10 = /* @__PURE__ */ jsxs(T0, {
312
+ ...t3,
313
+ sx,
314
+ children: [
315
+ t6,
316
+ t7,
317
+ t9
318
+ ]
319
+ });
320
+ $[25] = T0;
321
+ $[26] = sx;
322
+ $[27] = t3;
323
+ $[28] = t6;
324
+ $[29] = t7;
325
+ $[30] = t9;
326
+ $[31] = t10;
327
+ } else t10 = $[31];
328
+ return t10;
329
+ };
330
+ //#endregion
331
+ //#region src/contexts/FileContext.ts
332
+ const FileContext = createContext(null);
333
+ const useFile = () => {
334
+ const $ = c(1);
335
+ if ($[0] !== "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9") {
336
+ for (let $i = 0; $i < 1; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
337
+ $[0] = "a9a469a99242723a03ab2ab21b9513f8d7f393e7a397296039721f8243a94fd9";
338
+ }
339
+ const context = useContext(FileContext);
340
+ if (!context) throw new Error("FileViewer components must be used within FileViewer");
341
+ return context;
342
+ };
343
+ //#endregion
344
+ //#region src/components/file/fileViewer/common/ActionsMenu.tsx
345
+ const ActionsMenu = (t0) => {
346
+ const $ = c(43);
347
+ if ($[0] !== "6eb84d1b42ada694d43e5cfc1e200edbb4eef104bdd9b5612054591d9c8531c5") {
348
+ for (let $i = 0; $i < 43; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
349
+ $[0] = "6eb84d1b42ada694d43e5cfc1e200edbb4eef104bdd9b5612054591d9c8531c5";
350
+ }
351
+ const { meta, menu, setMenu } = t0;
352
+ const { t } = useTranslation();
353
+ const { fileMetas, onDelete, actions, appName } = useFile();
354
+ const { confirm } = useDialogs();
355
+ let t1;
356
+ if ($[1] !== setMenu) {
357
+ t1 = () => {
358
+ setMenu(null);
359
+ };
360
+ $[1] = setMenu;
361
+ $[2] = t1;
362
+ } else t1 = $[2];
363
+ const handleMenuClose = t1;
364
+ let t2;
365
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
366
+ t2 = { from: rootRouteId };
367
+ $[3] = t2;
368
+ } else t2 = $[3];
369
+ const queryClient = useMatch(t2).context.queryClient;
370
+ let t3;
371
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
372
+ t3 = downloadFileMutationOptions();
373
+ $[4] = t3;
374
+ } else t3 = $[4];
375
+ const { mutate: download, isPending: isDownloading } = useMutation(t3);
376
+ let t4;
377
+ if ($[5] !== queryClient) {
378
+ t4 = deleteFileMutationOptions({ queryClient });
379
+ $[5] = queryClient;
380
+ $[6] = t4;
381
+ } else t4 = $[6];
382
+ const { mutate: deleteFile, isPending: isDeleting } = useMutation(t4);
383
+ let t5;
384
+ if ($[7] !== appName || $[8] !== download || $[9] !== handleMenuClose || $[10] !== meta.fileExtension || $[11] !== meta.fileName || $[12] !== meta.id) {
385
+ t5 = () => {
386
+ handleMenuClose();
387
+ download({
388
+ id: meta.id,
389
+ appName,
390
+ fileName: meta.fileName,
391
+ fileExtension: meta.fileExtension
392
+ });
393
+ };
394
+ $[7] = appName;
395
+ $[8] = download;
396
+ $[9] = handleMenuClose;
397
+ $[10] = meta.fileExtension;
398
+ $[11] = meta.fileName;
399
+ $[12] = meta.id;
400
+ $[13] = t5;
401
+ } else t5 = $[13];
402
+ const handleOnDownload = t5;
403
+ let t6;
404
+ if ($[14] !== appName || $[15] !== confirm || $[16] !== deleteFile || $[17] !== fileMetas || $[18] !== handleMenuClose || $[19] !== meta || $[20] !== onDelete || $[21] !== t) {
405
+ t6 = async () => {
406
+ if (!await confirm(t("Layout.File.AreYouSureYouWantToDelete", { name: meta.fileName }))) return;
407
+ deleteFile({
408
+ id: meta.id,
409
+ appName
410
+ });
411
+ handleMenuClose();
412
+ if (onDelete) {
413
+ const remainingFileMetas = fileMetas.filter((m) => m.id !== meta.id);
414
+ onDelete({
415
+ remainingFileMetas,
416
+ deletedFileMeta: meta
417
+ });
418
+ }
419
+ };
420
+ $[14] = appName;
421
+ $[15] = confirm;
422
+ $[16] = deleteFile;
423
+ $[17] = fileMetas;
424
+ $[18] = handleMenuClose;
425
+ $[19] = meta;
426
+ $[20] = onDelete;
427
+ $[21] = t;
428
+ $[22] = t6;
429
+ } else t6 = $[22];
430
+ const handleOnDelete = t6;
431
+ const t7 = menu !== null;
432
+ let t8;
433
+ if ($[23] !== menu) {
434
+ t8 = menu === null ? void 0 : {
435
+ top: menu.mouseY,
436
+ left: menu.mouseX
437
+ };
438
+ $[23] = menu;
439
+ $[24] = t8;
440
+ } else t8 = $[24];
441
+ let t9;
442
+ if ($[25] !== actions?.download || $[26] !== handleOnDownload || $[27] !== isDownloading || $[28] !== t) {
443
+ t9 = actions?.download !== false && /* @__PURE__ */ jsxs(ListItemButton, {
444
+ onClick: handleOnDownload,
445
+ disabled: isDownloading,
446
+ children: [/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(FileDownload, {}) }), /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Download") })]
447
+ });
448
+ $[25] = actions?.download;
449
+ $[26] = handleOnDownload;
450
+ $[27] = isDownloading;
451
+ $[28] = t;
452
+ $[29] = t9;
453
+ } else t9 = $[29];
454
+ let t10;
455
+ if ($[30] !== actions?.delete || $[31] !== handleOnDelete || $[32] !== isDeleting || $[33] !== t) {
456
+ t10 = actions?.delete !== false && /* @__PURE__ */ jsxs(ListItemButton, {
457
+ onClick: handleOnDelete,
458
+ disabled: isDeleting,
459
+ children: [/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Delete, {}) }), /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Delete") })]
460
+ });
461
+ $[30] = actions?.delete;
462
+ $[31] = handleOnDelete;
463
+ $[32] = isDeleting;
464
+ $[33] = t;
465
+ $[34] = t10;
466
+ } else t10 = $[34];
467
+ let t11;
468
+ if ($[35] !== t10 || $[36] !== t9) {
469
+ t11 = /* @__PURE__ */ jsxs(List, {
470
+ disablePadding: true,
471
+ children: [t9, t10]
472
+ });
473
+ $[35] = t10;
474
+ $[36] = t9;
475
+ $[37] = t11;
476
+ } else t11 = $[37];
477
+ let t12;
478
+ if ($[38] !== handleMenuClose || $[39] !== t11 || $[40] !== t7 || $[41] !== t8) {
479
+ t12 = /* @__PURE__ */ jsx(Menu, {
480
+ open: t7,
481
+ onClose: handleMenuClose,
482
+ anchorReference: "anchorPosition",
483
+ variant: "menu",
484
+ anchorPosition: t8,
485
+ children: t11
486
+ });
487
+ $[38] = handleMenuClose;
488
+ $[39] = t11;
489
+ $[40] = t7;
490
+ $[41] = t8;
491
+ $[42] = t12;
492
+ } else t12 = $[42];
493
+ return t12;
494
+ };
495
+ //#endregion
496
+ //#region src/components/file/fileViewer/FileViewerGrid.tsx
497
+ const IMAGE_SIZE = 150;
498
+ const FileViewerGrid = (t0) => {
499
+ const $ = c(13);
500
+ if ($[0] !== "5d77705eb7d3c9a0156b26bd48f623dca912b69c2621470852f3a952a02eb0ba") {
501
+ for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
502
+ $[0] = "5d77705eb7d3c9a0156b26bd48f623dca912b69c2621470852f3a952a02eb0ba";
503
+ }
504
+ const { sx, size, itemBar } = t0;
505
+ const { fileMetas } = useFile();
506
+ let t1;
507
+ if ($[1] !== sx) {
508
+ t1 = {
509
+ overflow: "auto",
510
+ ...sx
511
+ };
512
+ $[1] = sx;
513
+ $[2] = t1;
514
+ } else t1 = $[2];
515
+ let t2;
516
+ if ($[3] !== fileMetas || $[4] !== itemBar || $[5] !== size) {
517
+ let t3;
518
+ if ($[7] !== itemBar || $[8] !== size) {
519
+ t3 = (fileMeta) => /* @__PURE__ */ jsx(GridFileViewerItem, {
520
+ meta: fileMeta,
521
+ size,
522
+ itemBar
523
+ }, fileMeta.id);
524
+ $[7] = itemBar;
525
+ $[8] = size;
526
+ $[9] = t3;
527
+ } else t3 = $[9];
528
+ t2 = fileMetas.map(t3);
529
+ $[3] = fileMetas;
530
+ $[4] = itemBar;
531
+ $[5] = size;
532
+ $[6] = t2;
533
+ } else t2 = $[6];
534
+ let t3;
535
+ if ($[10] !== t1 || $[11] !== t2) {
536
+ t3 = /* @__PURE__ */ jsx(Stack, {
537
+ direction: "row",
538
+ spacing: 1,
539
+ sx: t1,
540
+ children: t2
541
+ });
542
+ $[10] = t1;
543
+ $[11] = t2;
544
+ $[12] = t3;
545
+ } else t3 = $[12];
546
+ return t3;
547
+ };
548
+ const GridFileViewerItem = (t0) => {
549
+ const $ = c(56);
550
+ if ($[0] !== "5d77705eb7d3c9a0156b26bd48f623dca912b69c2621470852f3a952a02eb0ba") {
551
+ for (let $i = 0; $i < 56; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
552
+ $[0] = "5d77705eb7d3c9a0156b26bd48f623dca912b69c2621470852f3a952a02eb0ba";
553
+ }
554
+ const { meta, size, itemBar } = t0;
555
+ const { setImageId, actions, appName } = useFile();
556
+ const [showItemBar, setShowItemBar] = useState(itemBar === "always");
557
+ const [menu, setMenu] = useState(null);
558
+ const { ref, inView } = useInView();
559
+ const queryClient = useQueryClient();
560
+ let t1;
561
+ let t2;
562
+ if ($[1] !== itemBar) {
563
+ t1 = () => {
564
+ setShowItemBar(itemBar === "always");
565
+ };
566
+ t2 = [itemBar];
567
+ $[1] = itemBar;
568
+ $[2] = t1;
569
+ $[3] = t2;
570
+ } else {
571
+ t1 = $[2];
572
+ t2 = $[3];
573
+ }
574
+ useEffect(t1, t2);
575
+ let t3;
576
+ if ($[4] !== appName || $[5] !== meta.id) {
577
+ t3 = fileThumbnailQueryOptions({
578
+ id: meta.id,
579
+ appName
580
+ });
581
+ $[4] = appName;
582
+ $[5] = meta.id;
583
+ $[6] = t3;
584
+ } else t3 = $[6];
585
+ let t4;
586
+ if ($[7] !== inView || $[8] !== t3) {
587
+ t4 = {
588
+ ...t3,
589
+ enabled: inView
590
+ };
591
+ $[7] = inView;
592
+ $[8] = t3;
593
+ $[9] = t4;
594
+ } else t4 = $[9];
595
+ const { data: source, isPending } = useQuery(t4);
596
+ let t5;
597
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
598
+ t5 = () => setShowItemBar(true);
599
+ $[10] = t5;
600
+ } else t5 = $[10];
601
+ const handleOnMouseEnter = t5;
602
+ let t6;
603
+ if ($[11] !== itemBar) {
604
+ t6 = () => itemBar !== "always" && setShowItemBar(false);
605
+ $[11] = itemBar;
606
+ $[12] = t6;
607
+ } else t6 = $[12];
608
+ const handleOnMouseLeave = t6;
609
+ let t7;
610
+ if ($[13] !== menu) {
611
+ t7 = (event) => {
612
+ setMenu(menu === null ? {
613
+ mouseX: event.clientX,
614
+ mouseY: event.clientY
615
+ } : null);
616
+ setTimeout(() => setShowItemBar(true));
617
+ };
618
+ $[13] = menu;
619
+ $[14] = t7;
620
+ } else t7 = $[14];
621
+ const openMenu = t7;
622
+ let t8;
623
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
624
+ t8 = openFileMutationOptions();
625
+ $[15] = t8;
626
+ } else t8 = $[15];
627
+ const { mutate: openFile } = useMutation(t8);
628
+ let t9;
629
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
630
+ t9 = downloadFileMutationOptions();
631
+ $[16] = t9;
632
+ } else t9 = $[16];
633
+ const { mutate: download } = useMutation(t9);
634
+ let t10;
635
+ if ($[17] !== appName || $[18] !== download || $[19] !== meta.fileExtension || $[20] !== meta.fileName || $[21] !== meta.id || $[22] !== meta.mediaType || $[23] !== openFile || $[24] !== setImageId) {
636
+ t10 = () => {
637
+ switch (meta.mediaType) {
638
+ case "image": return setImageId(meta.id);
639
+ case "application": return openFile({
640
+ id: meta.id,
641
+ appName
642
+ });
643
+ case "video": return openFile({
644
+ id: meta.id,
645
+ appName
646
+ });
647
+ default: return download({
648
+ id: meta.id,
649
+ appName,
650
+ fileName: meta.fileName,
651
+ fileExtension: meta.fileExtension
652
+ });
653
+ }
654
+ };
655
+ $[17] = appName;
656
+ $[18] = download;
657
+ $[19] = meta.fileExtension;
658
+ $[20] = meta.fileName;
659
+ $[21] = meta.id;
660
+ $[22] = meta.mediaType;
661
+ $[23] = openFile;
662
+ $[24] = setImageId;
663
+ $[25] = t10;
664
+ } else t10 = $[25];
665
+ const onClick = t10;
666
+ const t11 = size ?? IMAGE_SIZE;
667
+ const t12 = size ?? IMAGE_SIZE;
668
+ let t13;
669
+ if ($[26] !== t11 || $[27] !== t12) {
670
+ t13 = {
671
+ width: t11,
672
+ height: t12
673
+ };
674
+ $[26] = t11;
675
+ $[27] = t12;
676
+ $[28] = t13;
677
+ } else t13 = $[28];
678
+ let t14;
679
+ if ($[29] !== appName || $[30] !== isPending || $[31] !== meta.id || $[32] !== onClick || $[33] !== queryClient || $[34] !== size || $[35] !== source) {
680
+ t14 = isPending ? /* @__PURE__ */ jsx(Skeleton, {
681
+ variant: "rectangular",
682
+ width: size ?? IMAGE_SIZE,
683
+ height: size ?? IMAGE_SIZE
684
+ }) : /* @__PURE__ */ jsx(Box, {
685
+ component: "img",
686
+ src: source,
687
+ loading: "lazy",
688
+ alt: "thumbnail-" + meta.id,
689
+ onClick,
690
+ onMouseEnter: () => queryClient.prefetchQuery(fileQueryOptions({
691
+ id: meta.id,
692
+ appName
693
+ })),
694
+ sx: {
695
+ cursor: "pointer",
696
+ objectFit: "contain",
697
+ width: size ?? IMAGE_SIZE,
698
+ height: size ?? IMAGE_SIZE
699
+ }
700
+ });
701
+ $[29] = appName;
702
+ $[30] = isPending;
703
+ $[31] = meta.id;
704
+ $[32] = onClick;
705
+ $[33] = queryClient;
706
+ $[34] = size;
707
+ $[35] = source;
708
+ $[36] = t14;
709
+ } else t14 = $[36];
710
+ let t15;
711
+ if ($[37] !== actions || $[38] !== itemBar || $[39] !== meta.fileName || $[40] !== openMenu || $[41] !== showItemBar) {
712
+ t15 = itemBar !== "hidden" && showItemBar && /* @__PURE__ */ jsx(ImageListItemBar, {
713
+ title: /* @__PURE__ */ jsx(Tooltip, {
714
+ title: meta.fileName,
715
+ children: /* @__PURE__ */ jsx(Box, { children: meta.fileName })
716
+ }),
717
+ actionIcon: (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(IconButton, {
718
+ sx: { color: grey[100] },
719
+ onClick: openMenu,
720
+ "aria-label": "File actions",
721
+ children: /* @__PURE__ */ jsx(MoreVert, {})
722
+ })
723
+ });
724
+ $[37] = actions;
725
+ $[38] = itemBar;
726
+ $[39] = meta.fileName;
727
+ $[40] = openMenu;
728
+ $[41] = showItemBar;
729
+ $[42] = t15;
730
+ } else t15 = $[42];
731
+ let t16;
732
+ if ($[43] !== handleOnMouseLeave || $[44] !== ref || $[45] !== t13 || $[46] !== t14 || $[47] !== t15) {
733
+ t16 = /* @__PURE__ */ jsxs(ImageListItem, {
734
+ sx: t13,
735
+ onMouseEnter: handleOnMouseEnter,
736
+ onMouseLeave: handleOnMouseLeave,
737
+ ref,
738
+ children: [t14, t15]
739
+ });
740
+ $[43] = handleOnMouseLeave;
741
+ $[44] = ref;
742
+ $[45] = t13;
743
+ $[46] = t14;
744
+ $[47] = t15;
745
+ $[48] = t16;
746
+ } else t16 = $[48];
747
+ let t17;
748
+ if ($[49] !== actions || $[50] !== menu || $[51] !== meta) {
749
+ t17 = (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(ActionsMenu, {
750
+ meta,
751
+ menu,
752
+ setMenu
753
+ });
754
+ $[49] = actions;
755
+ $[50] = menu;
756
+ $[51] = meta;
757
+ $[52] = t17;
758
+ } else t17 = $[52];
759
+ let t18;
760
+ if ($[53] !== t16 || $[54] !== t17) {
761
+ t18 = /* @__PURE__ */ jsxs(Fragment, { children: [t16, t17] });
762
+ $[53] = t16;
763
+ $[54] = t17;
764
+ $[55] = t18;
765
+ } else t18 = $[55];
766
+ return t18;
767
+ };
768
+ //#endregion
769
+ //#region src/components/file/fileViewer/FileViewerList.tsx
770
+ const FileViewerList = (t0) => {
771
+ const $ = c(6);
772
+ if ($[0] !== "a4215cc2ecb024896765e7f105faef1183c309efe5e27865642494da8f087679") {
773
+ for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
774
+ $[0] = "a4215cc2ecb024896765e7f105faef1183c309efe5e27865642494da8f087679";
775
+ }
776
+ const { sx } = t0;
777
+ const { fileMetas } = useFile();
778
+ let t1;
779
+ if ($[1] !== fileMetas) {
780
+ t1 = fileMetas.map(_temp);
781
+ $[1] = fileMetas;
782
+ $[2] = t1;
783
+ } else t1 = $[2];
784
+ let t2;
785
+ if ($[3] !== sx || $[4] !== t1) {
786
+ t2 = /* @__PURE__ */ jsx(List, {
787
+ dense: true,
788
+ sx,
789
+ children: t1
790
+ });
791
+ $[3] = sx;
792
+ $[4] = t1;
793
+ $[5] = t2;
794
+ } else t2 = $[5];
795
+ return t2;
796
+ };
797
+ const ListFileViewerItem = (t0) => {
798
+ const $ = c(41);
799
+ if ($[0] !== "a4215cc2ecb024896765e7f105faef1183c309efe5e27865642494da8f087679") {
800
+ for (let $i = 0; $i < 41; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
801
+ $[0] = "a4215cc2ecb024896765e7f105faef1183c309efe5e27865642494da8f087679";
802
+ }
803
+ const { meta } = t0;
804
+ const { setImageId, actions, appName } = useFile();
805
+ const [menu, setMenu] = useState(null);
806
+ const queryClient = useQueryClient();
807
+ let t1;
808
+ if ($[1] !== menu) {
809
+ t1 = (event) => {
810
+ event.stopPropagation();
811
+ setMenu(menu === null ? {
812
+ mouseX: event.clientX,
813
+ mouseY: event.clientY
814
+ } : null);
815
+ };
816
+ $[1] = menu;
817
+ $[2] = t1;
818
+ } else t1 = $[2];
819
+ const openMenu = t1;
820
+ let t2;
821
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
822
+ t2 = openFileMutationOptions();
823
+ $[3] = t2;
824
+ } else t2 = $[3];
825
+ const { mutate: openFile } = useMutation(t2);
826
+ let t3;
827
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
828
+ t3 = downloadFileMutationOptions();
829
+ $[4] = t3;
830
+ } else t3 = $[4];
831
+ const { mutate: download } = useMutation(t3);
832
+ let t4;
833
+ if ($[5] !== appName || $[6] !== download || $[7] !== meta.fileExtension || $[8] !== meta.fileName || $[9] !== meta.id || $[10] !== meta.mediaType || $[11] !== openFile || $[12] !== setImageId) {
834
+ t4 = () => {
835
+ switch (meta.mediaType) {
836
+ case "image": return setImageId(meta.id);
837
+ case "application": return openFile({
838
+ id: meta.id,
839
+ appName
840
+ });
841
+ case "video": return openFile({
842
+ id: meta.id,
843
+ appName
844
+ });
845
+ default: return download({
846
+ id: meta.id,
847
+ appName,
848
+ fileName: meta.fileName,
849
+ fileExtension: meta.fileExtension
850
+ });
851
+ }
852
+ };
853
+ $[5] = appName;
854
+ $[6] = download;
855
+ $[7] = meta.fileExtension;
856
+ $[8] = meta.fileName;
857
+ $[9] = meta.id;
858
+ $[10] = meta.mediaType;
859
+ $[11] = openFile;
860
+ $[12] = setImageId;
861
+ $[13] = t4;
862
+ } else t4 = $[13];
863
+ const onClick = t4;
864
+ let t5;
865
+ if ($[14] !== meta.mediaType) {
866
+ t5 = () => {
867
+ switch (meta.mediaType) {
868
+ case "image": return /* @__PURE__ */ jsx(Image, {});
869
+ case "video": return /* @__PURE__ */ jsx(SmartDisplay, {});
870
+ default: return /* @__PURE__ */ jsx(AttachFile, {});
871
+ }
872
+ };
873
+ $[14] = meta.mediaType;
874
+ $[15] = t5;
875
+ } else t5 = $[15];
876
+ const icon = t5;
877
+ let t6;
878
+ if ($[16] !== appName || $[17] !== meta.id || $[18] !== queryClient) {
879
+ t6 = () => queryClient.prefetchQuery(fileQueryOptions({
880
+ id: meta.id,
881
+ appName
882
+ }));
883
+ $[16] = appName;
884
+ $[17] = meta.id;
885
+ $[18] = queryClient;
886
+ $[19] = t6;
887
+ } else t6 = $[19];
888
+ let t7;
889
+ if ($[20] !== icon) {
890
+ t7 = /* @__PURE__ */ jsx(ListItemIcon, { children: icon() });
891
+ $[20] = icon;
892
+ $[21] = t7;
893
+ } else t7 = $[21];
894
+ const t8 = `${meta.fileName}.${meta.fileExtension}`;
895
+ let t9;
896
+ if ($[22] !== t8) {
897
+ t9 = /* @__PURE__ */ jsx(ListItemText, { primary: t8 });
898
+ $[22] = t8;
899
+ $[23] = t9;
900
+ } else t9 = $[23];
901
+ let t10;
902
+ if ($[24] !== actions || $[25] !== openMenu) {
903
+ t10 = (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(IconButton, {
904
+ edge: "end",
905
+ onClick: openMenu,
906
+ "aria-label": "File actions",
907
+ children: /* @__PURE__ */ jsx(MoreVert, {})
908
+ });
909
+ $[24] = actions;
910
+ $[25] = openMenu;
911
+ $[26] = t10;
912
+ } else t10 = $[26];
913
+ let t11;
914
+ if ($[27] !== meta.id || $[28] !== onClick || $[29] !== t10 || $[30] !== t6 || $[31] !== t7 || $[32] !== t9) {
915
+ t11 = /* @__PURE__ */ jsxs(ListItemButton, {
916
+ onClick,
917
+ onMouseEnter: t6,
918
+ children: [
919
+ t7,
920
+ t9,
921
+ t10
922
+ ]
923
+ }, meta.id);
924
+ $[27] = meta.id;
925
+ $[28] = onClick;
926
+ $[29] = t10;
927
+ $[30] = t6;
928
+ $[31] = t7;
929
+ $[32] = t9;
930
+ $[33] = t11;
931
+ } else t11 = $[33];
932
+ let t12;
933
+ if ($[34] !== actions || $[35] !== menu || $[36] !== meta) {
934
+ t12 = (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(ActionsMenu, {
935
+ meta,
936
+ menu,
937
+ setMenu
938
+ });
939
+ $[34] = actions;
940
+ $[35] = menu;
941
+ $[36] = meta;
942
+ $[37] = t12;
943
+ } else t12 = $[37];
944
+ let t13;
945
+ if ($[38] !== t11 || $[39] !== t12) {
946
+ t13 = /* @__PURE__ */ jsxs(Fragment, { children: [t11, t12] });
947
+ $[38] = t11;
948
+ $[39] = t12;
949
+ $[40] = t13;
950
+ } else t13 = $[40];
951
+ return t13;
952
+ };
953
+ function _temp(fileMeta) {
954
+ return /* @__PURE__ */ jsx(ListFileViewerItem, { meta: fileMeta }, fileMeta.id);
955
+ }
956
+ //#endregion
957
+ //#region src/components/file/fileViewer/ImageViewer.tsx
958
+ const ImageViewer = ({ metaId }) => {
959
+ const { fileMetas, setImageId, appName } = useFile();
960
+ const meta = fileMetas.find((m) => m.id === metaId);
961
+ const { data: source, isPending } = useQuery({
962
+ ...fileQueryOptions({
963
+ id: meta?.id ?? "",
964
+ appName
965
+ }),
966
+ enabled: !!meta
967
+ });
968
+ useEffect(() => {
969
+ if (metaId) globalThis.addEventListener("keydown", handleOnKeydown);
970
+ return () => {
971
+ globalThis.removeEventListener("keydown", handleOnKeydown);
972
+ };
973
+ }, [metaId]);
974
+ const handleOnKeydown = (event) => {
975
+ const images = fileMetas.filter((m_0) => m_0.mediaType === "image");
976
+ const imageIndex = images.findIndex((m_1) => m_1.id === metaId);
977
+ switch (event.key) {
978
+ case "ArrowLeft": return handleOnArrowLeft(images, imageIndex);
979
+ case "ArrowRight": return handleOnArrowRight(images, imageIndex);
980
+ case "Backspace":
981
+ case "Escape":
982
+ event.preventDefault();
983
+ return onClose();
984
+ }
985
+ };
986
+ const handleOnArrowLeft = (images_0, index) => {
987
+ if (index > 0) {
988
+ const previousFile = images_0[index - 1];
989
+ setImageId(previousFile.id);
990
+ }
991
+ };
992
+ const handleOnArrowRight = (images_1, index_0) => {
993
+ if (index_0 < images_1.length - 1) {
994
+ const nextFile = images_1[index_0 + 1];
995
+ setImageId(nextFile.id);
996
+ }
997
+ };
998
+ const onClose = () => setImageId("");
999
+ if (!meta) return null;
1000
+ return /* @__PURE__ */ jsxs(Dialog, {
1001
+ open: true,
1002
+ onClose,
1003
+ maxWidth: "xl",
1004
+ children: [isPending ? /* @__PURE__ */ jsx(Skeleton, {
1005
+ variant: "rectangular",
1006
+ sx: {
1007
+ width: {
1008
+ xs: "100vw",
1009
+ sm: 600
1010
+ },
1011
+ height: {
1012
+ xs: "calc(100vh - 56px)",
1013
+ sm: "calc(100vh - 64px)"
1014
+ }
1015
+ }
1016
+ }) : /* @__PURE__ */ jsx(Box, {
1017
+ component: "img",
1018
+ src: source,
1019
+ alt: meta.fileName,
1020
+ sx: {
1021
+ maxWidth: "100vw",
1022
+ maxHeight: {
1023
+ xs: "calc(100vh - 56px)",
1024
+ sm: "calc(100vh - 64px)"
1025
+ }
1026
+ }
1027
+ }), /* @__PURE__ */ jsx(Fab, {
1028
+ size: "medium",
1029
+ onClick: onClose,
1030
+ "aria-label": "Close",
1031
+ sx: {
1032
+ position: "fixed",
1033
+ top: 8,
1034
+ right: 8
1035
+ },
1036
+ children: /* @__PURE__ */ jsx(Close, {})
1037
+ })]
1038
+ });
1039
+ };
1040
+ //#endregion
1041
+ //#region src/components/file/FileViewer.tsx
1042
+ const FileViewer = (t0) => {
1043
+ const $ = c(22);
1044
+ if ($[0] !== "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e") {
1045
+ for (let $i = 0; $i < 22; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1046
+ $[0] = "f20716e955e976c65e4217e568b647786c1c8599751fff5b227781489170527e";
1047
+ }
1048
+ const { appName, subId, onDelete, actions, children } = t0;
1049
+ let t1;
1050
+ if ($[1] !== appName || $[2] !== subId) {
1051
+ t1 = fileMetasQueryOptions({
1052
+ appName,
1053
+ subId
1054
+ });
1055
+ $[1] = appName;
1056
+ $[2] = subId;
1057
+ $[3] = t1;
1058
+ } else t1 = $[3];
1059
+ const t2 = !!subId;
1060
+ let t3;
1061
+ if ($[4] !== t1 || $[5] !== t2) {
1062
+ t3 = {
1063
+ ...t1,
1064
+ enabled: t2
1065
+ };
1066
+ $[4] = t1;
1067
+ $[5] = t2;
1068
+ $[6] = t3;
1069
+ } else t3 = $[6];
1070
+ const { data: t4 } = useQuery(t3);
1071
+ let t5;
1072
+ if ($[7] !== t4) {
1073
+ t5 = t4 === void 0 ? [] : t4;
1074
+ $[7] = t4;
1075
+ $[8] = t5;
1076
+ } else t5 = $[8];
1077
+ const fileMetas = t5;
1078
+ const [imageId, setImageId] = useState("");
1079
+ if (fileMetas.length === 0) return null;
1080
+ let t6;
1081
+ if ($[9] !== actions || $[10] !== appName || $[11] !== fileMetas || $[12] !== onDelete) {
1082
+ t6 = {
1083
+ appName,
1084
+ fileMetas,
1085
+ onDelete,
1086
+ actions,
1087
+ setImageId
1088
+ };
1089
+ $[9] = actions;
1090
+ $[10] = appName;
1091
+ $[11] = fileMetas;
1092
+ $[12] = onDelete;
1093
+ $[13] = t6;
1094
+ } else t6 = $[13];
1095
+ let t7;
1096
+ if ($[14] !== children) {
1097
+ t7 = children({
1098
+ Grid: FileViewerGrid,
1099
+ List: FileViewerList
1100
+ });
1101
+ $[14] = children;
1102
+ $[15] = t7;
1103
+ } else t7 = $[15];
1104
+ let t8;
1105
+ if ($[16] !== imageId) {
1106
+ t8 = /* @__PURE__ */ jsx(ImageViewer, { metaId: imageId });
1107
+ $[16] = imageId;
1108
+ $[17] = t8;
1109
+ } else t8 = $[17];
1110
+ let t9;
1111
+ if ($[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
1112
+ t9 = /* @__PURE__ */ jsxs(FileContext.Provider, {
1113
+ value: t6,
1114
+ children: [t7, t8]
1115
+ });
1116
+ $[18] = t6;
1117
+ $[19] = t7;
1118
+ $[20] = t8;
1119
+ $[21] = t9;
1120
+ } else t9 = $[21];
1121
+ return t9;
1122
+ };
1123
+ //#endregion
1124
+ //#region src/components/data-grid/EditableColumnHeader.tsx
1125
+ const EditableColumnHeader = (t0) => {
1126
+ const $ = c(4);
1127
+ if ($[0] !== "6a15ed1416d709da03e45c16a891abdc148cf158eccf7a8f811dad6581ee54b2") {
1128
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1129
+ $[0] = "6a15ed1416d709da03e45c16a891abdc148cf158eccf7a8f811dad6581ee54b2";
1130
+ }
1131
+ const { colDef } = t0;
1132
+ let t1;
1133
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1134
+ t1 = /* @__PURE__ */ jsx(Edit, {
1135
+ color: "disabled",
1136
+ fontSize: "small"
1137
+ });
1138
+ $[1] = t1;
1139
+ } else t1 = $[1];
1140
+ let t2;
1141
+ if ($[2] !== colDef.headerName) {
1142
+ t2 = /* @__PURE__ */ jsx(TypographyWithIcon, {
1143
+ endIcon: t1,
1144
+ variant: "body2",
1145
+ className: "MuiDataGrid-columnHeaderTitle",
1146
+ children: colDef.headerName
1147
+ });
1148
+ $[2] = colDef.headerName;
1149
+ $[3] = t2;
1150
+ } else t2 = $[3];
1151
+ return t2;
1152
+ };
1153
+ //#endregion
1154
+ //#region src/components/router/RouterButton.tsx
1155
+ const CreatedComponent$4 = createLink(React.forwardRef(function ButtonComponent(props, reference) {
1156
+ const $ = c(4);
1157
+ if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
1158
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1159
+ $[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
1160
+ }
1161
+ let t0;
1162
+ if ($[1] !== props || $[2] !== reference) {
1163
+ t0 = /* @__PURE__ */ jsx(Button, {
1164
+ ref: reference,
1165
+ component: "a",
1166
+ ...props
1167
+ });
1168
+ $[1] = props;
1169
+ $[2] = reference;
1170
+ $[3] = t0;
1171
+ } else t0 = $[3];
1172
+ return t0;
1173
+ }));
1174
+ const RouterButton = (props) => {
1175
+ const $ = c(3);
1176
+ if ($[0] !== "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133") {
1177
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1178
+ $[0] = "ac6204c9fa419bc8efad3ebea0df725f19f2cc476a09c695e535caec26527133";
1179
+ }
1180
+ let t0;
1181
+ if ($[1] !== props) {
1182
+ t0 = /* @__PURE__ */ jsx(CreatedComponent$4, { ...props });
1183
+ $[1] = props;
1184
+ $[2] = t0;
1185
+ } else t0 = $[2];
1186
+ return t0;
1187
+ };
1188
+ //#endregion
1189
+ //#region src/components/router/RouterFab.tsx
1190
+ const CreatedComponent$3 = createLink(React.forwardRef(function FabComponent(props, reference) {
1191
+ const $ = c(4);
1192
+ if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
1193
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1194
+ $[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
1195
+ }
1196
+ let t0;
1197
+ if ($[1] !== props || $[2] !== reference) {
1198
+ t0 = /* @__PURE__ */ jsx(Fab, {
1199
+ ref: reference,
1200
+ component: "a",
1201
+ ...props
1202
+ });
1203
+ $[1] = props;
1204
+ $[2] = reference;
1205
+ $[3] = t0;
1206
+ } else t0 = $[3];
1207
+ return t0;
1208
+ }));
1209
+ const RouterFab = (props) => {
1210
+ const $ = c(3);
1211
+ if ($[0] !== "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b") {
1212
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1213
+ $[0] = "ecf406c2f1df75bd8d4f8cc1e2a0841119cda75e807b28c7c03400a2d927c16b";
1214
+ }
1215
+ let t0;
1216
+ if ($[1] !== props) {
1217
+ t0 = /* @__PURE__ */ jsx(CreatedComponent$3, { ...props });
1218
+ $[1] = props;
1219
+ $[2] = t0;
1220
+ } else t0 = $[2];
1221
+ return t0;
1222
+ };
1223
+ //#endregion
1224
+ //#region src/components/router/RouterGridActionsCellItem.tsx
1225
+ const CreatedComponent$2 = createLink(React.forwardRef(function GridActionsCellItemComponent(props, reference) {
1226
+ const $ = c(4);
1227
+ if ($[0] !== "fe0074f677567d6263d3c9001c809e24912c6a92680ef5ea22c5d1aebd696958") {
1228
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1229
+ $[0] = "fe0074f677567d6263d3c9001c809e24912c6a92680ef5ea22c5d1aebd696958";
1230
+ }
1231
+ let t0;
1232
+ if ($[1] !== props || $[2] !== reference) {
1233
+ t0 = /* @__PURE__ */ jsx(GridActionsCellItem, {
1234
+ ref: reference,
1235
+ component: "a",
1236
+ ...props
1237
+ });
1238
+ $[1] = props;
1239
+ $[2] = reference;
1240
+ $[3] = t0;
1241
+ } else t0 = $[3];
1242
+ return t0;
1243
+ }));
1244
+ const RouterGridActionsCellItem = (props) => {
1245
+ const $ = c(3);
1246
+ if ($[0] !== "fe0074f677567d6263d3c9001c809e24912c6a92680ef5ea22c5d1aebd696958") {
1247
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1248
+ $[0] = "fe0074f677567d6263d3c9001c809e24912c6a92680ef5ea22c5d1aebd696958";
1249
+ }
1250
+ let t0;
1251
+ if ($[1] !== props) {
1252
+ t0 = /* @__PURE__ */ jsx(CreatedComponent$2, { ...props });
1253
+ $[1] = props;
1254
+ $[2] = t0;
1255
+ } else t0 = $[2];
1256
+ return t0;
1257
+ };
1258
+ //#endregion
1259
+ //#region src/components/router/RouterLink.tsx
1260
+ const CreatedComponent$1 = createLink(React.forwardRef(function LinkComponent(props, reference) {
1261
+ const $ = c(4);
1262
+ if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
1263
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1264
+ $[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
1265
+ }
1266
+ let t0;
1267
+ if ($[1] !== props || $[2] !== reference) {
1268
+ t0 = /* @__PURE__ */ jsx(Link, {
1269
+ ref: reference,
1270
+ ...props
1271
+ });
1272
+ $[1] = props;
1273
+ $[2] = reference;
1274
+ $[3] = t0;
1275
+ } else t0 = $[3];
1276
+ return t0;
1277
+ }));
1278
+ const RouterLink = (props) => {
1279
+ const $ = c(3);
1280
+ if ($[0] !== "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979") {
1281
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1282
+ $[0] = "b12e87e18a050ab0e29a4efcc3bd2a9fa6915db983e56ea2dc68853a7dc4b979";
1283
+ }
1284
+ let t0;
1285
+ if ($[1] !== props) {
1286
+ t0 = /* @__PURE__ */ jsx(CreatedComponent$1, { ...props });
1287
+ $[1] = props;
1288
+ $[2] = t0;
1289
+ } else t0 = $[2];
1290
+ return t0;
1291
+ };
1292
+ //#endregion
1293
+ //#region src/components/router/RouterTab.tsx
1294
+ const CreatedComponent = createLink(React.forwardRef(function TabComponent(props, reference) {
1295
+ const $ = c(4);
1296
+ if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
1297
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1298
+ $[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
1299
+ }
1300
+ let t0;
1301
+ if ($[1] !== props || $[2] !== reference) {
1302
+ t0 = /* @__PURE__ */ jsx(Tab, {
1303
+ ref: reference,
1304
+ component: "a",
1305
+ ...props
1306
+ });
1307
+ $[1] = props;
1308
+ $[2] = reference;
1309
+ $[3] = t0;
1310
+ } else t0 = $[3];
1311
+ return t0;
1312
+ }));
1313
+ const RouterTab = (props) => {
1314
+ const $ = c(3);
1315
+ if ($[0] !== "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de") {
1316
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1317
+ $[0] = "219e07108be3e229bc6eb53840beb65505cbaaf46f02d872937e7895165a73de";
1318
+ }
1319
+ let t0;
1320
+ if ($[1] !== props) {
1321
+ t0 = /* @__PURE__ */ jsx(CreatedComponent, { ...props });
1322
+ $[1] = props;
1323
+ $[2] = t0;
1324
+ } else t0 = $[2];
1325
+ return t0;
1326
+ };
1327
+ //#endregion
1328
+ //#region src/components/router/RouterNotFound.tsx
1329
+ function RouterNotFound() {
1330
+ const $ = c(9);
1331
+ if ($[0] !== "a2fff6f270e5984a013a333cd77bf760bd02234c9fba174ec98da467b3cc7c39") {
1332
+ for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1333
+ $[0] = "a2fff6f270e5984a013a333cd77bf760bd02234c9fba174ec98da467b3cc7c39";
1334
+ }
1335
+ const { t } = useTranslation();
1336
+ let t0;
1337
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1338
+ t0 = {
1339
+ height: "100vh",
1340
+ display: "flex",
1341
+ flexDirection: "column",
1342
+ alignItems: "center",
1343
+ justifyContent: "center",
1344
+ textAlign: "center",
1345
+ px: 2
1346
+ };
1347
+ $[1] = t0;
1348
+ } else t0 = $[1];
1349
+ let t1;
1350
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1351
+ t1 = {
1352
+ display: "flex",
1353
+ alignItems: "center",
1354
+ mb: 4
1355
+ };
1356
+ $[2] = t1;
1357
+ } else t1 = $[2];
1358
+ let t2;
1359
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1360
+ t2 = /* @__PURE__ */ jsx(Typography, {
1361
+ variant: "h3",
1362
+ component: "span",
1363
+ sx: {
1364
+ fontWeight: 500,
1365
+ lineHeight: 1
1366
+ },
1367
+ children: "404"
1368
+ });
1369
+ $[3] = t2;
1370
+ } else t2 = $[3];
1371
+ let t3;
1372
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
1373
+ t3 = /* @__PURE__ */ jsx(Divider, {
1374
+ orientation: "vertical",
1375
+ flexItem: true,
1376
+ sx: { mx: 3 }
1377
+ });
1378
+ $[4] = t3;
1379
+ } else t3 = $[4];
1380
+ let t4;
1381
+ if ($[5] !== t) {
1382
+ t4 = t("Layout.ThisPageCouldNotBeFound");
1383
+ $[5] = t;
1384
+ $[6] = t4;
1385
+ } else t4 = $[6];
1386
+ let t5;
1387
+ if ($[7] !== t4) {
1388
+ t5 = /* @__PURE__ */ jsx(Box, {
1389
+ sx: t0,
1390
+ children: /* @__PURE__ */ jsxs(Box, {
1391
+ sx: t1,
1392
+ children: [
1393
+ t2,
1394
+ t3,
1395
+ /* @__PURE__ */ jsx(Typography, {
1396
+ variant: "h5",
1397
+ component: "span",
1398
+ children: t4
1399
+ })
1400
+ ]
1401
+ })
1402
+ });
1403
+ $[7] = t4;
1404
+ $[8] = t5;
1405
+ } else t5 = $[8];
1406
+ return t5;
1407
+ }
1408
+ //#endregion
1409
+ //#region src/components/router/RouterError.tsx
1410
+ const RouterError = (t0) => {
1411
+ const $ = c(12);
1412
+ if ($[0] !== "cf071e5896b5a38250f396768818719aba3f257e614991b086e2337a7a292d24") {
1413
+ for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1414
+ $[0] = "cf071e5896b5a38250f396768818719aba3f257e614991b086e2337a7a292d24";
1415
+ }
1416
+ const { error } = t0;
1417
+ let t1;
1418
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1419
+ t1 = {
1420
+ height: "100vh",
1421
+ display: "flex",
1422
+ flexDirection: "column",
1423
+ alignItems: "center",
1424
+ justifyContent: "center",
1425
+ textAlign: "center",
1426
+ px: 2
1427
+ };
1428
+ $[1] = t1;
1429
+ } else t1 = $[1];
1430
+ let t2;
1431
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1432
+ t2 = {
1433
+ display: "flex",
1434
+ alignItems: "center",
1435
+ mb: 4
1436
+ };
1437
+ $[2] = t2;
1438
+ } else t2 = $[2];
1439
+ let t3;
1440
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1441
+ t3 = {
1442
+ fontWeight: 500,
1443
+ lineHeight: 1
1444
+ };
1445
+ $[3] = t3;
1446
+ } else t3 = $[3];
1447
+ const t4 = error.name || "500";
1448
+ let t5;
1449
+ if ($[4] !== t4) {
1450
+ t5 = /* @__PURE__ */ jsx(Typography, {
1451
+ variant: "h3",
1452
+ component: "span",
1453
+ sx: t3,
1454
+ children: t4
1455
+ });
1456
+ $[4] = t4;
1457
+ $[5] = t5;
1458
+ } else t5 = $[5];
1459
+ let t6;
1460
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1461
+ t6 = /* @__PURE__ */ jsx(Divider, {
1462
+ orientation: "vertical",
1463
+ flexItem: true,
1464
+ sx: { mx: 3 }
1465
+ });
1466
+ $[6] = t6;
1467
+ } else t6 = $[6];
1468
+ let t7;
1469
+ if ($[7] !== error.message) {
1470
+ t7 = /* @__PURE__ */ jsx(Typography, {
1471
+ variant: "h5",
1472
+ component: "span",
1473
+ children: error.message
1474
+ });
1475
+ $[7] = error.message;
1476
+ $[8] = t7;
1477
+ } else t7 = $[8];
1478
+ let t8;
1479
+ if ($[9] !== t5 || $[10] !== t7) {
1480
+ t8 = /* @__PURE__ */ jsx(Box, {
1481
+ sx: t1,
1482
+ children: /* @__PURE__ */ jsxs(Box, {
1483
+ sx: t2,
1484
+ children: [
1485
+ t5,
1486
+ t6,
1487
+ t7
1488
+ ]
1489
+ })
1490
+ });
1491
+ $[9] = t5;
1492
+ $[10] = t7;
1493
+ $[11] = t8;
1494
+ } else t8 = $[11];
1495
+ return t8;
1496
+ };
1497
+ //#endregion
1498
+ export { Dropzone, EditableColumnHeader, FileViewer, Fullscreen, RouterButton, RouterError, RouterFab, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TypographyWithIcon };
1499
+
1500
+ //# sourceMappingURL=components.mjs.map