@osovitny/anatoly 3.20.23 → 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,19 +10539,18 @@ const MSALProviders = [
|
|
|
10502
10539
|
},
|
|
10503
10540
|
{
|
|
10504
10541
|
provide: MSAL_INSTANCE,
|
|
10505
|
-
//useValue: MSALInstanceFactory(),
|
|
10506
10542
|
useFactory: MSALInstanceFactory,
|
|
10507
|
-
deps: [
|
|
10543
|
+
deps: [AppService]
|
|
10508
10544
|
},
|
|
10509
10545
|
{
|
|
10510
10546
|
provide: MSAL_GUARD_CONFIG,
|
|
10511
|
-
|
|
10547
|
+
useFactory: MSALGuardConfigFactory,
|
|
10548
|
+
deps: [AppService]
|
|
10512
10549
|
},
|
|
10513
10550
|
{
|
|
10514
10551
|
provide: MSAL_INTERCEPTOR_CONFIG,
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
deps: [HttpClient]
|
|
10552
|
+
useFactory: MSALInterceptorConfigFactory,
|
|
10553
|
+
deps: [AppService]
|
|
10518
10554
|
},
|
|
10519
10555
|
//App
|
|
10520
10556
|
AuthService,
|
|
@@ -11241,41 +11277,6 @@ class AnatolyBillingModule {
|
|
|
11241
11277
|
KendoModule,
|
|
11242
11278
|
AnatolyUIModule], exports: [BuyAccessButtonComponent, SubscribePlanButtonComponent, OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, BraintreeDialog, PaypalButtonComponent, PaypalSubscribeButtonComponent, PayPalComponent, StripeDialog] }); })();
|
|
11243
11279
|
|
|
11244
|
-
class AppService extends ApiServiceBase {
|
|
11245
|
-
constructor(http) {
|
|
11246
|
-
super(http);
|
|
11247
|
-
this.http = http;
|
|
11248
|
-
this.baseUrl = `${ApiUrl}/app`;
|
|
11249
|
-
}
|
|
11250
|
-
loadAppInitializerSettings() {
|
|
11251
|
-
//Logging
|
|
11252
|
-
let stopwatch = new Stopwatch("@osovitny/anatoly. AppService: loadAppInitializerSettings");
|
|
11253
|
-
stopwatch.start();
|
|
11254
|
-
return this.get('loadAppInitializerSettings').pipe(map$1(data => {
|
|
11255
|
-
//Logging
|
|
11256
|
-
stopwatch.stop();
|
|
11257
|
-
stopwatch.printElapsedAsMilliseconds();
|
|
11258
|
-
if (data) {
|
|
11259
|
-
let appCoreSettings = JSON.stringify(data.core);
|
|
11260
|
-
let appMSALSettings = JSON.stringify(data.msal);
|
|
11261
|
-
appCoreSettings = appCoreSettings.replace(/--APPNAME--/g, g_AppName);
|
|
11262
|
-
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
|
|
11263
|
-
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
|
|
11264
|
-
resetAppCoreSettings();
|
|
11265
|
-
resetMsalSettings();
|
|
11266
|
-
}
|
|
11267
|
-
}));
|
|
11268
|
-
}
|
|
11269
|
-
static { this.ɵfac = function AppService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
11270
|
-
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AppService, factory: AppService.ɵfac, providedIn: 'root' }); }
|
|
11271
|
-
}
|
|
11272
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppService, [{
|
|
11273
|
-
type: Injectable,
|
|
11274
|
-
args: [{
|
|
11275
|
-
providedIn: 'root'
|
|
11276
|
-
}]
|
|
11277
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
11278
|
-
|
|
11279
11280
|
/*
|
|
11280
11281
|
<file>
|
|
11281
11282
|
Project:
|