All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.RealmRolesSection-h9c_TTmX.js.map Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
{"version":3,"file":"RealmRolesSection-h9c_TTmX.js","sources":["../../src/realm-roles/RealmRolesSection.tsx"],"sourcesContent":["import { PageSection } from \"@patternfly/react-core\";\nimport { useAdminClient } from \"../admin-client\";\nimport { RolesList } from \"../components/roles-list/RolesList\";\nimport { ViewHeader } from \"../components/view-header/ViewHeader\";\nimport { useAccess } from \"../context/access/Access\";\nimport { useRealm } from \"../context/realm-context/RealmContext\";\nimport helpUrls from \"../help-urls\";\nimport { toAddRole } from \"./routes/AddRole\";\nimport { toRealmRole } from \"./routes/RealmRole\";\n\nexport default function RealmRolesSection() {\n  const { adminClient } = useAdminClient();\n\n  const { realm } = useRealm();\n  const { hasAccess } = useAccess();\n  const isManager = hasAccess(\"manage-realm\");\n\n  const loader = (first?: number, max?: number, search?: string) => {\n    const params: { [name: string]: string | number } = {\n      first: first!,\n      max: max!,\n    };\n\n    const searchParam = search || \"\";\n\n    if (searchParam) {\n      params.search = searchParam;\n    }\n\n    return adminClient.roles.find(params);\n  };\n\n  return (\n    <>\n      \n      \n        \n            toRealmRole({ realm, id: roleId, tab: \"details\" })\n          }\n          isReadOnly={!isManager}\n        />\n      \n    \n  );\n}\n"],"names":["RealmRolesSection","adminClient","useAdminClient","realm","useRealm","hasAccess","useAccess","isManager","loader","first","max","search","params","searchParam","jsxs","Fragment","jsx","ViewHeader","helpUrls","PageSection","RolesList","toAddRole","roleId","toRealmRole"],"mappings":"sjBAUA,SAAwBA,GAAoB,CACpC,KAAA,CAAE,YAAAC,GAAgBC,IAElB,CAAE,MAAAC,GAAUC,IACZ,CAAE,UAAAC,GAAcC,IAChBC,EAAYF,EAAU,cAAc,EAEpCG,EAAS,CAACC,EAAgBC,EAAcC,IAAoB,CAChE,MAAMC,EAA8C,CAClD,MAAAH,EACA,IAAAC,CAAA,EAGIG,EAAcF,GAAU,GAE9B,OAAIE,IACFD,EAAO,OAASC,GAGXZ,EAAY,MAAM,KAAKW,CAAM,CAAA,EAGtC,OAEIE,EAAAC,EAAA,CAAA,SAAA,CAAAC,EAACC,EAAA,CACC,SAAS,aACT,OAAO,cACP,QAASC,EAAS,aAAA,CACpB,EACAF,EAACG,GAAY,QAAQ,QAAQ,QAAS,CAAE,QAAS,aAC/C,SAAAH,EAACI,EAAA,CACC,OAAAZ,EACA,SAAUa,EAAU,CAAE,MAAAlB,EAAO,EAC7B,SAAWmB,GACTC,EAAY,CAAE,MAAApB,EAAO,GAAImB,EAAQ,IAAK,UAAW,EAEnD,WAAY,CAACf,CAAA,CAAA,EAEjB,CACF,CAAA,CAAA,CAEJ"}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy