@keycloak/keycloak-admin-ui 26.2.5 → 26.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/lib/.vite/manifest.json +42 -32
  2. package/lib/AddOAuth2-Dp7xZXck.js +72 -0
  3. package/lib/AddOAuth2-Dp7xZXck.js.map +1 -0
  4. package/lib/{CreateFlow-CWB0JMn7.js → CreateFlow-DT9GA2KA.js} +6 -6
  5. package/lib/{CreateFlow-CWB0JMn7.js.map → CreateFlow-DT9GA2KA.js.map} +1 -1
  6. package/lib/{DetailOrganization-BBgiO-1J.js → DetailOrganization-eJc5QSWd.js} +46 -46
  7. package/lib/{DetailOrganization-BBgiO-1J.js.map → DetailOrganization-eJc5QSWd.js.map} +1 -1
  8. package/lib/{ExecutorForm-UDoSS486.js → ExecutorForm-CS2GUPzw.js} +16 -16
  9. package/lib/{ExecutorForm-UDoSS486.js.map → ExecutorForm-CS2GUPzw.js.map} +1 -1
  10. package/lib/{FlowDetails-CS5k-eyp.js → FlowDetails-BfBqe2qh.js} +20 -17
  11. package/lib/{FlowDetails-CS5k-eyp.js.map → FlowDetails-BfBqe2qh.js.map} +1 -1
  12. package/lib/NewOrganization-eAFJqcV7.js +36 -0
  13. package/lib/{NewOrganization-Bqe9gAvH.js.map → NewOrganization-eAFJqcV7.js.map} +1 -1
  14. package/lib/{PermissionConfigurationDetails-BC-CKsEm.js → PermissionConfigurationDetails-NLncm72q.js} +61 -61
  15. package/lib/{PermissionConfigurationDetails-BC-CKsEm.js.map → PermissionConfigurationDetails-NLncm72q.js.map} +1 -1
  16. package/lib/{PermissionDetails-BgU8fw67.js → PermissionDetails-jXYUQx9h.js} +66 -66
  17. package/lib/{PermissionDetails-BgU8fw67.js.map → PermissionDetails-jXYUQx9h.js.map} +1 -1
  18. package/lib/{RealmSection-BcfZPWn1.js → RealmSection-DapWaHXV.js} +18 -18
  19. package/lib/{RealmSection-BcfZPWn1.js.map → RealmSection-DapWaHXV.js.map} +1 -1
  20. package/lib/{ResourceDetails-BxVNBjFH.js → ResourceDetails-Rw_lyxQA.js} +36 -36
  21. package/lib/{ResourceDetails-BxVNBjFH.js.map → ResourceDetails-Rw_lyxQA.js.map} +1 -1
  22. package/lib/{ScopeDetails-B7fOqprY.js → ScopeDetails-AqQr7pSf.js} +12 -12
  23. package/lib/{ScopeDetails-B7fOqprY.js.map → ScopeDetails-AqQr7pSf.js.map} +1 -1
  24. package/lib/{ScopePicker-BkvQJ5Lq.js → ScopePicker-B-NlVPQJ.js} +15 -15
  25. package/lib/{ScopePicker-BkvQJ5Lq.js.map → ScopePicker-B-NlVPQJ.js.map} +1 -1
  26. package/lib/clients/keys/ImportKeyDialog.d.ts +1 -4
  27. package/lib/clients/keys/SamlImportKeyDialog.d.ts +2 -1
  28. package/lib/components/key-value-form/KeyValueInput.d.ts +11 -3
  29. package/lib/components/role-mapping/AddRoleMappingModal.d.ts +11 -1
  30. package/lib/context/realm-context/useHash.d.ts +1 -0
  31. package/lib/identity-providers/add/AddOAuth2.d.ts +1 -0
  32. package/lib/identity-providers/add/AdvancedSettings.d.ts +2 -1
  33. package/lib/identity-providers/add/DiscoverySettings.d.ts +2 -1
  34. package/lib/identity-providers/add/ExtendedOAuth2Settings.d.ts +1 -0
  35. package/lib/identity-providers/add/OAuth2UserProfileClaimsSettings.d.ts +1 -0
  36. package/lib/identity-providers/add/OpenIdConnectSettings.d.ts +5 -1
  37. package/lib/identity-providers/routes/IdentityProviderOAuth2.d.ts +2 -0
  38. package/lib/{index-Cf5P7Xi4.js → index-BB_cYBCp.js} +22030 -21863
  39. package/lib/{index-Cf5P7Xi4.js.map → index-BB_cYBCp.js.map} +1 -1
  40. package/lib/index.d.ts +2 -2
  41. package/lib/keycloak-admin-ui.css +1 -1
  42. package/lib/keycloak-admin-ui.js +39 -39
  43. package/lib/realm-settings/event-config/EventsTypeTable.d.ts +2 -1
  44. package/lib/realm-settings/security-defences/Time.d.ts +2 -1
  45. package/lib/realm-settings/themes/FileNameDialog.d.ts +6 -0
  46. package/lib/realm-settings/themes/ThemesTab.d.ts +1 -0
  47. package/lib/realm-settings/themes/UploadJar.d.ts +6 -0
  48. package/lib/realm-settings/user-profile/attribute/AddTranslationsDialog.d.ts +2 -1
  49. package/lib/{components/key-value-form → realm-settings/user-profile/attribute}/KeySelect.d.ts +2 -2
  50. package/lib/realm-settings/user-profile/attribute/TranslatableField.d.ts +2 -1
  51. package/lib/realm-settings/user-profile/attribute/ValueSelect.d.ts +6 -0
  52. package/lib/user/user-credentials/CredentialDataDialog.d.ts +2 -1
  53. package/lib/utils/useIsFeatureEnabled.d.ts +2 -1
  54. package/package.json +19 -18
  55. package/lib/NewOrganization-Bqe9gAvH.js +0 -36
  56. package/lib/components/key-value-form/ValueSelect.d.ts +0 -8
@@ -0,0 +1,36 @@
1
+ import { jsxs as e, Fragment as v, jsx as a } from "react/jsx-runtime";
2
+ import { u as h, _ as z, a as f, b as S, V as p, P as F, c as O, F as A, aL as b, A as y, e as w, B as x, aV as C, aS as E, aT as P } from "./index-BB_cYBCp.js";
3
+ import { useTranslation as T } from "react-i18next";
4
+ import { useNavigate as V, Link as j } from "react-router-dom";
5
+ function _() {
6
+ const { adminClient: s } = h(), { addAlert: c, addError: d } = z(), { t } = T(), l = V(), { realm: r } = f(), i = S({ mode: "onChange" }), { handleSubmit: m, formState: g } = i;
7
+ return /* @__PURE__ */ e(v, { children: [
8
+ /* @__PURE__ */ a(p, { titleKey: "createOrganization" }),
9
+ /* @__PURE__ */ a(F, { variant: "light", children: /* @__PURE__ */ a(O, { role: "anyone", onSubmit: m(async (n) => {
10
+ try {
11
+ const o = E(n), { id: u } = await s.organizations.create(o);
12
+ c(t("organizationSaveSuccess")), l(P({ realm: r, id: u, tab: "settings" }));
13
+ } catch (o) {
14
+ d("organizationSaveError", o);
15
+ }
16
+ }), isHorizontal: !0, children: /* @__PURE__ */ e(A, { ...i, children: [
17
+ /* @__PURE__ */ a(b, {}),
18
+ /* @__PURE__ */ e(y, { children: [
19
+ /* @__PURE__ */ a(w, { formState: g, "data-testid": "save", children: t("save") }),
20
+ /* @__PURE__ */ a(
21
+ x,
22
+ {
23
+ "data-testid": "cancel",
24
+ variant: "link",
25
+ component: (n) => /* @__PURE__ */ a(j, { ...n, to: C({ realm: r }) }),
26
+ children: t("cancel")
27
+ }
28
+ )
29
+ ] })
30
+ ] }) }) })
31
+ ] });
32
+ }
33
+ export {
34
+ _ as default
35
+ };
36
+ //# sourceMappingURL=NewOrganization-eAFJqcV7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewOrganization-Bqe9gAvH.js","sources":["../src/organizations/NewOrganization.tsx"],"sourcesContent":["import { FormSubmitButton } from \"@keycloak/keycloak-ui-shared\";\nimport { ActionGroup, Button, PageSection } from \"@patternfly/react-core\";\nimport { FormProvider, useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { useAdminClient } from \"../admin-client\";\nimport { useAlerts } from \"@keycloak/keycloak-ui-shared\";\nimport { FormAccess } from \"../components/form/FormAccess\";\nimport { ViewHeader } from \"../components/view-header/ViewHeader\";\nimport { useRealm } from \"../context/realm-context/RealmContext\";\nimport {\n OrganizationForm,\n OrganizationFormType,\n convertToOrg,\n} from \"./OrganizationForm\";\nimport { toEditOrganization } from \"./routes/EditOrganization\";\nimport { toOrganizations } from \"./routes/Organizations\";\n\nexport default function NewOrganization() {\n const { adminClient } = useAdminClient();\n const { addAlert, addError } = useAlerts();\n const { t } = useTranslation();\n const navigate = useNavigate();\n const { realm } = useRealm();\n const form = useForm({ mode: \"onChange\" });\n const { handleSubmit, formState } = form;\n\n const save = async (org: OrganizationFormType) => {\n try {\n const organization = convertToOrg(org);\n const { id } = await adminClient.organizations.create(organization);\n addAlert(t(\"organizationSaveSuccess\"));\n navigate(toEditOrganization({ realm, id, tab: \"settings\" }));\n } catch (error) {\n addError(\"organizationSaveError\", error);\n }\n };\n\n return (\n <>\n <ViewHeader titleKey=\"createOrganization\" />\n <PageSection variant=\"light\">\n <FormAccess role=\"anyone\" onSubmit={handleSubmit(save)} isHorizontal>\n <FormProvider {...form}>\n <OrganizationForm />\n <ActionGroup>\n <FormSubmitButton formState={formState} data-testid=\"save\">\n {t(\"save\")}\n </FormSubmitButton>\n <Button\n data-testid=\"cancel\"\n variant=\"link\"\n component={(props) => (\n <Link {...props} to={toOrganizations({ realm })} />\n )}\n >\n {t(\"cancel\")}\n </Button>\n </ActionGroup>\n </FormProvider>\n </FormAccess>\n </PageSection>\n </>\n );\n}\n"],"names":["NewOrganization","adminClient","useAdminClient","addAlert","addError","useAlerts","useTranslation","navigate","useNavigate","realm","useRealm","form","useForm","handleSubmit","formState","jsxs","Fragment","jsx","ViewHeader","PageSection","FormAccess","org","organization","convertToOrg","id","toEditOrganization","error","FormProvider","OrganizationForm","ActionGroup","FormSubmitButton","Button","props","Link","toOrganizations"],"mappings":";;;;AAkBA,SAAwBA,IAAkB;AAClC,QAAA,EAAE,aAAAC,EAAY,IAAIC,EAAe,GACjC,EAAE,UAAAC,GAAU,UAAAC,EAAS,IAAIC,EAAU,GACnC,EAAE,EAAE,IAAIC,EAAe,GACvBC,IAAWC,EAAY,GACvB,EAAE,OAAAC,EAAM,IAAIC,EAAS,GACrBC,IAAOC,EAAQ,EAAE,MAAM,YAAY,GACnC,EAAE,cAAAC,GAAc,WAAAC,EAAA,IAAcH;AAapC,SAEI,gBAAAI,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAW,UAAS,qBAAqB,CAAA;AAAA,sBACzCC,GAAY,EAAA,SAAQ,SACnB,UAAA,gBAAAF,EAACG,KAAW,MAAK,UAAS,UAAUP,EAf7B,OAAOQ,MAA8B;AAC5C,UAAA;AACI,cAAAC,IAAeC,EAAaF,CAAG,GAC/B,EAAE,IAAAG,EAAG,IAAI,MAAMvB,EAAY,cAAc,OAAOqB,CAAY;AACzD,QAAAnB,EAAA,EAAE,yBAAyB,CAAC,GACrCI,EAASkB,EAAmB,EAAE,OAAAhB,GAAO,IAAAe,GAAI,KAAK,WAAA,CAAY,CAAC;AAAA,eACpDE,GAAO;AACd,QAAAtB,EAAS,yBAAyBsB,CAAK;AAAA,MAAA;AAAA,IAE3C,CAM2D,GAAG,cAAY,IAClE,UAAC,gBAAAX,EAAAY,GAAA,EAAc,GAAGhB,GAChB,UAAA;AAAA,MAAA,gBAAAM,EAACW,GAAiB,EAAA;AAAA,wBACjBC,GACC,EAAA,UAAA;AAAA,QAAA,gBAAAZ,EAACa,KAAiB,WAAAhB,GAAsB,eAAY,QACjD,UAAA,EAAE,MAAM,GACX;AAAA,QACA,gBAAAG;AAAA,UAACc;AAAA,UAAA;AAAA,YACC,eAAY;AAAA,YACZ,SAAQ;AAAA,YACR,WAAW,CAACC,MACV,gBAAAf,EAACgB,GAAM,EAAA,GAAGD,GAAO,IAAIE,EAAgB,EAAE,OAAAzB,EAAM,CAAC,EAAG,CAAA;AAAA,YAGlD,YAAE,QAAQ;AAAA,UAAA;AAAA,QAAA;AAAA,MACb,EACF,CAAA;AAAA,IAAA,EACF,CAAA,EACF,CAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"NewOrganization-eAFJqcV7.js","sources":["../src/organizations/NewOrganization.tsx"],"sourcesContent":["import { FormSubmitButton } from \"@keycloak/keycloak-ui-shared\";\nimport { ActionGroup, Button, PageSection } from \"@patternfly/react-core\";\nimport { FormProvider, useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { useAdminClient } from \"../admin-client\";\nimport { useAlerts } from \"@keycloak/keycloak-ui-shared\";\nimport { FormAccess } from \"../components/form/FormAccess\";\nimport { ViewHeader } from \"../components/view-header/ViewHeader\";\nimport { useRealm } from \"../context/realm-context/RealmContext\";\nimport {\n OrganizationForm,\n OrganizationFormType,\n convertToOrg,\n} from \"./OrganizationForm\";\nimport { toEditOrganization } from \"./routes/EditOrganization\";\nimport { toOrganizations } from \"./routes/Organizations\";\n\nexport default function NewOrganization() {\n const { adminClient } = useAdminClient();\n const { addAlert, addError } = useAlerts();\n const { t } = useTranslation();\n const navigate = useNavigate();\n const { realm } = useRealm();\n const form = useForm({ mode: \"onChange\" });\n const { handleSubmit, formState } = form;\n\n const save = async (org: OrganizationFormType) => {\n try {\n const organization = convertToOrg(org);\n const { id } = await adminClient.organizations.create(organization);\n addAlert(t(\"organizationSaveSuccess\"));\n navigate(toEditOrganization({ realm, id, tab: \"settings\" }));\n } catch (error) {\n addError(\"organizationSaveError\", error);\n }\n };\n\n return (\n <>\n <ViewHeader titleKey=\"createOrganization\" />\n <PageSection variant=\"light\">\n <FormAccess role=\"anyone\" onSubmit={handleSubmit(save)} isHorizontal>\n <FormProvider {...form}>\n <OrganizationForm />\n <ActionGroup>\n <FormSubmitButton formState={formState} data-testid=\"save\">\n {t(\"save\")}\n </FormSubmitButton>\n <Button\n data-testid=\"cancel\"\n variant=\"link\"\n component={(props) => (\n <Link {...props} to={toOrganizations({ realm })} />\n )}\n >\n {t(\"cancel\")}\n </Button>\n </ActionGroup>\n </FormProvider>\n </FormAccess>\n </PageSection>\n </>\n );\n}\n"],"names":["NewOrganization","adminClient","useAdminClient","addAlert","addError","useAlerts","useTranslation","navigate","useNavigate","realm","useRealm","form","useForm","handleSubmit","formState","jsxs","Fragment","jsx","ViewHeader","PageSection","FormAccess","org","organization","convertToOrg","id","toEditOrganization","error","FormProvider","OrganizationForm","ActionGroup","FormSubmitButton","Button","props","Link","toOrganizations"],"mappings":";;;;AAkBA,SAAwBA,IAAkB;AACxC,QAAM,EAAE,aAAAC,EAAA,IAAgBC,EAAA,GAClB,EAAE,UAAAC,GAAU,UAAAC,EAAA,IAAaC,EAAA,GACzB,EAAE,EAAA,IAAMC,EAAA,GACRC,IAAWC,EAAA,GACX,EAAE,OAAAC,EAAA,IAAUC,EAAA,GACZC,IAAOC,EAAQ,EAAE,MAAM,YAAY,GACnC,EAAE,cAAAC,GAAc,WAAAC,EAAA,IAAcH;AAapC,SACE,gBAAAI,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAW,UAAS,qBAAA,CAAqB;AAAA,sBACzCC,GAAA,EAAY,SAAQ,SACnB,UAAA,gBAAAF,EAACG,KAAW,MAAK,UAAS,UAAUP,EAf7B,OAAOQ,MAA8B;AAChD,UAAI;AACF,cAAMC,IAAeC,EAAaF,CAAG,GAC/B,EAAE,IAAAG,EAAA,IAAO,MAAMvB,EAAY,cAAc,OAAOqB,CAAY;AAClE,QAAAnB,EAAS,EAAE,yBAAyB,CAAC,GACrCI,EAASkB,EAAmB,EAAE,OAAAhB,GAAO,IAAAe,GAAI,KAAK,WAAA,CAAY,CAAC;AAAA,MAAA,SACpDE,GAAO;AACd,QAAAtB,EAAS,yBAAyBsB,CAAK;AAAA,MAAA;AAAA,IACzC,CAOyD,GAAG,cAAY,IAClE,UAAA,gBAAAX,EAACY,GAAA,EAAc,GAAGhB,GAChB,UAAA;AAAA,MAAA,gBAAAM,EAACW,GAAA,EAAiB;AAAA,wBACjBC,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAZ,EAACa,KAAiB,WAAAhB,GAAsB,eAAY,QACjD,UAAA,EAAE,MAAM,GACX;AAAA,QACA,gBAAAG;AAAA,UAACc;AAAA,UAAA;AAAA,YACC,eAAY;AAAA,YACZ,SAAQ;AAAA,YACR,WAAW,CAACC,MACV,gBAAAf,EAACgB,GAAA,EAAM,GAAGD,GAAO,IAAIE,EAAgB,EAAE,OAAAzB,EAAA,CAAO,EAAA,CAAG;AAAA,YAGlD,YAAE,QAAQ;AAAA,UAAA;AAAA,QAAA;AAAA,MACb,EAAA,CACF;AAAA,IAAA,EAAA,CACF,GACF,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,10 +1,10 @@
1
- import { jsx as e, jsxs as T, Fragment as j } from "react/jsx-runtime";
2
- import { u as q, a as ce, b as Y, b9 as le, ax as de, V as J, aq as pe, M as _, j as Q, k as me, F as W, Y as $, $ as ue, ba as R, bb as ye, A as X, B as F, l as V, bc as ge, bd as Pe, be as fe, bf as G, bg as he, bh as be, bi as ve, bj as Ce, bk as Te, bl as Se, bm as we, bn as xe, e as z, Q as Z, n as L, bo as H, aY as ee, bp as Ae, q as ie, I as se, J as te, K, O as oe, bq as ne, br as ae, ak as ke, at as Ie, al as Oe, aw as De, a7 as Ee, ao as Fe, bs as Ne, aa as Ve, ar as Ke, c as Re, P as Le, d as qe, bt as Me, bu as ze, bv as U, bw as Be } from "./index-Cf5P7Xi4.js";
3
- import { useEffect as je, useState as x, useMemo as He } from "react";
4
- import { useTranslation as M } from "react-i18next";
5
- import { useNavigate as $e, Link as Ge } from "react-router-dom";
6
- import { S as Ue } from "./ScopePicker-BkvQJ5Lq.js";
7
- const Ye = {
1
+ import { jsx as e, jsxs as S, Fragment as H } from "react/jsx-runtime";
2
+ import { u as M, a as ce, b as U, b9 as le, ay as de, _ as J, ar as pe, M as Q, k as W, l as me, F as Z, Q as _, $ as ue, ba as R, bb as ye, A as X, B as F, m as V, bc as ge, bd as Pe, be as fe, bf as $, bg as he, bh as be, bi as ve, bj as Ce, bk as Se, bl as Te, bm as we, bn as xe, d as z, S as Y, y as L, bo as j, aZ as ee, bp as Ae, v as ie, I as se, J as te, K, O as oe, bq as ne, br as ae, ak as ke, au as Ie, al as Oe, ax as De, a7 as Ee, ao as Fe, bs as Ne, aa as Ve, bt as G, as as Ke, V as Re, P as Le, c as Me, bu as qe, bv as ze, bw as Be } from "./index-BB_cYBCp.js";
3
+ import { useEffect as He, useState as x, useMemo as je } from "react";
4
+ import { useTranslation as q } from "react-i18next";
5
+ import { useNavigate as _e, Link as $e } from "react-router-dom";
6
+ import { S as Ge } from "./ScopePicker-B-NlVPQJ.js";
7
+ const Ue = {
8
8
  name: "",
9
9
  description: "",
10
10
  type: "group",
@@ -14,24 +14,24 @@ const Ye = {
14
14
  }, B = {
15
15
  aggregate: xe,
16
16
  client: we,
17
- user: Se,
18
- "client-scope": Te,
19
- group: G,
17
+ user: Te,
18
+ "client-scope": Se,
19
+ group: $,
20
20
  regex: Ce,
21
21
  role: ve,
22
22
  time: be,
23
23
  js: he,
24
- default: G
25
- }, Je = (a) => a in B, _e = ({
24
+ default: $
25
+ }, Je = (a) => a in B, Qe = ({
26
26
  permissionClientId: a,
27
27
  providers: l,
28
28
  policies: w,
29
29
  toggleDialog: t,
30
30
  onAssign: n
31
31
  }) => {
32
- const { adminClient: o } = q(), { realmRepresentation: A } = ce(), { t: d } = M(), y = Y({
32
+ const { adminClient: o } = M(), { realmRepresentation: A } = ce(), { t: d } = q(), y = U({
33
33
  mode: "onChange",
34
- defaultValues: Ye
34
+ defaultValues: Ue
35
35
  }), { addAlert: k, addError: E } = J(), { handleSubmit: C, reset: b } = y, I = A?.adminPermissionsEnabled, P = pe({
36
36
  control: y.control,
37
37
  name: "type"
@@ -40,24 +40,24 @@ const Ye = {
40
40
  return P && Je(P) ? B[P] : B.default;
41
41
  }
42
42
  const m = r();
43
- je(() => {
43
+ He(() => {
44
44
  if (P) {
45
- const { name: c, description: v, decisionStrategy: O, logic: S } = y.getValues();
45
+ const { name: c, description: v, decisionStrategy: O, logic: T } = y.getValues();
46
46
  b({
47
47
  type: P,
48
48
  name: c,
49
49
  description: v,
50
50
  decisionStrategy: O,
51
- logic: S
51
+ logic: T
52
52
  });
53
53
  }
54
54
  }, [P, b, y]);
55
55
  const u = async (c) => {
56
- const { groups: v, roles: O, policies: S, clients: D, ...s } = c, g = {
56
+ const { groups: v, roles: O, policies: T, clients: D, ...s } = c, g = {
57
57
  ...s,
58
58
  ...v && v.length > 0 && { groups: v },
59
59
  ...O && O.length > 0 && { roles: O },
60
- ...S && S.length > 0 && { policies: S },
60
+ ...T && T.length > 0 && { policies: T },
61
61
  ...D && D.length > 0 && { clients: D },
62
62
  ...s.type === "group" && (!v || v.length === 0) && { groups: [] },
63
63
  ...s.type === "client" && (!D || D.length === 0) && { clients: [] }
@@ -73,14 +73,14 @@ const Ye = {
73
73
  }
74
74
  };
75
75
  return /* @__PURE__ */ e(
76
- _,
76
+ Q,
77
77
  {
78
78
  "aria-label": d("createPermissionPolicy"),
79
- variant: Q.medium,
79
+ variant: W.medium,
80
80
  header: /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(Pe, { component: fe.h1, children: d("createPermissionPolicy") }) }),
81
81
  isOpen: !0,
82
82
  onClose: t,
83
- children: /* @__PURE__ */ T(
83
+ children: /* @__PURE__ */ S(
84
84
  me,
85
85
  {
86
86
  id: "createPermissionPolicy-form",
@@ -89,16 +89,16 @@ const Ye = {
89
89
  },
90
90
  isHorizontal: !0,
91
91
  children: [
92
- /* @__PURE__ */ T(W, { ...y, children: [
92
+ /* @__PURE__ */ S(Z, { ...y, children: [
93
93
  /* @__PURE__ */ e(
94
- $,
94
+ _,
95
95
  {
96
96
  name: "name",
97
97
  label: d("name"),
98
98
  rules: { required: d("required") }
99
99
  }
100
100
  ),
101
- /* @__PURE__ */ e($, { name: "description", label: d("description") }),
101
+ /* @__PURE__ */ e(_, { name: "description", label: d("description") }),
102
102
  l && l.length > 0 && /* @__PURE__ */ e(
103
103
  ue,
104
104
  {
@@ -121,7 +121,7 @@ const Ye = {
121
121
  ),
122
122
  /* @__PURE__ */ e(ye, {})
123
123
  ] }),
124
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ T("div", { className: "pf-v5-u-mt-md", children: [
124
+ /* @__PURE__ */ e(X, { children: /* @__PURE__ */ S("div", { className: "pf-v5-u-mt-md", children: [
125
125
  /* @__PURE__ */ e(
126
126
  F,
127
127
  {
@@ -140,20 +140,20 @@ const Ye = {
140
140
  )
141
141
  }
142
142
  );
143
- }, Qe = ({
143
+ }, We = ({
144
144
  toggleDialog: a,
145
145
  onAssign: l,
146
146
  open: w,
147
147
  permissionClientId: t
148
148
  }) => {
149
- const { t: n } = M(), { adminClient: o } = q(), [A, d] = x([]), [y, k] = x(void 0), [E, C] = Z(), [b, I] = x([]);
149
+ const { t: n } = q(), { adminClient: o } = M(), [A, d] = x([]), [y, k] = x(void 0), [E, C] = Y(), [b, I] = x([]);
150
150
  L(
151
151
  () => o.clients.listPolicyProviders({
152
152
  id: t
153
153
  }),
154
154
  (r) => {
155
155
  const m = r.filter((u) => u.type !== "resource" && u.type !== "scope").map((u) => u.name).filter((u) => u !== void 0);
156
- I(H(m));
156
+ I(j(m));
157
157
  },
158
158
  [t]
159
159
  );
@@ -167,14 +167,14 @@ const Ye = {
167
167
  return u && (c.name = u), y && (c.type = y), await o.clients.listPolicies(c) || [];
168
168
  };
169
169
  return /* @__PURE__ */ e(
170
- _,
170
+ Q,
171
171
  {
172
- variant: Q.medium,
172
+ variant: W.medium,
173
173
  title: n("assignExistingPolicies"),
174
174
  isOpen: w,
175
175
  onClose: a,
176
176
  actions: [
177
- /* @__PURE__ */ T(j, { children: [
177
+ /* @__PURE__ */ S(H, { children: [
178
178
  /* @__PURE__ */ e(
179
179
  F,
180
180
  {
@@ -232,7 +232,7 @@ const Ye = {
232
232
  }
233
233
  ),
234
234
  isOpen: E,
235
- children: /* @__PURE__ */ T(te, { children: [
235
+ children: /* @__PURE__ */ S(te, { children: [
236
236
  /* @__PURE__ */ e(
237
237
  K,
238
238
  {
@@ -276,19 +276,19 @@ const Ye = {
276
276
  )
277
277
  }
278
278
  );
279
- }, We = ({
279
+ }, Ze = ({
280
280
  permissionClientId: a,
281
281
  providers: l,
282
282
  policies: w,
283
283
  resourceType: t
284
284
  }) => {
285
- const { adminClient: n } = q(), { t: o } = M(), {
285
+ const { adminClient: n } = M(), { t: o } = q(), {
286
286
  control: A,
287
287
  getValues: d,
288
288
  setValue: y,
289
289
  trigger: k,
290
290
  formState: { errors: E }
291
- } = ke(), C = d("policies"), [b, I] = x(!1), [P, r] = x(!1), [m, u] = x([]), [c, v] = x(void 0), [O, S] = Z();
291
+ } = ke(), C = d("policies"), [b, I] = x(!1), [P, r] = x(!1), [m, u] = x([]), [c, v] = x(void 0), [O, T] = Y();
292
292
  L(
293
293
  () => C && C.length > 0 ? Promise.all(
294
294
  C.map(
@@ -305,7 +305,7 @@ const Ye = {
305
305
  },
306
306
  [w]
307
307
  );
308
- const D = H(
308
+ const D = j(
309
309
  l ? l.filter((i) => i.type !== "resource" && i.type !== "scope").map((i) => i.name) : []
310
310
  ), s = (i) => {
311
311
  const f = i.map(({ policy: h }) => ({
@@ -334,7 +334,7 @@ const Ye = {
334
334
  }, p = c ? m.filter(
335
335
  (i) => R(i.type) === c
336
336
  ) : m;
337
- return /* @__PURE__ */ T(
337
+ return /* @__PURE__ */ S(
338
338
  Ie,
339
339
  {
340
340
  label: o("policies"),
@@ -357,9 +357,9 @@ const Ye = {
357
357
  rules: {
358
358
  validate: (i) => !i || i.length === 0 ? !1 : i.every(({ id: f }) => f && f.trim().length > 0)
359
359
  },
360
- render: () => /* @__PURE__ */ T(j, { children: [
360
+ render: () => /* @__PURE__ */ S(H, { children: [
361
361
  b && /* @__PURE__ */ e(
362
- Qe,
362
+ We,
363
363
  {
364
364
  permissionClientId: a,
365
365
  open: b,
@@ -368,7 +368,7 @@ const Ye = {
368
368
  }
369
369
  ),
370
370
  P && /* @__PURE__ */ e(
371
- _e,
371
+ Qe,
372
372
  {
373
373
  toggleDialog: () => r(!P),
374
374
  permissionClientId: a,
@@ -417,23 +417,23 @@ const Ye = {
417
417
  se,
418
418
  {
419
419
  onSelect: (i, f) => {
420
- v(f), S();
420
+ v(f), T();
421
421
  },
422
- onOpenChange: S,
422
+ onOpenChange: T,
423
423
  toggle: (i) => /* @__PURE__ */ e(
424
424
  oe,
425
425
  {
426
426
  ref: i,
427
427
  "data-testid": "filter-type-dropdown-existingPolicies",
428
428
  id: "toggle-id-10",
429
- onClick: S,
429
+ onClick: T,
430
430
  icon: /* @__PURE__ */ e(ae, {}),
431
431
  statusIcon: /* @__PURE__ */ e(ne, {}),
432
432
  children: c ? R(c) : o("allTypes")
433
433
  }
434
434
  ),
435
435
  isOpen: O,
436
- children: /* @__PURE__ */ T(te, { children: [
436
+ children: /* @__PURE__ */ S(te, { children: [
437
437
  /* @__PURE__ */ e(
438
438
  K,
439
439
  {
@@ -485,9 +485,9 @@ const Ye = {
485
485
  );
486
486
  };
487
487
  function oi() {
488
- const { adminClient: a } = q(), { t: l } = M(), { realm: w, permissionClientId: t, permissionId: n, resourceType: o } = Fe(), A = $e(), d = Y(), { handleSubmit: y, reset: k } = d, { addAlert: E, addError: C } = J(), [b, I] = x(), [P, r] = x(), [m, u] = x(), c = Ne({
488
+ const { adminClient: a } = M(), { t: l } = q(), { realm: w, permissionClientId: t, permissionId: n, resourceType: o } = Fe(), A = _e(), d = U(), { handleSubmit: y, reset: k } = d, { addAlert: E, addError: C } = J(), [b, I] = x(), [P, r] = x(), [m, u] = x(), c = Ne({
489
489
  clientId: t
490
- }), v = He(
490
+ }), v = je(
491
491
  () => c.filter(({ type: s }) => s === o).flatMap(({ scopes: s = [] }) => s).map((s) => s || ""),
492
492
  [c, o]
493
493
  );
@@ -509,7 +509,7 @@ function oi() {
509
509
  (i) => i.type !== "resource" && i.type !== "scope"
510
510
  );
511
511
  r(
512
- H(
512
+ j(
513
513
  p,
514
514
  (i) => i.type
515
515
  )
@@ -598,7 +598,7 @@ function oi() {
598
598
  } catch (g) {
599
599
  C("permissionSaveError", g);
600
600
  }
601
- }, [S, D] = Ve({
601
+ }, [T, D] = Ve({
602
602
  titleKey: "deletePermission",
603
603
  messageKey: l("deleteAdminPermissionConfirm", {
604
604
  permission: b?.name
@@ -612,7 +612,7 @@ function oi() {
612
612
  type: "scope",
613
613
  permissionId: n
614
614
  }), E(l("permissionDeletedSuccess"), z.success), A(
615
- U({
615
+ G({
616
616
  realm: w,
617
617
  permissionClientId: t,
618
618
  tab: "permissions"
@@ -623,7 +623,7 @@ function oi() {
623
623
  }
624
624
  }
625
625
  });
626
- return b ? /* @__PURE__ */ T(j, { children: [
626
+ return b ? /* @__PURE__ */ S(H, { children: [
627
627
  /* @__PURE__ */ e(D, {}),
628
628
  /* @__PURE__ */ e(
629
629
  Re,
@@ -635,7 +635,7 @@ function oi() {
635
635
  K,
636
636
  {
637
637
  "data-testid": "delete-permission",
638
- onClick: () => S(),
638
+ onClick: () => T(),
639
639
  children: l("delete")
640
640
  },
641
641
  "delete"
@@ -643,11 +643,11 @@ function oi() {
643
643
  ] : void 0
644
644
  }
645
645
  ),
646
- /* @__PURE__ */ e(Le, { variant: "light", children: /* @__PURE__ */ T(qe, { isHorizontal: !0, onSubmit: y(O), role: "anyone", children: [
647
- /* @__PURE__ */ T(W, { ...d, children: [
648
- /* @__PURE__ */ e(Me, { clientId: t }),
646
+ /* @__PURE__ */ e(Le, { variant: "light", children: /* @__PURE__ */ S(Me, { isHorizontal: !0, onSubmit: y(O), role: "anyone", children: [
647
+ /* @__PURE__ */ S(Z, { ...d, children: [
648
+ /* @__PURE__ */ e(qe, { clientId: t }),
649
649
  /* @__PURE__ */ e(
650
- Ue,
650
+ Ge,
651
651
  {
652
652
  clientId: t,
653
653
  resourceTypeScopes: v ?? []
@@ -655,7 +655,7 @@ function oi() {
655
655
  ),
656
656
  /* @__PURE__ */ e(ze, { resourceType: o }),
657
657
  /* @__PURE__ */ e(
658
- We,
658
+ Ze,
659
659
  {
660
660
  permissionClientId: t,
661
661
  providers: P,
@@ -664,7 +664,7 @@ function oi() {
664
664
  }
665
665
  )
666
666
  ] }),
667
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ T("div", { className: "pf-v5-u-mt-md", children: [
667
+ /* @__PURE__ */ e(X, { children: /* @__PURE__ */ S("div", { className: "pf-v5-u-mt-md", children: [
668
668
  /* @__PURE__ */ e(
669
669
  F,
670
670
  {
@@ -681,10 +681,10 @@ function oi() {
681
681
  variant: "link",
682
682
  "data-testid": "cancel",
683
683
  component: (s) => /* @__PURE__ */ e(
684
- Ge,
684
+ $e,
685
685
  {
686
686
  ...s,
687
- to: U({
687
+ to: G({
688
688
  realm: w,
689
689
  permissionClientId: t,
690
690
  tab: "permissions"
@@ -701,4 +701,4 @@ function oi() {
701
701
  export {
702
702
  oi as default
703
703
  };
704
- //# sourceMappingURL=PermissionConfigurationDetails-BC-CKsEm.js.map
704
+ //# sourceMappingURL=PermissionConfigurationDetails-NLncm72q.js.map