export class WebComponentInterface{onBeforeLeave(e,t,n){if(this.hasUnfinishedChanges())return t.prevent()}onBeforeEnter(e,t,n){if("admin"===context.params.userName)return context.redirect(context.pathname+"?admin")}onAfterLeave(e,t,n){storeTimeSpentOnTheView()}onAfterEnter(e,t,n){sendVisitStatistics()}}