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