@bnsights/bbsf-utilities 1.0.60 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,10 +66,10 @@ class AppearanceConfigurationService {
66
66
  getLogo() {
67
67
  return this.configService.getConfigurationValue('AnonymousLayout_Logo');
68
68
  }
69
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: AppearanceConfigurationService, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
70
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: AppearanceConfigurationService, providedIn: 'root' }); }
69
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppearanceConfigurationService, deps: [{ token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
70
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppearanceConfigurationService, providedIn: 'root' }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: AppearanceConfigurationService, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppearanceConfigurationService, decorators: [{
73
73
  type: Injectable,
74
74
  args: [{
75
75
  providedIn: 'root'
@@ -104,10 +104,10 @@ class ConfigurationService {
104
104
  return selectedKey;
105
105
  }
106
106
  }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
108
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: ConfigurationService, providedIn: 'root' }); }
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
108
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfigurationService, providedIn: 'root' }); }
109
109
  }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: ConfigurationService, decorators: [{
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfigurationService, decorators: [{
111
111
  type: Injectable,
112
112
  args: [{
113
113
  providedIn: 'root'
@@ -296,13 +296,13 @@ class ControlValidationService {
296
296
  let control = form.get(controlName);
297
297
  return control;
298
298
  }
299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: ControlValidationService, deps: [{ token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
300
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: ControlValidationService, providedIn: 'root' }); }
299
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlValidationService, deps: [{ token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
300
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlValidationService, providedIn: 'root' }); }
301
301
  }
302
302
  __decorate([
303
303
  BlockUI()
304
304
  ], ControlValidationService.prototype, "blockUI", void 0);
305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: ControlValidationService, decorators: [{
305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ControlValidationService, decorators: [{
306
306
  type: Injectable,
307
307
  args: [{
308
308
  providedIn: 'root'
@@ -387,10 +387,17 @@ class EnvironmentService {
387
387
  let mode = environment["BBSF_AllowMultiTenancy"];
388
388
  return mode.toLocaleLowerCase() == 'true';
389
389
  }
390
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
391
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: EnvironmentService, providedIn: 'root' }); }
390
+ getCookieName() {
391
+ let cookieName = environment["BBSF_CookieName"];
392
+ if (!cookieName || cookieName == '') {
393
+ cookieName = 'access_token';
394
+ }
395
+ return cookieName;
396
+ }
397
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
398
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EnvironmentService, providedIn: 'root' }); }
392
399
  }
393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: EnvironmentService, decorators: [{
400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EnvironmentService, decorators: [{
394
401
  type: Injectable,
395
402
  args: [{
396
403
  providedIn: 'root'
@@ -456,10 +463,10 @@ class MasterLayoutService {
456
463
  params = params.append('RoleID', permissionSetID);
457
464
  return this.http.post(this.apiUrl + 'SwitchRole', null, null, params);
458
465
  }
459
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: MasterLayoutService, deps: [{ token: i1$1.Router }, { token: RequestHandlerService }, { token: AuthService }, { token: StylesBundleService }, { token: i4.TranslateService }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
460
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: MasterLayoutService, providedIn: 'root' }); }
466
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MasterLayoutService, deps: [{ token: i1$1.Router }, { token: RequestHandlerService }, { token: AuthService }, { token: StylesBundleService }, { token: i4.TranslateService }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable }); }
467
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MasterLayoutService, providedIn: 'root' }); }
461
468
  }
462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: MasterLayoutService, decorators: [{
469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MasterLayoutService, decorators: [{
463
470
  type: Injectable,
464
471
  args: [{
465
472
  providedIn: 'root',
@@ -714,10 +721,10 @@ class RequestHandlerService {
714
721
  'Image-Upload': 'true',
715
722
  });
716
723
  }
717
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: RequestHandlerService, deps: [{ token: i1.HttpClient }, { token: AuthService }, { token: EnvironmentService }, { token: UtilityService }, { token: BBSFTranslateService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
718
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: RequestHandlerService }); }
724
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RequestHandlerService, deps: [{ token: i1.HttpClient }, { token: AuthService }, { token: EnvironmentService }, { token: UtilityService }, { token: BBSFTranslateService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
725
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RequestHandlerService }); }
719
726
  }
720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: RequestHandlerService, decorators: [{
727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RequestHandlerService, decorators: [{
721
728
  type: Injectable
722
729
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: AuthService }, { type: EnvironmentService }, { type: UtilityService }, { type: BBSFTranslateService }, { type: i1$1.Router }] });
723
730
 
@@ -759,10 +766,10 @@ class StylesBundleService {
759
766
  style.href = `${styleName}`;
760
767
  head.appendChild(style);
761
768
  }
762
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: StylesBundleService, deps: [{ token: DOCUMENT }, { token: BBSFTranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
763
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: StylesBundleService, providedIn: 'root' }); }
769
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StylesBundleService, deps: [{ token: DOCUMENT }, { token: BBSFTranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
770
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StylesBundleService, providedIn: 'root' }); }
764
771
  }
765
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: StylesBundleService, decorators: [{
772
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StylesBundleService, decorators: [{
766
773
  type: Injectable,
767
774
  args: [{
768
775
  providedIn: 'root'
@@ -773,10 +780,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
773
780
  }] }, { type: BBSFTranslateService }] });
774
781
 
775
782
  class BBSFTranslateService extends TranslateService {
776
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: BBSFTranslateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
777
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: BBSFTranslateService, providedIn: 'root' }); }
783
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BBSFTranslateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
784
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BBSFTranslateService, providedIn: 'root' }); }
778
785
  }
779
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: BBSFTranslateService, decorators: [{
786
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BBSFTranslateService, decorators: [{
780
787
  type: Injectable,
781
788
  args: [{
782
789
  providedIn: 'root'
@@ -856,13 +863,13 @@ class UtilityService {
856
863
  stopBlockUI() {
857
864
  this.blockUI.stop();
858
865
  }
859
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UtilityService, deps: [{ token: BBSFTranslateService }, { token: EnvironmentService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
860
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UtilityService, providedIn: 'root' }); }
866
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UtilityService, deps: [{ token: BBSFTranslateService }, { token: EnvironmentService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
867
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UtilityService, providedIn: 'root' }); }
861
868
  }
862
869
  __decorate([
863
870
  BlockUI()
864
871
  ], UtilityService.prototype, "blockUI", void 0);
865
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UtilityService, decorators: [{
872
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UtilityService, decorators: [{
866
873
  type: Injectable,
867
874
  args: [{
868
875
  providedIn: 'root'
@@ -4413,10 +4420,10 @@ class WordDocumentService {
4413
4420
  var fileBuffer = await generateContainer(model.body, model.header, documentOptions, model.footer);
4414
4421
  return fileBuffer;
4415
4422
  }
4416
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: WordDocumentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4417
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: WordDocumentService, providedIn: 'root' }); }
4423
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WordDocumentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4424
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WordDocumentService, providedIn: 'root' }); }
4418
4425
  }
4419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: WordDocumentService, decorators: [{
4426
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WordDocumentService, decorators: [{
4420
4427
  type: Injectable,
4421
4428
  args: [{
4422
4429
  providedIn: 'root',
@@ -4431,10 +4438,10 @@ class LanguageService {
4431
4438
  getLanguages() {
4432
4439
  return this.http.get(this.apiUrl + 'GetAll', null, null);
4433
4440
  }
4434
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: LanguageService, deps: [{ token: RequestHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4435
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: LanguageService, providedIn: 'root' }); }
4441
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LanguageService, deps: [{ token: RequestHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4442
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LanguageService, providedIn: 'root' }); }
4436
4443
  }
4437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: LanguageService, decorators: [{
4444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LanguageService, decorators: [{
4438
4445
  type: Injectable,
4439
4446
  args: [{
4440
4447
  providedIn: 'root',
@@ -4503,10 +4510,10 @@ class SpeechRecognitionService {
4503
4510
  this.recognition.stop();
4504
4511
  }
4505
4512
  }
4506
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: SpeechRecognitionService, deps: [{ token: i0.NgZone }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4507
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: SpeechRecognitionService, providedIn: 'root' }); }
4513
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SpeechRecognitionService, deps: [{ token: i0.NgZone }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4514
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SpeechRecognitionService, providedIn: 'root' }); }
4508
4515
  }
4509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: SpeechRecognitionService, decorators: [{
4516
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SpeechRecognitionService, decorators: [{
4510
4517
  type: Injectable,
4511
4518
  args: [{
4512
4519
  providedIn: 'root'
@@ -4554,17 +4561,16 @@ class FileLoaderService {
4554
4561
  console.error('Error preloading translations:', error);
4555
4562
  }
4556
4563
  }
4557
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FileLoaderService, deps: [{ token: BBSFTranslateService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
4558
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FileLoaderService, providedIn: 'root' }); }
4564
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileLoaderService, deps: [{ token: BBSFTranslateService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
4565
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileLoaderService, providedIn: 'root' }); }
4559
4566
  }
4560
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FileLoaderService, decorators: [{
4567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FileLoaderService, decorators: [{
4561
4568
  type: Injectable,
4562
4569
  args: [{
4563
4570
  providedIn: 'root',
4564
4571
  }]
4565
4572
  }], ctorParameters: () => [{ type: BBSFTranslateService }, { type: i1.HttpClient }] });
4566
4573
 
4567
- const TOKEN_KEY = 'access_token';
4568
4574
  class AuthService {
4569
4575
  static { this.user = null; }
4570
4576
  static { this.UserClaims = null; }
@@ -4583,19 +4589,21 @@ class AuthService {
4583
4589
  this.jwtHelper = new JwtHelperService();
4584
4590
  this.isAuthenticatedSubject = new BehaviorSubject(this.hasToken());
4585
4591
  this.isAuthenticate$ = this.isAuthenticatedSubject.asObservable();
4592
+ this.TOKEN_KEY = 'access_token';
4586
4593
  this.user = this.getUserManager();
4594
+ this.TOKEN_KEY = this.environmentService.getCookieName();
4587
4595
  }
4588
4596
  hasToken() {
4589
- const token = this.cookieService.get(TOKEN_KEY);
4597
+ const token = this.cookieService.get(this.TOKEN_KEY);
4590
4598
  return token && !this.jwtHelper.isTokenExpired(token);
4591
4599
  }
4592
4600
  getUserManager() {
4593
- const token = this.cookieService.get(TOKEN_KEY);
4601
+ const token = this.cookieService.get(this.TOKEN_KEY);
4594
4602
  if (token) {
4595
4603
  if (!this.jwtHelper.isTokenExpired(token))
4596
4604
  this.handleAccessTokenWithoutLanguage(token);
4597
4605
  else
4598
- this.cookieService.delete(TOKEN_KEY, '/');
4606
+ this.cookieService.delete(this.TOKEN_KEY, '/');
4599
4607
  }
4600
4608
  else {
4601
4609
  AuthService.timers.map(t => clearInterval(t));
@@ -4637,7 +4645,7 @@ class AuthService {
4637
4645
  }
4638
4646
  signOut() {
4639
4647
  let isAuthenticated = this.isAuthenticated();
4640
- this.cookieService.delete(TOKEN_KEY, '/');
4648
+ this.cookieService.delete(this.TOKEN_KEY, '/');
4641
4649
  AuthService.timers.map(t => clearInterval(t));
4642
4650
  AuthService.timers = [];
4643
4651
  AuthService.user = null;
@@ -4677,7 +4685,7 @@ class AuthService {
4677
4685
  return this.http.get(this.environmentService.getBaseUrl() + ApiUrl + 'ClearCurrentUserSession', httpOptions);
4678
4686
  }
4679
4687
  async handleAccessToken(response) {
4680
- this.cookieService.delete(TOKEN_KEY, '/');
4688
+ this.cookieService.delete(this.TOKEN_KEY, '/');
4681
4689
  const token = response;
4682
4690
  AuthService.user = null;
4683
4691
  AuthService.user = new User();
@@ -4687,14 +4695,14 @@ class AuthService {
4687
4695
  AuthService.user.expires_at = this.jwtHelper.getTokenExpirationDate(token);
4688
4696
  this.user = AuthService.user;
4689
4697
  localStorage.setItem("language", AuthService.user.profile.locale);
4690
- this.cookieService.set(TOKEN_KEY, token, AuthService.user.expires_at, "/", null, true, 'Lax');
4698
+ this.cookieService.set(this.TOKEN_KEY, token, AuthService.user.expires_at, "/", null, true, 'Lax');
4691
4699
  this.isAuthenticatedSubject.next(true);
4692
4700
  this.setTokenSeconds();
4693
4701
  AuthService.timers.push(this.checkRefreshToken());
4694
4702
  await this.updateLanguage();
4695
4703
  }
4696
4704
  handleAccessTokenWithoutLanguage(response) {
4697
- this.cookieService.delete(TOKEN_KEY, '/');
4705
+ this.cookieService.delete(this.TOKEN_KEY, '/');
4698
4706
  const token = response;
4699
4707
  AuthService.user = null;
4700
4708
  AuthService.user = new User();
@@ -4705,7 +4713,7 @@ class AuthService {
4705
4713
  this.setTokenSeconds();
4706
4714
  this.user = AuthService.user;
4707
4715
  localStorage.setItem("language", AuthService.user.profile.locale);
4708
- this.cookieService.set(TOKEN_KEY, token, AuthService.user.expires_at, "/", null, true, 'Lax');
4716
+ this.cookieService.set(this.TOKEN_KEY, token, AuthService.user.expires_at, "/", null, true, 'Lax');
4709
4717
  this.isAuthenticatedSubject.next(true);
4710
4718
  AuthService.timers.push(this.checkRefreshToken());
4711
4719
  }
@@ -4723,7 +4731,7 @@ class AuthService {
4723
4731
  if (Math.floor(AuthService.seconds) < 120 && this.isAuthenticated()) {
4724
4732
  AuthService.timers.map(t => clearInterval(t));
4725
4733
  AuthService.timers = [];
4726
- const token = this.cookieService.get(TOKEN_KEY);
4734
+ const token = this.cookieService.get(this.TOKEN_KEY);
4727
4735
  if (token) {
4728
4736
  this.refresh();
4729
4737
  }
@@ -4736,7 +4744,7 @@ class AuthService {
4736
4744
  AuthService.seconds = (AuthService.user.expires_at - date) / 1000;
4737
4745
  }
4738
4746
  refresh() {
4739
- this.cookieService.delete(TOKEN_KEY, '/');
4747
+ this.cookieService.delete(this.TOKEN_KEY, '/');
4740
4748
  const httpOptions = {
4741
4749
  headers: new HttpHeaders({
4742
4750
  'Content-Type': 'application/json',
@@ -4778,10 +4786,10 @@ class AuthService {
4778
4786
  window.location.href = logoutUrl;
4779
4787
  return;
4780
4788
  }
4781
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }, { token: i1.HttpClient }, { token: EnvironmentService }, { token: BBSFTranslateService }, { token: i1$1.Router }, { token: i4$1.CookieService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4782
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: AuthService, providedIn: 'root' }); }
4789
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }, { token: i1.HttpClient }, { token: EnvironmentService }, { token: BBSFTranslateService }, { token: i1$1.Router }, { token: i4$1.CookieService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4790
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, providedIn: 'root' }); }
4783
4791
  }
4784
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: AuthService, decorators: [{
4792
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthService, decorators: [{
4785
4793
  type: Injectable,
4786
4794
  args: [{
4787
4795
  providedIn: 'root',
@@ -4789,10 +4797,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
4789
4797
  }], ctorParameters: () => [{ type: i0.Injector }, { type: i1.HttpClient }, { type: EnvironmentService }, { type: BBSFTranslateService }, { type: i1$1.Router }, { type: i4$1.CookieService }, { type: UtilityService }] });
4790
4798
 
4791
4799
  class BBSFUtilitiesModule {
4792
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: BBSFUtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4793
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: BBSFUtilitiesModule, imports: [CommonModule,
4800
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BBSFUtilitiesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4801
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: BBSFUtilitiesModule, imports: [CommonModule,
4794
4802
  RouterModule, i1$2.BlockUIModule, i2.ToastrModule] }); }
4795
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: BBSFUtilitiesModule, providers: [
4803
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BBSFUtilitiesModule, providers: [
4796
4804
  UtilityService,
4797
4805
  EnvironmentService,
4798
4806
  AuthService,
@@ -4809,7 +4817,7 @@ class BBSFUtilitiesModule {
4809
4817
  BlockUIModule.forRoot(),
4810
4818
  ToastrModule.forRoot()] }); }
4811
4819
  }
4812
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: BBSFUtilitiesModule, decorators: [{
4820
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BBSFUtilitiesModule, decorators: [{
4813
4821
  type: NgModule,
4814
4822
  args: [{
4815
4823
  declarations: [],