"use strict";exports.id=62672,exports.ids=[62672],exports.modules={62672:(a,b,c)=>{c.r(b),c.d(b,{default:()=>k});var d=c(48249),e=c(67484),f=c(19099),g=c(63754),h=c(82697);c(24403);var i=c(74741);function j({title:a,children:b}){return(0,d.jsx)(h.cP,{title:a,children:b})}function k(){let a=(0,f.useParams)();"string"==typeof a?.userId&&a.userId;let[b,c]=(0,e.useState)(null),[k,l]=(0,e.useState)(!0),m=b?.user,n=b?.profile,o=b?.enrollment,p=o?.schoolClass?.displayName,q=(0,i.oG)(m?.profileImage),r=(m?.fullName||"?").split(/\s+/).filter(Boolean).slice(0,2).map(a=>a[0]?.toUpperCase()).join("");return(0,d.jsx)(g.V,{title:k?"Student details":m?.fullName||"Student details",description:p?`${p}${o?.rollNumber?` \xb7 Roll ${o.rollNumber}`:""}`:"Student profile",children:k?(0,d.jsxs)("div",{className:"space-y-4 animate-pulse",children:[(0,d.jsx)("div",{className:"h-28 rounded-lg bg-slate-100"}),(0,d.jsx)("div",{className:"h-40 rounded-lg bg-slate-100"})]}):b?(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-4 rounded-lg border border-slate-100 bg-white p-5 shadow-sm sm:flex-row sm:items-center",children:[(0,d.jsx)("div",{className:"flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary-50 text-lg font-semibold text-primary-800",children:m?.profileImage&&q?(0,d.jsx)("img",{src:q,alt:"",className:"h-full w-full object-cover"}):r}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-xl font-semibold text-slate-900",children:m?.fullName}),(0,d.jsx)("p",{className:"mt-1 text-sm text-slate-500",children:[p,m?.studentCode?`ID ${m.studentCode}`:null,o?.rollNumber?`Roll ${o.rollNumber}`:null].filter(Boolean).join(" \xb7 ")||m?.email})]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:[(0,d.jsxs)(j,{title:"Account",children:[(0,d.jsx)(h.CL,{label:"Full name",value:m?.fullName}),(0,d.jsx)(h.CL,{label:"Email",value:m?.email}),(0,d.jsx)(h.CL,{label:"Phone",value:m?.phone}),(0,d.jsx)(h.CL,{label:"Student code",value:m?.studentCode})]}),(0,d.jsxs)(j,{title:"Class & admission",children:[(0,d.jsx)(h.CL,{label:"Class",value:p}),(0,d.jsx)(h.CL,{label:"Roll number",value:o?.rollNumber}),(0,d.jsx)(h.CL,{label:"Admission number",value:n?.admissionNumber}),(0,d.jsx)(h.CL,{label:"Admission date",value:n?.admissionDate}),(0,d.jsx)(h.CL,{label:"Category",value:n?.category?.name}),(0,d.jsx)(h.CL,{label:"Group",value:n?.group?.name}),(0,d.jsx)(h.CL,{label:"Previous school",value:n?.previousSchool})]}),(0,d.jsxs)(j,{title:"Personal",children:[(0,d.jsx)(h.CL,{label:"Date of birth",value:n?.dateOfBirth}),(0,d.jsx)(h.CL,{label:"Gender",value:n?.gender}),(0,d.jsx)(h.CL,{label:"Blood group",value:n?.bloodGroup}),(0,d.jsx)(h.CL,{label:"Address",value:n?.address}),(0,d.jsx)(h.CL,{label:"City",value:n?.city}),(0,d.jsx)(h.CL,{label:"District",value:n?.district}),(0,d.jsx)(h.CL,{label:"Country",value:n?.country})]}),(0,d.jsxs)(j,{title:"Parents & guardian",children:[(0,d.jsx)(h.CL,{label:"Father",value:n?.fatherName}),(0,d.jsx)(h.CL,{label:"Father phone",value:n?.fatherPhone}),(0,d.jsx)(h.CL,{label:"Father email",value:n?.fatherEmail}),(0,d.jsx)(h.CL,{label:"Mother",value:n?.motherName}),(0,d.jsx)(h.CL,{label:"Mother phone",value:n?.motherPhone}),(0,d.jsx)(h.CL,{label:"Mother email",value:n?.motherEmail}),(0,d.jsx)(h.CL,{label:"Guardian",value:n?.guardianName}),(0,d.jsx)(h.CL,{label:"Guardian relation",value:n?.guardianRelation?`${n.guardianRelation}${n.guardianPhone?` \xb7 ${n.guardianPhone}`:""}`:n?.guardianPhone})]})]})]}):(0,d.jsx)(h.i0,{title:"Student not found",description:"This student may not be in your assigned class."})})}c(91115)}};