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

theme.keycloak.v2.admin.resources.assets.user-section-9e42f5e8.js.map Maven / Gradle / Ivy

There is a newer version: 25.0.1
Show newest version
{"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"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy