var __awaiter=this&&this.__awaiter||function(e,t,n,r){function s(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{o(r.next(e))}catch(e){a(e)}}function c(e){try{o(r["throw"](e))}catch(e){a(e)}}function o(e){e.done?n(e.value):s(e.value).then(i,c)}o((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,s,a,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return o([e,t])}}function o(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,s&&(a=i[0]&2?s["return"]:i[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,i[1])).done)return a;if(s=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;s=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];s=0}finally{r=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-6c8594d0.system.js","./p-8d4bb973.system.js","./p-835322bf.system.js","./p-9a8c9350.system.js","./p-19b00569.system.js","./p-6efcc4fd.system.js","./p-0eebae53.system.js","./p-d19c8a5d.system.js"],(function(e){"use strict";var t,n,r,s,a;return{setters:[function(e){t=e.r;n=e.h;r=e.H},function(e){s=e.o;a=e.a},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var i=e("ap_ben_oidc_callback_page",function(){function e(e){t(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.callbackMode;switch(e){case"sign-in":return[3,1];case"sign-out":return[3,3];case"silent-refresh":return[3,5]}return[3,7];case 1:return[4,s.signInRedirectCallbackAsync()];case 2:t.sent();this.navigateToHomePage();return[3,7];case 3:return[4,s.signOutRedirectCallbackAsync()];case 4:t.sent();return[3,7];case 5:return[4,s.silentRefreshCallbackAsync()];case 6:t.sent();return[3,7];case 7:return[2]}}))}))};e.prototype.render=function(){return n(r,null)};e.prototype.navigateToHomePage=function(){this.history.replace(a.getAppRootUrl())};return e}())}}}));