(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5960],{1677:(e,t,l)=>{Promise.resolve().then(l.bind(l,21119))},21119:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>i});var r=l(95155),s=l(19749),a=l(45200);l(30035),l(74702),l(50421),l(4019),l(44980);var n=l(34141);function i(){let e,t=(0,s.c)(2),l=(0,n.k)(o);return t[0]!==l?(e=(0,r.jsx)(a.default,{role:l}),t[0]=l,t[1]=e):e=t[1],e}function o(e){return e.role}},34141:(e,t,l)=>{"use strict";l.d(t,{k:()=>r});let r=(0,l(49723).v)()(e=>({firstname:"",lastname:"",role:void 0,setName:({firstname:t,lastname:l})=>e(()=>({firstname:t,lastname:l})),setRole:t=>e(()=>({role:t})),reset:()=>e(()=>({firstname:"",lastname:"",role:void 0}))}))},44980:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var r=l(95155),s=l(19749),a=l(73981),n=l(73549),i=l.n(n),o=l(89032);function c(e){let t,l,n,c,u=(0,s.c)(10),{imageUrl:d,name:m,size:f,className:b,role:h}=e,v=void 0===m?"User":m,j=void 0===f?"md":f;u[0]===Symbol.for("react.memo_cache_sentinel")?(t={sm:"w-8 h-8",md:"w-12 h-12",lg:"w-20 h-20",xl:"w-32 h-32"},u[0]=t):t=u[0];let p=t;u[1]===Symbol.for("react.memo_cache_sentinel")?(l={sm:16,md:24,lg:32,xl:48},u[1]=l):l=u[1];let w=l,x="student"===(void 0===h?"student":h)?"/profile":"/admin/profile",_=`
        relative rounded-full overflow-hidden 
        bg-linear-to-br from-primary-400 to-primary-600 
        flex items-center justify-center shadow-md cursor-pointer
        ${p[j]}
        ${void 0===b?"":b}
      `;return u[2]!==d||u[3]!==v||u[4]!==j?(n=d?(0,r.jsx)(a.default,{src:d,alt:v,fill:!0,className:"object-cover"}):(0,r.jsx)(o.x$1,{className:"text-white",size:w[j]}),u[2]=d,u[3]=v,u[4]=j,u[5]=n):n=u[5],u[6]!==x||u[7]!==_||u[8]!==n?(c=(0,r.jsx)(i(),{href:x,className:_,children:n}),u[6]=x,u[7]=_,u[8]=n,u[9]=c):c=u[9],c}},49723:(e,t,l)=>{"use strict";l.d(t,{v:()=>n});var r=l(12115);let s=e=>{let t,l=new Set,r=(e,r)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=r?r:"object"!=typeof s||null===s)?s:Object.assign({},t,s),l.forEach(l=>l(t,e))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>n,subscribe:e=>(l.add(e),()=>l.delete(e))},n=t=e(r,s,a);return a},a=e=>{let t=e?s(e):s,l=e=>(function(e,t=e=>e){let l=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(l),l})(t,e);return Object.assign(l,t),l},n=e=>e?a(e):a}},e=>{e.O(0,[6711,4613,5177,4395,8031,3549,3981,5200,8441,9826,7358],()=>e(e.s=1677)),_N_E=e.O()}]);