import{r as registerInstance}from"./index-38ad4957.js";import{n as h}from"./dom-context-hooks.module-50442785.js";import{s as setUserIdentity,j as jn,i as isDemo}from"./index.module-b23fdad8.js";function usePortalLogout(t){var o=t.nextPage;setUserIdentity(undefined);jn.push({pathname:o,search:""})}var PortalLogout=function(){function t(t){registerInstance(this,t);this.ignored=true;this.nextPage="/";h(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){isDemo()?useLogoutDemo():usePortalLogout(this)};return t}();function useLogoutDemo(t){}export{PortalLogout as sqm_portal_logout};