export default ($root: any) => { if ($root.$store.getters.isSignedIn) return; $root.dialog({ title: $root.$t('@.signin-required'), text: null }); throw new Error('signin required'); };