import{u as a,a as s,r as m,j as i,O as p}from"./index-DiwDH9aE.js";import{D as c}from"./DashboardLayout-CZTqwOUi.js";import{u as l}from"./cycleStore-Brm22ojq.js";import"./useAuth-DEWkUfUW.js";import"./authService-7ekyJsWC.js";import"./multiUserApiClient-CKPzIhIr.js";import"./endpoints-BUXROgJ9.js";import"./log-out-C3ghZd_W.js";import"./users-BLfoITz0.js";import"./graduation-cap-B3zNhUOw.js";import"./map-pin-C8p0ntE-.js";import"./school-CCnutwvi.js";import"./settings-L85C4ab2.js";import"./Can-w-eLoK-Q.js";import"./chevron-down-4ep2ftiY.js";import"./menu-Da05vmTL.js";const L=()=>{const o=a();s(t=>t.user);const e=s(t=>t.meta),r=l(t=>t.cycle);return m.useEffect(()=>{const t=e?.is_registration_completed||!1,n=r?.enrollment_open||!1;if(!t||n){o("/student/onboarding",{replace:!0});return}},[e?.is_registration_completed,r?.enrollment_open,o]),i.jsx(c,{children:i.jsx(p,{})})};export{L as default};
