'use strict';
import { isLoggedIn, setAfterLoginRedirectUrl } from '../../../fd-toolbox/auth/internal-login-states.js';
import { routes } from '../../../fd-toolbox/routing/routes.js';
import { navigate } from '../../../fd-toolbox/redirect/redirect-functions.js';
import { logout } from './logins.js';

var __defProp=Object['defineProperty'],__name=(_0xa3aa3b,_0x5a9b5d)=>__defProp(_0xa3aa3b,'name',{'value':_0x5a9b5d,'configurable':!![]});function canActivateAuth(){if(isLoggedIn())return !![];return setAfterLoginRedirectUrl(),logout(),navigate(routes['login']),![];}__name(canActivateAuth,'canActivateAuth');

export { canActivateAuth };
