{"version":3,"file":"default-src_app_features_authentication_authentication_module_ts.20348310a22fc071.js","mappings":";;;;;;;;;;;;;;;;;;;;;;AACA;AACA;AACA;AACA;;;AAEA,IAAMI,oBAAoB,GAAW,CACnC;AACEC,MAAI,EAAE,QADR;AAEEC,YAAU,EAAE;AAFd,CADmC,EAKnC;AACED,MAAI,EAAE,OADR;AAEEE,WAAS,EAAEN,4EAFb;AAGEO,MAAI,EAAE;AAACC,aAAS,EAAE;AAAZ;AAHR,CALmC,EAUnC;AACEJ,MAAI,EAAE,cADR;AAEEE,WAAS,EAAEL,sFAAoBA;AAFjC,CAVmC,EAcnC;AACEG,MAAI,EAAE,eADR;AAEEE,WAAS,EAAEL,sFAAoBA;AAFjC,CAdmC,EAkBnC;AACEG,MAAI,EAAE,mBADR;AAEEE,WAAS,EAAEL,sFAAoBA;AAFjC,CAlBmC,EAsBnC;AACEG,MAAI,EAAE,eADR;AAEEE,WAAS,EAAEJ,yFAAqBA;AAFlC,CAtBmC,CAArC;AAgCO,IAAMO,yBAAb;AAAA;AAAA;;;mBAAaA;AAAyB;;;QAAzBA;;;YAHF,CAACV,kEAAA,CAAsBI,oBAAtB,CAAD,GACCJ,yDAAYA;;;;sHAEXU,2BAAyB;AAAAE,cAAAA,yDAAAA;AAAAC,cAF1Bb,yDAE0B;AAAA;AAFd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpCxB;AAEA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAiBO,IAAMsB,oBAAb;AAAA;AAAA;;;mBAAaA;AAAoB;;;QAApBA;;;YAZF,CACPR,0DADO,EAEPJ,mFAFO,EAGPO,kEAHO,EAIPF,wDAJO,EAKPC,gEALO,EAMPE,iEANO,EAOPG,yFAPO,EAQPF,iEARO,EASPC,+DATO;;;;sHAYEE,sBAAoB;AAAAC,mBAbhBtB,4EAagB,EAbAC,sFAaA,EAbsBC,yFAatB;AAb2CS,cAExEE,0DAFwE,EAGxEJ,mFAHwE,EA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eAAK,2BAAL;AACE,mBAAOA,0EAAP;;AACF,eAAK,gBAAL;AACE,mBAAOA,yEAAP;;AACF,eAAK,UAAL;AACE,mBAAOA,0EAAP;;AACF,eAAK,OAAL;AACE,mBAAOA,8EAAP;;AACF,eAAK,gBAAL;AACE,mBAAOA,wEAAP;;AACF,eAAK,gBAAL;AACE,mBAAOA,yEAAP;;AACF,eAAK,eAAL;AACE,mBAAOA,iFAAP;;AACF,eAAK,cAAL;AACE,mBAAOA,oEAAP;;AACF;AACE,mBAAO,EAAP;AApBJ;AAsBD,OA3BM,CAAP;AA4BD;AAxCH;AAAA;;;mBAAanF,gBAAc0C,+DAAAA,CAAAA,oEAAAA,GAAAA,+DAAAA,CAAAA,qFAAAA,GAAAA,+DAAAA,CAAAA,6DAAAA,GAAAA,+DAAAA,CAAAA,mDAAAA;AAAA;;;QAAd1C;AAAc2C;AAAAC;AAAAC;AAAAE;AAAA;ACX3BL,MAAAA,4DAAAA;AAAGA,MAAAA,oDAAAA;AAAcA,MAAAA,0DAAAA","sources":["./src/app/features/authentication/authentication-route.module.ts","./src/app/features/authentication/authentication.module.ts","./src/app/features/authentication/login-expired/login-expired.component.ts","./src/app/features/authentication/login-expired/login-expired.component.html","./src/app/features/authentication/login-loader/login-loader.component.ts","./src/app/features/authentication/login-loader/login-loader.component.html","./src/app/features/authentication/token-component/token.component.ts","./src/app/features/authentication/token-component/token.component.html"],"sourcesContent":["import {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {TokenComponent} from './token-component/token.component';\nimport {LoginLoaderComponent} from './login-loader/login-loader.component';\nimport {LoginExpiredComponent} from './login-expired/login-expired.component';\n\nconst authenticationRoutes: Routes = [\n {\n path: 'logout',\n redirectTo: 'login'\n },\n {\n path: 'token',\n component: TokenComponent,\n data: {animation: 'auth'}\n },\n {\n path: 'loader/login',\n component: LoginLoaderComponent\n },\n {\n path: 'loader/logout',\n component: LoginLoaderComponent\n },\n {\n path: 'loader/logout/sso',\n component: LoginLoaderComponent\n },\n {\n path: 'login-expired',\n component: LoginExpiredComponent\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(authenticationRoutes)],\n exports: [RouterModule]\n})\nexport class AuthenticationRouteModule {\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\n\nimport {NgbModule} from '@ng-bootstrap/ng-bootstrap';\n\nimport {CoreCommonModule} from '@core/common.module';\n\nimport {TokenComponent} from './token-component/token.component';\nimport {AuthenticationRouteModule} from './authentication-route.module';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {SharedModule} from '../../shared/shared.module';\nimport {LoginLoaderComponent} from './login-loader/login-loader.component';\nimport {LoginExpiredComponent} from './login-expired/login-expired.component';\nimport {CoreComponentsModule} from '../../core/components/core-components.module';\n\n\n@NgModule({\n declarations: [TokenComponent, LoginLoaderComponent, LoginExpiredComponent],\n imports: [\n CommonModule,\n AuthenticationRouteModule,\n NgbModule,\n FormsModule,\n ReactiveFormsModule,\n CoreCommonModule,\n CoreComponentsModule,\n TranslateModule,\n SharedModule\n ]\n})\nexport class AuthenticationModule {\n}\n","import {Component, OnDestroy, OnInit} from '@angular/core';\nimport {Subject} from 'rxjs';\nimport {CoreConfigService} from '../../../../@core/services/config.service';\nimport {takeUntil} from 'rxjs/operators';\nimport {AuthService} from '../../../core/services/auth.service';\n\n@Component({\n selector: 'app-login-expired',\n templateUrl: './login-expired.component.html',\n styleUrls: ['./login-expired.component.scss']\n})\nexport class LoginExpiredComponent implements OnInit, OnDestroy {\n public coreConfig: any;\n // Private\n private _unsubscribeAll: Subject;\n\n constructor(private _coreConfigService: CoreConfigService,\n private _authService: AuthService\n ) {\n this._unsubscribeAll = new Subject();\n\n // Configure the layout\n this._coreConfigService.config = {\n layout: {\n navbar: {\n hidden: true\n },\n footer: {\n hidden: true\n },\n menu: {\n hidden: true\n },\n customizer: false,\n enableLocalStorage: false\n }\n };\n }\n\n ngOnInit(): void {\n this._coreConfigService.config.pipe(takeUntil(this._unsubscribeAll)).subscribe(config => {\n this.coreConfig = config;\n });\n this._authService.logout();\n }\n\n ngOnDestroy(): void {\n // Unsubscribe from all subscriptions\n this._unsubscribeAll.next();\n this._unsubscribeAll.complete();\n }\n}\n","\n
\n
\n \"brand-logo\"\n

Caleidoscoop

\n
\n
\n

{{'LOGIN_EXPIRED' | translate}}️

\n

{{'LOGIN_EXPIRED_MESSAGE' | translate}}

\n {{'BACK_TO_LOGIN' | translate }}\n \"Error\n
\n
\n
\n\n","import {AfterViewInit, Component, OnInit} from '@angular/core';\nimport {CoreConfigService} from '../../../../@core/services/config.service';\nimport {PlatformConfigurationService} from '../../../core/services/platform-configuration.service';\nimport {LocalStorageService} from '../../../core/services/local-storage.service';\nimport {Subject} from 'rxjs';\nimport {CoreConfig} from '../../../../@core/types';\nimport {takeUntil} from 'rxjs/operators';\nimport {Router} from '@angular/router';\n\n@Component({\n selector: 'app-login-loader',\n templateUrl: './login-loader.component.html',\n styleUrls: ['./login-loader.component.scss']\n})\nexport class LoginLoaderComponent implements OnInit, AfterViewInit {\n coreConfig: CoreConfig;\n private _unsubscribeAll: Subject;\n\n constructor(private _coreConfigService: CoreConfigService,\n private router: Router,\n public platformConfigurationService: PlatformConfigurationService,\n private localStorageService: LocalStorageService,\n ) {\n this._unsubscribeAll = new Subject();\n }\n\n ngOnInit(): void {\n this._coreConfigService.config.pipe(takeUntil(this._unsubscribeAll)).subscribe(config => {\n this.coreConfig = config;\n });\n\n this._coreConfigService.config = {\n layout: {\n navbar: {\n hidden: true\n },\n menu: {\n hidden: true\n },\n footer: {\n hidden: true\n },\n customizer: false,\n enableLocalStorage: true\n }\n }\n }\n\n ngAfterViewInit() {\n if (this.router.url.includes('login')) {\n this.sendTokensAndOpenProfile()\n } else if (this.router.url.includes('logout')) {\n this.sendDeleteTokensAndOpenLogin();\n }\n }\n\n private sendDeleteTokensAndOpenLogin() {\n this.sendLogoutToOtherApps();\n setTimeout(() => {\n this.platformConfigurationService.subscribeForPortalConfiguration().subscribe(() => {\n this.localStorageService.clearConfig();\n window.location.href = window.location.origin + '/api/sso-logout';\n })\n }, 3000)\n }\n\n private sendLogoutToOtherApps() {\n this.platformConfigurationService.subscribeForPortalConfiguration().subscribe(configuration => {\n const iframeAcademie = document.getElementsByTagName('iframe')[0].contentWindow;\n const iframeMagazine = document.getElementsByTagName('iframe')[1].contentWindow;\n document.getElementsByTagName('iframe')[0].src = configuration.academieUrl + '/';\n document.getElementsByTagName('iframe')[1].src = configuration.magazineUrl + '/';\n setTimeout(() => {\n iframeAcademie.postMessage(JSON.stringify({\n key: 'delete-authorization',\n data: null\n }), configuration.academieUrl);\n iframeMagazine.postMessage(JSON.stringify({\n key: 'delete-authorization',\n data: null\n }), configuration.magazineUrl);\n }, 500)\n })\n }\n\n private sendTokensAndOpenProfile() {\n this.sendTokensToOtherApps();\n setTimeout(() => {\n this.platformConfigurationService.subscribeForPortalConfiguration().subscribe(configuration => {\n this.localStorageService.clearConfig();\n window.open(configuration.platformUrl + '/account/profile', '_self');\n })\n }, 3000)\n }\n\n private sendTokensToOtherApps() {\n this.platformConfigurationService.subscribeForPortalConfiguration().subscribe(configuration => {\n const iframeAcademie = document.getElementsByTagName('iframe')[0].contentWindow;\n const iframeMagazine = document.getElementsByTagName('iframe')[1].contentWindow;\n document.getElementsByTagName('iframe')[0].src = configuration.academieUrl + '/';\n document.getElementsByTagName('iframe')[1].src = configuration.magazineUrl + '/';\n const token = localStorage.getItem('token');\n const roles = localStorage.getItem('roles');\n setTimeout(() => {\n iframeAcademie.postMessage(JSON.stringify({\n key: 'token',\n data: token\n }), configuration.academieUrl);\n iframeAcademie.postMessage(JSON.stringify({\n key: 'roles',\n data: roles\n }), configuration.academieUrl);\n iframeMagazine.postMessage(JSON.stringify({\n key: 'token',\n data: token\n }), configuration.magazineUrl);\n iframeMagazine.postMessage(JSON.stringify({\n key: 'roles',\n data: roles\n }), configuration.magazineUrl);\n }, 2000)\n })\n }\n}\n","
\n
\n
\n \"Logo\"\n
\n
\n
\n
\n
\n
\n
\n
\n\n\n\n","import {Component} from '@angular/core';\nimport {LocalStorageService} from '../../../core/services/local-storage.service';\nimport {CookieService} from 'ngx-cookie-service';\nimport {Router} from '@angular/router';\nimport {AuthService} from '../../../core/services/auth.service';\nimport {Role} from '../../../core/models/user/role';\n\n@Component({\n selector: 'app-token-component',\n templateUrl: './token.component.html'\n})\nexport class TokenComponent {\n\n constructor(private authService: AuthService, private localStorageService: LocalStorageService, private cookieService: CookieService, private router: Router) {\n const cookie = this.cookieService.get('LMS_TOKEN');\n this.cookieService.delete('LMS_TOKEN');\n this.localStorageService.setToken(cookie);\n this.localStorageService.setRoles(this.parseRoles(this.authService.decodeToken().ov_lms_rol3d));\n this.authService.notifyLoginOccurred();\n this.router.navigate(['/loader/login']);\n }\n\n private parseRoles(roles: string[]): string[] {\n return roles.map(role => {\n const splitScope = role.split(':');\n const splitPrefix = splitScope[0].split('-');\n const roleName = splitPrefix[1];\n if (!roleName) return '';\n switch (roleName) {\n case 'user':\n return Role.PARTICIPANT_FREE;\n case 'vormingsverantwoordelijke':\n return Role.APPROVER_FREE_CLB;\n case 'leidinggevende':\n return Role.MANAGER_FREE_CLB;\n case 'lesgever':\n return Role.INTERNAL_TEACHERS;\n case 'admin':\n return Role.SUPERADMIN_SCHAARBEEK;\n case 'magazine admin':\n return Role.EMAGAZINE_ADMIN;\n case 'magazine lezer':\n return Role.EMAGAZINE_READER;\n case 'external user':\n return Role.CLB_EXTERNAL_PARTICIPANT;\n case 'lokale admin':\n return Role.LOCAL_ADMIN;\n default:\n return '';\n }\n });\n }\n}\n","

Redirecting...

\n\n"],"names":["RouterModule","TokenComponent","LoginLoaderComponent","LoginExpiredComponent","authenticationRoutes","path","redirectTo","component","data","animation","AuthenticationRouteModule","forChild","imports","exports","CommonModule","FormsModule","ReactiveFormsModule","NgbModule","CoreCommonModule","TranslateModule","SharedModule","CoreComponentsModule","AuthenticationModule","declarations","Subject","takeUntil","_coreConfigService","_authService","_unsubscribeAll","config","layout","navbar","hidden","footer","menu","customizer","enableLocalStorage","pipe","subscribe","coreConfig","logout","next","complete","i0","selectors","decls","vars","consts","template","router","platformConfigurationService","localStorageService","url","includes","sendTokensAndOpenProfile","sendDeleteTokensAndOpenLogin","sendLogoutToOtherApps","setTimeout","subscribeForPortalConfiguration","clearConfig","window","location","href","origin","iframeAcademie","document","getElementsByTagName","contentWindow","iframeMagazine","src","configuration","academieUrl","magazineUrl","postMessage","JSON","stringify","key","sendTokensToOtherApps","open","platformUrl","token","localStorage","getItem","roles","Role","authService","cookieService","cookie","get","delete","setToken","setRoles","parseRoles","decodeToken","ov_lms_rol3d","notifyLoginOccurred","navigate","map","splitScope","role","split","splitPrefix","roleName","PARTICIPANT_FREE","APPROVER_FREE_CLB","MANAGER_FREE_CLB","INTERNAL_TEACHERS","SUPERADMIN_SCHAARBEEK","EMAGAZINE_ADMIN","EMAGAZINE_READER","CLB_EXTERNAL_PARTICIPANT","LOCAL_ADMIN"],"sourceRoot":"webpack:///"}