@keycloak/keycloak-admin-ui 26.1.3 → 26.2.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.
- package/README.md +4 -4
- package/lib/.vite/manifest.json +51 -30
- package/lib/{CreateFlow-py1khDIl.js → CreateFlow-BkGiX0Bw.js} +9 -9
- package/lib/{CreateFlow-py1khDIl.js.map → CreateFlow-BkGiX0Bw.js.map} +1 -1
- package/lib/{DetailOrganization-25SO9X0r.js → DetailOrganization-CJKEEgO8.js} +33 -33
- package/lib/{DetailOrganization-25SO9X0r.js.map → DetailOrganization-CJKEEgO8.js.map} +1 -1
- package/lib/{ExecutorForm-BD7jc-pB.js → ExecutorForm-C9_CWJhw.js} +49 -48
- package/lib/ExecutorForm-C9_CWJhw.js.map +1 -0
- package/lib/FlowDetails-InWOgFIk.js +9025 -0
- package/lib/FlowDetails-InWOgFIk.js.map +1 -0
- package/lib/NewOrganization-D93k_LVb.js +36 -0
- package/lib/{NewOrganization-DZMavWdP.js.map → NewOrganization-D93k_LVb.js.map} +1 -1
- package/lib/PermissionConfigurationDetails-DPu0gttX.js +702 -0
- package/lib/PermissionConfigurationDetails-DPu0gttX.js.map +1 -0
- package/lib/{PermissionDetails-C-QY7gyW.js → PermissionDetails-C4X5r4gF.js} +72 -72
- package/lib/{PermissionDetails-C-QY7gyW.js.map → PermissionDetails-C4X5r4gF.js.map} +1 -1
- package/lib/RealmSection-DYc_8dbl.js +179 -0
- package/lib/RealmSection-DYc_8dbl.js.map +1 -0
- package/lib/ResourceDetails-BO8zlCP_.js +226 -0
- package/lib/ResourceDetails-BO8zlCP_.js.map +1 -0
- package/lib/{ScopeDetails-DPQmyy0_.js → ScopeDetails-DyHGLML9.js} +35 -35
- package/lib/{ScopeDetails-DPQmyy0_.js.map → ScopeDetails-DyHGLML9.js.map} +1 -1
- package/lib/ScopePicker-DxDYNCCh.js +85 -0
- package/lib/ScopePicker-DxDYNCCh.js.map +1 -0
- package/lib/authentication/components/AuthenticationProviderContext.d.ts +9 -0
- package/lib/authentication/components/FlowRow.d.ts +1 -0
- package/lib/authentication/components/FlowTitle.d.ts +5 -2
- package/lib/clients/add/SamlSignature.d.ts +1 -0
- package/lib/clients/authorization/ScopePicker.d.ts +5 -2
- package/lib/clients/authorization/policy/LogicSelector.d.ts +1 -1
- package/lib/clients/authorization/policy/NameDescription.d.ts +3 -2
- package/lib/clients/routes/PermissionConfigurationDetails.d.ts +10 -0
- package/lib/components/client/ClientSelect.d.ts +6 -2
- package/lib/components/dynamic/BooleanComponent.d.ts +1 -1
- package/lib/components/dynamic/DynamicComponents.d.ts +2 -1
- package/lib/components/dynamic/FileComponent.d.ts +1 -1
- package/lib/components/dynamic/GroupComponent.d.ts +1 -1
- package/lib/components/dynamic/IntComponent.d.ts +1 -1
- package/lib/components/dynamic/ListComponent.d.ts +1 -1
- package/lib/components/dynamic/MapComponent.d.ts +1 -1
- package/lib/components/dynamic/MultivaluedListComponent.d.ts +1 -1
- package/lib/components/dynamic/MultivaluedStringComponent.d.ts +1 -1
- package/lib/components/dynamic/NumberComponent.d.ts +1 -1
- package/lib/components/dynamic/PasswordComponent.d.ts +1 -1
- package/lib/components/dynamic/RoleComponent.d.ts +1 -1
- package/lib/components/dynamic/ScriptComponent.d.ts +1 -1
- package/lib/components/dynamic/StringComponent.d.ts +1 -1
- package/lib/components/dynamic/TextComponent.d.ts +1 -1
- package/lib/components/dynamic/UserProfileAttributeListComponent.d.ts +1 -1
- package/lib/components/dynamic/components.d.ts +1 -0
- package/lib/components/form/CodeEditor.d.ts +12 -0
- package/lib/components/role-mapping/AddRoleMappingModal.d.ts +1 -1
- package/lib/components/users/UserSelect.d.ts +1 -1
- package/lib/context/RecentRealms.d.ts +6 -2
- package/lib/i18n/i18n.d.ts +4 -0
- package/lib/{index-DJI6O1zd.js → index-B5GgWXK6.js} +34359 -34352
- package/lib/{index-DJI6O1zd.js.map → index-B5GgWXK6.js.map} +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/keycloak-admin-ui.css +1 -1
- package/lib/keycloak-admin-ui.js +162 -163
- package/lib/organizations/IdentityProviderSelect.d.ts +1 -1
- package/lib/permissions-configuration/PermissionsConfigurationSection.d.ts +1 -0
- package/lib/permissions-configuration/permission-configuration/AssignedPolicies.d.ts +10 -0
- package/lib/permissions-configuration/permission-configuration/AuthorizationScopesDetails.d.ts +10 -0
- package/lib/permissions-configuration/permission-configuration/ExistingPoliciesDialog.d.ts +10 -0
- package/lib/permissions-configuration/permission-configuration/NewPermissionConfigurationDialog.d.ts +8 -0
- package/lib/permissions-configuration/permission-configuration/NewPermissionPolicyDialog.d.ts +13 -0
- package/lib/permissions-configuration/permission-configuration/PermissionConfigurationDetails.d.ts +1 -0
- package/lib/permissions-configuration/permission-configuration/PermissionsConfigurationTab.d.ts +5 -0
- package/lib/permissions-configuration/permission-evaluation/PermissionEvaluationResult.d.ts +6 -0
- package/lib/permissions-configuration/permission-evaluation/PermissionsEvaluationTab.d.ts +8 -0
- package/lib/permissions-configuration/resource-types/ClientSelectComponent.d.ts +2 -0
- package/lib/permissions-configuration/resource-types/GroupSelect.d.ts +8 -0
- package/lib/permissions-configuration/resource-types/ResourceType.d.ts +11 -0
- package/lib/permissions-configuration/resource-types/RoleSelect.d.ts +5 -0
- package/lib/permissions-configuration/resource-types/SearchDropdown.d.ts +20 -0
- package/lib/permissions-configuration/routes/NewPermissionConfiguration.d.ts +9 -0
- package/lib/permissions-configuration/routes/NewPermissionPolicy.d.ts +9 -0
- package/lib/permissions-configuration/routes/PermissionConfigurationDetails.d.ts +10 -0
- package/lib/permissions-configuration/routes/PermissionPolicyDetails.d.ts +10 -0
- package/lib/permissions-configuration/routes/PermissionsConfiguration.d.ts +7 -0
- package/lib/permissions-configuration/routes/PermissionsConfigurationTabs.d.ts +10 -0
- package/lib/permissions-configuration/routes/PermissionsPolicies.d.ts +8 -0
- package/lib/realm/RealmRoutes.d.ts +7 -0
- package/lib/realm/RealmSection.d.ts +5 -0
- package/lib/realm/add/NewRealmForm.d.ts +5 -1
- package/lib/realm-settings/themes/ThemesTab.d.ts +1 -0
- package/lib/utils/useIsFeatureEnabled.d.ts +2 -1
- package/lib/utils/useSortedResourceTypes.d.ts +5 -0
- package/package.json +26 -37
- package/lib/ExecutorForm-BD7jc-pB.js.map +0 -1
- package/lib/FlowDetails-ngTM8T7P.js +0 -10786
- package/lib/FlowDetails-ngTM8T7P.js.map +0 -1
- package/lib/NewOrganization-DZMavWdP.js +0 -36
- package/lib/ResourceDetails-ClQzo4WE.js +0 -286
- package/lib/ResourceDetails-ClQzo4WE.js.map +0 -1
- package/lib/browser-ponyfill-Bz_eiQO2.js +0 -342
- package/lib/browser-ponyfill-Bz_eiQO2.js.map +0 -1
- package/lib/components/realm-selector/RealmSelector.d.ts +0 -1
- package/lib/permissions/PermissionsSection.d.ts +0 -1
- package/lib/permissions/routes/Permissions.d.ts +0 -7
- package/lib/permissions/routes/PermissionsTabs.d.ts +0 -9
- package/lib/realm/routes/AddRealm.d.ts +0 -7
- /package/lib/{permissions → permissions-configuration}/routes.d.ts +0 -0
@@ -1,35 +1,35 @@
|
|
1
1
|
import { jsxs as u, Fragment as _, jsx as o } from "react/jsx-runtime";
|
2
|
-
import { u as q,
|
2
|
+
import { u as q, ao as V, V as J, b7 as Q, b as U, n as W, c as X, P as Y, d as Z, at as $, al as ee, am as te, an as oe, a4 as re, a7 as k, F as ae, a0 as ce, A as se, B as g, b8 as h, e as ne } from "./index-B5GgWXK6.js";
|
3
3
|
import { useState as l } from "react";
|
4
4
|
import { useTranslation as ie } from "react-i18next";
|
5
|
-
import { useNavigate as le, Link as
|
6
|
-
const
|
5
|
+
import { useNavigate as le, Link as F } from "react-router-dom";
|
6
|
+
const I = {
|
7
7
|
config: {},
|
8
8
|
executor: ""
|
9
9
|
};
|
10
10
|
function ge() {
|
11
|
-
const { adminClient:
|
11
|
+
const { adminClient: P } = q(), { t: c } = ie(), C = le(), { realm: d, profileName: n } = V(), { executorName: i } = V(), { addAlert: A, addError: H } = J(), [N, T] = l(!1), x = Q().componentTypes?.["org.keycloak.services.clientpolicy.executor.ClientPolicyExecutorProvider"], [f, O] = l([]), [B, G] = l([]), [v, D] = l([]), [L, j] = l([]), p = U({ defaultValues: I }), { control: w, reset: y, handleSubmit: z } = p, a = !!i, E = (e) => {
|
12
12
|
const r = e.find((s) => s.name === n)?.executors?.find(
|
13
13
|
(s) => s.executor === i
|
14
14
|
);
|
15
|
-
r &&
|
15
|
+
r && y({ config: r.configuration });
|
16
16
|
};
|
17
17
|
W(
|
18
|
-
() =>
|
18
|
+
() => P.clientPolicies.listProfiles({ includeGlobalProfiles: !0 }),
|
19
19
|
(e) => {
|
20
|
-
|
20
|
+
D(e.globalProfiles), j(e.profiles), E(e.profiles), E(e.globalProfiles);
|
21
21
|
},
|
22
22
|
[]
|
23
23
|
);
|
24
24
|
const K = async () => {
|
25
|
-
const e = p.getValues(), t =
|
25
|
+
const e = p.getValues(), t = L.map((r) => {
|
26
26
|
if (r.name !== n)
|
27
27
|
return r;
|
28
28
|
const s = (r.executors ?? []).concat({
|
29
29
|
executor: e.executor,
|
30
30
|
configuration: e.config || {}
|
31
31
|
});
|
32
|
-
if (
|
32
|
+
if (a) {
|
33
33
|
const S = r.executors.find(
|
34
34
|
(R) => R.executor === i
|
35
35
|
);
|
@@ -38,29 +38,29 @@ function ge() {
|
|
38
38
|
...e.config
|
39
39
|
};
|
40
40
|
}
|
41
|
-
return
|
41
|
+
return a ? r : {
|
42
42
|
...r,
|
43
43
|
executors: s
|
44
44
|
};
|
45
45
|
});
|
46
46
|
try {
|
47
|
-
await
|
47
|
+
await P.clientPolicies.createProfiles({
|
48
48
|
profiles: t,
|
49
|
-
globalProfiles:
|
49
|
+
globalProfiles: v
|
50
50
|
}), A(
|
51
|
-
a
|
51
|
+
c(a ? "updateExecutorSuccess" : "addExecutorSuccess"),
|
52
52
|
ne.success
|
53
|
-
), C(
|
53
|
+
), C(h({ realm: d, profileName: n }));
|
54
54
|
} catch (r) {
|
55
|
-
H(
|
55
|
+
H(a ? "updateExecutorError" : "addExecutorError", r);
|
56
56
|
}
|
57
|
-
}, m =
|
57
|
+
}, m = v.find(
|
58
58
|
(e) => e.name === n
|
59
|
-
),
|
59
|
+
), b = x?.find(
|
60
60
|
(e) => e.id === i
|
61
|
-
), M =
|
61
|
+
), M = b?.properties.map(
|
62
62
|
(e) => {
|
63
|
-
const t =
|
63
|
+
const t = a ? e.defaultValue : "";
|
64
64
|
return {
|
65
65
|
...e,
|
66
66
|
defaultValue: t
|
@@ -71,7 +71,7 @@ function ge() {
|
|
71
71
|
/* @__PURE__ */ o(
|
72
72
|
X,
|
73
73
|
{
|
74
|
-
titleKey:
|
74
|
+
titleKey: a ? i : c("addExecutor"),
|
75
75
|
divider: !0
|
76
76
|
}
|
77
77
|
),
|
@@ -87,18 +87,18 @@ function ge() {
|
|
87
87
|
/* @__PURE__ */ o(
|
88
88
|
$,
|
89
89
|
{
|
90
|
-
label:
|
90
|
+
label: c("executorType"),
|
91
91
|
fieldId: "kc-executorType",
|
92
|
-
labelIcon:
|
93
|
-
|
92
|
+
labelIcon: f.length > 0 && f[0].helpText !== "" ? /* @__PURE__ */ o(
|
93
|
+
k,
|
94
94
|
{
|
95
|
-
helpText:
|
95
|
+
helpText: f[0].helpText,
|
96
96
|
fieldLabelId: "executorTypeHelpText"
|
97
97
|
}
|
98
|
-
) :
|
99
|
-
|
98
|
+
) : a ? /* @__PURE__ */ o(
|
99
|
+
k,
|
100
100
|
{
|
101
|
-
helpText:
|
101
|
+
helpText: b?.helpText,
|
102
102
|
fieldLabelId: "executorTypeHelpText"
|
103
103
|
}
|
104
104
|
) : void 0,
|
@@ -113,26 +113,27 @@ function ge() {
|
|
113
113
|
{
|
114
114
|
toggleId: "kc-executor",
|
115
115
|
placeholderText: "Select an executor",
|
116
|
-
onToggle: (t) =>
|
116
|
+
onToggle: (t) => T(t),
|
117
117
|
onSelect: (t) => {
|
118
|
-
|
119
|
-
const r =
|
118
|
+
y({ ...I, executor: t.toString() });
|
119
|
+
const r = x?.filter(
|
120
120
|
(s) => s.id === t
|
121
121
|
);
|
122
|
-
|
122
|
+
O(r ?? []), G(
|
123
123
|
r?.[0].properties ?? []
|
124
|
-
),
|
124
|
+
), T(!1);
|
125
125
|
},
|
126
|
-
selections:
|
126
|
+
selections: a ? i : e.value,
|
127
127
|
variant: oe.single,
|
128
128
|
"data-testid": "executorType-select",
|
129
|
-
"aria-label":
|
130
|
-
isOpen:
|
129
|
+
"aria-label": c("executorType"),
|
130
|
+
isOpen: N,
|
131
131
|
maxHeight: 580,
|
132
|
-
isDisabled:
|
133
|
-
children:
|
132
|
+
isDisabled: a,
|
133
|
+
children: x?.map((t) => /* @__PURE__ */ o(
|
134
134
|
re,
|
135
135
|
{
|
136
|
+
"data-testid": t.id,
|
136
137
|
selected: t.id === e.value,
|
137
138
|
value: t.id,
|
138
139
|
description: t.helpText,
|
@@ -146,10 +147,10 @@ function ge() {
|
|
146
147
|
)
|
147
148
|
}
|
148
149
|
),
|
149
|
-
/* @__PURE__ */ o(
|
150
|
-
|
150
|
+
/* @__PURE__ */ o(ae, { ...p, children: /* @__PURE__ */ o(
|
151
|
+
ce,
|
151
152
|
{
|
152
|
-
properties:
|
153
|
+
properties: a ? M : B
|
153
154
|
}
|
154
155
|
) }),
|
155
156
|
!m && /* @__PURE__ */ u(se, { children: [
|
@@ -159,7 +160,7 @@ function ge() {
|
|
159
160
|
variant: "primary",
|
160
161
|
onClick: () => z(K)(),
|
161
162
|
"data-testid": "addExecutor-saveBtn",
|
162
|
-
children: a
|
163
|
+
children: c(a ? "save" : "add")
|
163
164
|
}
|
164
165
|
),
|
165
166
|
/* @__PURE__ */ o(
|
@@ -167,26 +168,26 @@ function ge() {
|
|
167
168
|
{
|
168
169
|
variant: "link",
|
169
170
|
component: (e) => /* @__PURE__ */ o(
|
170
|
-
|
171
|
+
F,
|
171
172
|
{
|
172
173
|
...e,
|
173
|
-
to:
|
174
|
+
to: h({ realm: d, profileName: n })
|
174
175
|
}
|
175
176
|
),
|
176
177
|
"data-testid": "addExecutor-cancelBtn",
|
177
|
-
children:
|
178
|
+
children: c("cancel")
|
178
179
|
}
|
179
180
|
)
|
180
181
|
] })
|
181
182
|
]
|
182
183
|
}
|
183
184
|
),
|
184
|
-
|
185
|
+
a && m && /* @__PURE__ */ o("div", { className: "kc-backToProfile", children: /* @__PURE__ */ o(
|
185
186
|
g,
|
186
187
|
{
|
187
|
-
component: (e) => /* @__PURE__ */ o(
|
188
|
+
component: (e) => /* @__PURE__ */ o(F, { ...e, to: h({ realm: d, profileName: n }) }),
|
188
189
|
variant: "primary",
|
189
|
-
children:
|
190
|
+
children: c("back")
|
190
191
|
}
|
191
192
|
) })
|
192
193
|
] })
|
@@ -195,4 +196,4 @@ function ge() {
|
|
195
196
|
export {
|
196
197
|
ge as default
|
197
198
|
};
|
198
|
-
//# sourceMappingURL=ExecutorForm-
|
199
|
+
//# sourceMappingURL=ExecutorForm-C9_CWJhw.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExecutorForm-C9_CWJhw.js","sources":["../src/realm-settings/ExecutorForm.tsx"],"sourcesContent":["import type { ConfigPropertyRepresentation } from \"@keycloak/keycloak-admin-client/lib/defs/authenticatorConfigInfoRepresentation\";\nimport type ClientProfileRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/clientProfileRepresentation\";\nimport type ComponentTypeRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/componentTypeRepresentation\";\nimport {\n HelpItem,\n KeycloakSelect,\n SelectVariant,\n useAlerts,\n useFetch,\n} from \"@keycloak/keycloak-ui-shared\";\nimport {\n ActionGroup,\n AlertVariant,\n Button,\n FormGroup,\n PageSection,\n SelectOption,\n} from \"@patternfly/react-core\";\nimport { useState } from \"react\";\nimport { Controller, FormProvider, useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { useAdminClient } from \"../admin-client\";\nimport { DynamicComponents } from \"../components/dynamic/DynamicComponents\";\nimport { FormAccess } from \"../components/form/FormAccess\";\nimport { ViewHeader } from \"../components/view-header/ViewHeader\";\nimport { useServerInfo } from \"../context/server-info/ServerInfoProvider\";\nimport { useParams } from \"../utils/useParams\";\nimport { ClientProfileParams, toClientProfile } from \"./routes/ClientProfile\";\nimport type { ExecutorParams } from \"./routes/Executor\";\n\ntype ExecutorForm = {\n config?: object;\n executor: string;\n};\n\nconst defaultValues: ExecutorForm = {\n config: {},\n executor: \"\",\n};\n\nexport default function ExecutorForm() {\n const { adminClient } = useAdminClient();\n\n const { t } = useTranslation();\n const navigate = useNavigate();\n const { realm, profileName } = useParams<ClientProfileParams>();\n const { executorName } = useParams<ExecutorParams>();\n const { addAlert, addError } = useAlerts();\n const [selectExecutorTypeOpen, setSelectExecutorTypeOpen] = useState(false);\n const serverInfo = useServerInfo();\n const executorTypes =\n serverInfo.componentTypes?.[\n \"org.keycloak.services.clientpolicy.executor.ClientPolicyExecutorProvider\"\n ];\n const [executors, setExecutors] = useState<ComponentTypeRepresentation[]>([]);\n const [executorProperties, setExecutorProperties] = useState<\n ConfigPropertyRepresentation[]\n >([]);\n const [globalProfiles, setGlobalProfiles] = useState<\n ClientProfileRepresentation[]\n >([]);\n const [profiles, setProfiles] = useState<ClientProfileRepresentation[]>([]);\n const form = useForm({ defaultValues });\n const { control, reset, handleSubmit } = form;\n const editMode = !!executorName;\n\n const setupForm = (profiles: ClientProfileRepresentation[]) => {\n const profile = profiles.find((profile) => profile.name === profileName);\n const executor = profile?.executors?.find(\n (executor) => executor.executor === executorName,\n );\n if (executor) reset({ config: executor.configuration });\n };\n\n useFetch(\n () =>\n adminClient.clientPolicies.listProfiles({ includeGlobalProfiles: true }),\n (profiles) => {\n setGlobalProfiles(profiles.globalProfiles!);\n setProfiles(profiles.profiles!);\n\n setupForm(profiles.profiles!);\n setupForm(profiles.globalProfiles!);\n },\n [],\n );\n\n const save = async () => {\n const formValues = form.getValues();\n const updatedProfiles = profiles.map((profile) => {\n if (profile.name !== profileName) {\n return profile;\n }\n\n const executors = (profile.executors ?? []).concat({\n executor: formValues.executor,\n configuration: formValues.config || {},\n });\n\n if (editMode) {\n const profileExecutor = profile.executors!.find(\n (executor) => executor.executor === executorName,\n );\n profileExecutor!.configuration = {\n ...profileExecutor!.configuration,\n ...formValues.config,\n };\n }\n\n if (editMode) {\n return profile;\n }\n return {\n ...profile,\n executors,\n };\n });\n try {\n await adminClient.clientPolicies.createProfiles({\n profiles: updatedProfiles,\n globalProfiles: globalProfiles,\n });\n addAlert(\n editMode ? t(\"updateExecutorSuccess\") : t(\"addExecutorSuccess\"),\n AlertVariant.success,\n );\n\n navigate(toClientProfile({ realm, profileName }));\n } catch (error) {\n addError(editMode ? \"updateExecutorError\" : \"addExecutorError\", error);\n }\n };\n\n const globalProfile = globalProfiles.find(\n (globalProfile) => globalProfile.name === profileName,\n );\n\n const profileExecutorType = executorTypes?.find(\n (executor) => executor.id === executorName,\n );\n\n const editedProfileExecutors =\n profileExecutorType?.properties.map<ConfigPropertyRepresentation>(\n (property) => {\n const globalDefaultValues = editMode ? property.defaultValue : \"\";\n return {\n ...property,\n defaultValue: globalDefaultValues,\n };\n },\n );\n\n return (\n <>\n <ViewHeader\n titleKey={editMode ? executorName : t(\"addExecutor\")}\n divider\n />\n <PageSection variant=\"light\">\n <FormAccess\n isHorizontal\n role=\"manage-realm\"\n className=\"pf-v5-u-mt-lg\"\n isReadOnly={!!globalProfile}\n >\n <FormGroup\n label={t(\"executorType\")}\n fieldId=\"kc-executorType\"\n labelIcon={\n executors.length > 0 && executors[0].helpText! !== \"\" ? (\n <HelpItem\n helpText={executors[0].helpText}\n fieldLabelId=\"executorTypeHelpText\"\n />\n ) : editMode ? (\n <HelpItem\n helpText={profileExecutorType?.helpText}\n fieldLabelId=\"executorTypeHelpText\"\n />\n ) : undefined\n }\n >\n <Controller\n name=\"executor\"\n defaultValue=\"\"\n control={control}\n render={({ field }) => (\n <KeycloakSelect\n toggleId=\"kc-executor\"\n placeholderText=\"Select an executor\"\n onToggle={(isOpen) => setSelectExecutorTypeOpen(isOpen)}\n onSelect={(value) => {\n reset({ ...defaultValues, executor: value.toString() });\n const selectedExecutor = executorTypes?.filter(\n (type) => type.id === value,\n );\n setExecutors(selectedExecutor ?? []);\n setExecutorProperties(\n selectedExecutor?.[0].properties ?? [],\n );\n setSelectExecutorTypeOpen(false);\n }}\n selections={editMode ? executorName : field.value}\n variant={SelectVariant.single}\n data-testid=\"executorType-select\"\n aria-label={t(\"executorType\")}\n isOpen={selectExecutorTypeOpen}\n maxHeight={580}\n isDisabled={editMode}\n >\n {executorTypes?.map((option) => (\n <SelectOption\n data-testid={option.id}\n selected={option.id === field.value}\n key={option.id}\n value={option.id}\n description={option.helpText}\n >\n {option.id}\n </SelectOption>\n ))}\n </KeycloakSelect>\n )}\n />\n </FormGroup>\n <FormProvider {...form}>\n <DynamicComponents\n properties={\n editMode ? editedProfileExecutors! : executorProperties\n }\n />\n </FormProvider>\n {!globalProfile && (\n <ActionGroup>\n <Button\n variant=\"primary\"\n onClick={() => handleSubmit(save)()}\n data-testid=\"addExecutor-saveBtn\"\n >\n {editMode ? t(\"save\") : t(\"add\")}\n </Button>\n <Button\n variant=\"link\"\n component={(props) => (\n <Link\n {...props}\n to={toClientProfile({ realm, profileName })}\n />\n )}\n data-testid=\"addExecutor-cancelBtn\"\n >\n {t(\"cancel\")}\n </Button>\n </ActionGroup>\n )}\n </FormAccess>\n {editMode && globalProfile && (\n <div className=\"kc-backToProfile\">\n <Button\n component={(props) => (\n <Link {...props} to={toClientProfile({ realm, profileName })} />\n )}\n variant=\"primary\"\n >\n {t(\"back\")}\n </Button>\n </div>\n )}\n </PageSection>\n </>\n );\n}\n"],"names":["defaultValues","ExecutorForm","adminClient","useAdminClient","t","useTranslation","navigate","useNavigate","realm","profileName","useParams","executorName","addAlert","addError","useAlerts","selectExecutorTypeOpen","setSelectExecutorTypeOpen","useState","executorTypes","useServerInfo","executors","setExecutors","executorProperties","setExecutorProperties","globalProfiles","setGlobalProfiles","profiles","setProfiles","form","useForm","control","reset","handleSubmit","editMode","setupForm","executor","profile","useFetch","save","formValues","updatedProfiles","profileExecutor","AlertVariant","toClientProfile","error","globalProfile","profileExecutorType","editedProfileExecutors","property","globalDefaultValues","jsxs","Fragment","jsx","ViewHeader","PageSection","FormAccess","FormGroup","HelpItem","Controller","field","KeycloakSelect","isOpen","value","selectedExecutor","type","SelectVariant","option","SelectOption","FormProvider","DynamicComponents","ActionGroup","Button","props","Link"],"mappings":";;;;;AAoCA,MAAMA,IAA8B;AAAA,EAClC,QAAQ,CAAC;AAAA,EACT,UAAU;AACZ;AAEA,SAAwBC,KAAe;AAC/B,QAAA,EAAE,aAAAC,EAAY,IAAIC,EAAe,GAEjC,EAAE,GAAAC,EAAE,IAAIC,GAAe,GACvBC,IAAWC,GAAY,GACvB,EAAE,OAAAC,GAAO,aAAAC,EAAY,IAAIC,EAA+B,GACxD,EAAE,cAAAC,EAAa,IAAID,EAA0B,GAC7C,EAAE,UAAAE,GAAU,UAAAC,EAAS,IAAIC,EAAU,GACnC,CAACC,GAAwBC,CAAyB,IAAIC,EAAS,EAAK,GAEpEC,IADaC,EAAc,EAEpB,iBACT,0EACF,GACI,CAACC,GAAWC,CAAY,IAAIJ,EAAwC,CAAA,CAAE,GACtE,CAACK,GAAoBC,CAAqB,IAAIN,EAElD,CAAA,CAAE,GACE,CAACO,GAAgBC,CAAiB,IAAIR,EAE1C,CAAA,CAAE,GACE,CAACS,GAAUC,CAAW,IAAIV,EAAwC,CAAA,CAAE,GACpEW,IAAOC,EAAQ,EAAE,eAAA7B,GAAe,GAChC,EAAE,SAAA8B,GAAS,OAAAC,GAAO,cAAAC,EAAiB,IAAAJ,GACnCK,IAAW,CAAC,CAACtB,GAEbuB,IAAY,CAACR,MAA4C;AAEvD,UAAAS,IADUT,EAAS,KAAK,CAACU,MAAYA,EAAQ,SAAS3B,CAAW,GAC7C,WAAW;A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