import{f as j,r as n,l as u,a as g,tU as y,aW as f,c as C,b5 as L,tW as v,tX as z,j as e,B as d,w as H,T as s,bz as b,K as i}from"./index-7d3dbb9c.js";import{T,t as x}from"./TableCell-26014f2c.js";import{C as U}from"./CardContent-184f4e92.js";j(T)(({theme:t})=>({[`&.${x.head}`]:{backgroundColor:t.palette.grey[100],color:t.palette.primary},[`&.${x.body}`]:{fontSize:14}}));const V=()=>{var c,l,p;n.useState(0);const t=u(),{departmentHod:{selectedData:r,pageParams:h},mini:{miniLocationList:w,miniUsersList:E,miniLocationLoading:S,miniDepartments:A,miniLocationParams:B,miniUser_Type:P}}=g(m=>({departmentHod:y(m),mini:f(m)})),a=C(),{id:o}=L();return n.useEffect(()=>{a(v({id:o||""}))},[]),n.useEffect(()=>{r&&a(z({...h}))},[r]),e.jsx(e.Fragment,{children:e.jsx(d,{sx:{my:2},children:e.jsx(H,{children:e.jsxs(U,{children:[e.jsxs(s,{variant:"h4",sx:{display:"flex",alignItems:"center",gap:2,cursor:"pointer"},onClick:()=>{t("/pages/settings/department-hods",{relative:"path"})},children:[e.jsx(b,{}),"View Department HOD"]}),e.jsx(d,{p:4,children:e.jsx(i,{container:!0,spacing:2,children:e.jsx(i,{size:{xs:10},children:e.jsxs(i,{container:!0,spacing:2,children:[e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"User"}),e.jsx(s,{children:(c=r==null?void 0:r.user)==null?void 0:c.fullname})]}),e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"User Type"}),e.jsx(s,{children:r==null?void 0:r.user_type})]}),e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"Department"}),e.jsx(s,{children:(l=r==null?void 0:r.department)==null?void 0:l.name})]}),e.jsxs(i,{size:{xs:4},children:[e.jsx(s,{variant:"h5",color:"text.primary",children:"Location"}),e.jsx(s,{children:(p=r==null?void 0:r.location)==null?void 0:p.name})]})]})})})})]})})})})};export{V as default};
