'use strict';

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

const index = require('./index-8277cbb3.js');
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
const index_module = require('./index.module-f8c8495f.js');

function usePortalLogout({ nextPage }) {
  index_module.setUserIdentity(undefined);
  index_module.jn.push({ pathname: nextPage, search: "" });
}

const PortalLogout = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.ignored = true;
    /**
     * Redirect participants to this page when they log out.
     *
     * @uiName Logout redirect path
     * @uiWidget pageSelect
     */
    this.nextPage = "/";
    domContextHooks_module.h$1(this);
  }
  disconnectedCallback() { }
  render() {
    index_module.isDemo() ? useLogoutDemo() : usePortalLogout(this);
  }
};
function useLogoutDemo({}) { }

exports.sqm_portal_logout = PortalLogout;
