@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.
- package/README.md +5 -4
- package/dist/@types/mui.d.ts +13 -5
- package/dist/@types/ui-client-common.d.ts +1 -0
- package/dist/_chunks/ApplicationFooter.js +44 -44
- package/dist/_chunks/ApplicationFooter.js.map +1 -1
- package/dist/_chunks/Breadcrumbs.js +13 -13
- package/dist/_chunks/CrudPage.js +300 -300
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/Notifications.js +51 -51
- package/dist/_chunks/OutageList.js +29 -29
- package/dist/_chunks/OutageUtil.js +1 -2
- package/dist/_chunks/OutageUtil.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +96 -388
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +518 -512
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +8 -16
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +14 -12
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +77 -77
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
- package/dist/_chunks/UserManagerUtil.js +210 -209
- package/dist/_chunks/UserManagerUtil.js.map +1 -1
- package/dist/_chunks/_baseFlatten.js +8 -8
- package/dist/_chunks/_baseFlatten.js.map +1 -1
- package/dist/_chunks/_baseGet.js +280 -0
- package/dist/_chunks/_baseGet.js.map +1 -0
- package/dist/_chunks/_baseIteratee.js +274 -0
- package/dist/_chunks/_baseIteratee.js.map +1 -0
- package/dist/_chunks/_baseUnset.js +22 -299
- package/dist/_chunks/_baseUnset.js.map +1 -1
- package/dist/_chunks/last.js +13 -0
- package/dist/_chunks/last.js.map +1 -0
- package/dist/_chunks/omit.js +41 -40
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/tableStore.js +190 -183
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/uniq.js +44 -0
- package/dist/_chunks/uniq.js.map +1 -0
- package/dist/_chunks/useMutation.js +22 -22
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +25 -8
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/classes/abstracts/FilterAbstract/index.js +3 -1
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/filters/MultiSelectFilter.d.ts +1 -1
- package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +1 -1
- package/dist/classes/services/AuthenticationService/index.js +15 -15
- package/dist/classes/services/AuthenticationService/index.js.map +1 -1
- package/dist/classes/services/AuthorizationService/index.js +4 -4
- package/dist/classes/services/AuthorizationService/index.js.map +1 -1
- package/dist/classes/services/BackendVersionService/index.js +3 -2
- package/dist/classes/services/BackendVersionService/index.js.map +1 -1
- package/dist/classes/services/BreadcrumbService/index.js +16 -38
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
- package/dist/classes/services/EmotionCacheService/index.js +9 -8
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
- package/dist/classes/services/I18nService/index.js +11 -10
- package/dist/classes/services/I18nService/index.js.map +1 -1
- package/dist/classes/services/InactivityService/index.js +12 -12
- package/dist/classes/services/InactivityService/index.js.map +1 -1
- package/dist/classes/services/LogService/index.js +39 -33
- package/dist/classes/services/LogService/index.js.map +1 -1
- package/dist/classes/services/NotificationService/index.js +8 -8
- package/dist/classes/services/NotificationService/index.js.map +1 -1
- package/dist/classes/services/PageEventBusService/index.js +13 -9
- package/dist/classes/services/PageEventBusService/index.js.map +1 -1
- package/dist/classes/services/RouterService/index.js +3 -6
- package/dist/classes/services/RouterService/index.js.map +1 -1
- package/dist/components/app/App/App.d.ts +1 -1
- package/dist/components/app/App/index.js +34 -38
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +28 -28
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +47 -45
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
- package/dist/components/app/AuthenticationWrapper/index.js +35 -35
- package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
- package/dist/components/app/AuthorizationWrapper/index.js +19 -19
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
- package/dist/components/app/RouterRoot/index.js +52 -50
- package/dist/components/app/RouterRoot/index.js.map +1 -1
- package/dist/components/epi/EpiContactDetailsDialog/index.js +21 -21
- package/dist/components/filters/BooleanFilterField/index.js +5 -5
- package/dist/components/filters/DateFilterField/index.js +3 -3
- package/dist/components/filters/GeoFilterField/index.js +4 -4
- package/dist/components/filters/MultiSelectFilterField/index.js +4 -4
- package/dist/components/filters/NumberRangeFilterField/index.js +3 -3
- package/dist/components/filters/TextFilterField/index.js +3 -3
- package/dist/components/ui/ApplicationBar/index.js +188 -188
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +29 -29
- package/dist/components/ui/LicensesDialog/index.js +38 -38
- package/dist/components/ui/LicensesDialog/index.js.map +1 -1
- package/dist/components/ui/MyPermissionsDialog/index.js +16 -16
- package/dist/components/ui/NavLink/index.js +6 -6
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +21 -21
- package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
- package/dist/components/ui/PageContainer/index.js +24 -24
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/Sidebar/index.js +30 -30
- package/dist/components/ui/UserFeedbackDialog/index.js +12 -12
- package/dist/constants/config.constants.d.ts +0 -2
- package/dist/constants/config.constants.js +2 -2
- package/dist/constants/config.constants.js.map +1 -1
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +12 -12
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -1
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +14 -14
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -1
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +12 -12
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +13 -13
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +4 -4
- package/dist/dataHooks/useOrganizationsQuery/index.js +13 -13
- package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -1
- package/dist/dataHooks/useUsersQuery/index.js +10 -10
- package/dist/dataHooks/useUsersQuery/index.js.map +1 -1
- package/dist/hooks/useConfig/index.js +2 -2
- package/dist/hooks/useConfig/index.js.map +1 -1
- package/dist/hooks/useCreateMutation/index.js +12 -12
- package/dist/hooks/useCreateMutation/index.js.map +1 -1
- package/dist/hooks/useDeleteMutation/index.js +16 -9
- package/dist/hooks/useDeleteMutation/index.js.map +1 -1
- package/dist/hooks/useEditMutation/index.js +48 -33
- package/dist/hooks/useEditMutation/index.js.map +1 -1
- package/dist/hooks/useItemQuery/index.js +4 -4
- package/dist/hooks/useItemQuery/index.js.map +1 -1
- package/dist/locale/en.json +1 -0
- package/dist/locale/nl.json +1 -0
- package/dist/models/config.models.d.ts +1 -5
- package/dist/models/theme.models.d.ts +19 -16
- package/dist/pages/AcceptInvitationPage/index.js +25 -25
- package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
- package/dist/pages/AdminPage/index.js +16 -16
- package/dist/pages/ChooseIdentityProviderPage/index.js +21 -21
- package/dist/pages/IdentifierIssuersAdminPage/index.js +5 -5
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +5 -5
- package/dist/pages/OrganizationContactsAdminPage/index.js +6 -6
- package/dist/pages/OrganizationSitesAdminPage/index.js +9 -9
- package/dist/pages/OrganizationsAdminPage/index.js +13 -13
- package/dist/pages/OutagesAdminPage/index.js +20 -20
- package/dist/pages/PostLoginPage/index.js +6 -6
- package/dist/pages/PostLogoutPage/index.js +8 -8
- package/dist/pages/UsersAdminPage/index.js +39 -39
- package/dist/pages/UsersAdminPage/index.js.map +1 -1
- package/dist/setup/setup.js +11 -4
- package/dist/setup/setup.js.map +1 -1
- package/dist/theme/demoTheme/index.js +17 -15
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/DataHookUtil/index.js +1 -1
- package/dist/utils/DataHookUtil/index.js.map +1 -1
- package/dist/utils/DependencyContainerUtil/DependencyContainerUtil.d.ts +2 -3
- package/dist/utils/DependencyContainerUtil/index.js +10 -15
- package/dist/utils/DependencyContainerUtil/index.js.map +1 -1
- package/dist/utils/MenuDataUtil/index.js +1 -1
- package/dist/utils/MenuDataUtil/index.js.map +1 -1
- package/dist/utils/StandardConfigUtil/index.js +0 -4
- package/dist/utils/StandardConfigUtil/index.js.map +1 -1
- package/dist/utils/TimeUtil/index.js +1 -1
- package/dist/utils/TimeUtil/index.js.map +1 -1
- package/package.json +10 -13
- package/dist/context/ClientCommonConfigContext/ClientCommonConfigContext.d.ts +0 -9
- package/dist/context/ClientCommonConfigContext/ClientCommonConfigContextProvider.d.ts +0 -6
- package/dist/context/ClientCommonConfigContext/index.d.ts +0 -3
- package/dist/context/ClientCommonConfigContext/index.js +0 -34
- package/dist/context/ClientCommonConfigContext/index.js.map +0 -1
- 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/
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
|
|
18
|
-
import { OutagesDialog as
|
|
19
|
-
import { OrganizationSwitcherDialog as
|
|
20
|
-
import { MyPermissionsDialog as
|
|
21
|
-
import { LicensesDialog as
|
|
22
|
-
import { BackendVersionService as
|
|
23
|
-
import { FeatureFlagsService as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
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 =
|
|
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 =
|
|
58
|
-
let 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);
|
|
59
59
|
return [e, ...e.children.filter((e) => !e.handle.hidden)];
|
|
60
|
-
}, []), [c, l] =
|
|
61
|
-
|
|
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 =
|
|
71
|
+
let u = H(() => {
|
|
72
72
|
l((e) => !e);
|
|
73
|
-
}, []), d =
|
|
73
|
+
}, []), d = H((e) => {
|
|
74
74
|
e.currentTarget.ariaDisabled === "true" && e.preventDefault();
|
|
75
75
|
}, []);
|
|
76
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ X(k, {
|
|
77
77
|
sx: { flexGrow: 1 },
|
|
78
|
-
children: [/* @__PURE__ */
|
|
79
|
-
"aria-controls":
|
|
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
|
|
83
|
+
color: n.components.GenEpixUiClientCommonNavbar.primaryColor,
|
|
84
84
|
[n.breakpoints.up("md")]: { display: "none" }
|
|
85
85
|
},
|
|
86
|
-
children: /* @__PURE__ */
|
|
87
|
-
}), /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ Y(se, {})
|
|
87
|
+
}), /* @__PURE__ */ Y(k, {
|
|
88
88
|
component: "nav",
|
|
89
|
-
id:
|
|
89
|
+
id: o,
|
|
90
90
|
sx: {
|
|
91
91
|
flexGrow: 1,
|
|
92
92
|
[n.breakpoints.down("md")]: {
|
|
93
|
-
background: n
|
|
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__ */
|
|
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:
|
|
114
|
+
children: s.filter((e) => r.doesUserHavePermissionForRoute(e)).map((e) => {
|
|
115
115
|
let t = !!e.handle.disabled;
|
|
116
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ Y(k, {
|
|
117
117
|
component: "li",
|
|
118
118
|
sx: {
|
|
119
119
|
"&:has(.active:not([aria-disabled=\"true\"]))": {
|
|
120
|
-
"& svg": { color: n
|
|
121
|
-
a: { color: n
|
|
122
|
-
background: n
|
|
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
|
|
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__ */
|
|
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 =
|
|
157
|
-
|
|
158
|
-
if (!
|
|
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
|
|
166
|
+
let s = H(() => {
|
|
167
167
|
r.current.open();
|
|
168
|
-
}, []),
|
|
169
|
-
a(!1),
|
|
168
|
+
}, []), c = H(() => {
|
|
169
|
+
a(!1), S.resolve(h).showShowUserFeedbackTooltip = !1;
|
|
170
170
|
}, []);
|
|
171
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(R, {
|
|
172
172
|
arrow: !0,
|
|
173
173
|
color: "secondary",
|
|
174
|
-
onMouseEnter:
|
|
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__ */
|
|
186
|
+
children: /* @__PURE__ */ X(A, {
|
|
187
187
|
"aria-label": e`Feedback`,
|
|
188
188
|
color: "inherit",
|
|
189
|
-
onClick:
|
|
190
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
202
|
+
}), /* @__PURE__ */ Y(ee, { ref: r })] });
|
|
203
203
|
}, we = ({ anchorElement: e, onClose: t }) => {
|
|
204
|
-
let n =
|
|
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 =
|
|
207
|
-
let e = `Frontend version: ${
|
|
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
|
-
}, [
|
|
210
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
231
|
+
/* @__PURE__ */ Y(M, {
|
|
232
232
|
divider: !0,
|
|
233
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ Y(F, {
|
|
234
234
|
primary: a("Frontend version"),
|
|
235
|
-
secondary:
|
|
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__ */
|
|
242
|
+
/* @__PURE__ */ Y(M, {
|
|
243
243
|
divider: !0,
|
|
244
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ Y(F, {
|
|
245
245
|
primary: a("Backend version"),
|
|
246
|
-
secondary:
|
|
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__ */
|
|
253
|
+
/* @__PURE__ */ Y(M, {
|
|
254
254
|
divider: !0,
|
|
255
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ X(N, {
|
|
256
256
|
onClick: d,
|
|
257
|
-
children: [/* @__PURE__ */
|
|
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
|
|
266
|
+
/* @__PURE__ */ X(M, { children: [/* @__PURE__ */ X(N, {
|
|
267
267
|
onClick: u,
|
|
268
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
275
|
+
}), /* @__PURE__ */ Y(y, { ref: r })] })
|
|
276
276
|
]
|
|
277
277
|
})
|
|
278
278
|
});
|
|
279
279
|
}, Te = () => {
|
|
280
|
-
let [e, t] =
|
|
280
|
+
let [e, t] = q(null), { t: n } = Z(), r = V(), i = H((e) => {
|
|
281
281
|
t(e.currentTarget);
|
|
282
|
-
}, []), a =
|
|
282
|
+
}, []), a = H(() => {
|
|
283
283
|
t(null);
|
|
284
284
|
}, []);
|
|
285
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
300
|
+
}), e && /* @__PURE__ */ Y(we, {
|
|
301
301
|
anchorElement: e,
|
|
302
302
|
onClose: a
|
|
303
303
|
})] });
|
|
304
304
|
}, Ee = () => {
|
|
305
|
-
let { t: e } = Z(), t =
|
|
306
|
-
|
|
307
|
-
}, []), s =
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
325
|
+
children: /* @__PURE__ */ Y(ue, { color: "inherit" })
|
|
326
326
|
}),
|
|
327
|
-
r && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
344
|
+
}), /* @__PURE__ */ Y(p, {
|
|
345
345
|
onDrawerClose: s,
|
|
346
346
|
open: i
|
|
347
347
|
})] });
|
|
348
348
|
}, De = () => {
|
|
349
|
-
let { t: e } = Z(),
|
|
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 =
|
|
354
|
-
|
|
353
|
+
]), l = H(() => {
|
|
354
|
+
i.current.open();
|
|
355
355
|
}, []);
|
|
356
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
371
|
-
}), /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ Y(he, { color: "inherit" })
|
|
371
|
+
}), /* @__PURE__ */ Y(k, {
|
|
372
372
|
sx: {
|
|
373
373
|
fontSize: "1.3rem",
|
|
374
|
-
marginLeft:
|
|
375
|
-
[
|
|
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__ */
|
|
382
|
+
}), /* @__PURE__ */ Y(g, { ref: i })] });
|
|
383
383
|
}, Oe = m(() => {
|
|
384
|
-
let { t: e } = Z(),
|
|
384
|
+
let { t: e } = Z(), t = c({
|
|
385
385
|
gcTime: 0,
|
|
386
|
-
queryFn: async ({ signal: e }) => (await
|
|
387
|
-
queryKey:
|
|
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__ */
|
|
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__ */
|
|
396
|
+
children: /* @__PURE__ */ Y(F, {
|
|
397
397
|
primary: e`My organizations admins`,
|
|
398
|
-
secondary: /* @__PURE__ */
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
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:
|
|
412
|
-
permission_type:
|
|
411
|
+
command_name: w.RetrieveOrganizationAdminNameEmailsCommand,
|
|
412
|
+
permission_type: E.EXECUTE
|
|
413
413
|
}] }), ke = m(() => {
|
|
414
|
-
let { t: e } = Z(), t = f(), n =
|
|
415
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
425
|
-
permission_type:
|
|
424
|
+
command_name: w.RetrieveOrganizationAdminNameEmailsCommand,
|
|
425
|
+
permission_type: E.EXECUTE
|
|
426
426
|
}] }), Ae = ({ anchorElement: t, onClose: n }) => {
|
|
427
|
-
let r = le(),
|
|
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 =
|
|
430
|
-
|
|
431
|
-
}, []), p =
|
|
432
|
-
|
|
429
|
+
}, []), f = H(() => {
|
|
430
|
+
a.current.open();
|
|
431
|
+
}, []), p = H(() => {
|
|
432
|
+
S.resolve(s).log([{
|
|
433
433
|
detail: r.user,
|
|
434
|
-
level:
|
|
434
|
+
level: T.TRACE,
|
|
435
435
|
topic: "USER_LOGOUT"
|
|
436
|
-
}]),
|
|
437
|
-
}, [r]), m =
|
|
438
|
-
return /* @__PURE__ */
|
|
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:
|
|
445
|
+
id: c ? o : void 0,
|
|
446
446
|
onClose: n,
|
|
447
|
-
open:
|
|
447
|
+
open: c,
|
|
448
448
|
transformOrigin: {
|
|
449
449
|
horizontal: "right",
|
|
450
450
|
vertical: "top"
|
|
451
451
|
},
|
|
452
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
459
|
+
/* @__PURE__ */ Y(M, {
|
|
460
460
|
divider: !0,
|
|
461
|
-
children: /* @__PURE__ */
|
|
462
|
-
primary: m ??
|
|
461
|
+
children: /* @__PURE__ */ Y(F, {
|
|
462
|
+
primary: m ?? l`Unknown`,
|
|
463
463
|
slotProps: { primary: { sx: { fontWeight: "bold" } } }
|
|
464
464
|
})
|
|
465
465
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ Y(ke, {}),
|
|
467
|
+
/* @__PURE__ */ Y(Oe, {}),
|
|
468
|
+
/* @__PURE__ */ Y(M, {
|
|
469
469
|
divider: !0,
|
|
470
470
|
sx: { paddingTop: 0 },
|
|
471
|
-
children: /* @__PURE__ */
|
|
472
|
-
primary:
|
|
473
|
-
secondary: /* @__PURE__ */
|
|
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
|
|
484
|
+
/* @__PURE__ */ X(M, {
|
|
485
485
|
alignItems: "center",
|
|
486
486
|
divider: !0,
|
|
487
487
|
sx: { justifyContent: "center" },
|
|
488
|
-
children: [/* @__PURE__ */
|
|
488
|
+
children: [/* @__PURE__ */ X(N, {
|
|
489
489
|
onClick: d,
|
|
490
|
-
children: [/* @__PURE__ */
|
|
491
|
-
primary:
|
|
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__ */
|
|
494
|
+
}), /* @__PURE__ */ Y(v, { ref: u })]
|
|
495
495
|
}),
|
|
496
|
-
/* @__PURE__ */ M
|
|
496
|
+
/* @__PURE__ */ X(M, {
|
|
497
497
|
alignItems: "center",
|
|
498
498
|
sx: { justifyContent: "center" },
|
|
499
|
-
children: [/* @__PURE__ */
|
|
499
|
+
children: [/* @__PURE__ */ X(N, {
|
|
500
500
|
onClick: f,
|
|
501
|
-
children: [/* @__PURE__ */
|
|
502
|
-
primary:
|
|
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__ */
|
|
509
|
-
body:
|
|
510
|
-
cancelLabel:
|
|
511
|
-
confirmLabel:
|
|
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:
|
|
514
|
-
title:
|
|
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 =
|
|
521
|
+
let { t: e } = Z(), t = V(), [n, r] = q(null), i = H((e) => {
|
|
522
522
|
r(e.currentTarget);
|
|
523
|
-
}, []), a =
|
|
523
|
+
}, []), a = H(() => {
|
|
524
524
|
r(null);
|
|
525
525
|
}, []);
|
|
526
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ X(A, {
|
|
527
527
|
color: "inherit",
|
|
528
528
|
onClick: i,
|
|
529
529
|
title: "Account",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
541
|
+
}), n && /* @__PURE__ */ Y(Ae, {
|
|
542
542
|
anchorElement: n,
|
|
543
543
|
onClose: a
|
|
544
544
|
})] });
|
|
545
545
|
}, Me = () => {
|
|
546
|
-
let { t: e } = Z(), t =
|
|
546
|
+
let { t: e } = Z(), t = V(), n = K(null), r = H(() => {
|
|
547
547
|
n.current.open();
|
|
548
548
|
}, []);
|
|
549
|
-
return
|
|
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__ */
|
|
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__ */
|
|
565
|
+
}), /* @__PURE__ */ Y(_, { ref: n })] }) : null;
|
|
566
566
|
}, Ne = ({ fullWidth: e }) => {
|
|
567
|
-
let t =
|
|
568
|
-
|
|
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
|
|
570
|
+
return U(() => {
|
|
571
571
|
if (a) {
|
|
572
572
|
let e = (e) => {
|
|
573
|
-
e.key === "Escape" &&
|
|
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__ */
|
|
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__ */
|
|
586
|
+
children: [/* @__PURE__ */ Y(A, {
|
|
587
587
|
"aria-controls": i,
|
|
588
588
|
"aria-label": n`Toggle menu`,
|
|
589
|
-
onClick:
|
|
589
|
+
onClick: c,
|
|
590
590
|
sx: {
|
|
591
|
-
color: t
|
|
591
|
+
color: t.components.GenEpixUiClientCommonNavbar.primaryColor,
|
|
592
592
|
[t.breakpoints.up("md")]: { display: "none" }
|
|
593
593
|
},
|
|
594
|
-
children: /* @__PURE__ */
|
|
595
|
-
}), /* @__PURE__ */
|
|
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
|
|
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__ */
|
|
613
|
-
/* @__PURE__ */
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
r && /* @__PURE__ */
|
|
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
|
|
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 =
|
|
641
|
-
return /* @__PURE__ */
|
|
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
|
|
646
|
+
background: n.components.GenEpixUiClientCommonNavbar.background,
|
|
647
647
|
boxShadow: "none"
|
|
648
648
|
},
|
|
649
|
-
children: /* @__PURE__ */
|
|
649
|
+
children: /* @__PURE__ */ Y(ne, {
|
|
650
650
|
disableGutters: !0,
|
|
651
651
|
maxWidth: !e && "xl",
|
|
652
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
659
|
+
children: [t && /* @__PURE__ */ Y(k, {
|
|
660
660
|
sx: { marginX: 2 },
|
|
661
|
-
children: /* @__PURE__ */
|
|
661
|
+
children: /* @__PURE__ */ Y(z, {
|
|
662
662
|
component: "h1",
|
|
663
663
|
sx: {
|
|
664
|
-
color: n
|
|
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__ */
|
|
670
|
+
}), !t && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(xe, { fullWidth: e }), /* @__PURE__ */ Y(Ne, { fullWidth: e })] })]
|
|
671
671
|
})
|
|
672
672
|
})
|
|
673
673
|
});
|