import{cU as t}from"./D-NqFN1U.js";class r{constructor(n,e,a){this.name=n,this.order=e,this.navigationGuard=a}isCurrent(n){return this.getAssociatedRouteName()==n.name}isComplete(n,e){switch(this.name){case"signup":return n.name!=="onboarding-signup";case"plans":return n.name!=="onboarding-plans"&&n.name!=="onboarding-signup"&&e.hasPlan();case"menu":return n.name==="onboarding-checkout";default:return!1}}isUpcoming(n){switch(this.name){case"plans":return n.name==="onboarding-signup";case"menu":return["onboarding-signup","plans"].indexOf(n.name)>-1;case"checkout":return n.name!=="onboarding-checkout";default:return!1}}navigate(n){const e=n.currentRoute.value.name,a=this.getAssociatedRouteName();if(a!==e&&(!this.navigationGuard||this.navigationGuard()))return t({name:a,query:n.currentRoute.value.query})}getAssociatedRouteName(){return{signup:"onboarding-signup",plans:"onboarding-plans",menu:"menus",checkout:"onboarding-checkout"}[this.name]}}export{r as R};
//# sourceMappingURL=CUpIs38M.js.map