{ "version": 3, "sources": ["projects/insight/src/app/state/selectors/user-info.selectors.ts"], "sourcesContent": ["import { createSelector } from '@ngrx/store';\r\nimport { UserInfo } from 'app/shared/models';\r\nimport { AppState } from 'app/state/app.state';\r\n\r\n\r\nexport const selectUserInfo = (state: AppState) => state.userInfo;\r\n\r\nexport const selectUserDisplayLangId = createSelector(\r\n selectUserInfo,\r\n (state: UserInfo) => state.displayLanguageId\r\n);\r\nexport const selectUserDisplayLangCode = createSelector(\r\n selectUserInfo,\r\n (state: UserInfo) => state.displayLanguageCode\r\n);\r\nexport const selectUserGroupPermissions = createSelector(\r\n selectUserInfo,\r\n (state: UserInfo) => state.userPermission?.groupPermissions\r\n)\r\nexport const selectUserAdminPermissions = createSelector(\r\n selectUserInfo,\r\n (state: UserInfo) => state.userPermission?.isAdmin\r\n)\r\n\r\n"], "mappings": "yCAKO,IAAMA,EAAkBC,GAAoBA,EAAMC,SAE5CC,EAA0BC,EACrCJ,EACCC,GAAoBA,EAAMI,iBAAiB,EAEjCC,EAA4BF,EACvCJ,EACCC,GAAoBA,EAAMM,mBAAmB,EAEnCC,EAA6BJ,EACxCJ,EACCC,GAAoBA,EAAMQ,gBAAgBC,gBAAgB,EAEhDC,EAA6BP,EACxCJ,EACCC,GAAoBA,EAAMQ,gBAAgBG,OAAO", "names": ["selectUserInfo", "state", "userInfo", "selectUserDisplayLangId", "createSelector", "displayLanguageId", "selectUserDisplayLangCode", "displayLanguageCode", "selectUserGroupPermissions", "userPermission", "groupPermissions", "selectUserAdminPermissions", "isAdmin"] }