import{V as o}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89265.js";import{u as e}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892624.js";import{r as t}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892623.js";const r=()=>{const{user:a,session:s}=o.getState();s.is_auth&&a.start_form?e.setState({active:!1}):(e.setState({active:!0}),t.navigate({to:"/welcome-form"}))},c=()=>{e.setState({active:!1}),t.navigate({to:"/"})},f=()=>{switch(t.state.location.pathname){case"/":r();break;case"/welcome-form":c();break;default:e.setState({active:!1});break}};export{f as a,r as n};
