wcz-layout 6.7.2 → 7.6.1

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.

Potentially problematic release.


This version of wcz-layout might be problematic. Click here for more details.

Files changed (303) hide show
  1. package/dist/DialogsContext-BIhId-r8.js +7 -0
  2. package/dist/DialogsContext-BIhId-r8.js.map +1 -0
  3. package/dist/DialogsHooks-CZVdKmPv.js +207 -0
  4. package/dist/DialogsHooks-CZVdKmPv.js.map +1 -0
  5. package/dist/FileMeta-YGG9mxo_.js +36 -0
  6. package/dist/FileMeta-YGG9mxo_.js.map +1 -0
  7. package/dist/NotificationContext-DovR_auQ.js +7 -0
  8. package/dist/NotificationContext-DovR_auQ.js.map +1 -0
  9. package/dist/RouterListItemButton-DeaQB4ym.js +31 -0
  10. package/dist/RouterListItemButton-DeaQB4ym.js.map +1 -0
  11. package/dist/components/core/AppTitle.d.ts +2 -0
  12. package/dist/components/core/Fullscreen.d.ts +3 -0
  13. package/dist/components/core/Layout.d.ts +10 -0
  14. package/dist/{src/components/layout → components/core}/TypographyWithIcon.d.ts +1 -1
  15. package/dist/components/core/account/UserAvatar.d.ts +2 -0
  16. package/dist/components/core/account/UserMenu.d.ts +2 -0
  17. package/dist/components/core/navigation/NavigationContent.d.ts +11 -0
  18. package/dist/components/core/navigation/NavigationList.d.ts +22 -0
  19. package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
  20. package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
  21. package/dist/{src/components/dataGrid → components/data-grid}/ChipInputCell.d.ts +3 -3
  22. package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
  23. package/dist/components/file/Dropzone.d.ts +8 -0
  24. package/dist/components/file/FileViewer.d.ts +20 -0
  25. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
  26. package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
  27. package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
  28. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
  29. package/dist/{src/components → components}/form/FormAutocomplete.d.ts +3 -3
  30. package/dist/{src/components → components}/form/FormCheckbox.d.ts +3 -3
  31. package/dist/components/form/FormDatePicker.d.ts +8 -0
  32. package/dist/components/form/FormDateRangePicker.d.ts +8 -0
  33. package/dist/components/form/FormDateTimePicker.d.ts +8 -0
  34. package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
  35. package/dist/{src/components → components}/form/FormNumberField.d.ts +4 -7
  36. package/dist/{src/components → components}/form/FormRadioGroup.d.ts +4 -4
  37. package/dist/{src/components → components}/form/FormSlider.d.ts +3 -3
  38. package/dist/components/form/FormSubmitButton.d.ts +4 -0
  39. package/dist/{src/components → components}/form/FormSwitch.d.ts +3 -3
  40. package/dist/{src/components → components}/form/FormTextField.d.ts +3 -3
  41. package/dist/components/form/FormTimePicker.d.ts +8 -0
  42. package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
  43. package/dist/components/router/RouterButton.d.ts +6 -0
  44. package/dist/components/router/RouterError.d.ts +7 -0
  45. package/dist/components/router/RouterFab.d.ts +6 -0
  46. package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
  47. package/dist/components/router/RouterIconButton.d.ts +6 -0
  48. package/dist/components/router/RouterLink.d.ts +6 -0
  49. package/dist/components/router/RouterListItemButton.d.ts +6 -0
  50. package/dist/components/router/RouterNotFound.d.ts +1 -0
  51. package/dist/components/router/RouterTab.d.ts +6 -0
  52. package/dist/components.js +3255 -0
  53. package/dist/components.js.map +1 -0
  54. package/dist/contexts/DialogsContext.d.ts +6 -0
  55. package/dist/contexts/FileContext.d.ts +13 -0
  56. package/dist/contexts/NotificationContext.d.ts +9 -0
  57. package/dist/dist-Bxzg1_9c.js +152 -0
  58. package/dist/dist-Bxzg1_9c.js.map +1 -0
  59. package/dist/exports/components.d.ts +15 -0
  60. package/dist/exports/hooks.d.ts +7 -0
  61. package/dist/exports/index.d.ts +5 -0
  62. package/dist/exports/middleware.d.ts +2 -0
  63. package/dist/exports/models.d.ts +24 -0
  64. package/dist/exports/query.d.ts +3 -0
  65. package/dist/exports/utils.d.ts +6 -0
  66. package/dist/exports/vite.d.ts +1 -0
  67. package/dist/hooks/DialogsHooks.d.ts +42 -0
  68. package/dist/hooks/FormHooks.d.ts +52 -0
  69. package/dist/hooks/UseNotification.d.ts +1 -0
  70. package/dist/hooks/UseScanDetection.d.ts +28 -0
  71. package/dist/hooks.js +1075 -0
  72. package/dist/hooks.js.map +1 -0
  73. package/dist/index.js +1105 -0
  74. package/dist/index.js.map +1 -0
  75. package/dist/lib/auth/msalClient.d.ts +19 -0
  76. package/dist/lib/auth/msalServer.d.ts +11 -0
  77. package/dist/lib/auth/permissions.d.ts +4 -0
  78. package/dist/lib/auth/scopes.d.ts +4 -0
  79. package/dist/lib/db/collections/userCollection.d.ts +18 -0
  80. package/dist/lib/queryClient.d.ts +2 -0
  81. package/dist/lib/theme.d.ts +1 -0
  82. package/dist/lib/utils.d.ts +63 -0
  83. package/dist/lib/vite-plugin.d.ts +2 -0
  84. package/dist/middleware/authMiddleware.d.ts +22 -0
  85. package/dist/middleware/validationMiddleware.d.ts +4 -0
  86. package/dist/middleware.js +1051 -0
  87. package/dist/middleware.js.map +1 -0
  88. package/dist/models/LayoutOptions.d.ts +7 -0
  89. package/dist/models/Navigation.d.ts +18 -0
  90. package/dist/models/TokenPayload.d.ts +9 -0
  91. package/dist/models/User.d.ts +10 -0
  92. package/dist/models/VaultConfig.d.ts +9 -0
  93. package/dist/models/approval/Approval.d.ts +177 -0
  94. package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
  95. package/dist/models/approval/ApprovalFlow.d.ts +49 -0
  96. package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
  97. package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
  98. package/dist/models/approval/ApprovalStatus.d.ts +9 -0
  99. package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
  100. package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
  101. package/dist/models/email/Email.d.ts +13 -0
  102. package/dist/models/email/EmailAttachment.d.ts +6 -0
  103. package/dist/models/file/FileActions.d.ts +6 -0
  104. package/dist/models/file/FileMeta.d.ts +15 -0
  105. package/dist/models/peoplesoft/Department.d.ts +58 -0
  106. package/dist/models/peoplesoft/Employee.d.ts +46 -0
  107. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
  108. package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
  109. package/dist/models.js +150 -0
  110. package/dist/models.js.map +1 -0
  111. package/dist/providers/DialogsProvider.d.ts +5 -0
  112. package/dist/providers/LayoutProvider.d.ts +12 -0
  113. package/dist/providers/MsalAuthProvider.d.ts +6 -0
  114. package/dist/providers/NotificationProvider.d.ts +7 -0
  115. package/dist/queries/ApprovalQueries.d.ts +661 -0
  116. package/dist/queries/FileQueries.d.ts +205 -0
  117. package/dist/queries/PeopleSoftQueries.d.ts +2173 -0
  118. package/dist/queries/index.d.ts +2958 -0
  119. package/dist/queries-D-DV5lCw.js +2941 -0
  120. package/dist/queries-D-DV5lCw.js.map +1 -0
  121. package/dist/query.js +3 -0
  122. package/dist/queryClient-B__OEZ70.js +7 -0
  123. package/dist/queryClient-B__OEZ70.js.map +1 -0
  124. package/dist/utils-C4oJ0tr5.js +157 -0
  125. package/dist/utils-C4oJ0tr5.js.map +1 -0
  126. package/dist/utils.js +35 -0
  127. package/dist/utils.js.map +1 -0
  128. package/dist/vite.js +110 -0
  129. package/dist/vite.js.map +1 -0
  130. package/package.json +132 -62
  131. package/dist/src/components/Layout.d.ts +0 -16
  132. package/dist/src/components/Layout.js +0 -122
  133. package/dist/src/components/Layout.js.map +0 -1
  134. package/dist/src/components/dataGrid/ChipInputCell.js +0 -17
  135. package/dist/src/components/dataGrid/ChipInputCell.js.map +0 -1
  136. package/dist/src/components/dataGrid/EditableColumnHeader.d.ts +0 -2
  137. package/dist/src/components/dataGrid/EditableColumnHeader.js +0 -7
  138. package/dist/src/components/dataGrid/EditableColumnHeader.js.map +0 -1
  139. package/dist/src/components/dataGrid/GridToolbar.d.ts +0 -8
  140. package/dist/src/components/dataGrid/GridToolbar.js +0 -40
  141. package/dist/src/components/dataGrid/GridToolbar.js.map +0 -1
  142. package/dist/src/components/dataGrid/TableContainer.d.ts +0 -3
  143. package/dist/src/components/dataGrid/TableContainer.js +0 -32
  144. package/dist/src/components/dataGrid/TableContainer.js.map +0 -1
  145. package/dist/src/components/form/FormAutocomplete.js +0 -10
  146. package/dist/src/components/form/FormAutocomplete.js.map +0 -1
  147. package/dist/src/components/form/FormCheckbox.js +0 -11
  148. package/dist/src/components/form/FormCheckbox.js.map +0 -1
  149. package/dist/src/components/form/FormDatePicker.d.ts +0 -9
  150. package/dist/src/components/form/FormDatePicker.js +0 -19
  151. package/dist/src/components/form/FormDatePicker.js.map +0 -1
  152. package/dist/src/components/form/FormDateTimePicker.d.ts +0 -9
  153. package/dist/src/components/form/FormDateTimePicker.js +0 -19
  154. package/dist/src/components/form/FormDateTimePicker.js.map +0 -1
  155. package/dist/src/components/form/FormNumberField.js +0 -12
  156. package/dist/src/components/form/FormNumberField.js.map +0 -1
  157. package/dist/src/components/form/FormRadioGroup.js +0 -11
  158. package/dist/src/components/form/FormRadioGroup.js.map +0 -1
  159. package/dist/src/components/form/FormSlider.js +0 -11
  160. package/dist/src/components/form/FormSlider.js.map +0 -1
  161. package/dist/src/components/form/FormSubmitButton.d.ts +0 -5
  162. package/dist/src/components/form/FormSubmitButton.js +0 -13
  163. package/dist/src/components/form/FormSubmitButton.js.map +0 -1
  164. package/dist/src/components/form/FormSwitch.js +0 -11
  165. package/dist/src/components/form/FormSwitch.js.map +0 -1
  166. package/dist/src/components/form/FormTextField.js +0 -11
  167. package/dist/src/components/form/FormTextField.js.map +0 -1
  168. package/dist/src/components/layout/AccountMenu.d.ts +0 -9
  169. package/dist/src/components/layout/AccountMenu.js +0 -44
  170. package/dist/src/components/layout/AccountMenu.js.map +0 -1
  171. package/dist/src/components/layout/DevelopmentBanner.d.ts +0 -7
  172. package/dist/src/components/layout/DevelopmentBanner.js +0 -29
  173. package/dist/src/components/layout/DevelopmentBanner.js.map +0 -1
  174. package/dist/src/components/layout/ErrorPage.d.ts +0 -2
  175. package/dist/src/components/layout/ErrorPage.js +0 -25
  176. package/dist/src/components/layout/ErrorPage.js.map +0 -1
  177. package/dist/src/components/layout/LayoutDialog.d.ts +0 -12
  178. package/dist/src/components/layout/LayoutDialog.js +0 -12
  179. package/dist/src/components/layout/LayoutDialog.js.map +0 -1
  180. package/dist/src/components/layout/LayoutSnackbar.d.ts +0 -8
  181. package/dist/src/components/layout/LayoutSnackbar.js +0 -25
  182. package/dist/src/components/layout/LayoutSnackbar.js.map +0 -1
  183. package/dist/src/components/layout/NavigationDrawer.d.ts +0 -11
  184. package/dist/src/components/layout/NavigationDrawer.js +0 -70
  185. package/dist/src/components/layout/NavigationDrawer.js.map +0 -1
  186. package/dist/src/components/layout/NotificationMenu.d.ts +0 -8
  187. package/dist/src/components/layout/NotificationMenu.js +0 -26
  188. package/dist/src/components/layout/NotificationMenu.js.map +0 -1
  189. package/dist/src/components/layout/TypographyWithIcon.js +0 -22
  190. package/dist/src/components/layout/TypographyWithIcon.js.map +0 -1
  191. package/dist/src/components/layout/Unauthorized.d.ts +0 -2
  192. package/dist/src/components/layout/Unauthorized.js +0 -26
  193. package/dist/src/components/layout/Unauthorized.js.map +0 -1
  194. package/dist/src/contexts/LayoutContext.d.ts +0 -40
  195. package/dist/src/contexts/LayoutContext.js +0 -60
  196. package/dist/src/contexts/LayoutContext.js.map +0 -1
  197. package/dist/src/contexts/UserContext.d.ts +0 -24
  198. package/dist/src/contexts/UserContext.js +0 -55
  199. package/dist/src/contexts/UserContext.js.map +0 -1
  200. package/dist/src/hooks/FormHooks.d.ts +0 -46
  201. package/dist/src/hooks/FormHooks.js +0 -31
  202. package/dist/src/hooks/FormHooks.js.map +0 -1
  203. package/dist/src/hooks/UseSnackbar.d.ts +0 -10
  204. package/dist/src/hooks/UseSnackbar.js +0 -23
  205. package/dist/src/hooks/UseSnackbar.js.map +0 -1
  206. package/dist/src/hooks/UseUser.d.ts +0 -10
  207. package/dist/src/hooks/UseUser.js +0 -25
  208. package/dist/src/hooks/UseUser.js.map +0 -1
  209. package/dist/src/index.d.ts +0 -20
  210. package/dist/src/index.js +0 -15
  211. package/dist/src/index.js.map +0 -1
  212. package/dist/src/models/Error.d.ts +0 -6
  213. package/dist/src/models/Error.js +0 -2
  214. package/dist/src/models/Error.js.map +0 -1
  215. package/dist/src/models/KeycloakSettings.d.ts +0 -8
  216. package/dist/src/models/KeycloakSettings.js +0 -2
  217. package/dist/src/models/KeycloakSettings.js.map +0 -1
  218. package/dist/src/models/LayoutPaletteColorOptions.d.ts +0 -6
  219. package/dist/src/models/LayoutPaletteColorOptions.js +0 -2
  220. package/dist/src/models/LayoutPaletteColorOptions.js.map +0 -1
  221. package/dist/src/models/LayoutRoute.d.ts +0 -14
  222. package/dist/src/models/LayoutRoute.js +0 -2
  223. package/dist/src/models/LayoutRoute.js.map +0 -1
  224. package/dist/src/models/Notification.d.ts +0 -9
  225. package/dist/src/models/Notification.js +0 -2
  226. package/dist/src/models/Notification.js.map +0 -1
  227. package/dist/src/models/PeoplesoftDepartment.d.ts +0 -14
  228. package/dist/src/models/PeoplesoftDepartment.js +0 -2
  229. package/dist/src/models/PeoplesoftDepartment.js.map +0 -1
  230. package/dist/src/models/PeoplesoftEmployee.d.ts +0 -34
  231. package/dist/src/models/PeoplesoftEmployee.js +0 -2
  232. package/dist/src/models/PeoplesoftEmployee.js.map +0 -1
  233. package/dist/src/models/Snackbar.d.ts +0 -15
  234. package/dist/src/models/Snackbar.js +0 -2
  235. package/dist/src/models/Snackbar.js.map +0 -1
  236. package/dist/src/models/User.d.ts +0 -27
  237. package/dist/src/models/User.js +0 -11
  238. package/dist/src/models/User.js.map +0 -1
  239. package/dist/src/models/types/EmployeeCategoryGroup.d.ts +0 -1
  240. package/dist/src/models/types/EmployeeCategoryGroup.js +0 -2
  241. package/dist/src/models/types/EmployeeCategoryGroup.js.map +0 -1
  242. package/dist/src/models/types/EmployeeStatus.d.ts +0 -1
  243. package/dist/src/models/types/EmployeeStatus.js +0 -2
  244. package/dist/src/models/types/EmployeeStatus.js.map +0 -1
  245. package/dist/src/utils/Auth.d.ts +0 -12
  246. package/dist/src/utils/Auth.js +0 -49
  247. package/dist/src/utils/Auth.js.map +0 -1
  248. package/dist/src/utils/Fetches.d.ts +0 -5
  249. package/dist/src/utils/Fetches.js +0 -66
  250. package/dist/src/utils/Fetches.js.map +0 -1
  251. package/dist/src/utils/FormUtils.d.ts +0 -7
  252. package/dist/src/utils/FormUtils.js +0 -9
  253. package/dist/src/utils/FormUtils.js.map +0 -1
  254. package/dist/src/utils/Helpers.d.ts +0 -11
  255. package/dist/src/utils/Helpers.js +0 -26
  256. package/dist/src/utils/Helpers.js.map +0 -1
  257. package/dist/tsconfig.tsbuildinfo +0 -1
  258. package/src/components/Layout.tsx +0 -183
  259. package/src/components/dataGrid/ChipInputCell.tsx +0 -31
  260. package/src/components/dataGrid/EditableColumnHeader.tsx +0 -7
  261. package/src/components/dataGrid/GridToolbar.tsx +0 -63
  262. package/src/components/dataGrid/TableContainer.tsx +0 -39
  263. package/src/components/form/FormAutocomplete.tsx +0 -34
  264. package/src/components/form/FormCheckbox.tsx +0 -32
  265. package/src/components/form/FormDatePicker.tsx +0 -34
  266. package/src/components/form/FormDateTimePicker.tsx +0 -34
  267. package/src/components/form/FormNumberField.tsx +0 -33
  268. package/src/components/form/FormRadioGroup.tsx +0 -43
  269. package/src/components/form/FormSlider.tsx +0 -28
  270. package/src/components/form/FormSubmitButton.tsx +0 -29
  271. package/src/components/form/FormSwitch.tsx +0 -32
  272. package/src/components/form/FormTextField.tsx +0 -26
  273. package/src/components/layout/AccountMenu.tsx +0 -160
  274. package/src/components/layout/DevelopmentBanner.tsx +0 -54
  275. package/src/components/layout/ErrorPage.tsx +0 -34
  276. package/src/components/layout/LayoutDialog.tsx +0 -50
  277. package/src/components/layout/LayoutSnackbar.tsx +0 -44
  278. package/src/components/layout/NavigationDrawer.tsx +0 -131
  279. package/src/components/layout/NotificationMenu.tsx +0 -76
  280. package/src/components/layout/TypographyWithIcon.tsx +0 -35
  281. package/src/components/layout/Unauthorized.tsx +0 -37
  282. package/src/contexts/LayoutContext.tsx +0 -127
  283. package/src/contexts/UserContext.tsx +0 -88
  284. package/src/hooks/FormHooks.ts +0 -33
  285. package/src/hooks/UseSnackbar.tsx +0 -28
  286. package/src/hooks/UseUser.tsx +0 -29
  287. package/src/index.ts +0 -27
  288. package/src/models/Error.tsx +0 -6
  289. package/src/models/KeycloakSettings.ts +0 -8
  290. package/src/models/LayoutPaletteColorOptions.tsx +0 -7
  291. package/src/models/LayoutRoute.ts +0 -15
  292. package/src/models/Notification.ts +0 -10
  293. package/src/models/PeoplesoftDepartment.ts +0 -15
  294. package/src/models/PeoplesoftEmployee.ts +0 -35
  295. package/src/models/Snackbar.ts +0 -16
  296. package/src/models/User.ts +0 -13
  297. package/src/models/types/EmployeeCategoryGroup.ts +0 -1
  298. package/src/models/types/EmployeeStatus.ts +0 -1
  299. package/src/utils/Auth.ts +0 -58
  300. package/src/utils/Fetches.ts +0 -83
  301. package/src/utils/FormUtils.ts +0 -22
  302. package/src/utils/Helpers.ts +0 -27
  303. package/tsconfig.json +0 -29
package/dist/index.js ADDED
@@ -0,0 +1,1105 @@
1
+ import { t as e } from "./DialogsContext-BIhId-r8.js";
2
+ import { t } from "./NotificationContext-DovR_auQ.js";
3
+ import { d as n, f as r, l as i, m as a, n as o, p as s, r as c, s as l, t as u, u as d } from "./utils-C4oJ0tr5.js";
4
+ import { t as f } from "./queryClient-B__OEZ70.js";
5
+ import { n as p, t as m } from "./RouterListItemButton-DeaQB4ym.js";
6
+ import { c as h } from "react/compiler-runtime";
7
+ import { AppBar as g, Avatar as _, Box as v, Chip as y, Collapse as b, CssBaseline as x, Grow as S, IconButton as C, InitColorSchemeScript as w, List as T, ListItem as E, ListItemButton as D, ListItemIcon as O, ListItemText as k, ListSubheader as ee, Menu as te, Stack as A, ThemeProvider as j, Toolbar as M, Typography as N, useColorScheme as P } from "@mui/material";
8
+ import { LocalizationProvider as F } from "@mui/x-date-pickers";
9
+ import { AdapterDayjs as I } from "@mui/x-date-pickers/AdapterDayjs";
10
+ import ne from "dayjs";
11
+ import L from "i18next";
12
+ import R from "i18next-browser-languagedetector";
13
+ import { initReactI18next as z, useTranslation as re } from "react-i18next";
14
+ import { resources as B } from "virtual:wcz-layout";
15
+ import * as V from "zod";
16
+ import H from "zod";
17
+ import { Fragment as ie, useEffect as U, useId as W, useRef as G, useState as K } from "react";
18
+ import q from "@mui/utils/useEventCallback";
19
+ import { Fragment as ae, jsx as J, jsxs as Y } from "react/jsx-runtime";
20
+ import X from "@mui/material/Alert";
21
+ import Z from "@mui/material/Snackbar";
22
+ import { EventType as Q, InteractionStatus as $, InteractionType as oe } from "@azure/msal-browser";
23
+ import { AuthenticatedTemplate as se, MsalAuthenticationTemplate as ce, MsalProvider as le, UnauthenticatedTemplate as ue, useMsal as de } from "@azure/msal-react";
24
+ import fe from "@mui/icons-material/Menu";
25
+ import pe from "@mui/icons-material/MenuOpen";
26
+ import { styled as me } from "@mui/material/styles";
27
+ import { rootRouteId as he, useLocation as ge, useMatch as _e, useMatches as ve, useNavigate as ye, useRouter as be } from "@tanstack/react-router";
28
+ import xe from "@mui/icons-material/AccountCircle";
29
+ import Se from "@mui/icons-material/ArrowBack";
30
+ import Ce from "@mui/icons-material/Brightness4";
31
+ import we from "@mui/icons-material/ChevronRight";
32
+ import Te from "@mui/icons-material/DarkMode";
33
+ import Ee from "@mui/icons-material/Done";
34
+ import De from "@mui/icons-material/LightMode";
35
+ import Oe from "@mui/icons-material/Login";
36
+ import ke from "@mui/icons-material/Logout";
37
+ import Ae from "@mui/icons-material/SettingsBrightness";
38
+ import je from "@mui/icons-material/Translate";
39
+ import { createCollection as Me, useLiveSuspenseQuery as Ne } from "@tanstack/react-db";
40
+ import { queryCollectionOptions as Pe } from "@tanstack/query-db-collection";
41
+ import Fe from "axios";
42
+ import Ie from "@mui/material/Drawer";
43
+ import Le from "@mui/material/Box";
44
+ import Re from "@mui/material/Divider";
45
+ import ze from "@mui/material/List";
46
+ import Be from "@mui/material/ListSubheader";
47
+ import Ve from "@mui/icons-material/ExpandMore";
48
+ import He from "@mui/material/Avatar";
49
+ import Ue from "@mui/material/ListItem";
50
+ import We from "@mui/material/ListItemButton";
51
+ import Ge from "@mui/material/ListItemIcon";
52
+ import Ke from "@mui/material/ListItemText";
53
+ import qe from "@mui/material/Paper";
54
+ import Je from "@mui/material/Typography";
55
+ //#region src/providers/DialogsProvider.tsx
56
+ function Ye({ children: t }) {
57
+ let [n, r] = K([]), i = W(), a = G(0), o = G(/* @__PURE__ */ new WeakMap()), s = q(function(e, t, n = {}) {
58
+ let { onClose: s = async () => {} } = n, c, l = new Promise((e) => {
59
+ c = e;
60
+ }), u = `${i}-${a.current}`;
61
+ a.current += 1;
62
+ let d = {
63
+ key: u,
64
+ open: !0,
65
+ promise: l,
66
+ Component: e,
67
+ payload: t,
68
+ onClose: s,
69
+ resolve: c
70
+ };
71
+ return o.current.set(l, d), r((e) => [...e, d]), l;
72
+ }), c = (e) => {
73
+ r((t) => t.filter((t) => t.promise !== e)), o.current.delete(e);
74
+ }, l = q(function(e) {
75
+ r((t) => t.map((t) => t.promise === e ? {
76
+ ...t,
77
+ open: !1
78
+ } : t)), setTimeout(() => c(e), 1e3);
79
+ }), u = q(async function(e, t) {
80
+ let n = o.current.get(e);
81
+ if (!n) throw Error("Dialog not found in stack");
82
+ try {
83
+ await n.onClose(t);
84
+ } finally {
85
+ n.resolve(t), l(e);
86
+ }
87
+ return e;
88
+ });
89
+ return /* @__PURE__ */ Y(e.Provider, {
90
+ value: {
91
+ open: s,
92
+ close: u
93
+ },
94
+ children: [t, n.map(({ key: e, open: t, Component: n, payload: r, promise: i }) => /* @__PURE__ */ J(n, {
95
+ payload: r,
96
+ open: t,
97
+ onClose: async (e) => {
98
+ await u(i, e);
99
+ }
100
+ }, e))]
101
+ });
102
+ }
103
+ //#endregion
104
+ //#region src/providers/NotificationProvider.tsx
105
+ var Xe = 1e3, Ze = (e) => {
106
+ let n = h(21), { children: r, snackbarOrigin: i } = e, a;
107
+ n[0] === Symbol.for("react.memo_cache_sentinel") ? (a = [], n[0] = a) : a = n[0];
108
+ let [o, s] = K(a), [c, l] = K(null), u = !!c, d = G(null), f;
109
+ n[1] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
110
+ s((e) => {
111
+ if (e.length === 0) return e;
112
+ let [t, ...n] = e;
113
+ return l(t), n;
114
+ });
115
+ }, n[1] = f) : f = n[1];
116
+ let p = f, m, g;
117
+ n[2] !== c || n[3] !== u || n[4] !== o.length ? (m = () => (!u && o.length > 0 && (d.current = setTimeout(p, c ? Xe : 0)), () => {
118
+ d.current && clearTimeout(d.current);
119
+ }), g = [
120
+ u,
121
+ o.length,
122
+ c
123
+ ], n[2] = c, n[3] = u, n[4] = o.length, n[5] = m, n[6] = g) : (m = n[5], g = n[6]), U(m, g);
124
+ let _;
125
+ n[7] === Symbol.for("react.memo_cache_sentinel") ? (_ = (e, t) => {
126
+ let n = {
127
+ message: e,
128
+ severity: t?.severity,
129
+ autoHideDuration: t?.autoHideDuration ?? 5e3
130
+ };
131
+ s((e) => [...e, n]);
132
+ }, n[7] = _) : _ = n[7];
133
+ let v = _, y;
134
+ n[8] === Symbol.for("react.memo_cache_sentinel") ? (y = { notify: v }, n[8] = y) : y = n[8];
135
+ let b = c?.autoHideDuration, x;
136
+ n[9] === Symbol.for("react.memo_cache_sentinel") ? (x = (e, t) => {
137
+ t !== "clickaway" && l(null);
138
+ }, n[9] = x) : x = n[9];
139
+ let S = c?.message, C;
140
+ n[10] === c ? C = n[11] : (C = c?.severity ? /* @__PURE__ */ J(X, {
141
+ onClose: () => l(null),
142
+ severity: c.severity,
143
+ variant: "filled",
144
+ children: c.message
145
+ }) : void 0, n[10] = c, n[11] = C);
146
+ let w;
147
+ n[12] !== u || n[13] !== i || n[14] !== C || n[15] !== b || n[16] !== S ? (w = /* @__PURE__ */ J(Z, {
148
+ open: u,
149
+ autoHideDuration: b,
150
+ onClose: x,
151
+ anchorOrigin: i,
152
+ message: S,
153
+ children: C
154
+ }), n[12] = u, n[13] = i, n[14] = C, n[15] = b, n[16] = S, n[17] = w) : w = n[17];
155
+ let T;
156
+ return n[18] !== r || n[19] !== w ? (T = /* @__PURE__ */ Y(t, {
157
+ value: y,
158
+ children: [r, w]
159
+ }), n[18] = r, n[19] = w, n[20] = T) : T = n[20], T;
160
+ }, Qe = Fe.create({ baseURL: "https://graph.microsoft.com/v1.0" });
161
+ Qe.interceptors.request.use(async (e) => {
162
+ let t = await d("graph");
163
+ return e.headers.set("Authorization", `Bearer ${t}`), e;
164
+ });
165
+ var $e = Me(Pe({
166
+ queryKey: [
167
+ "graph",
168
+ "me",
169
+ "photo"
170
+ ],
171
+ schema: V.object({
172
+ id: V.string(),
173
+ photoUrl: V.string()
174
+ }),
175
+ queryFn: async () => {
176
+ let e = await Qe.get("/me/photo/$value", { responseType: "arraybuffer" });
177
+ return [{
178
+ id: "me",
179
+ photoUrl: `data:image/jpeg;base64,${btoa(new Uint8Array(e.data).reduce((e, t) => e + String.fromCodePoint(t), ""))}`
180
+ }];
181
+ },
182
+ getKey: (e) => e.id,
183
+ queryClient: f,
184
+ staleTime: Infinity,
185
+ gcTime: Infinity
186
+ })), et = () => {
187
+ let e = h(3), { data: t } = Ne(tt), n = t?.photoUrl, r;
188
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
189
+ width: {
190
+ xs: 32,
191
+ sm: 40
192
+ },
193
+ height: {
194
+ xs: 32,
195
+ sm: 40
196
+ }
197
+ }, e[0] = r) : r = e[0];
198
+ let i;
199
+ return e[1] === n ? i = e[2] : (i = /* @__PURE__ */ J(_, {
200
+ src: n,
201
+ sx: r
202
+ }), e[1] = n, e[2] = i), i;
203
+ };
204
+ function tt(e) {
205
+ return e.from({ todo: $e }).findOne();
206
+ }
207
+ //#endregion
208
+ //#region src/components/core/account/UserMenu.tsx
209
+ var nt = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), rt = () => {
210
+ let e = h(143), [t, n] = K(), [r, i] = K("settings"), a = !!t, { t: o, i18n: s } = re(), { mode: c, setMode: l } = P(), { instance: u } = de(), d;
211
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = { from: he }, e[0] = d) : d = e[0];
212
+ let f = _e(d).context.user, p, m, g, _, y, b, x;
213
+ if (e[1] !== s || e[2] !== c || e[3] !== l || e[4] !== o) {
214
+ let t = (Array.isArray(s.options.supportedLngs) ? s.options.supportedLngs : []).filter(it), r = new Intl.DisplayNames([s.language], { type: "language" }), a;
215
+ e[12] === o ? a = e[13] : (a = o("Layout.Light"), e[12] = o, e[13] = a);
216
+ let u;
217
+ e[14] === a ? u = e[15] : (u = {
218
+ mode: "light",
219
+ icon: De,
220
+ label: a
221
+ }, e[14] = a, e[15] = u);
222
+ let d;
223
+ e[16] === o ? d = e[17] : (d = o("Layout.Dark"), e[16] = o, e[17] = d);
224
+ let f;
225
+ e[18] === d ? f = e[19] : (f = {
226
+ mode: "dark",
227
+ icon: Te,
228
+ label: d
229
+ }, e[18] = d, e[19] = f);
230
+ let h;
231
+ e[20] === o ? h = e[21] : (h = o("Layout.System"), e[20] = o, e[21] = h);
232
+ let v;
233
+ e[22] === h ? v = e[23] : (v = {
234
+ mode: "system",
235
+ icon: Ae,
236
+ label: h
237
+ }, e[22] = h, e[23] = v);
238
+ let S;
239
+ e[24] !== u || e[25] !== f || e[26] !== v ? (S = [
240
+ u,
241
+ f,
242
+ v
243
+ ], e[24] = u, e[25] = f, e[26] = v, e[27] = S) : S = e[27];
244
+ let w = S, E;
245
+ e[28] === Symbol.for("react.memo_cache_sentinel") ? (E = (e) => n(e.currentTarget), e[28] = E) : E = e[28], g = E;
246
+ let te;
247
+ e[29] === Symbol.for("react.memo_cache_sentinel") ? (te = () => {
248
+ n(void 0), setTimeout(() => i("settings"), 300);
249
+ }, e[29] = te) : te = e[29], m = te;
250
+ let A;
251
+ e[30] === Symbol.for("react.memo_cache_sentinel") ? (A = (e) => () => i(e), e[30] = A) : A = e[30];
252
+ let j = A, M;
253
+ e[31] === Symbol.for("react.memo_cache_sentinel") ? (M = { backgroundColor: "transparent" }, e[31] = M) : M = e[31];
254
+ let N;
255
+ e[32] === o ? N = e[33] : (N = o("Layout.Settings"), e[32] = o, e[33] = N);
256
+ let P;
257
+ e[34] === N ? P = e[35] : (P = /* @__PURE__ */ J(ee, {
258
+ sx: M,
259
+ children: N
260
+ }), e[34] = N, e[35] = P);
261
+ let F, I;
262
+ e[36] === Symbol.for("react.memo_cache_sentinel") ? (F = j("theme"), I = { py: .3 }, e[36] = F, e[37] = I) : (F = e[36], I = e[37]);
263
+ let ne;
264
+ e[38] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(Ce, {}) }), e[38] = ne) : ne = e[38];
265
+ let L;
266
+ e[39] === o ? L = e[40] : (L = o("Layout.Appearance"), e[39] = o, e[40] = L);
267
+ let R;
268
+ e[41] !== w || e[42] !== c || e[43] !== o ? (R = w.find((e) => e.mode === c)?.label ?? o("Layout.System"), e[41] = w, e[42] = c, e[43] = o, e[44] = R) : R = e[44];
269
+ let z;
270
+ e[45] !== L || e[46] !== R ? (z = /* @__PURE__ */ J(k, {
271
+ primary: L,
272
+ secondary: R
273
+ }), e[45] = L, e[46] = R, e[47] = z) : z = e[47];
274
+ let re;
275
+ e[48] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ J(we, {}), e[48] = re) : re = e[48];
276
+ let B;
277
+ e[49] === z ? B = e[50] : (B = /* @__PURE__ */ Y(D, {
278
+ onClick: F,
279
+ sx: I,
280
+ children: [
281
+ ne,
282
+ z,
283
+ re
284
+ ]
285
+ }), e[49] = z, e[50] = B);
286
+ let V, H;
287
+ e[51] === Symbol.for("react.memo_cache_sentinel") ? (V = j("language"), H = { py: .3 }, e[51] = V, e[52] = H) : (V = e[51], H = e[52]);
288
+ let ie;
289
+ e[53] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(je, {}) }), e[53] = ie) : ie = e[53];
290
+ let U;
291
+ e[54] === o ? U = e[55] : (U = o("Layout.Language"), e[54] = o, e[55] = U);
292
+ let W;
293
+ e[56] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ J(we, {}), e[56] = W) : W = e[56];
294
+ let G = /* @__PURE__ */ Y(D, {
295
+ onClick: V,
296
+ sx: H,
297
+ children: [
298
+ ie,
299
+ /* @__PURE__ */ J(k, {
300
+ primary: U,
301
+ secondary: nt(r.of(s.language))
302
+ }),
303
+ W
304
+ ]
305
+ }), K;
306
+ e[57] !== P || e[58] !== B || e[59] !== G ? (K = /* @__PURE__ */ Y(T, {
307
+ component: "nav",
308
+ subheader: P,
309
+ children: [B, G]
310
+ }), e[57] = P, e[58] = B, e[59] = G, e[60] = K) : K = e[60], _ = K;
311
+ let q, ae;
312
+ e[61] === Symbol.for("react.memo_cache_sentinel") ? (q = j("settings"), ae = {
313
+ backgroundColor: "transparent",
314
+ display: "flex",
315
+ alignItems: "center",
316
+ px: 1,
317
+ cursor: "pointer"
318
+ }, e[61] = q, e[62] = ae) : (q = e[61], ae = e[62]);
319
+ let X;
320
+ e[63] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ J(C, {
321
+ size: "small",
322
+ sx: { mr: .5 },
323
+ children: /* @__PURE__ */ J(Se, { fontSize: "small" })
324
+ }), e[63] = X) : X = e[63];
325
+ let Z;
326
+ e[64] === o ? Z = e[65] : (Z = o("Layout.Appearance"), e[64] = o, e[65] = Z);
327
+ let Q;
328
+ e[66] === Z ? Q = e[67] : (Q = /* @__PURE__ */ Y(ee, {
329
+ onClick: q,
330
+ sx: ae,
331
+ children: [
332
+ X,
333
+ " ",
334
+ Z
335
+ ]
336
+ }), e[66] = Z, e[67] = Q);
337
+ let $;
338
+ e[68] !== w || e[69] !== c || e[70] !== l ? ($ = w.map((e) => {
339
+ let { mode: t, icon: n, label: r } = e;
340
+ return /* @__PURE__ */ Y(D, {
341
+ onClick: () => {
342
+ l(t), m();
343
+ },
344
+ selected: c === t,
345
+ children: [/* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(n, {}) }), /* @__PURE__ */ J(k, { primary: r })]
346
+ }, t);
347
+ }), e[68] = w, e[69] = c, e[70] = l, e[71] = $) : $ = e[71];
348
+ let oe;
349
+ e[72] !== Q || e[73] !== $ ? (oe = /* @__PURE__ */ J(T, {
350
+ subheader: Q,
351
+ children: $
352
+ }), e[72] = Q, e[73] = $, e[74] = oe) : oe = e[74], x = oe, p = T;
353
+ let se, ce;
354
+ e[75] === Symbol.for("react.memo_cache_sentinel") ? (se = j("settings"), ce = {
355
+ backgroundColor: "transparent",
356
+ display: "flex",
357
+ alignItems: "center",
358
+ px: 1,
359
+ cursor: "pointer"
360
+ }, e[75] = se, e[76] = ce) : (se = e[75], ce = e[76]);
361
+ let le;
362
+ e[77] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ J(C, {
363
+ size: "small",
364
+ sx: { mr: .5 },
365
+ children: /* @__PURE__ */ J(Se, { fontSize: "small" })
366
+ }), e[77] = le) : le = e[77];
367
+ let ue;
368
+ e[78] === o ? ue = e[79] : (ue = o("Layout.Language"), e[78] = o, e[79] = ue), e[80] === ue ? y = e[81] : (y = /* @__PURE__ */ Y(ee, {
369
+ onClick: se,
370
+ sx: ce,
371
+ children: [
372
+ le,
373
+ " ",
374
+ ue
375
+ ]
376
+ }), e[80] = ue, e[81] = y), b = t.map((e) => /* @__PURE__ */ Y(D, {
377
+ onClick: () => s.changeLanguage(e).finally(() => m()),
378
+ selected: s.resolvedLanguage === e,
379
+ children: [/* @__PURE__ */ J(O, { children: s.resolvedLanguage === e && /* @__PURE__ */ J(Ee, {}) }), /* @__PURE__ */ J(k, { primary: nt(r.of(e)) })]
380
+ }, e)), e[1] = s, e[2] = c, e[3] = l, e[4] = o, e[5] = p, e[6] = m, e[7] = g, e[8] = _, e[9] = y, e[10] = b, e[11] = x;
381
+ } else p = e[5], m = e[6], g = e[7], _ = e[8], y = e[9], b = e[10], x = e[11];
382
+ let S;
383
+ e[82] !== p || e[83] !== y || e[84] !== b ? (S = /* @__PURE__ */ J(p, {
384
+ subheader: y,
385
+ children: b
386
+ }), e[82] = p, e[83] = y, e[84] = b, e[85] = S) : S = e[85];
387
+ let w = S, A;
388
+ e[86] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ J(se, { children: /* @__PURE__ */ J(et, {}) }), e[86] = A) : A = e[86];
389
+ let j;
390
+ e[87] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ J(ue, { children: /* @__PURE__ */ J(xe, { sx: {
391
+ width: {
392
+ xs: 32,
393
+ sm: 40
394
+ },
395
+ height: {
396
+ xs: 32,
397
+ sm: 40
398
+ }
399
+ } }) }), e[87] = j) : j = e[87];
400
+ let M;
401
+ e[88] === g ? M = e[89] : (M = /* @__PURE__ */ Y(C, {
402
+ size: "small",
403
+ edge: "end",
404
+ onClick: g,
405
+ children: [A, j]
406
+ }), e[88] = g, e[89] = M);
407
+ let N;
408
+ e[90] === Symbol.for("react.memo_cache_sentinel") ? (N = { width: 240 }, e[90] = N) : N = e[90];
409
+ let F = f?.name, I;
410
+ e[91] === f ? I = e[92] : (I = f?.employeeId && /* @__PURE__ */ J("span", { children: f.employeeId }), e[91] = f, e[92] = I);
411
+ let ne;
412
+ e[93] === f?.employeeId ? ne = e[94] : (ne = f?.employeeId && /* @__PURE__ */ J("br", {}), e[93] = f?.employeeId, e[94] = ne);
413
+ let L;
414
+ e[95] === f ? L = e[96] : (L = f?.department && /* @__PURE__ */ J("span", { children: f.department }), e[95] = f, e[96] = L);
415
+ let R;
416
+ e[97] !== ne || e[98] !== L || e[99] !== I ? (R = /* @__PURE__ */ Y("span", { children: [
417
+ I,
418
+ ne,
419
+ L
420
+ ] }), e[97] = ne, e[98] = L, e[99] = I, e[100] = R) : R = e[100];
421
+ let z;
422
+ e[101] !== R || e[102] !== F ? (z = /* @__PURE__ */ J(E, { children: /* @__PURE__ */ J(k, {
423
+ primary: F,
424
+ secondary: R
425
+ }) }), e[101] = R, e[102] = F, e[103] = z) : z = e[103];
426
+ let B;
427
+ e[104] === u ? B = e[105] : (B = () => u.logoutRedirect({ postLogoutRedirectUri: "/" }), e[104] = u, e[105] = B);
428
+ let V;
429
+ e[106] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(ke, { color: "error" }) }), e[106] = V) : V = e[106];
430
+ let H;
431
+ e[107] === o ? H = e[108] : (H = o("Layout.Logout"), e[107] = o, e[108] = H);
432
+ let U;
433
+ e[109] === H ? U = e[110] : (U = /* @__PURE__ */ J(k, { primary: H }), e[109] = H, e[110] = U);
434
+ let W;
435
+ e[111] !== B || e[112] !== U ? (W = /* @__PURE__ */ Y(D, {
436
+ onClick: B,
437
+ children: [V, U]
438
+ }), e[111] = B, e[112] = U, e[113] = W) : W = e[113];
439
+ let G;
440
+ e[114] !== z || e[115] !== W ? (G = /* @__PURE__ */ Y(se, { children: [z, W] }), e[114] = z, e[115] = W, e[116] = G) : G = e[116];
441
+ let q;
442
+ e[117] === u ? q = e[118] : (q = () => u.loginRedirect(), e[117] = u, e[118] = q);
443
+ let ae;
444
+ e[119] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(Oe, { color: "success" }) }), e[119] = ae) : ae = e[119];
445
+ let X;
446
+ e[120] === o ? X = e[121] : (X = o("Layout.LogIn"), e[120] = o, e[121] = X);
447
+ let Z;
448
+ e[122] === X ? Z = e[123] : (Z = /* @__PURE__ */ J(k, { primary: X }), e[122] = X, e[123] = Z);
449
+ let Q;
450
+ e[124] !== q || e[125] !== Z ? (Q = /* @__PURE__ */ J(ue, { children: /* @__PURE__ */ Y(D, {
451
+ onClick: q,
452
+ children: [ae, Z]
453
+ }) }), e[124] = q, e[125] = Z, e[126] = Q) : Q = e[126];
454
+ let $;
455
+ e[127] !== G || e[128] !== Q ? ($ = /* @__PURE__ */ Y(T, {
456
+ disablePadding: !0,
457
+ children: [G, Q]
458
+ }), e[127] = G, e[128] = Q, e[129] = $) : $ = e[129];
459
+ let oe = r === "settings" && _, ce = r === "theme" && x, le = r === "language" && w, fe;
460
+ e[130] !== $ || e[131] !== oe || e[132] !== ce || e[133] !== le ? (fe = /* @__PURE__ */ Y(v, {
461
+ sx: N,
462
+ children: [
463
+ $,
464
+ oe,
465
+ ce,
466
+ le
467
+ ]
468
+ }), e[130] = $, e[131] = oe, e[132] = ce, e[133] = le, e[134] = fe) : fe = e[134];
469
+ let pe;
470
+ e[135] !== t || e[136] !== m || e[137] !== a || e[138] !== fe ? (pe = /* @__PURE__ */ J(te, {
471
+ anchorEl: t,
472
+ open: a,
473
+ onClose: m,
474
+ children: fe
475
+ }), e[135] = t, e[136] = m, e[137] = a, e[138] = fe, e[139] = pe) : pe = e[139];
476
+ let me;
477
+ return e[140] !== pe || e[141] !== M ? (me = /* @__PURE__ */ Y(ie, { children: [M, pe] }), e[140] = pe, e[141] = M, e[142] = me) : me = e[142], me;
478
+ };
479
+ function it(e) {
480
+ return e !== "cimode";
481
+ }
482
+ //#endregion
483
+ //#region src/components/core/AppTitle.tsx
484
+ var at = "PRD", ot = (e) => H.string().refine((e) => e.split("-").length > 2).transform((e) => e.split("-")[2].toUpperCase()).catch("LOCALHOST").parse(e), st = () => {
485
+ let e = h(9), t = be(), n;
486
+ e[0] === t.origin ? n = e[1] : (n = ot(t.origin), e[0] = t.origin, e[1] = n);
487
+ let r = n, i = r === at, o, s;
488
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(p, {
489
+ to: "/",
490
+ size: "small",
491
+ children: /* @__PURE__ */ J("img", {
492
+ src: "/favicon-32x32.png",
493
+ alt: "app-logo",
494
+ loading: "lazy"
495
+ })
496
+ }), s = /* @__PURE__ */ J(N, {
497
+ variant: "h6",
498
+ children: a.VITE_APP_TITLE
499
+ }), e[2] = o, e[3] = s) : (o = e[2], s = e[3]);
500
+ let c;
501
+ e[4] !== r || e[5] !== i ? (c = !i && /* @__PURE__ */ J(y, {
502
+ size: "small",
503
+ label: r,
504
+ color: "primary"
505
+ }), e[4] = r, e[5] = i, e[6] = c) : c = e[6];
506
+ let l;
507
+ return e[7] === c ? l = e[8] : (l = /* @__PURE__ */ Y(A, {
508
+ direction: "row",
509
+ alignItems: "center",
510
+ spacing: 1,
511
+ flexGrow: 1,
512
+ children: [
513
+ o,
514
+ s,
515
+ c
516
+ ]
517
+ }), e[7] = c, e[8] = l), l;
518
+ }, ct = 34, lt = (e) => e.vars?.palette.primary.dark ?? e.palette.primary.dark, ut = (e) => e.vars?.palette.action.active ?? e.palette.action.active, dt = me(We)(({ theme: e }) => ({
519
+ borderRadius: 8,
520
+ "&.Mui-selected": {
521
+ "& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": { color: lt(e) },
522
+ "& .MuiAvatar-root": { backgroundColor: lt(e) },
523
+ "& .MuiTouchRipple-child": { backgroundColor: lt(e) }
524
+ },
525
+ "& .MuiSvgIcon-root": { color: ut(e) },
526
+ "& .MuiAvatar-root": { backgroundColor: ut(e) }
527
+ })), ft = me(m)(({ theme: e }) => ({
528
+ borderRadius: 8,
529
+ "&.Mui-selected": {
530
+ "& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": { color: lt(e) },
531
+ "& .MuiAvatar-root": { backgroundColor: lt(e) },
532
+ "& .MuiTouchRipple-child": { backgroundColor: lt(e) }
533
+ },
534
+ "& .MuiSvgIcon-root": { color: ut(e) },
535
+ "& .MuiAvatar-root": { backgroundColor: ut(e) }
536
+ })), pt = (e) => {
537
+ let t = h(17), { item: n, collapsed: r } = e;
538
+ if (n.icon || r) {
539
+ let e;
540
+ t[0] === r ? e = t[1] : (e = r ? {
541
+ position: "absolute",
542
+ left: "50%",
543
+ top: "calc(50% - 6px)",
544
+ transform: "translate(-50%, -50%)"
545
+ } : {}, t[0] = r, t[1] = e);
546
+ let i;
547
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = {
548
+ display: "flex",
549
+ alignItems: "center",
550
+ justifyContent: "center",
551
+ minWidth: ct
552
+ }, t[2] = i) : i = t[2];
553
+ let a = n.icon ?? null, o;
554
+ t[3] !== r || t[4] !== n.icon || t[5] !== n.title ? (o = !n.icon && r ? /* @__PURE__ */ J(He, {
555
+ sx: {
556
+ width: ct - 7,
557
+ height: ct - 7,
558
+ fontSize: 12
559
+ },
560
+ children: n.title.split(" ").slice(0, 2).map(gt)
561
+ }) : null, t[3] = r, t[4] = n.icon, t[5] = n.title, t[6] = o) : o = t[6];
562
+ let s;
563
+ t[7] !== a || t[8] !== o ? (s = /* @__PURE__ */ Y(Ge, {
564
+ sx: i,
565
+ children: [a, o]
566
+ }), t[7] = a, t[8] = o, t[9] = s) : s = t[9];
567
+ let c;
568
+ t[10] !== r || t[11] !== n.title ? (c = r ? /* @__PURE__ */ J(Je, {
569
+ variant: "caption",
570
+ sx: {
571
+ position: "absolute",
572
+ bottom: -18,
573
+ left: "50%",
574
+ transform: "translateX(-50%)",
575
+ fontSize: 10,
576
+ fontWeight: 500,
577
+ textAlign: "center",
578
+ whiteSpace: "nowrap",
579
+ overflow: "hidden",
580
+ textOverflow: "ellipsis",
581
+ maxWidth: 56
582
+ },
583
+ children: n.title
584
+ }) : null, t[10] = r, t[11] = n.title, t[12] = c) : c = t[12];
585
+ let l;
586
+ return t[13] !== e || t[14] !== s || t[15] !== c ? (l = /* @__PURE__ */ Y(Le, {
587
+ sx: e,
588
+ children: [s, c]
589
+ }), t[13] = e, t[14] = s, t[15] = c, t[16] = l) : l = t[16], l;
590
+ }
591
+ return null;
592
+ }, mt = (e) => {
593
+ let t = h(7), { open: n, children: r } = e, i;
594
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
595
+ position: "fixed",
596
+ left: 84,
597
+ pl: "2px",
598
+ pb: "10px"
599
+ }, t[0] = i) : i = t[0];
600
+ let a;
601
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (a = {
602
+ pt: .5,
603
+ pb: .5,
604
+ transform: "translateY(calc(50% - 30px))",
605
+ maxHeight: "min(calc(100vh - 100px), 560px)",
606
+ overflowY: "auto",
607
+ overscrollBehavior: "contain"
608
+ }, t[1] = a) : a = t[1];
609
+ let o;
610
+ t[2] === r ? o = t[3] : (o = /* @__PURE__ */ J(Le, {
611
+ sx: i,
612
+ children: /* @__PURE__ */ J(qe, {
613
+ sx: a,
614
+ children: r
615
+ })
616
+ }), t[2] = r, t[3] = o);
617
+ let s;
618
+ return t[4] !== n || t[5] !== o ? (s = /* @__PURE__ */ J(S, {
619
+ in: n,
620
+ children: o
621
+ }), t[4] = n, t[5] = o, t[6] = s) : s = t[6], s;
622
+ }, ht = (e) => {
623
+ let t = h(56), { item: n, isOpen: r, selected: i, disabled: a, collapsed: o, isSidebarFullyExpanded: s, isSidebarFullyCollapsed: c, onClick: l, renderNested: u, onClose: d } = e, f = s === void 0 ? !0 : s, [p, m] = K(null), g = `${n.to ?? n.title}`, _;
624
+ t[0] !== o || t[1] !== r || t[2] !== c || t[3] !== f || t[4] !== n.children ? (_ = (e) => o && c && n.children ? {
625
+ fontSize: 18,
626
+ position: "absolute",
627
+ top: "41.5%",
628
+ right: "2px",
629
+ transform: "translateY(-50%) rotate(-90deg)"
630
+ } : !o && f && n.children ? {
631
+ ml: .5,
632
+ transform: `rotate(${r ? 0 : -90}deg)`,
633
+ transition: e.transitions.create("transform", {
634
+ easing: e.transitions.easing.sharp,
635
+ duration: 100
636
+ })
637
+ } : { display: "none" }, t[0] = o, t[1] = r, t[2] = c, t[3] = f, t[4] = n.children, t[5] = _) : _ = t[5];
638
+ let v = _, y = n.children && !o, x = o ? 60 : 48, S;
639
+ t[6] === x ? S = t[7] : (S = {
640
+ px: 1.4,
641
+ height: x
642
+ }, t[6] = x, t[7] = S);
643
+ let C;
644
+ t[8] !== a || t[9] !== i || t[10] !== S ? (C = {
645
+ selected: i,
646
+ disabled: a,
647
+ sx: S
648
+ }, t[8] = a, t[9] = i, t[10] = S, t[11] = C) : C = t[11];
649
+ let w = C, T;
650
+ t[12] !== o || t[13] !== n ? (T = /* @__PURE__ */ J(pt, {
651
+ item: n,
652
+ collapsed: o
653
+ }), t[12] = o, t[13] = n, t[14] = T) : T = t[14];
654
+ let E;
655
+ t[15] !== o || t[16] !== n.title ? (E = !o && /* @__PURE__ */ J(Ke, {
656
+ primary: n.title,
657
+ slotProps: { primary: {
658
+ noWrap: !0,
659
+ title: n.title
660
+ } },
661
+ sx: {
662
+ ml: 1.2,
663
+ flex: 1,
664
+ minWidth: 0,
665
+ "& .MuiTypography-root": {
666
+ whiteSpace: "nowrap",
667
+ overflow: "hidden",
668
+ textOverflow: "ellipsis"
669
+ }
670
+ }
671
+ }), t[15] = o, t[16] = n.title, t[17] = E) : E = t[17];
672
+ let D;
673
+ t[18] !== v || t[19] !== n.children ? (D = n.children ? /* @__PURE__ */ J(Ve, { sx: v }) : null, t[18] = v, t[19] = n.children, t[20] = D) : D = t[20];
674
+ let O;
675
+ t[21] !== T || t[22] !== E || t[23] !== D ? (O = /* @__PURE__ */ Y(ae, { children: [
676
+ T,
677
+ E,
678
+ D
679
+ ] }), t[21] = T, t[22] = E, t[23] = D, t[24] = O) : O = t[24];
680
+ let k = O, ee;
681
+ t[25] !== o || t[26] !== n.children || t[27] !== g ? (ee = n.children && o ? {
682
+ onMouseEnter: () => {
683
+ m(g);
684
+ },
685
+ onMouseLeave: () => {
686
+ m(null);
687
+ }
688
+ } : {}, t[25] = o, t[26] = n.children, t[27] = g, t[28] = ee) : ee = t[28];
689
+ let te;
690
+ t[29] === Symbol.for("react.memo_cache_sentinel") ? (te = {
691
+ py: 0,
692
+ px: 1,
693
+ overflowX: "hidden"
694
+ }, t[29] = te) : te = t[29];
695
+ let A;
696
+ t[30] !== k || t[31] !== w || t[32] !== n || t[33] !== l || t[34] !== d || t[35] !== y ? (A = y ? /* @__PURE__ */ J(dt, {
697
+ ...w,
698
+ onClick: () => l?.(n),
699
+ children: k
700
+ }) : /* @__PURE__ */ J(ft, {
701
+ ...w,
702
+ to: n.to,
703
+ href: n.href,
704
+ params: n.params,
705
+ search: n.search,
706
+ onClick: d,
707
+ children: k
708
+ }), t[30] = k, t[31] = w, t[32] = n, t[33] = l, t[34] = d, t[35] = y, t[36] = A) : A = t[36];
709
+ let j;
710
+ t[37] !== o || t[38] !== p || t[39] !== n.children || t[40] !== g || t[41] !== u ? (j = n.children && o ? /* @__PURE__ */ J(mt, {
711
+ open: g === p,
712
+ children: u?.(n.children)
713
+ }) : null, t[37] = o, t[38] = p, t[39] = n.children, t[40] = g, t[41] = u, t[42] = j) : j = t[42];
714
+ let M;
715
+ t[43] !== ee || t[44] !== A || t[45] !== j ? (M = /* @__PURE__ */ Y(Ue, {
716
+ ...ee,
717
+ sx: te,
718
+ children: [A, j]
719
+ }), t[43] = ee, t[44] = A, t[45] = j, t[46] = M) : M = t[46];
720
+ let N = M, P;
721
+ t[47] !== o || t[48] !== r || t[49] !== n.children || t[50] !== u ? (P = n.children && !o ? /* @__PURE__ */ J(b, {
722
+ in: r,
723
+ timeout: "auto",
724
+ unmountOnExit: !0,
725
+ children: u?.(n.children)
726
+ }) : null, t[47] = o, t[48] = r, t[49] = n.children, t[50] = u, t[51] = P) : P = t[51];
727
+ let F;
728
+ return t[52] !== n.to || t[53] !== N || t[54] !== P ? (F = /* @__PURE__ */ Y(ie, { children: [N, P] }, n.to), t[52] = n.to, t[53] = N, t[54] = P, t[55] = F) : F = t[55], F;
729
+ };
730
+ function gt(e) {
731
+ return e.charAt(0).toUpperCase();
732
+ }
733
+ //#endregion
734
+ //#region src/components/core/navigation/NavigationList.tsx
735
+ var _t = (e) => !("kind" in e), vt = (e) => "kind" in e && e.kind === "divider", yt = (e) => "kind" in e && e.kind === "header", bt = (e) => {
736
+ let t = h(30), { subNavigation: n, depth: r, collapsed: i, isPopover: a, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: s, expandedWidth: c, renderItem: l, activePath: u, onNavigate: d, onClose: f } = e, p = r === void 0 ? 0 : r, m = o === void 0 ? !0 : o, g;
737
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (g = [], t[0] = g) : g = t[0];
738
+ let [_, v] = K(g), y, b;
739
+ t[1] === i ? (y = t[2], b = t[3]) : (y = () => {
740
+ i && v([]);
741
+ }, b = [i], t[1] = i, t[2] = y, t[3] = b), U(y, b);
742
+ let x;
743
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (x = (e) => v((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), t[4] = x) : x = t[4];
744
+ let S = x, C;
745
+ t[5] !== u || t[6] !== i || t[7] !== p || t[8] !== c || t[9] !== f || t[10] !== d ? (C = (e) => /* @__PURE__ */ J(bt, {
746
+ subNavigation: e,
747
+ depth: p + 1,
748
+ isPopover: i,
749
+ expandedWidth: c,
750
+ activePath: u,
751
+ onNavigate: d,
752
+ onClose: f
753
+ }), t[5] = u, t[6] = i, t[7] = p, t[8] = c, t[9] = f, t[10] = d, t[11] = C) : C = t[11];
754
+ let w = C, T;
755
+ if (t[12] !== u || t[13] !== i || t[14] !== p || t[15] !== a || t[16] !== s || t[17] !== m || t[18] !== f || t[19] !== _ || t[20] !== l || t[21] !== w || t[22] !== n) {
756
+ let e = n.filter(xt), r = a && p === 1 ? .5 : 0, o = p === 0 && !a ? 4 : .5, c = (a ? 1 : 2) * (a ? p - 1 : p), d = a && p === 1 ? 240 : "auto", h = i ? 84 : "auto", g;
757
+ t[24] !== o || t[25] !== c || t[26] !== d || t[27] !== h || t[28] !== r ? (g = {
758
+ padding: 0,
759
+ mt: r,
760
+ mb: o,
761
+ pl: c,
762
+ minWidth: d,
763
+ width: h
764
+ }, t[24] = o, t[25] = c, t[26] = d, t[27] = h, t[28] = r, t[29] = g) : g = t[29], T = /* @__PURE__ */ J(ze, {
765
+ sx: g,
766
+ children: e.map((t, n) => {
767
+ if (yt(t)) return /* @__PURE__ */ J(Be, {
768
+ sx: {
769
+ fontSize: 12,
770
+ fontWeight: "700",
771
+ height: i ? 0 : 40,
772
+ px: 2,
773
+ overflow: "hidden",
774
+ textOverflow: "ellipsis",
775
+ whiteSpace: "nowrap",
776
+ zIndex: 2,
777
+ bgcolor: "transparent",
778
+ position: "static"
779
+ },
780
+ children: t.title
781
+ }, `subheader-${p}-${n}`);
782
+ if (vt(t)) {
783
+ let t = e[n + 1];
784
+ return /* @__PURE__ */ J("li", { children: /* @__PURE__ */ J(Re, { sx: {
785
+ mx: 1,
786
+ mt: 1,
787
+ mb: yt(t) && !i ? 0 : 1
788
+ } }) }, `divider-${p}-${n}`);
789
+ }
790
+ if (!_t(t)) return null;
791
+ let r = `item-${p}-${n}`, a = `${p}-${n}-${t.title}`;
792
+ return l ? /* @__PURE__ */ J(ie, { children: l(t, { collapsed: !!i }) }, r) : /* @__PURE__ */ J(ht, {
793
+ item: t,
794
+ isOpen: _.includes(a),
795
+ selected: u === t.to,
796
+ collapsed: i,
797
+ isSidebarFullyExpanded: m,
798
+ isSidebarFullyCollapsed: s,
799
+ onClick: t.children && !i ? () => S(a) : void 0,
800
+ renderNested: w,
801
+ onClose: f
802
+ }, r);
803
+ })
804
+ }), t[12] = u, t[13] = i, t[14] = p, t[15] = a, t[16] = s, t[17] = m, t[18] = f, t[19] = _, t[20] = l, t[21] = w, t[22] = n, t[23] = T;
805
+ } else T = t[23];
806
+ return T;
807
+ };
808
+ function xt(e) {
809
+ return !e.hidden;
810
+ }
811
+ //#endregion
812
+ //#region src/components/core/navigation/NavigationContent.tsx
813
+ var St = (e) => {
814
+ let t = h(17), { navigation: n, collapsed: r, expanded: i, setExpanded: a, showPermanent: o } = e, s = ye(), c = ge(), l = r ? "stable" : "auto", u = n[0] && yt(n[0]) && !r ? 0 : 2, d;
815
+ t[0] !== l || t[1] !== u ? (d = {
816
+ height: "100%",
817
+ display: "flex",
818
+ flexDirection: "column",
819
+ justifyContent: "space-between",
820
+ overflow: "auto",
821
+ scrollbarGutter: l,
822
+ overflowX: "hidden",
823
+ pt: u
824
+ }, t[0] = l, t[1] = u, t[2] = d) : d = t[2];
825
+ let f = !i, p;
826
+ t[3] !== a || t[4] !== o ? (p = o ? void 0 : () => a(!1), t[3] = a, t[4] = o, t[5] = p) : p = t[5];
827
+ let m;
828
+ t[6] !== r || t[7] !== i || t[8] !== c.pathname || t[9] !== s || t[10] !== n || t[11] !== f || t[12] !== p ? (m = /* @__PURE__ */ J(bt, {
829
+ subNavigation: n,
830
+ collapsed: r,
831
+ isSidebarFullyExpanded: i,
832
+ isSidebarFullyCollapsed: f,
833
+ expandedWidth: 320,
834
+ activePath: c.pathname,
835
+ onNavigate: s,
836
+ onClose: p
837
+ }), t[6] = r, t[7] = i, t[8] = c.pathname, t[9] = s, t[10] = n, t[11] = f, t[12] = p, t[13] = m) : m = t[13];
838
+ let g;
839
+ return t[14] !== d || t[15] !== m ? (g = /* @__PURE__ */ J(Le, {
840
+ component: "nav",
841
+ sx: d,
842
+ children: m
843
+ }), t[14] = d, t[15] = m, t[16] = g) : g = t[16], g;
844
+ }, Ct = (e) => {
845
+ let t = h(28), { navigation: n, expanded: r, setExpanded: i } = e, a;
846
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
847
+ xs: "none",
848
+ sm: "block"
849
+ }, t[0] = a) : a = t[0];
850
+ let o = r ? 320 : 84, s;
851
+ t[1] === r ? s = t[2] : (s = (e) => ({
852
+ position: "absolute",
853
+ top: "64px",
854
+ height: "calc(100% - 64px)",
855
+ width: r ? 320 : 84,
856
+ background: "transparent",
857
+ borderTop: "1px solid",
858
+ borderColor: e.vars?.palette.divider ?? e.palette.divider,
859
+ boxShadow: "none"
860
+ }), t[1] = r, t[2] = s);
861
+ let c;
862
+ t[3] !== o || t[4] !== s ? (c = {
863
+ display: a,
864
+ width: o,
865
+ "& .MuiDrawer-paper": s
866
+ }, t[3] = o, t[4] = s, t[5] = c) : c = t[5];
867
+ let l = !r, u;
868
+ t[6] !== r || t[7] !== n || t[8] !== i || t[9] !== l ? (u = /* @__PURE__ */ J(St, {
869
+ navigation: n,
870
+ collapsed: l,
871
+ expanded: r,
872
+ setExpanded: i,
873
+ showPermanent: !0
874
+ }), t[6] = r, t[7] = n, t[8] = i, t[9] = l, t[10] = u) : u = t[10];
875
+ let d;
876
+ t[11] !== c || t[12] !== u ? (d = /* @__PURE__ */ J(Ie, {
877
+ variant: "permanent",
878
+ sx: c,
879
+ children: u
880
+ }), t[11] = c, t[12] = u, t[13] = d) : d = t[13];
881
+ let f;
882
+ t[14] === i ? f = t[15] : (f = () => i(!1), t[14] = i, t[15] = f);
883
+ let p;
884
+ t[16] === Symbol.for("react.memo_cache_sentinel") ? (p = {
885
+ display: {
886
+ xs: "block",
887
+ sm: "none"
888
+ },
889
+ "& .MuiDrawer-paper": { width: "min(280px, calc(100vw - 56px))" }
890
+ }, t[16] = p) : p = t[16];
891
+ let m;
892
+ t[17] !== r || t[18] !== n || t[19] !== i ? (m = /* @__PURE__ */ J(St, {
893
+ navigation: n,
894
+ collapsed: !1,
895
+ expanded: r,
896
+ setExpanded: i,
897
+ showPermanent: !1
898
+ }), t[17] = r, t[18] = n, t[19] = i, t[20] = m) : m = t[20];
899
+ let g;
900
+ t[21] !== r || t[22] !== m || t[23] !== f ? (g = /* @__PURE__ */ J(Ie, {
901
+ open: r,
902
+ onClose: f,
903
+ sx: p,
904
+ children: m
905
+ }), t[21] = r, t[22] = m, t[23] = f, t[24] = g) : g = t[24];
906
+ let _;
907
+ return t[25] !== g || t[26] !== d ? (_ = /* @__PURE__ */ Y(ie, { children: [d, g] }), t[25] = g, t[26] = d, t[27] = _) : _ = t[27], _;
908
+ }, wt = "navigation-open", Tt = () => u.isWindows || u.isMacOS ? localStorage.getItem(wt) === "true" : !1, Et = (e) => {
909
+ (u.isWindows || u.isMacOS) && localStorage.setItem(wt, String(e));
910
+ }, Dt = me("div")(({ theme: e }) => ({
911
+ display: "flex",
912
+ alignItems: "center",
913
+ justifyContent: "flex-end",
914
+ padding: e.spacing(0, 1),
915
+ ...e.mixins.toolbar
916
+ })), Ot = (e) => {
917
+ let t = h(30), { navigation: n, options: r, children: i } = e, [a, o] = K(Tt), s = ve(), c;
918
+ if (t[0] !== s || t[1] !== r?.publicRoutes) {
919
+ let e = s.at(-1)?.fullPath;
920
+ c = r?.publicRoutes?.includes(e) ?? !1, t[0] = s, t[1] = r?.publicRoutes, t[2] = c;
921
+ } else c = t[2];
922
+ let l = c, u = r?.showShell ?? !0, d, f;
923
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ J(w, {}), f = /* @__PURE__ */ J(x, {}), t[3] = d, t[4] = f) : (d = t[3], f = t[4]);
924
+ let p;
925
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (p = {
926
+ display: "flex",
927
+ height: "100dvh",
928
+ maxHeight: "100dvh",
929
+ overflow: "hidden",
930
+ width: "100%"
931
+ }, t[5] = p) : p = t[5];
932
+ let m;
933
+ t[6] !== n || t[7] !== a || t[8] !== u ? (m = u && /* @__PURE__ */ J(g, {
934
+ color: "transparent",
935
+ position: "fixed",
936
+ sx: {
937
+ borderBottom: "1px solid",
938
+ borderColor: "var(--mui-palette-divider)",
939
+ boxShadow: "none"
940
+ },
941
+ children: /* @__PURE__ */ Y(M, { children: [
942
+ n && /* @__PURE__ */ J(C, {
943
+ onClick: () => {
944
+ o(kt);
945
+ },
946
+ sx: { marginRight: 2 },
947
+ children: J(a ? pe : fe, {})
948
+ }),
949
+ /* @__PURE__ */ J(st, {}),
950
+ /* @__PURE__ */ J(rt, {})
951
+ ] })
952
+ }), t[6] = n, t[7] = a, t[8] = u, t[9] = m) : m = t[9];
953
+ let _;
954
+ t[10] !== n || t[11] !== a || t[12] !== u ? (_ = n && u && /* @__PURE__ */ J(Ct, {
955
+ navigation: n,
956
+ expanded: a,
957
+ setExpanded: (e) => {
958
+ o(e), Et(e);
959
+ }
960
+ }), t[10] = n, t[11] = a, t[12] = u, t[13] = _) : _ = t[13];
961
+ let y;
962
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (y = {
963
+ flexGrow: 1,
964
+ display: "flex",
965
+ flexDirection: "column",
966
+ minWidth: 0,
967
+ height: "100%",
968
+ overflow: "hidden"
969
+ }, t[14] = y) : y = t[14];
970
+ let b;
971
+ t[15] === u ? b = t[16] : (b = u && /* @__PURE__ */ J(Dt, {}), t[15] = u, t[16] = b);
972
+ let S;
973
+ t[17] === Symbol.for("react.memo_cache_sentinel") ? (S = {
974
+ flex: 1,
975
+ overflow: "auto",
976
+ position: "relative"
977
+ }, t[17] = S) : S = t[17];
978
+ let T;
979
+ t[18] !== i || t[19] !== l ? (T = l ? i : /* @__PURE__ */ J(ce, {
980
+ interactionType: oe.Redirect,
981
+ children: i
982
+ }), t[18] = i, t[19] = l, t[20] = T) : T = t[20];
983
+ let E;
984
+ t[21] === T ? E = t[22] : (E = /* @__PURE__ */ J(v, {
985
+ sx: S,
986
+ children: T
987
+ }), t[21] = T, t[22] = E);
988
+ let D;
989
+ t[23] !== E || t[24] !== b ? (D = /* @__PURE__ */ Y(v, {
990
+ component: "main",
991
+ sx: y,
992
+ children: [b, E]
993
+ }), t[23] = E, t[24] = b, t[25] = D) : D = t[25];
994
+ let O;
995
+ return t[26] !== D || t[27] !== m || t[28] !== _ ? (O = /* @__PURE__ */ Y(ie, { children: [
996
+ d,
997
+ f,
998
+ /* @__PURE__ */ Y(v, {
999
+ sx: p,
1000
+ children: [
1001
+ m,
1002
+ _,
1003
+ D
1004
+ ]
1005
+ })
1006
+ ] }), t[26] = D, t[27] = m, t[28] = _, t[29] = O) : O = t[29], O;
1007
+ };
1008
+ function kt(e) {
1009
+ let t = !e;
1010
+ return Et(t), t;
1011
+ }
1012
+ //#endregion
1013
+ //#region src/providers/MsalAuthProvider.tsx
1014
+ var At = () => {
1015
+ let e = h(16), { accounts: t, inProgress: n, instance: a } = de(), o = be(), [c, l] = K(null), u = G(n), d = ye();
1016
+ r.setNavigationClient(new i(d));
1017
+ let f, p;
1018
+ e[0] !== a || e[1] !== o ? (f = () => {
1019
+ let e = a.addEventCallback((e) => {
1020
+ (e.eventType === Q.LOGIN_SUCCESS || e.eventType === Q.ACQUIRE_TOKEN_SUCCESS || e.eventType === Q.LOGOUT_SUCCESS) && o.invalidate();
1021
+ });
1022
+ return () => {
1023
+ e && a.removeEventCallback(e);
1024
+ };
1025
+ }, p = [a, o], e[0] = a, e[1] = o, e[2] = f, e[3] = p) : (f = e[2], p = e[3]), U(f, p);
1026
+ let m, g;
1027
+ e[4] !== n || e[5] !== o ? (m = () => {
1028
+ let e = u.current !== $.None;
1029
+ u.current = n, e && n === $.None && o.invalidate();
1030
+ }, g = [n, o], e[4] = n, e[5] = o, e[6] = m, e[7] = g) : (m = e[6], g = e[7]), U(m, g);
1031
+ let _, v;
1032
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = () => s(l), v = [], e[8] = _, e[9] = v) : (_ = e[8], v = e[9]), U(_, v);
1033
+ let y, b;
1034
+ return e[10] !== t || e[11] !== n || e[12] !== a || e[13] !== c ? (y = () => {
1035
+ if (!c || n !== $.None) return;
1036
+ let e = a.getActiveAccount() ?? t[0];
1037
+ e && (l(null), a.acquireTokenRedirect({
1038
+ scopes: c,
1039
+ account: e
1040
+ }).catch(Mt));
1041
+ }, b = [
1042
+ t,
1043
+ n,
1044
+ a,
1045
+ c
1046
+ ], e[10] = t, e[11] = n, e[12] = a, e[13] = c, e[14] = y, e[15] = b) : (y = e[14], b = e[15]), U(y, b), null;
1047
+ }, jt = (e) => {
1048
+ let t = h(3), { children: n } = e, i;
1049
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(At, {}), t[0] = i) : i = t[0];
1050
+ let a;
1051
+ return t[1] === n ? a = t[2] : (a = /* @__PURE__ */ Y(le, {
1052
+ instance: r,
1053
+ children: [i, n]
1054
+ }), t[1] = n, t[2] = a), a;
1055
+ };
1056
+ function Mt() {}
1057
+ //#endregion
1058
+ //#region src/providers/LayoutProvider.tsx
1059
+ var Nt = 1440 * 365, Pt = (e) => {
1060
+ H.config(H.core.locales[e]()), ne.locale(e);
1061
+ };
1062
+ await L.use(R).use(z).init({
1063
+ resources: B,
1064
+ fallbackLng: "en",
1065
+ supportedLngs: Object.keys(B),
1066
+ detection: {
1067
+ caches: ["cookie"],
1068
+ cookieMinutes: Nt
1069
+ },
1070
+ interpolation: { escapeValue: !1 },
1071
+ showSupportNotice: !1
1072
+ }), Pt(L.resolvedLanguage ?? L.language), L.on("languageChanged", (e) => {
1073
+ Pt(e);
1074
+ });
1075
+ var Ft = (e) => {
1076
+ let t = h(11), { options: n, navigation: r, theme: i, children: a } = e, o;
1077
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[0] = o) : o = t[0], U(It, o);
1078
+ let s = n?.snackbarOrigin, c;
1079
+ t[1] !== a || t[2] !== r || t[3] !== n ? (c = /* @__PURE__ */ J(Ye, { children: /* @__PURE__ */ J(jt, { children: /* @__PURE__ */ J(Ot, {
1080
+ navigation: r,
1081
+ options: n,
1082
+ children: a
1083
+ }) }) }), t[1] = a, t[2] = r, t[3] = n, t[4] = c) : c = t[4];
1084
+ let l;
1085
+ t[5] !== s || t[6] !== c ? (l = /* @__PURE__ */ J(F, {
1086
+ dateAdapter: I,
1087
+ adapterLocale: L.language,
1088
+ children: /* @__PURE__ */ J(Ze, {
1089
+ snackbarOrigin: s,
1090
+ children: c
1091
+ })
1092
+ }, L.language), t[5] = s, t[6] = c, t[7] = l) : l = t[7];
1093
+ let u;
1094
+ return t[8] !== l || t[9] !== i ? (u = /* @__PURE__ */ J(j, {
1095
+ theme: i,
1096
+ children: l
1097
+ }), t[8] = l, t[9] = i, t[10] = u) : u = t[10], u;
1098
+ };
1099
+ function It() {
1100
+ "serviceWorker" in navigator && navigator.serviceWorker.register("/sw.js");
1101
+ }
1102
+ //#endregion
1103
+ export { Ft as LayoutProvider, o as WISTRON_PRIMARY_COLOR, c as WISTRON_SECONDARY_COLOR, n as getUser, l as rootRouteHead };
1104
+
1105
+ //# sourceMappingURL=index.js.map