@gen-epix/ui-client-common 4.5.0 → 4.5.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.
Files changed (169) hide show
  1. package/README.md +5 -4
  2. package/dist/@types/mui.d.ts +13 -5
  3. package/dist/@types/ui-client-common.d.ts +1 -0
  4. package/dist/_chunks/ApplicationFooter.js +44 -44
  5. package/dist/_chunks/ApplicationFooter.js.map +1 -1
  6. package/dist/_chunks/Breadcrumbs.js +13 -13
  7. package/dist/_chunks/CrudPage.js +300 -300
  8. package/dist/_chunks/CrudPage.js.map +1 -1
  9. package/dist/_chunks/Notifications.js +51 -51
  10. package/dist/_chunks/OutageList.js +29 -29
  11. package/dist/_chunks/OutageUtil.js +1 -2
  12. package/dist/_chunks/OutageUtil.js.map +1 -1
  13. package/dist/_chunks/QueryClientService.js +96 -388
  14. package/dist/_chunks/QueryClientService.js.map +1 -1
  15. package/dist/_chunks/Table.js +518 -512
  16. package/dist/_chunks/Table.js.map +1 -1
  17. package/dist/_chunks/TableUtil.js +8 -16
  18. package/dist/_chunks/TableUtil.js.map +1 -1
  19. package/dist/_chunks/TextFilter.js +14 -12
  20. package/dist/_chunks/TextFilter.js.map +1 -1
  21. package/dist/_chunks/UserInvitationsAdminPage.js +77 -77
  22. package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
  23. package/dist/_chunks/UserManagerUtil.js +210 -209
  24. package/dist/_chunks/UserManagerUtil.js.map +1 -1
  25. package/dist/_chunks/_baseFlatten.js +8 -8
  26. package/dist/_chunks/_baseFlatten.js.map +1 -1
  27. package/dist/_chunks/_baseGet.js +280 -0
  28. package/dist/_chunks/_baseGet.js.map +1 -0
  29. package/dist/_chunks/_baseIteratee.js +274 -0
  30. package/dist/_chunks/_baseIteratee.js.map +1 -0
  31. package/dist/_chunks/_baseUnset.js +22 -299
  32. package/dist/_chunks/_baseUnset.js.map +1 -1
  33. package/dist/_chunks/last.js +13 -0
  34. package/dist/_chunks/last.js.map +1 -0
  35. package/dist/_chunks/omit.js +41 -40
  36. package/dist/_chunks/omit.js.map +1 -1
  37. package/dist/_chunks/tableStore.js +190 -183
  38. package/dist/_chunks/tableStore.js.map +1 -1
  39. package/dist/_chunks/uniq.js +44 -0
  40. package/dist/_chunks/uniq.js.map +1 -0
  41. package/dist/_chunks/useMutation.js +22 -22
  42. package/dist/_chunks/useMutation.js.map +1 -1
  43. package/dist/_chunks/useQueryMemo.js +25 -8
  44. package/dist/_chunks/useQueryMemo.js.map +1 -1
  45. package/dist/classes/abstracts/FilterAbstract/index.js +3 -1
  46. package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
  47. package/dist/classes/filters/MultiSelectFilter.d.ts +1 -1
  48. package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +1 -1
  49. package/dist/classes/services/AuthenticationService/index.js +15 -15
  50. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  51. package/dist/classes/services/AuthorizationService/index.js +4 -4
  52. package/dist/classes/services/AuthorizationService/index.js.map +1 -1
  53. package/dist/classes/services/BackendVersionService/index.js +3 -2
  54. package/dist/classes/services/BackendVersionService/index.js.map +1 -1
  55. package/dist/classes/services/BreadcrumbService/index.js +16 -38
  56. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  57. package/dist/classes/services/EmotionCacheService/index.js +9 -8
  58. package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
  59. package/dist/classes/services/I18nService/index.js +11 -10
  60. package/dist/classes/services/I18nService/index.js.map +1 -1
  61. package/dist/classes/services/InactivityService/index.js +12 -12
  62. package/dist/classes/services/InactivityService/index.js.map +1 -1
  63. package/dist/classes/services/LogService/index.js +39 -33
  64. package/dist/classes/services/LogService/index.js.map +1 -1
  65. package/dist/classes/services/NotificationService/index.js +8 -8
  66. package/dist/classes/services/NotificationService/index.js.map +1 -1
  67. package/dist/classes/services/PageEventBusService/index.js +13 -9
  68. package/dist/classes/services/PageEventBusService/index.js.map +1 -1
  69. package/dist/classes/services/RouterService/index.js +3 -6
  70. package/dist/classes/services/RouterService/index.js.map +1 -1
  71. package/dist/components/app/App/App.d.ts +1 -1
  72. package/dist/components/app/App/index.js +34 -38
  73. package/dist/components/app/App/index.js.map +1 -1
  74. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +28 -28
  75. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
  76. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +47 -45
  77. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
  78. package/dist/components/app/AuthenticationWrapper/index.js +35 -35
  79. package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
  80. package/dist/components/app/AuthorizationWrapper/index.js +19 -19
  81. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  82. package/dist/components/app/RouterRoot/index.js +52 -50
  83. package/dist/components/app/RouterRoot/index.js.map +1 -1
  84. package/dist/components/epi/EpiContactDetailsDialog/index.js +21 -21
  85. package/dist/components/filters/BooleanFilterField/index.js +5 -5
  86. package/dist/components/filters/DateFilterField/index.js +3 -3
  87. package/dist/components/filters/GeoFilterField/index.js +4 -4
  88. package/dist/components/filters/MultiSelectFilterField/index.js +4 -4
  89. package/dist/components/filters/NumberRangeFilterField/index.js +3 -3
  90. package/dist/components/filters/TextFilterField/index.js +3 -3
  91. package/dist/components/ui/ApplicationBar/index.js +188 -188
  92. package/dist/components/ui/ApplicationBar/index.js.map +1 -1
  93. package/dist/components/ui/GenericErrorMessage/index.js +29 -29
  94. package/dist/components/ui/LicensesDialog/index.js +38 -38
  95. package/dist/components/ui/LicensesDialog/index.js.map +1 -1
  96. package/dist/components/ui/MyPermissionsDialog/index.js +16 -16
  97. package/dist/components/ui/NavLink/index.js +6 -6
  98. package/dist/components/ui/OrganizationSwitcherDialog/index.js +21 -21
  99. package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
  100. package/dist/components/ui/PageContainer/index.js +24 -24
  101. package/dist/components/ui/PageContainer/index.js.map +1 -1
  102. package/dist/components/ui/Sidebar/index.js +30 -30
  103. package/dist/components/ui/UserFeedbackDialog/index.js +12 -12
  104. package/dist/constants/config.constants.d.ts +0 -2
  105. package/dist/constants/config.constants.js +2 -2
  106. package/dist/constants/config.constants.js.map +1 -1
  107. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +12 -12
  108. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -1
  109. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +14 -14
  110. package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -1
  111. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +12 -12
  112. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
  113. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +13 -13
  114. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -1
  115. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +4 -4
  116. package/dist/dataHooks/useOrganizationsQuery/index.js +13 -13
  117. package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -1
  118. package/dist/dataHooks/useUsersQuery/index.js +10 -10
  119. package/dist/dataHooks/useUsersQuery/index.js.map +1 -1
  120. package/dist/hooks/useConfig/index.js +2 -2
  121. package/dist/hooks/useConfig/index.js.map +1 -1
  122. package/dist/hooks/useCreateMutation/index.js +12 -12
  123. package/dist/hooks/useCreateMutation/index.js.map +1 -1
  124. package/dist/hooks/useDeleteMutation/index.js +16 -9
  125. package/dist/hooks/useDeleteMutation/index.js.map +1 -1
  126. package/dist/hooks/useEditMutation/index.js +48 -33
  127. package/dist/hooks/useEditMutation/index.js.map +1 -1
  128. package/dist/hooks/useItemQuery/index.js +4 -4
  129. package/dist/hooks/useItemQuery/index.js.map +1 -1
  130. package/dist/locale/en.json +1 -0
  131. package/dist/locale/nl.json +1 -0
  132. package/dist/models/config.models.d.ts +1 -5
  133. package/dist/models/theme.models.d.ts +19 -16
  134. package/dist/pages/AcceptInvitationPage/index.js +25 -25
  135. package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
  136. package/dist/pages/AdminPage/index.js +16 -16
  137. package/dist/pages/ChooseIdentityProviderPage/index.js +21 -21
  138. package/dist/pages/IdentifierIssuersAdminPage/index.js +5 -5
  139. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +5 -5
  140. package/dist/pages/OrganizationContactsAdminPage/index.js +6 -6
  141. package/dist/pages/OrganizationSitesAdminPage/index.js +9 -9
  142. package/dist/pages/OrganizationsAdminPage/index.js +13 -13
  143. package/dist/pages/OutagesAdminPage/index.js +20 -20
  144. package/dist/pages/PostLoginPage/index.js +6 -6
  145. package/dist/pages/PostLogoutPage/index.js +8 -8
  146. package/dist/pages/UsersAdminPage/index.js +39 -39
  147. package/dist/pages/UsersAdminPage/index.js.map +1 -1
  148. package/dist/setup/setup.js +11 -4
  149. package/dist/setup/setup.js.map +1 -1
  150. package/dist/theme/demoTheme/index.js +17 -15
  151. package/dist/theme/demoTheme/index.js.map +1 -1
  152. package/dist/utils/DataHookUtil/index.js +1 -1
  153. package/dist/utils/DataHookUtil/index.js.map +1 -1
  154. package/dist/utils/DependencyContainerUtil/DependencyContainerUtil.d.ts +2 -3
  155. package/dist/utils/DependencyContainerUtil/index.js +10 -15
  156. package/dist/utils/DependencyContainerUtil/index.js.map +1 -1
  157. package/dist/utils/MenuDataUtil/index.js +1 -1
  158. package/dist/utils/MenuDataUtil/index.js.map +1 -1
  159. package/dist/utils/StandardConfigUtil/index.js +0 -4
  160. package/dist/utils/StandardConfigUtil/index.js.map +1 -1
  161. package/dist/utils/TimeUtil/index.js +1 -1
  162. package/dist/utils/TimeUtil/index.js.map +1 -1
  163. package/package.json +10 -13
  164. package/dist/context/ClientCommonConfigContext/ClientCommonConfigContext.d.ts +0 -9
  165. package/dist/context/ClientCommonConfigContext/ClientCommonConfigContextProvider.d.ts +0 -6
  166. package/dist/context/ClientCommonConfigContext/index.d.ts +0 -3
  167. package/dist/context/ClientCommonConfigContext/index.js +0 -34
  168. package/dist/context/ClientCommonConfigContext/index.js.map +0 -1
  169. package/dist/context/ClientCommonConfigContext/useClientCommonConfigContext.d.ts +0 -3
@@ -1,32 +1,32 @@
1
1
  import { UserUtil as e } from "../../../utils/UserUtil/index.js";
2
- import { t } from "../../../_chunks/QueryClientService.js";
3
- import { t as n } from "../../../_chunks/useQueryMemo.js";
4
- import { t as r } from "../../../_chunks/react.js";
5
- import { outagesStore as i } from "../../../stores/outagesStore/index.js";
6
- import { API_ABAC_TOKEN as a } from "../../../constants/api.constants.js";
7
- import { AuthorizationService as o } from "../../../classes/services/AuthorizationService/index.js";
8
- import { RouterService as s } from "../../../classes/services/RouterService/index.js";
9
- import { useConfig as c } from "../../../hooks/useConfig/index.js";
10
- import { LogService as l } from "../../../classes/services/LogService/index.js";
2
+ import { t } from "../../../_chunks/react.js";
3
+ import { outagesStore as n } from "../../../stores/outagesStore/index.js";
4
+ import { API_ABAC_TOKEN as r } from "../../../constants/api.constants.js";
5
+ import { AuthorizationService as i } from "../../../classes/services/AuthorizationService/index.js";
6
+ import { RouterService as a } from "../../../classes/services/RouterService/index.js";
7
+ import { useConfig as o } from "../../../hooks/useConfig/index.js";
8
+ import { LogService as s } from "../../../classes/services/LogService/index.js";
9
+ import { t as c } from "../../../_chunks/useQueryMemo.js";
10
+ import { t as l } from "../../../_chunks/QueryClientService.js";
11
11
  import { NotificationService as u } from "../../../classes/services/NotificationService/index.js";
12
12
  import { COMMON_QUERY_KEY as d } from "../../../constants/query.constants.js";
13
13
  import { useOrganizationMapQuery as f } from "../../../dataHooks/useOrganizationsQuery/index.js";
14
14
  import { n as p } from "../../../_chunks/Notifications.js";
15
15
  import { withPermissions as m } from "../../../hoc/withPermissions/index.js";
16
16
  import { UserSettingsService as h } from "../../../classes/services/UserSettingsService/index.js";
17
- import { UserFeedbackDialog as g } from "../UserFeedbackDialog/index.js";
18
- import { OutagesDialog as ee } from "../OutagesDialog/index.js";
19
- import { OrganizationSwitcherDialog as te } from "../OrganizationSwitcherDialog/index.js";
20
- import { MyPermissionsDialog as ne } from "../MyPermissionsDialog/index.js";
21
- import { LicensesDialog as re } from "../LicensesDialog/index.js";
22
- import { BackendVersionService as _ } from "../../../classes/services/BackendVersionService/index.js";
23
- import { FeatureFlagsService as v } from "../../../classes/services/FeatureFlagsService/index.js";
24
- import { StringUtil as y } from "@gen-epix/ui-core/utils/StringUtil";
25
- import { CommonDbCommandName as b, CommonDbLogLevel as x, CommonDbPermissionType as S } from "@gen-epix/api-commondb";
26
- import { container as C } from "tsyringe";
27
- import { useCallback as w, useEffect as T, useId as E, useMemo as D, useRef as O, useState as k } from "react";
28
- import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
29
- import { AppBar as N, Badge as P, Box as F, CircularProgress as I, Container as L, IconButton as R, Link as z, List as B, ListItem as V, ListItemButton as H, ListItemIcon as U, ListItemText as W, Popover as G, Toolbar as K, Tooltip as q, Typography as J, styled as Y, useTheme as X } from "@mui/material";
17
+ import { UserFeedbackDialog as ee } from "../UserFeedbackDialog/index.js";
18
+ import { OutagesDialog as g } from "../OutagesDialog/index.js";
19
+ import { OrganizationSwitcherDialog as _ } from "../OrganizationSwitcherDialog/index.js";
20
+ import { MyPermissionsDialog as v } from "../MyPermissionsDialog/index.js";
21
+ import { LicensesDialog as y } from "../LicensesDialog/index.js";
22
+ import { BackendVersionService as b } from "../../../classes/services/BackendVersionService/index.js";
23
+ import { FeatureFlagsService as x } from "../../../classes/services/FeatureFlagsService/index.js";
24
+ import { container as S } from "tsyringe";
25
+ import { StringUtil as C } from "@gen-epix/ui-core/utils/StringUtil";
26
+ import { CommonDbCommandName as w, CommonDbLogLevel as T, CommonDbPermissionType as E } from "@gen-epix/api-commondb";
27
+ import { AppBar as D, Badge as O, Box as k, CircularProgress as te, Container as ne, IconButton as A, Link as re, List as j, ListItem as M, ListItemButton as N, ListItemIcon as P, ListItemText as F, Popover as I, Toolbar as L, Tooltip as R, Typography as z, styled as B, useTheme as V } from "@mui/material";
28
+ import { useCallback as H, useEffect as U, useId as W, useMemo as G, useRef as K, useState as q } from "react";
29
+ import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
30
30
  import { useTranslation as Z } from "react-i18next";
31
31
  import { TestIdUtil as Q } from "@gen-epix/ui-core/utils/TestIdUtil";
32
32
  import ie from "@mui/icons-material/ContentCopy";
@@ -47,18 +47,18 @@ import _e from "@mui/icons-material/Logout";
47
47
  import ve from "@mui/icons-material/Key";
48
48
  import ye from "@mui/icons-material/ChangeCircle";
49
49
  //#region src/components/ui/ApplicationBar/ApplicationBarNavigationMenu.tsx
50
- var be = Y(ae)(({ theme: e }) => ({
50
+ var be = B(ae)(({ theme: e }) => ({
51
51
  "&:hover": { textDecoration: "underline" },
52
52
  color: e.palette.secondary.contrastText,
53
53
  display: "inline-block",
54
54
  fontSize: "1.3rem",
55
55
  textDecoration: "none"
56
56
  })), xe = ({ fullWidth: e }) => {
57
- let { t } = Z(), n = X(), r = D(() => C.resolve(o), []), i = E(), a = D(() => {
58
- let e = C.resolve(s).routes.find((e) => e.handle.root);
57
+ let { t } = Z(), n = V(), r = G(() => S.resolve(i), []), o = W(), s = G(() => {
58
+ let e = S.resolve(a).routes.find((e) => e.handle.root);
59
59
  return [e, ...e.children.filter((e) => !e.handle.hidden)];
60
- }, []), [c, l] = k(!1);
61
- T(() => {
60
+ }, []), [c, l] = q(!1);
61
+ U(() => {
62
62
  if (c) {
63
63
  let e = (e) => {
64
64
  e.key === "Escape" && l(!1);
@@ -68,29 +68,29 @@ var be = Y(ae)(({ theme: e }) => ({
68
68
  };
69
69
  }
70
70
  }, [c]);
71
- let u = w(() => {
71
+ let u = H(() => {
72
72
  l((e) => !e);
73
- }, []), d = w((e) => {
73
+ }, []), d = H((e) => {
74
74
  e.currentTarget.ariaDisabled === "true" && e.preventDefault();
75
75
  }, []);
76
- return /* @__PURE__ */ M(F, {
76
+ return /* @__PURE__ */ X(k, {
77
77
  sx: { flexGrow: 1 },
78
- children: [/* @__PURE__ */ j(R, {
79
- "aria-controls": i,
78
+ children: [/* @__PURE__ */ Y(A, {
79
+ "aria-controls": o,
80
80
  "aria-label": t`Toggle navigation menu`,
81
81
  onClick: u,
82
82
  sx: {
83
- color: n["gen-epix-ui"].navbar.primaryColor,
83
+ color: n.components.GenEpixUiClientCommonNavbar.primaryColor,
84
84
  [n.breakpoints.up("md")]: { display: "none" }
85
85
  },
86
- children: /* @__PURE__ */ j(se, {})
87
- }), /* @__PURE__ */ j(F, {
86
+ children: /* @__PURE__ */ Y(se, {})
87
+ }), /* @__PURE__ */ Y(k, {
88
88
  component: "nav",
89
- id: i,
89
+ id: o,
90
90
  sx: {
91
91
  flexGrow: 1,
92
92
  [n.breakpoints.down("md")]: {
93
- background: n["gen-epix-ui"].navbar.background,
93
+ background: n.components.GenEpixUiClientCommonNavbar.background,
94
94
  display: c ? "block" : "none",
95
95
  left: 0,
96
96
  paddingBottom: 4,
@@ -99,7 +99,7 @@ var be = Y(ae)(({ theme: e }) => ({
99
99
  width: "100%"
100
100
  }
101
101
  },
102
- children: /* @__PURE__ */ j(F, {
102
+ children: /* @__PURE__ */ Y(k, {
103
103
  component: "ul",
104
104
  sx: {
105
105
  display: "flex",
@@ -111,29 +111,29 @@ var be = Y(ae)(({ theme: e }) => ({
111
111
  margin: 0
112
112
  }
113
113
  },
114
- children: a.filter((e) => r.doesUserHavePermissionForRoute(e)).map((e) => {
114
+ children: s.filter((e) => r.doesUserHavePermissionForRoute(e)).map((e) => {
115
115
  let t = !!e.handle.disabled;
116
- return /* @__PURE__ */ j(F, {
116
+ return /* @__PURE__ */ Y(k, {
117
117
  component: "li",
118
118
  sx: {
119
119
  "&:has(.active:not([aria-disabled=\"true\"]))": {
120
- "& svg": { color: n["gen-epix-ui"].navbar.activeColor },
121
- a: { color: n["gen-epix-ui"].navbar.activeColor },
122
- background: n["gen-epix-ui"].navbar.activeBackground
120
+ "& svg": { color: n.components.GenEpixUiClientCommonNavbar.activeColor },
121
+ a: { color: n.components.GenEpixUiClientCommonNavbar.activeColor },
122
+ background: n.components.GenEpixUiClientCommonNavbar.activeBackground
123
123
  },
124
124
  "& svg": {
125
125
  color: t ? n.palette.grey[400] : void 0,
126
126
  marginTop: "6px"
127
127
  },
128
128
  alignItems: "center",
129
- color: t ? n.palette.grey[400] : n["gen-epix-ui"].navbar.primaryColor,
129
+ color: t ? n.palette.grey[400] : n.components.GenEpixUiClientCommonNavbar.primaryColor,
130
130
  display: "flex",
131
131
  fontWeight: 800,
132
132
  height: 48,
133
133
  listStyle: "none",
134
134
  padding: `0 ${n.spacing(1)}`
135
135
  },
136
- children: /* @__PURE__ */ M(be, {
136
+ children: /* @__PURE__ */ X(be, {
137
137
  "aria-disabled": t || void 0,
138
138
  "aria-label": e.handle.title,
139
139
  onClick: d,
@@ -153,9 +153,9 @@ var be = Y(ae)(({ theme: e }) => ({
153
153
  })]
154
154
  });
155
155
  }, Se = (/* @__PURE__ */ new Date()).getTime(), Ce = () => {
156
- let { t: e } = Z(), t = X(), n = c(), r = O(null), [i, a] = k(!1);
157
- T(() => {
158
- if (!C.resolve(h).showShowUserFeedbackTooltip) return;
156
+ let { t: e } = Z(), t = V(), n = o(), r = K(null), [i, a] = q(!1);
157
+ U(() => {
158
+ if (!S.resolve(h).showShowUserFeedbackTooltip) return;
159
159
  let e = Math.max(0, n.userFeedback.SHOW_USER_FEEDBACK_TOOLTIP_AFTER_MS - ((/* @__PURE__ */ new Date()).getTime() - Se)), t = setTimeout(() => {
160
160
  a(!0);
161
161
  }, e);
@@ -163,15 +163,15 @@ var be = Y(ae)(({ theme: e }) => ({
163
163
  clearTimeout(t);
164
164
  };
165
165
  }, [n.userFeedback.SHOW_USER_FEEDBACK_TOOLTIP_AFTER_MS]);
166
- let o = w(() => {
166
+ let s = H(() => {
167
167
  r.current.open();
168
- }, []), s = w(() => {
169
- a(!1), C.resolve(h).showShowUserFeedbackTooltip = !1;
168
+ }, []), c = H(() => {
169
+ a(!1), S.resolve(h).showShowUserFeedbackTooltip = !1;
170
170
  }, []);
171
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(q, {
171
+ return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(R, {
172
172
  arrow: !0,
173
173
  color: "secondary",
174
- onMouseEnter: s,
174
+ onMouseEnter: c,
175
175
  open: i,
176
176
  placement: "left",
177
177
  slotProps: {
@@ -183,11 +183,11 @@ var be = Y(ae)(({ theme: e }) => ({
183
183
  } }
184
184
  },
185
185
  title: e`Would you like to share your feedback?`,
186
- children: /* @__PURE__ */ M(R, {
186
+ children: /* @__PURE__ */ X(A, {
187
187
  "aria-label": e`Feedback`,
188
188
  color: "inherit",
189
- onClick: o,
190
- children: [/* @__PURE__ */ j(de, { color: "inherit" }), /* @__PURE__ */ j(F, {
189
+ onClick: s,
190
+ children: [/* @__PURE__ */ Y(de, { color: "inherit" }), /* @__PURE__ */ Y(k, {
191
191
  sx: {
192
192
  fontSize: "1.3rem",
193
193
  marginLeft: t.spacing(1),
@@ -199,15 +199,15 @@ var be = Y(ae)(({ theme: e }) => ({
199
199
  children: e`Feedback`
200
200
  })]
201
201
  })
202
- }), /* @__PURE__ */ j(g, { ref: r })] });
202
+ }), /* @__PURE__ */ Y(ee, { ref: r })] });
203
203
  }, we = ({ anchorElement: e, onClose: t }) => {
204
- let n = D(() => y.createUuid(), []), r = O(null), i = !!e, { t: a } = Z(), o = c(), [s, l] = k(!1), u = w(() => {
204
+ let n = G(() => C.createUuid(), []), r = K(null), i = !!e, { t: a } = Z(), s = o(), [c, l] = q(!1), u = H(() => {
205
205
  r.current.open();
206
- }, []), d = w(async () => {
207
- let e = `Frontend version: ${o.getSoftwareVersion()}\nBackend version: ${C.resolve(_).version}\nURL: ${window.location.href}\nDate/time: ${(/* @__PURE__ */ new Date()).toISOString()}`;
206
+ }, []), d = H(async () => {
207
+ let e = `Frontend version: ${s.getSoftwareVersion()}\nBackend version: ${S.resolve(b).version}\nURL: ${window.location.href}\nDate/time: ${(/* @__PURE__ */ new Date()).toISOString()}`;
208
208
  await navigator.clipboard.writeText(e), l(!0), setTimeout(() => l(!1), 2e3);
209
- }, [o]);
210
- return /* @__PURE__ */ j(G, {
209
+ }, [s]);
210
+ return /* @__PURE__ */ Y(I, {
211
211
  ...Q.createAttributes("InfoMenu"),
212
212
  anchorEl: e,
213
213
  anchorOrigin: {
@@ -221,40 +221,40 @@ var be = Y(ae)(({ theme: e }) => ({
221
221
  horizontal: "right",
222
222
  vertical: "top"
223
223
  },
224
- children: /* @__PURE__ */ M(B, {
224
+ children: /* @__PURE__ */ X(j, {
225
225
  sx: {
226
226
  maxWidth: 300,
227
227
  minWidth: 200,
228
228
  width: "100%"
229
229
  },
230
230
  children: [
231
- /* @__PURE__ */ j(V, {
231
+ /* @__PURE__ */ Y(M, {
232
232
  divider: !0,
233
- children: /* @__PURE__ */ j(W, {
233
+ children: /* @__PURE__ */ Y(F, {
234
234
  primary: a("Frontend version"),
235
- secondary: o.getSoftwareVersion(),
235
+ secondary: s.getSoftwareVersion(),
236
236
  slotProps: { primary: { sx: {
237
237
  color: "primary.main",
238
238
  fontWeight: "bold"
239
239
  } } }
240
240
  })
241
241
  }),
242
- /* @__PURE__ */ j(V, {
242
+ /* @__PURE__ */ Y(M, {
243
243
  divider: !0,
244
- children: /* @__PURE__ */ j(W, {
244
+ children: /* @__PURE__ */ Y(F, {
245
245
  primary: a("Backend version"),
246
- secondary: C.resolve(_).version,
246
+ secondary: S.resolve(b).version,
247
247
  slotProps: { primary: { sx: {
248
248
  color: "primary.main",
249
249
  fontWeight: "bold"
250
250
  } } }
251
251
  })
252
252
  }),
253
- /* @__PURE__ */ j(V, {
253
+ /* @__PURE__ */ Y(M, {
254
254
  divider: !0,
255
- children: /* @__PURE__ */ M(H, {
255
+ children: /* @__PURE__ */ X(N, {
256
256
  onClick: d,
257
- children: [/* @__PURE__ */ j(U, { children: s ? /* @__PURE__ */ j(me, { color: "success" }) : /* @__PURE__ */ j(ie, { color: "secondary" }) }), /* @__PURE__ */ j(W, {
257
+ children: [/* @__PURE__ */ Y(P, { children: c ? /* @__PURE__ */ Y(me, { color: "success" }) : /* @__PURE__ */ Y(ie, { color: "secondary" }) }), /* @__PURE__ */ Y(F, {
258
258
  primary: a`Copy version information to clipboard`,
259
259
  slotProps: { primary: { sx: {
260
260
  color: "secondary.main",
@@ -263,30 +263,30 @@ var be = Y(ae)(({ theme: e }) => ({
263
263
  })]
264
264
  })
265
265
  }),
266
- /* @__PURE__ */ M(V, { children: [/* @__PURE__ */ M(H, {
266
+ /* @__PURE__ */ X(M, { children: [/* @__PURE__ */ X(N, {
267
267
  onClick: u,
268
- children: [/* @__PURE__ */ j(U, { children: /* @__PURE__ */ j(pe, { color: "secondary" }) }), /* @__PURE__ */ j(W, {
268
+ children: [/* @__PURE__ */ Y(P, { children: /* @__PURE__ */ Y(pe, { color: "secondary" }) }), /* @__PURE__ */ Y(F, {
269
269
  primary: a`Show license information`,
270
270
  slotProps: { primary: { sx: {
271
271
  color: "secondary.main",
272
272
  fontWeight: "bold"
273
273
  } } }
274
274
  })]
275
- }), /* @__PURE__ */ j(re, { ref: r })] })
275
+ }), /* @__PURE__ */ Y(y, { ref: r })] })
276
276
  ]
277
277
  })
278
278
  });
279
279
  }, Te = () => {
280
- let [e, t] = k(null), { t: n } = Z(), r = X(), i = w((e) => {
280
+ let [e, t] = q(null), { t: n } = Z(), r = V(), i = H((e) => {
281
281
  t(e.currentTarget);
282
- }, []), a = w(() => {
282
+ }, []), a = H(() => {
283
283
  t(null);
284
284
  }, []);
285
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(R, {
285
+ return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
286
286
  color: "inherit",
287
287
  onClick: i,
288
288
  title: "Code information",
289
- children: [/* @__PURE__ */ j(fe, { color: "inherit" }), /* @__PURE__ */ j(F, {
289
+ children: [/* @__PURE__ */ Y(fe, { color: "inherit" }), /* @__PURE__ */ Y(k, {
290
290
  sx: {
291
291
  fontSize: "1.3rem",
292
292
  marginLeft: r.spacing(1),
@@ -297,23 +297,23 @@ var be = Y(ae)(({ theme: e }) => ({
297
297
  },
298
298
  children: n`Code information`
299
299
  })]
300
- }), e && /* @__PURE__ */ j(we, {
300
+ }), e && /* @__PURE__ */ Y(we, {
301
301
  anchorElement: e,
302
302
  onClose: a
303
303
  })] });
304
304
  }, Ee = () => {
305
- let { t: e } = Z(), t = X(), n = oe(C.resolve(u)), r = D(() => n.some((e) => e.isLoading), [n]), [i, a] = k(!1), o = w(() => {
306
- C.resolve(u).hideAllNotifications(), a(!0);
307
- }, []), s = w(() => {
305
+ let { t: e } = Z(), t = V(), n = oe(S.resolve(u)), r = G(() => n.some((e) => e.isLoading), [n]), [i, a] = q(!1), o = H(() => {
306
+ S.resolve(u).hideAllNotifications(), a(!0);
307
+ }, []), s = H(() => {
308
308
  a(!1);
309
309
  }, []);
310
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(R, {
310
+ return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
311
311
  "aria-label": e`Notifications`,
312
312
  color: "inherit",
313
313
  onClick: o,
314
314
  title: e`Notifications`,
315
315
  children: [
316
- /* @__PURE__ */ j(P, {
316
+ /* @__PURE__ */ Y(O, {
317
317
  badgeContent: n.length,
318
318
  color: "secondary",
319
319
  sx: { "& .MuiBadge-badge": {
@@ -322,14 +322,14 @@ var be = Y(ae)(({ theme: e }) => ({
322
322
  height: 15,
323
323
  minWidth: 15
324
324
  } },
325
- children: /* @__PURE__ */ j(ue, { color: "inherit" })
325
+ children: /* @__PURE__ */ Y(ue, { color: "inherit" })
326
326
  }),
327
- r && /* @__PURE__ */ j(I, {
327
+ r && /* @__PURE__ */ Y(te, {
328
328
  color: "inherit",
329
329
  size: t.spacing(3.5),
330
330
  sx: { position: "absolute" }
331
331
  }),
332
- /* @__PURE__ */ j(F, {
332
+ /* @__PURE__ */ Y(k, {
333
333
  sx: {
334
334
  fontSize: "1.3rem",
335
335
  marginLeft: t.spacing(1),
@@ -341,24 +341,24 @@ var be = Y(ae)(({ theme: e }) => ({
341
341
  children: e`Notifications`
342
342
  })
343
343
  ]
344
- }), /* @__PURE__ */ j(p, {
344
+ }), /* @__PURE__ */ Y(p, {
345
345
  onDrawerClose: s,
346
346
  open: i
347
347
  })] });
348
348
  }, De = () => {
349
- let { t: e } = Z(), t = X(), n = O(null), a = r(i, (e) => e.visibleOutages), o = r(i, (e) => e.activeOutages), s = r(i, (e) => e.soonActiveOutages), c = D(() => o.length > 0 || a.length > 0 || s.length > 0 ? "!" : null, [
349
+ let { t: e } = Z(), r = V(), i = K(null), a = t(n, (e) => e.visibleOutages), o = t(n, (e) => e.activeOutages), s = t(n, (e) => e.soonActiveOutages), c = G(() => o.length > 0 || a.length > 0 || s.length > 0 ? "!" : null, [
350
350
  o.length,
351
351
  s.length,
352
352
  a.length
353
- ]), l = w(() => {
354
- n.current.open();
353
+ ]), l = H(() => {
354
+ i.current.open();
355
355
  }, []);
356
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(R, {
356
+ return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
357
357
  "aria-label": e`Outages`,
358
358
  color: "inherit",
359
359
  onClick: l,
360
360
  title: e`Outages`,
361
- children: [/* @__PURE__ */ j(P, {
361
+ children: [/* @__PURE__ */ Y(O, {
362
362
  badgeContent: c,
363
363
  color: "secondary",
364
364
  sx: { "& .MuiBadge-badge": {
@@ -367,38 +367,38 @@ var be = Y(ae)(({ theme: e }) => ({
367
367
  height: 15,
368
368
  minWidth: 15
369
369
  } },
370
- children: /* @__PURE__ */ j(he, { color: "inherit" })
371
- }), /* @__PURE__ */ j(F, {
370
+ children: /* @__PURE__ */ Y(he, { color: "inherit" })
371
+ }), /* @__PURE__ */ Y(k, {
372
372
  sx: {
373
373
  fontSize: "1.3rem",
374
- marginLeft: t.spacing(1),
375
- [t.breakpoints.up("md")]: {
374
+ marginLeft: r.spacing(1),
375
+ [r.breakpoints.up("md")]: {
376
376
  position: "absolute",
377
377
  visibility: "hidden"
378
378
  }
379
379
  },
380
380
  children: e`Outages`
381
381
  })]
382
- }), /* @__PURE__ */ j(ee, { ref: n })] });
382
+ }), /* @__PURE__ */ Y(g, { ref: i })] });
383
383
  }, Oe = m(() => {
384
- let { t: e } = Z(), { data: r, error: i, isLoading: o } = n({
384
+ let { t: e } = Z(), t = c({
385
385
  gcTime: 0,
386
- queryFn: async ({ signal: e }) => (await C.resolve(a).retrieveOrganizationAdminNameEmails({ signal: e })).data,
387
- queryKey: C.resolve(t).getGenericKey(d.ORGANIZATION_ADMIN_NAME_EMAILS),
386
+ queryFn: async ({ signal: e }) => (await S.resolve(r).retrieveOrganizationAdminNameEmails({ signal: e })).data,
387
+ queryKey: S.resolve(l).getGenericKey(d.ORGANIZATION_ADMIN_NAME_EMAILS),
388
388
  staleTime: 0
389
389
  });
390
- return /* @__PURE__ */ j(V, {
390
+ return /* @__PURE__ */ Y(M, {
391
391
  alignItems: "center",
392
392
  sx: {
393
393
  justifyContent: "center",
394
394
  paddingTop: 0
395
395
  },
396
- children: /* @__PURE__ */ j(W, {
396
+ children: /* @__PURE__ */ Y(F, {
397
397
  primary: e`My organizations admins`,
398
- secondary: /* @__PURE__ */ M(A, { children: [
399
- o && e`Loading...`,
400
- i && e`Error`,
401
- r?.map((e) => /* @__PURE__ */ j(z, {
398
+ secondary: /* @__PURE__ */ X(J, { children: [
399
+ t.isLoading && e`Loading...`,
400
+ t.error && e`Error loading organization admins`,
401
+ t.data?.map((e) => /* @__PURE__ */ Y(re, {
402
402
  href: `mailto:${e.email}`,
403
403
  sx: { display: "table" },
404
404
  children: e.name ?? e.email
@@ -408,69 +408,69 @@ var be = Y(ae)(({ theme: e }) => ({
408
408
  })
409
409
  });
410
410
  }, { requiredPermissions: [{
411
- command_name: b.RetrieveOrganizationAdminNameEmailsCommand,
412
- permission_type: S.EXECUTE
411
+ command_name: w.RetrieveOrganizationAdminNameEmailsCommand,
412
+ permission_type: E.EXECUTE
413
413
  }] }), ke = m(() => {
414
- let { t: e } = Z(), t = f(), n = D(() => t.isLoading ? e`Loading...` : t.error ? e`Error` : t.map.get(C.resolve(o).user?.organization_id ?? "")?.name ?? e`Unknown`, [t, e]);
415
- return /* @__PURE__ */ j(V, {
414
+ let { t: e } = Z(), t = f(), n = G(() => t.isLoading ? e`Loading...` : t.error ? e`Error` : t.map.get(S.resolve(i).user?.organization_id ?? "")?.name ?? e`Unknown`, [t, e]);
415
+ return /* @__PURE__ */ Y(M, {
416
416
  sx: { paddingBottom: 0 },
417
- children: /* @__PURE__ */ j(W, {
417
+ children: /* @__PURE__ */ Y(F, {
418
418
  primary: e`My organization`,
419
419
  secondary: n ?? e`Unknown`,
420
420
  slotProps: { primary: { sx: { fontWeight: "bold" } } }
421
421
  })
422
422
  });
423
423
  }, { requiredPermissions: [{
424
- command_name: b.RetrieveOrganizationAdminNameEmailsCommand,
425
- permission_type: S.EXECUTE
424
+ command_name: w.RetrieveOrganizationAdminNameEmailsCommand,
425
+ permission_type: E.EXECUTE
426
426
  }] }), Ae = ({ anchorElement: t, onClose: n }) => {
427
- let r = le(), i = O(null), a = D(() => y.createUuid(), []), s = !!t, { t: c } = Z(), u = O(null), d = w(() => {
427
+ let r = le(), a = K(null), o = G(() => C.createUuid(), []), c = !!t, { t: l } = Z(), u = K(null), d = H(() => {
428
428
  u.current.open();
429
- }, []), f = w(() => {
430
- i.current.open();
431
- }, []), p = w(() => {
432
- C.resolve(l).log([{
429
+ }, []), f = H(() => {
430
+ a.current.open();
431
+ }, []), p = H(() => {
432
+ S.resolve(s).log([{
433
433
  detail: r.user,
434
- level: x.TRACE,
434
+ level: T.TRACE,
435
435
  topic: "USER_LOGOUT"
436
- }]), C.resolve(l).flushLog(), r.signoutRedirect();
437
- }, [r]), m = D(() => e.getUserDisplayValue(C.resolve(o).user, c), [c]), h = D(() => C.resolve(o).user?.roles, []);
438
- return /* @__PURE__ */ j(G, {
436
+ }]), S.resolve(s).flushLog(), r.signoutRedirect();
437
+ }, [r]), m = G(() => e.getUserDisplayValue(S.resolve(i).user, l), [l]), h = G(() => S.resolve(i).user?.roles, []);
438
+ return /* @__PURE__ */ Y(I, {
439
439
  ...Q.createAttributes("UserMenu"),
440
440
  anchorEl: t,
441
441
  anchorOrigin: {
442
442
  horizontal: "right",
443
443
  vertical: "bottom"
444
444
  },
445
- id: s ? a : void 0,
445
+ id: c ? o : void 0,
446
446
  onClose: n,
447
- open: s,
447
+ open: c,
448
448
  transformOrigin: {
449
449
  horizontal: "right",
450
450
  vertical: "top"
451
451
  },
452
- children: /* @__PURE__ */ M(B, {
452
+ children: /* @__PURE__ */ X(j, {
453
453
  sx: {
454
454
  maxWidth: 300,
455
455
  minWidth: 200,
456
456
  width: "100%"
457
457
  },
458
458
  children: [
459
- /* @__PURE__ */ j(V, {
459
+ /* @__PURE__ */ Y(M, {
460
460
  divider: !0,
461
- children: /* @__PURE__ */ j(W, {
462
- primary: m ?? c`Unknown`,
461
+ children: /* @__PURE__ */ Y(F, {
462
+ primary: m ?? l`Unknown`,
463
463
  slotProps: { primary: { sx: { fontWeight: "bold" } } }
464
464
  })
465
465
  }),
466
- /* @__PURE__ */ j(ke, {}),
467
- /* @__PURE__ */ j(Oe, {}),
468
- /* @__PURE__ */ j(V, {
466
+ /* @__PURE__ */ Y(ke, {}),
467
+ /* @__PURE__ */ Y(Oe, {}),
468
+ /* @__PURE__ */ Y(M, {
469
469
  divider: !0,
470
470
  sx: { paddingTop: 0 },
471
- children: /* @__PURE__ */ j(W, {
472
- primary: c`My roles`,
473
- secondary: /* @__PURE__ */ j(A, { children: h?.map((e) => /* @__PURE__ */ j(F, {
471
+ children: /* @__PURE__ */ Y(F, {
472
+ primary: l`My roles`,
473
+ secondary: /* @__PURE__ */ Y(J, { children: h?.map((e) => /* @__PURE__ */ Y(k, {
474
474
  component: "span",
475
475
  sx: {
476
476
  display: "inline-block",
@@ -481,53 +481,53 @@ var be = Y(ae)(({ theme: e }) => ({
481
481
  slotProps: { primary: { sx: { fontWeight: "bold" } } }
482
482
  })
483
483
  }),
484
- /* @__PURE__ */ M(V, {
484
+ /* @__PURE__ */ X(M, {
485
485
  alignItems: "center",
486
486
  divider: !0,
487
487
  sx: { justifyContent: "center" },
488
- children: [/* @__PURE__ */ M(H, {
488
+ children: [/* @__PURE__ */ X(N, {
489
489
  onClick: d,
490
- children: [/* @__PURE__ */ j(U, { children: /* @__PURE__ */ j(ve, { color: "primary" }) }), /* @__PURE__ */ j(W, {
491
- primary: c`My API permissions`,
490
+ children: [/* @__PURE__ */ Y(P, { children: /* @__PURE__ */ Y(ve, { color: "primary" }) }), /* @__PURE__ */ Y(F, {
491
+ primary: l`My API permissions`,
492
492
  slotProps: { primary: { sx: { color: "primary.main" } } }
493
493
  })]
494
- }), /* @__PURE__ */ j(ne, { ref: u })]
494
+ }), /* @__PURE__ */ Y(v, { ref: u })]
495
495
  }),
496
- /* @__PURE__ */ M(V, {
496
+ /* @__PURE__ */ X(M, {
497
497
  alignItems: "center",
498
498
  sx: { justifyContent: "center" },
499
- children: [/* @__PURE__ */ M(H, {
499
+ children: [/* @__PURE__ */ X(N, {
500
500
  onClick: f,
501
- children: [/* @__PURE__ */ j(U, { children: /* @__PURE__ */ j(_e, { color: "secondary" }) }), /* @__PURE__ */ j(W, {
502
- primary: c`Logout`,
501
+ children: [/* @__PURE__ */ Y(P, { children: /* @__PURE__ */ Y(_e, { color: "secondary" }) }), /* @__PURE__ */ Y(F, {
502
+ primary: l`Logout`,
503
503
  slotProps: { primary: { sx: {
504
504
  color: "secondary.main",
505
505
  fontWeight: "bold"
506
506
  } } }
507
507
  })]
508
- }), /* @__PURE__ */ j(ce, {
509
- body: c`Click the logout button to logout`,
510
- cancelLabel: c`Cancel`,
511
- confirmLabel: c`Logout`,
508
+ }), /* @__PURE__ */ Y(ce, {
509
+ body: l`Click the logout button to logout`,
510
+ cancelLabel: l`Cancel`,
511
+ confirmLabel: l`Logout`,
512
512
  onConfirm: p,
513
- ref: i,
514
- title: c`Are you sure you want to logout?`
513
+ ref: a,
514
+ title: l`Are you sure you want to logout?`
515
515
  })]
516
516
  })
517
517
  ]
518
518
  })
519
519
  });
520
520
  }, je = () => {
521
- let { t: e } = Z(), t = X(), [n, r] = k(null), i = w((e) => {
521
+ let { t: e } = Z(), t = V(), [n, r] = q(null), i = H((e) => {
522
522
  r(e.currentTarget);
523
- }, []), a = w(() => {
523
+ }, []), a = H(() => {
524
524
  r(null);
525
525
  }, []);
526
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(R, {
526
+ return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
527
527
  color: "inherit",
528
528
  onClick: i,
529
529
  title: "Account",
530
- children: [/* @__PURE__ */ j(ge, { color: "inherit" }), /* @__PURE__ */ j(F, {
530
+ children: [/* @__PURE__ */ Y(ge, { color: "inherit" }), /* @__PURE__ */ Y(k, {
531
531
  sx: {
532
532
  fontSize: "1.3rem",
533
533
  marginLeft: t.spacing(1),
@@ -538,20 +538,20 @@ var be = Y(ae)(({ theme: e }) => ({
538
538
  },
539
539
  children: e`Account`
540
540
  })]
541
- }), n && /* @__PURE__ */ j(Ae, {
541
+ }), n && /* @__PURE__ */ Y(Ae, {
542
542
  anchorElement: n,
543
543
  onClose: a
544
544
  })] });
545
545
  }, Me = () => {
546
- let { t: e } = Z(), t = X(), n = O(null), r = w(() => {
546
+ let { t: e } = Z(), t = V(), n = K(null), r = H(() => {
547
547
  n.current.open();
548
548
  }, []);
549
- return C.resolve(v).featureFlags.update_own_organization ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(R, {
549
+ return S.resolve(x).featureFlags.update_own_organization ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
550
550
  "aria-label": e`Change organization`,
551
551
  color: "inherit",
552
552
  onClick: r,
553
553
  title: e`Change organization`,
554
- children: [/* @__PURE__ */ j(ye, { color: "inherit" }), /* @__PURE__ */ j(F, {
554
+ children: [/* @__PURE__ */ Y(ye, { color: "inherit" }), /* @__PURE__ */ Y(k, {
555
555
  sx: {
556
556
  fontSize: "1.3rem",
557
557
  marginLeft: t.spacing(1),
@@ -562,43 +562,43 @@ var be = Y(ae)(({ theme: e }) => ({
562
562
  },
563
563
  children: e`Change organization`
564
564
  })]
565
- }), /* @__PURE__ */ j(te, { ref: n })] }) : null;
565
+ }), /* @__PURE__ */ Y(_, { ref: n })] }) : null;
566
566
  }, Ne = ({ fullWidth: e }) => {
567
- let t = X(), { t: n } = Z(), r = c().getEnvironmentMessage(), i = E(), [a, o] = k(!1), s = w(() => {
568
- o((e) => !e);
567
+ let t = V(), { t: n } = Z(), r = o().getEnvironmentMessage(), i = W(), [a, s] = q(!1), c = H(() => {
568
+ s((e) => !e);
569
569
  }, []);
570
- return T(() => {
570
+ return U(() => {
571
571
  if (a) {
572
572
  let e = (e) => {
573
- e.key === "Escape" && o(!1);
573
+ e.key === "Escape" && s(!1);
574
574
  };
575
575
  return document.addEventListener("keydown", e), () => {
576
576
  document.removeEventListener("keydown", e);
577
577
  };
578
578
  }
579
- }, [a]), /* @__PURE__ */ M(F, {
579
+ }, [a]), /* @__PURE__ */ X(k, {
580
580
  ...Q.createAttributes("ApplicationBarActions"),
581
581
  sx: {
582
582
  alignItems: "center",
583
583
  display: "flex",
584
584
  paddingRight: 1
585
585
  },
586
- children: [/* @__PURE__ */ j(R, {
586
+ children: [/* @__PURE__ */ Y(A, {
587
587
  "aria-controls": i,
588
588
  "aria-label": n`Toggle menu`,
589
- onClick: s,
589
+ onClick: c,
590
590
  sx: {
591
- color: t["gen-epix-ui"].navbar.primaryColor,
591
+ color: t.components.GenEpixUiClientCommonNavbar.primaryColor,
592
592
  [t.breakpoints.up("md")]: { display: "none" }
593
593
  },
594
- children: /* @__PURE__ */ j($, {})
595
- }), /* @__PURE__ */ M(F, {
594
+ children: /* @__PURE__ */ Y($, {})
595
+ }), /* @__PURE__ */ X(k, {
596
596
  id: i,
597
597
  sx: {
598
598
  display: "flex",
599
599
  [t.breakpoints.down("md")]: {
600
600
  alignItems: "start",
601
- background: t["gen-epix-ui"].navbar.background,
601
+ background: t.components.GenEpixUiClientCommonNavbar.background,
602
602
  display: a ? "flex" : "none",
603
603
  flexDirection: "column",
604
604
  left: 0,
@@ -609,18 +609,18 @@ var be = Y(ae)(({ theme: e }) => ({
609
609
  }
610
610
  },
611
611
  children: [
612
- /* @__PURE__ */ j(Ce, {}),
613
- /* @__PURE__ */ j(De, {}),
614
- /* @__PURE__ */ j(Ee, {}),
615
- /* @__PURE__ */ j(Te, {}),
616
- /* @__PURE__ */ j(Me, {}),
617
- /* @__PURE__ */ j(je, {}),
618
- r && /* @__PURE__ */ j(F, {
612
+ /* @__PURE__ */ Y(Ce, {}),
613
+ /* @__PURE__ */ Y(De, {}),
614
+ /* @__PURE__ */ Y(Ee, {}),
615
+ /* @__PURE__ */ Y(Te, {}),
616
+ /* @__PURE__ */ Y(Me, {}),
617
+ /* @__PURE__ */ Y(je, {}),
618
+ r && /* @__PURE__ */ Y(k, {
619
619
  ...Q.createAttributes("ApplicationBarActions-EnvironmentMessage"),
620
620
  "aria-hidden": "true",
621
621
  sx: {
622
622
  alignItems: "center",
623
- color: t["gen-epix-ui"].navbar.environmentMessageColor,
623
+ color: t.components.GenEpixUiClientCommonNavbar.environmentMessageColor,
624
624
  display: "flex",
625
625
  fontWeight: 700,
626
626
  marginRight: +!e,
@@ -637,37 +637,37 @@ var be = Y(ae)(({ theme: e }) => ({
637
637
  })]
638
638
  });
639
639
  }, Pe = ({ fullWidth: e, singleAction: t }) => {
640
- let n = X(), r = c();
641
- return /* @__PURE__ */ j(N, {
640
+ let n = V(), r = o();
641
+ return /* @__PURE__ */ Y(D, {
642
642
  ...Q.createAttributes("ApplicationBar"),
643
643
  position: "static",
644
644
  square: !0,
645
645
  sx: {
646
- background: n["gen-epix-ui"].navbar.background,
646
+ background: n.components.GenEpixUiClientCommonNavbar.background,
647
647
  boxShadow: "none"
648
648
  },
649
- children: /* @__PURE__ */ j(L, {
649
+ children: /* @__PURE__ */ Y(ne, {
650
650
  disableGutters: !0,
651
651
  maxWidth: !e && "xl",
652
- children: /* @__PURE__ */ M(K, {
652
+ children: /* @__PURE__ */ X(L, {
653
653
  disableGutters: !0,
654
654
  sx: {
655
655
  height: 48,
656
656
  justifyContent: t ? "center" : "space-between",
657
657
  minHeight: "48px !important"
658
658
  },
659
- children: [t && /* @__PURE__ */ j(F, {
659
+ children: [t && /* @__PURE__ */ Y(k, {
660
660
  sx: { marginX: 2 },
661
- children: /* @__PURE__ */ j(J, {
661
+ children: /* @__PURE__ */ Y(z, {
662
662
  component: "h1",
663
663
  sx: {
664
- color: n["gen-epix-ui"].navbar.primaryColor,
664
+ color: n.components.GenEpixUiClientCommonNavbar.primaryColor,
665
665
  fontSize: "1.3rem"
666
666
  },
667
667
  variant: "body2",
668
668
  children: r.applicationName
669
669
  })
670
- }), !t && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(xe, { fullWidth: e }), /* @__PURE__ */ j(Ne, { fullWidth: e })] })]
670
+ }), !t && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(xe, { fullWidth: e }), /* @__PURE__ */ Y(Ne, { fullWidth: e })] })]
671
671
  })
672
672
  })
673
673
  });