'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-d685a739.js');
const authentication_service = require('./authentication.service-12f9ead3.js');
require('./Option-98dab0b8.js');
require('./index-4f00f593.js');
require('./datorama-akita-bb801820.js');
require('./scheduleArray-0ba3d6f8.js');
require('./delay-e91dba76.js');
require('./filter-c38164e6.js');

const OidcCallbackPage = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  async componentWillLoad() {
    switch (this.callbackMode) {
      case 'sign-in':
        await authentication_service.oidcService.signInRedirectCallbackAsync();
        this.navigateToHomePage();
        break;
      case 'sign-out':
        await authentication_service.oidcService.signOutRedirectCallbackAsync();
        break;
      case 'silent-refresh':
        await authentication_service.oidcService.silentRefreshCallbackAsync();
        break;
    }
  }
  render() {
    return index.h(index.Host, null);
  }
  navigateToHomePage() {
    this.history.replace(authentication_service.appConfigurationService.getAppRootUrl());
  }
};

exports.ap_ben_oidc_callback_page = OidcCallbackPage;
