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

theme.keycloak.v2.admin.resources.assets.useIsFeatureEnabled-d2f044ea.js.map Maven / Gradle / Ivy

There is a newer version: 25.0.1
Show newest version
{"version":3,"file":"useIsFeatureEnabled-d2f044ea.js","sources":["../../src/utils/useIsFeatureEnabled.ts"],"sourcesContent":["import { useServerInfo } from \"../context/server-info/ServerInfoProvider\";\n\nexport enum Feature {\n  AdminFineGrainedAuthz = \"ADMIN_FINE_GRAINED_AUTHZ\",\n  ClientPolicies = \"CLIENT_POLICIES\",\n  DeclarativeUserProfile = \"DECLARATIVE_USER_PROFILE\",\n  Kerberos = \"KERBEROS\",\n  DynamicScopes = \"DYNAMIC_SCOPES\",\n}\n\nexport default function useIsFeatureEnabled() {\n  const { profileInfo } = useServerInfo();\n  const disabledFilters = profileInfo?.disabledFeatures ?? [];\n\n  return function isFeatureEnabled(feature: Feature) {\n    return !disabledFilters.includes(feature);\n  };\n}\n"],"names":["Feature","useIsFeatureEnabled","profileInfo","useServerInfo","disabledFilters","feature"],"mappings":"wCAEY,IAAAA,GAAAA,IACVA,EAAA,sBAAwB,2BACxBA,EAAA,eAAiB,kBACjBA,EAAA,uBAAyB,2BACzBA,EAAA,SAAW,WACXA,EAAA,cAAgB,iBALNA,IAAAA,GAAA,CAAA,CAAA,EAQZ,SAAwBC,GAAsB,CACtC,KAAA,CAAE,YAAAC,GAAgBC,IAClBC,EAAkBF,GAAa,kBAAoB,GAElD,OAAA,SAA0BG,EAAkB,CAC1C,MAAA,CAACD,EAAgB,SAASC,CAAO,CAAA,CAE5C"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy