"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var platform_browser_dynamic_1 = require("@angular/platform-browser-dynamic"); var app_module_1 = require("./app/app.module"); var environment_1 = require("./environments/environment"); if (environment_1.environment.production) { (0, core_1.enableProdMode)(); } function loggerCallback(logLevel, message) { console.log('MSAL Angular: ', message); } (0, platform_browser_dynamic_1.platformBrowserDynamic)().bootstrapModule(app_module_1.AppModule) .catch(function (err) { return console.error(err); }); /*fetch('/assets/configuration.json') .then(response => response.json()) .then(json => { platformBrowserDynamic([ { provide: MSAL_INSTANCE, useValue: new PublicClientApplication({ auth: json.msal.auth, cache: json.msal.cache, system: { loggerOptions: { loggerCallback, logLevel: LogLevel.Info, piiLoggingEnabled: false } } }) }, { provide: MSAL_GUARD_CONFIG, useValue: { interactionType: json.guard.interactionType, authRequest: json.guard.authRequest, loginFailedRoute: json.guard.loginFailedRoute } as MsalGuardConfiguration }, { provide: MSAL_INTERCEPTOR_CONFIG, useValue: { interactionType: json.interceptor.interactionType, protectedResourceMap: new Map(json.interceptor.protectedResourceMap) } as MsalInterceptorConfiguration }, ]) .bootstrapModule(AppModule) .catch(err => console.error(err)); });*/ //# sourceMappingURL=main.js.map