(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[399],{18616:(e,r,u)=>{Promise.resolve().then(u.bind(u,70245))},35695:(e,r,u)=>{"use strict";var a=u(18999);u.o(a,"usePathname")&&u.d(r,{usePathname:function(){return a.usePathname}}),u.o(a,"useRouter")&&u.d(r,{useRouter:function(){return a.useRouter}}),u.o(a,"useSearchParams")&&u.d(r,{useSearchParams:function(){return a.useSearchParams}})},70245:(e,r,u)=>{"use strict";u.r(r),u.d(r,{default:()=>s});var a=u(12115),t=u(35695);function s(){let e=(0,t.useRouter)();return(0,a.useEffect)(()=>{let r=localStorage.getItem("userData"),u=r?JSON.parse(r):null,a=(null==u?void 0:u.role_name)||(null==u?void 0:u.role)||"student";e.replace("staff"===a?"/dashboard/profile/staff":"/dashboard/profile/student")},[e]),null}}},e=>{var r=r=>e(e.s=r);e.O(0,[8441,1684,7358],()=>r(18616)),_N_E=e.O()}]);