@osovitny/anatoly 3.20.22 → 3.20.24

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.
@@ -10473,6 +10473,41 @@ function loggerCallback(logLevel, message, containsPii) {
10473
10473
  }
10474
10474
  }
10475
10475
 
10476
+ class AppService extends ApiServiceBase {
10477
+ constructor(http) {
10478
+ super(http);
10479
+ this.http = http;
10480
+ this.baseUrl = `${ApiUrl}/app`;
10481
+ }
10482
+ loadAppInitializerSettings() {
10483
+ //Logging
10484
+ let stopwatch = new Stopwatch("@osovitny/anatoly. AppService: loadAppInitializerSettings");
10485
+ stopwatch.start();
10486
+ return this.get('loadAppInitializerSettings').pipe(map$1(data => {
10487
+ //Logging
10488
+ stopwatch.stop();
10489
+ stopwatch.printElapsedAsMilliseconds();
10490
+ if (data) {
10491
+ let appCoreSettings = JSON.stringify(data.core);
10492
+ let appMSALSettings = JSON.stringify(data.msal);
10493
+ appCoreSettings = appCoreSettings.replace(/--APPNAME--/g, g_AppName);
10494
+ sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
10495
+ sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
10496
+ resetAppCoreSettings();
10497
+ resetMsalSettings();
10498
+ }
10499
+ }));
10500
+ }
10501
+ static { this.ɵfac = function AppService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppService)(i0.ɵɵinject(i1.HttpClient)); }; }
10502
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AppService, factory: AppService.ɵfac, providedIn: 'root' }); }
10503
+ }
10504
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppService, [{
10505
+ type: Injectable,
10506
+ args: [{
10507
+ providedIn: 'root'
10508
+ }]
10509
+ }], () => [{ type: i1.HttpClient }], null); })();
10510
+
10476
10511
  /*
10477
10512
  <file>
10478
10513
  Project:
@@ -10493,6 +10528,8 @@ function loggerCallback(logLevel, message, containsPii) {
10493
10528
  */
10494
10529
  //Node
10495
10530
  const MSALProviders = [
10531
+ //Init
10532
+ AppService,
10496
10533
  MsalService,
10497
10534
  MsalBroadcastService,
10498
10535
  {
@@ -10502,17 +10539,18 @@ const MSALProviders = [
10502
10539
  },
10503
10540
  {
10504
10541
  provide: MSAL_INSTANCE,
10505
- //useValue: MSALInstanceFactory(),
10506
10542
  useFactory: MSALInstanceFactory,
10507
- deps: [HttpClient]
10543
+ deps: [AppService]
10508
10544
  },
10509
10545
  {
10510
10546
  provide: MSAL_GUARD_CONFIG,
10511
- useValue: MSALGuardConfigFactory(),
10547
+ useFactory: MSALGuardConfigFactory,
10548
+ deps: [AppService]
10512
10549
  },
10513
10550
  {
10514
10551
  provide: MSAL_INTERCEPTOR_CONFIG,
10515
- useValue: MSALInterceptorConfigFactory(),
10552
+ useFactory: MSALInterceptorConfigFactory,
10553
+ deps: [AppService]
10516
10554
  },
10517
10555
  //App
10518
10556
  AuthService,
@@ -11239,41 +11277,6 @@ class AnatolyBillingModule {
11239
11277
  KendoModule,
11240
11278
  AnatolyUIModule], exports: [BuyAccessButtonComponent, SubscribePlanButtonComponent, OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, BraintreeDialog, PaypalButtonComponent, PaypalSubscribeButtonComponent, PayPalComponent, StripeDialog] }); })();
11241
11279
 
11242
- class AppService extends ApiServiceBase {
11243
- constructor(http) {
11244
- super(http);
11245
- this.http = http;
11246
- this.baseUrl = `${ApiUrl}/app`;
11247
- }
11248
- loadAppInitializerSettings() {
11249
- //Logging
11250
- let stopwatch = new Stopwatch("@osovitny/anatoly. AppService: loadAppInitializerSettings");
11251
- stopwatch.start();
11252
- return this.get('loadAppInitializerSettings').pipe(map$1(data => {
11253
- //Logging
11254
- stopwatch.stop();
11255
- stopwatch.printElapsedAsMilliseconds();
11256
- if (data) {
11257
- let appCoreSettings = JSON.stringify(data.core);
11258
- let appMSALSettings = JSON.stringify(data.msal);
11259
- appCoreSettings = appCoreSettings.replace(/--APPNAME--/g, g_AppName);
11260
- sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
11261
- sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
11262
- resetAppCoreSettings();
11263
- resetMsalSettings();
11264
- }
11265
- }));
11266
- }
11267
- static { this.ɵfac = function AppService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppService)(i0.ɵɵinject(i1.HttpClient)); }; }
11268
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AppService, factory: AppService.ɵfac, providedIn: 'root' }); }
11269
- }
11270
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppService, [{
11271
- type: Injectable,
11272
- args: [{
11273
- providedIn: 'root'
11274
- }]
11275
- }], () => [{ type: i1.HttpClient }], null); })();
11276
-
11277
11280
  /*
11278
11281
  <file>
11279
11282
  Project: