import{r as c,i as e,l as t,P as u,j as o,T as l,a3 as h}from"./index-91e9700c.js";const m=({iprId:n,setHeaderIsLoading:s,setHeaderConError:d})=>{const[i,f]=c.useState(null);return c.useEffect(()=>{e.getData(n,["sol","wfiproc","solcrd"]).then(r=>{const a={};e.isTruthy(r.sol)&&(a.Nombre=r.sol.SolNom,a.DNI=r.sol.SolNumDoc),e.isTruthy(r.wfiproc)&&(a["Nro. de referencia"]=r.wfiproc.IPrRefId,a.Creación=r.wfiproc.IPrFchIni,a["Tramite Nro."]=r.wfiproc.IPrId),e.isTruthy(r.solcrd)&&(a.Disponible=e.formateaImporte(r.solcrd.SolDspImp)),f(a)}).catch(r=>{d(!0),console.error(r)}).finally(()=>{s(!1)})},[]),t(u,{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",backgroundColor:"rgb(229, 246, 253)",padding:"15px 25px"},variant:"elevation",elevation:0,children:[o(l,{variant:"h6",children:"Información"}),i===null?o("p",{children:"No se encontraron datos de cabecera"}):o(h,{direction:{xs:"column",sm:"row"},gap:2,children:Object.entries(i).map(r=>t(l,{variant:"subtitle2",style:{margin:"none",padding:"none"},children:[t("b",{children:[r[0],":"]})," ",e.isTruthy(r[1])?r[1]:"-"," "]},`dato_${r[0]}`))})]})};export{m as default};
