@gen-epix/ui-client-common 4.6.0 → 4.7.0

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