{"version":3,"file":"last-session-info-felhslr3.js","sources":["packages/vanilla/lib/features/last-session-info/src/last-session-info-bootstrap.service.ts","packages/vanilla/lib/features/last-session-info/src/last-session-info-login-hook.ts","packages/vanilla/lib/features/last-session-info/src/last-session-info.feature.ts"],"sourcesContent":["import { Inject, Injectable } from '@angular/core';\n\nimport { LOGIN_RESPONSE_HANDLER_HOOK, LoginResponseHandlerHook, LoginResponseHandlerService, OnFeatureInit } from '@frontend/vanilla/core';\n\n@Injectable()\nexport class LastSessionInfoBootstrapService implements OnFeatureInit {\n constructor(\n private loginResponseHandlerService: LoginResponseHandlerService,\n @Inject(LOGIN_RESPONSE_HANDLER_HOOK) private loginResponseHandlerHooks: LoginResponseHandlerHook[],\n ) {}\n\n onFeatureInit() {\n this.loginResponseHandlerService.registerHooks(this.loginResponseHandlerHooks);\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { LoginResponseHandlerContext, LoginResponseHandlerHook, ToastrQueueService, ToastrSchedule, ToastrType } from '@frontend/vanilla/core';\n\n@Injectable()\nexport class LastSessionInfoLoginHook implements LoginResponseHandlerHook {\n constructor(private toastrQueueService: ToastrQueueService) {}\n\n onPostLogin(context: LoginResponseHandlerContext) {\n if (context.usesDefaultPostLoginAction) {\n const schedule = context.willRedirectAfterLogin ? ToastrSchedule.AfterNextNavigation : ToastrSchedule.Immediate;\n\n this.toastrQueueService.add(ToastrType.LastSessionInfo, { schedule });\n }\n }\n}\n","import { LOGIN_RESPONSE_HANDLER_HOOK, runOnFeatureInit } from '@frontend/vanilla/core';\n\nimport { LastSessionInfoBootstrapService } from './last-session-info-bootstrap.service';\nimport { LastSessionInfoLoginHook } from './last-session-info-login-hook';\n\nexport function provide() {\n return [\n { provide: LOGIN_RESPONSE_HANDLER_HOOK, useClass: LastSessionInfoLoginHook, multi: true },\n runOnFeatureInit(LastSessionInfoBootstrapService),\n ];\n}\n"],"names":["LastSessionInfoBootstrapService","constructor","loginResponseHandlerService","loginResponseHandlerHooks","onFeatureInit","registerHooks","ɵɵinject","LoginResponseHandlerService","LOGIN_RESPONSE_HANDLER_HOOK","factory","ɵfac","_LastSessionInfoBootstrapService","LastSessionInfoLoginHook","toastrQueueService","onPostLogin","context","usesDefaultPostLoginAction","schedule","willRedirectAfterLogin","ToastrSchedule","AfterNextNavigation","Immediate","add","ToastrType","LastSessionInfo","ToastrQueueService","_LastSessionInfoLoginHook","provide","useClass","multi","runOnFeatureInit"],"mappings":"kGAKA,IAAaA,CAA+B,CAAA,CAAA,IAAA,CAAtC,IAAOA,CAAP,CAAA,MAAOA,CAA+B,CACxCC,WACYC,CAAAA,CAAAA,CACqCC,CAAqD,CAAA,CAD1F,IAAAD,CAAAA,2BAAAA,CAAAA,CACqC,CAAA,IAAA,CAAAC,yBAAAA,CAAAA,EAC9C,CAEHC,aAAAA,EAAa,CACT,IAAA,CAAKF,2BAA4BG,CAAAA,aAAAA,CAAc,IAAKF,CAAAA,yBAAyB,EACjF,CAAA,CAAA,CAAA,CAAA,CAAA,SAAA,CAAA,SAAA,CAAA,CAAA,CAAA,OAAA,IAAA,CAAA,EARSH,CAA+BM,EAAAA,EAAAA,CAAAC,EAAA,CAAA,CAAAD,EAG5BE,CAAAA,EAA2B,CAAA,CAAA,CAH9BR,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,CAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAA+BS,OAA/BT,CAAAA,CAAAA,CAA+BU,SAAA,CAAA,CAAtC,CAAA,IAAOV,CAAPW,CAAAA,CAAAA,CAAAA,OAAOX,CAA+B,CAAA,GCA5C,CAAA,IAAaY,CAAwB,CAAA,CAAA,IAAA,CAA/B,IAAOA,CAAP,CAAA,MAAOA,CAAwB,CACjCX,WAAoBY,CAAAA,CAAAA,CAAsC,CAAtC,IAAAA,CAAAA,kBAAAA,CAAAA,EAAyC,CAE7DC,WAAYC,CAAAA,CAAAA,CAAoC,CAC5C,GAAIA,CAAQC,CAAAA,0BAAAA,CAA4B,CACpC,IAAMC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