Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
theme.keycloak.v2.admin.resources.assets.user-section-9e42f5e8.js.map Maven / Gradle / Ivy
Go to download
The user inferface to administrate the Keycloak server.
{"version":3,"file":"user-section-9e42f5e8.js","sources":["../../src/user/utils.ts"],"sourcesContent":["import { UserProfileAttribute } from \"@keycloak/keycloak-admin-client/lib/defs/userProfileConfig\";\nimport { TFunction } from \"i18next\";\n\nexport const isBundleKey = (displayName?: string) =>\n displayName?.includes(\"${\");\nexport const unWrap = (key: string) => key.substring(2, key.length - 1);\n\nexport const label = (attribute: UserProfileAttribute, t: TFunction) =>\n (isBundleKey(attribute.displayName)\n ? t(unWrap(attribute.displayName!))\n : attribute.displayName) || attribute.name;\n\nconst ROOT_ATTRIBUTES = [\"username\", \"firstName\", \"lastName\", \"email\"];\n\nconst isRootAttribute = (attr?: string) =>\n attr && ROOT_ATTRIBUTES.includes(attr);\n\nexport const fieldName = (attribute: UserProfileAttribute) =>\n `${isRootAttribute(attribute.name) ? \"\" : \"attributes.\"}${attribute.name}`;\n"],"names":["isBundleKey","displayName","unWrap","key","label","attribute","t","ROOT_ATTRIBUTES","isRootAttribute","attr","fieldName"],"mappings":"AAGO,MAAMA,EAAeC,GAC1BA,GAAa,SAAS,IAAI,EACfC,EAAUC,GAAgBA,EAAI,UAAU,EAAGA,EAAI,OAAS,CAAC,EAEzDC,EAAQ,CAACC,EAAiCC,KACpDN,EAAYK,EAAU,WAAW,EAC9BC,EAAEJ,EAAOG,EAAU,WAAY,CAAC,EAChCA,EAAU,cAAgBA,EAAU,KAEpCE,EAAkB,CAAC,WAAY,YAAa,WAAY,OAAO,EAE/DC,EAAmBC,GACvBA,GAAQF,EAAgB,SAASE,CAAI,EAE1BC,EAAaL,GACxB,GAAGG,EAAgBH,EAAU,IAAI,EAAI,GAAK,aAAa,GAAGA,EAAU,IAAI"}