@softheon/armature 21.1.0-alpha → 21.1.0
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.
|
@@ -6658,13 +6658,14 @@ class MarketSelectionService {
|
|
|
6658
6658
|
* @param translateService translate service
|
|
6659
6659
|
* @param userEntityService user entity service
|
|
6660
6660
|
*/
|
|
6661
|
-
constructor(cookieService, router, config, selectedMarketContext, translateService, oAuthService) {
|
|
6661
|
+
constructor(cookieService, router, config, selectedMarketContext, translateService, oAuthService, authorizationService) {
|
|
6662
6662
|
this.cookieService = cookieService;
|
|
6663
6663
|
this.router = router;
|
|
6664
6664
|
this.config = config;
|
|
6665
6665
|
this.selectedMarketContext = selectedMarketContext;
|
|
6666
6666
|
this.translateService = translateService;
|
|
6667
6667
|
this.oAuthService = oAuthService;
|
|
6668
|
+
this.authorizationService = authorizationService;
|
|
6668
6669
|
/** The MFE Queue Lookup Constant Key for Cookie Storage */
|
|
6669
6670
|
this.MFE_QUEUE_LOOKUP = 'mfe.graphql-domain';
|
|
6670
6671
|
/** The cookie key for local environment selection */
|
|
@@ -6697,9 +6698,12 @@ class MarketSelectionService {
|
|
|
6697
6698
|
this.markets = [];
|
|
6698
6699
|
this.selectedMarket$ = this.selectedMarketContext.selectedMarket$;
|
|
6699
6700
|
this.ephemeralMarket$ = this.selectedMarketContext.ephemeralMarket$;
|
|
6700
|
-
this.
|
|
6701
|
-
|
|
6702
|
-
|
|
6701
|
+
this.authorizationService.isLoggedIn$.subscribe((isLoggedIn) => {
|
|
6702
|
+
if (isLoggedIn) {
|
|
6703
|
+
const claims = this.oAuthService.getIdentityClaims();
|
|
6704
|
+
this.userEmail = claims?.upn || claims?.preferred_username || '';
|
|
6705
|
+
this.evaluateLocalEnvSelectionEnabled();
|
|
6706
|
+
}
|
|
6703
6707
|
});
|
|
6704
6708
|
this.router.events.subscribe((event) => {
|
|
6705
6709
|
if (event instanceof NavigationEnd) {
|
|
@@ -6968,7 +6972,7 @@ class MarketSelectionService {
|
|
|
6968
6972
|
return undefined;
|
|
6969
6973
|
}
|
|
6970
6974
|
}
|
|
6971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: MarketSelectionService, deps: [{ token: i1$a.CookieService }, { token: i1$4.Router }, { token: BaseConfigService }, { token: SelectedMarketContext }, { token: i2$1.TranslateService }, { token: i1$2.OAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6975
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: MarketSelectionService, deps: [{ token: i1$a.CookieService }, { token: i1$4.Router }, { token: BaseConfigService }, { token: SelectedMarketContext }, { token: i2$1.TranslateService }, { token: i1$2.OAuthService }, { token: AuthorizationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6972
6976
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: MarketSelectionService, providedIn: 'root' }); }
|
|
6973
6977
|
}
|
|
6974
6978
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: MarketSelectionService, decorators: [{
|
|
@@ -6976,7 +6980,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
6976
6980
|
args: [{
|
|
6977
6981
|
providedIn: 'root'
|
|
6978
6982
|
}]
|
|
6979
|
-
}], ctorParameters: () => [{ type: i1$a.CookieService }, { type: i1$4.Router }, { type: BaseConfigService }, { type: SelectedMarketContext }, { type: i2$1.TranslateService }, { type: i1$2.OAuthService }] });
|
|
6983
|
+
}], ctorParameters: () => [{ type: i1$a.CookieService }, { type: i1$4.Router }, { type: BaseConfigService }, { type: SelectedMarketContext }, { type: i2$1.TranslateService }, { type: i1$2.OAuthService }, { type: AuthorizationService }] });
|
|
6980
6984
|
|
|
6981
6985
|
/* Market Selection Config */
|
|
6982
6986
|
class MarketSelectionConfig {
|