PageSourceSearch

https://www.comfama.com/portal-servicios/component---src-pages-per…dio-de-vivienda-tsx-06c3025fe65dd662c73d.js

js comfama.com collected 2026-09-24 17:18:08 UTC 24,349 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcomfama_portalservicios_archetype=self.webpackChunkcomfama_portalservicios_archetype||[]).push([[6704],{3026:function(e,o,t){var a=t(34164),n=t(74848);o.A=({itemList:e,currentIndex:o,title:t,subtitle:i,titleType:s,isTwo:c})=>{const r=e=>(0,a.A)("m-payment-stepper__item",{"--past":o>e,__active:o===e,"--pre-past":1===e&&.9===o}),u=(0,a.A)("m-payment-stepper__progress-bar-wrapper",{"--first":0===o,"--medium":1===o||c,"--next":.9===o,"--last":2===o,"--two":!!c,"two--left":c}),l=(0,a.A)("m-payment-stepper__content",{"stepper-two":!!c}),m=(0,a.A)("m-payment-stepper__item-name",{"--two":!!c}),d=(0,a.A)("m-payment-stepper",{"--two":!!c});return(0,n.jsxs)("div",{className:d,children:[t&&i&&(0,n.jsx)("div",{className:"m-payment-stepper__headings",children:"h1"===s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{className:"m-payment-stepper__headings__title",children:t}),(0,n.jsx)("h2",{className:"m-payment-stepper__headings__sub-title",children:i})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"m-payment-stepper__headings__title",children:t}),(0,n.jsx)("h3",{className:"m-payment-stepper__headings__sub-title",children:i})]})}),(0,n.jsxs)("div",{className:l,children:[e.map((e,o)=>(0,n.jsxs)("div",{className:r(o),children:[(0,n.jsx)("div",{className:"m-payment-stepper__item-number",children:(0,n.jsx)("span",{children:o+1})}),(0,n.jsx)("span",{className:m,children:e})]},`m-payment-stepper__item${o}`)),(0,n.jsx)("div",{className:u,children:(0,n.jsx)("div",{className:"m-payment-stepper__progress-bar"})})]})]})}},5290:function(e,o,t){t.d(o,{Lr:function(){return K},AL:function(){return Z},d2:function(){return Q},Bk:function(){return U},Y5:function(){return W},hp:function(){return H},XJ:function(){return R},DB:function(){return z},u7:function(){return J},ji:function(){return I},Pt:function(){return O},UX:function(){return X},ex:function(){return d},CX:function(){return A},qc:function(){return k},GG:function(){return h},uJ:function(){return g},hn:function(){return v},QS:function(){return D},VY:function(){return j},r4:function(){return T},pR:function(){return q},xW:function(){return N},ZY:function(){return G},gw:function(){return f},vw:function(){return x},Xt:function(){return Y},he:function(){return P},n6:function(){return E},Ft:function(){return b},cl:function(){return V},aG:function(){return _},lg:function(){return $},iy:function(){return y},mO:function(){return S},M:function(){return F},K2:function(){return w},ko:function(){return B},Dc:function(){return p},WU:function(){return L},ui:function(){return C},_8:function(){return M}});var a=t(84166),n=t(48314),i=t(89179),s=t(51145);const c=a.A.create(),r=new s.A;c.interceptors.response.use(e=>e,e=>{const o=e.config,{response:{status:t}}=e;return 403===t||401===t?u(o):Promise.reject(e)});const u=async e=>{try{e._retry=!0,await l(e)}catch(o){console.log(o)}},l=async e=>{const o=r.get("token"),t={headers:{apikey:`${n.aE}`}},i={action:"getJWT"};try{const s=await a.A.post(`${o}`,i,t);if(200===s.status)return e.headers.Authorization=`Bearer ${s.data.data.id_token}`,e.headers.apikey=`${n.gQ}`,e}catch(s){console.log(s)}},m=n.oX+"/afiliaciones/api/v1/",d=async(e,o,t,a="",n="")=>i.S.get(`${m}consultaCertificado?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}&numeroDocumentoEmpresa=${a}`,{headers:{Authorization:`${t}`}}),p=async(e,o,t,a,n="",s="")=>i.S.get(`${m}consultarAfiliacionRetirado${a?"Empresa":""}?tipoDocumentoEmpresa=${s}&numeroDocumentoEmpresa=${n}&tipoDocumento=${o}&numeroDocumento=${e}`,{headers:{Authorization:`${t}`}}),f=async(e,o,t)=>i.S.get(`${n.oX}/certificados/proveedores/api/v1/CertificadoExperiencia?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),h=async(e,o,t="",a="")=>i.S.get(`${m}consultarCarnetPdfAfiliacionTitularTrabajador?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${a}&numeroDocumentoEmpresa=${t}`),g=async(e,o,t="",a="")=>i.S.get(`${m}consultarCarnetPdfAfiliacionPacTrabajador?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${a}&numeroDocumentoEmpresa=${t}`),$=async(e,o)=>i.S.post(`${m}${o}`,e),_=async e=>i.S.post(`${m}descargarMasivoAfiliacion`,e),y=async e=>i.S.post(`${m}descargarMasivoAfiliacionCarnet`,e),x=async(e,o,t,a)=>i.S.get(`${m}consultarTrabajadorMasivoHistorico?numeroDocumento=${e}&numeroDocumentoEmpresa=${t}&tipoDocumento=${o}&tipoDocumentoEmpresa=${a}`),v=async(e,o,t,a,s,c,r)=>i.S.get(`${n.oX}/reportecompensacion/api/v1/consultaReporteCompensacion?anyo=${a}${s&&`&documentoContable=${s}`}${c&&`&fechaDesde=${c}`}${r&&`&fechaHasta=${r}`}&numeroDocumento=${e}&tipoConsulta=${t}&tipoDocumento=${o}`),b=async(e,o,t)=>i.S.get(`${m}listarAfiliadosCarnet?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),j=async(e,o,t)=>i.S.get(`${m}consultarCarnetPdfAfiliacionTitular?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),D=async(e,o,t)=>i.S.get(`${m}consultarCarnetPdfAfiliacionPac?numeroDocumentoPac=${e}&tipoDocumentoPac=${o}
1`,{headers:{Authorization:`${t}`}}),A=async(e="",o="",t)=>i.S.get(`${m}consultaCertificadoEmpleador?tipoDocumento=${o}&numeroDocumento=${e}`,{headers:{Authorization:`${t}`}}),N=async(e,o)=>i.S.get(`${n.oX}/certificadodeudas/api/v1/consultaCertificadoPersona?numeroDocumento=${e}&tipoDocumento=${o}`),C=async(e,o,t)=>i.S.get(`${n.oX}/entregasubsidio/api/v1/consultaEntregaSubsidio?numeroDocumento=${e}&periodo=${t}&tipoDocumento=${o}`),S=async(e,o,t,a)=>i.S.get(`${n.oX}/cuotamonetaria/api/v1/consultaCuotaMonetaria?numeroDocumento=${e}&periodoFinal=${t}&periodoInicial=${o}&tipoDocumento=${a}`),w=async(e,o,t,a)=>i.S.get(`${n.oX}/aportes/api/v1/consultaCertificadoPagoAporte?numeroDocumento=${e}&tipoDocumento=${a}&periodoInicio=${o}&periodoFin=${t}`),P=async(e,o,t)=>i.S.get(`${n.oX}/postulacionvivienda/api/v1/consultaEstadoPostulacion?numeroDocumento=${e}&tipoDocumento=${o}${t&&`&numeroFormulario=${t}`}`),k=async(e,o)=>i.S.get(`${n.oX}/cesde/api/v1/getStudentByIdentification/${o}?identificationType=${e}`),T=async(e,o)=>i.S.get(`${n.oX}/certificadodeudas/api/v1/consultaCertificadoEmpresa?numeroDocumento=${e}&tipoDocumento=${o}`),E=async e=>i.S.get(`${n.oX}/declaracionrenta/api/v1/certificado/${e}`),q=async(e,o,t,a)=>i.S.get(`${n.oX}/certificadodeudas/api/v1/consultaCertificadoTrabajador?numeroDocumento=${e}&numeroDocumentoEmpresa=${t}&tipoDocumento=${o}&tipoDocumentoEmpresa=${a}`),I=async({numeroDocumento:e,periodoAnyos:o,tipoDocumento:t})=>i.S.get(`${m}consultaCertificadoFosfec?numeroDocumento=${e}&periodoAnyos=${o}&tipoDocumento=${t}&applicationId=1`),O=async({numeroDocumento:e,tipoDocumento:o})=>i.S.get(`${n.oX}/declaracionrentasubsidio/api/v1/declaracionRentaSubsidio?numeroDocumento=${e}&tipoDocumento=${o}&applicationId=1`),X=async({anyo:e,bimester:o,id:t,certificateType:a,idType:s})=>i.S.get(`${n.U$}consultarCertificadoRetencion?anyo=${e}&bimestre=${o}&numeroDocumento=${t}&tipoCertificado=${a}&tipoDocumento=${s}`),B=async()=>i.S.get(`${n.U$}listarPeriodosIva`),L=async()=>i.S.get(`${n.U$}listarTiposCertificados`),z=async({tipoDocumento:e,numeroDocumento:o,jwt:t,isBussinesTab:i})=>{const s={headers:{Authorization:`Bearer ${t}`}},c=`${n.oX}/aportes/api/v1/estado-cuenta-o-certificado`.concat(i?"":"-indUPensionado",`?numeroDocumento=${o}&tipoDocumento=${e}`);return a.A.get(c,s)},F=async({tipoDocumento:e,numeroDocumento:o})=>i.S.get(`${n.oX}/afiliaciones/api/v1/consultarCertificadoNoAfiliado?tipoDocumento=${e}&numeroDocumento=${o}`),R=async({documentType:e,documentNumber:o,jwt:t})=>{const a={headers:{apikey:`${n.hV}`,Authorization:`Bearer ${t}`}};return c.get(`${n.xQ}${e}/${o}`,a)},V=async(e,o,t)=>i.S.get(`${n.ht}listarEventosAsistencia?anyo=${e}&numeroDocumento=${o}&tipoDocumento=${t}`),J=async(e,o,t,a)=>i.S.get(`${n.ht}
1consultarCertificadoAsistencia?curso=${e}&numeroDocumento=${t}&fechaInicio=${o}&tipoDocumento=${a}`),M=async(e,o,t)=>{const a={document:e,documentType:o,email:t,id:6};return i.S.post(`${n.MR}`,a)},U=async(e,o)=>i.S.get(`${n.oX}/creditoestadocuenta/api/v1/consultaCreditoEstadoCuenta?numeroDocumento=${e}&tipoDocumento=${o}`),W=async(e,o,t)=>i.S.get(`${n.oX}/creditoestadocuenta/api/v1/certificadoCreditoEstadoCuenta?numeroDocumento=${e}&tipoDocumento=${o}&numeroCredito=${t}`),Y=async(e,o,t,a,s,c)=>i.S.get(`${n.oX}/afiliaciones/api/v1/consultarAfiliacionHistorico?fechaFin=${c}&fechaInicio=${s}&numeroDocumento=${e}${""!==t?`&numeroDocumentoEmpresa=${t}`:""}&tipoDocumento=${o}${""!==a?`&tipoDocumentoEmpresa=${a}`:""}`),G=async(e,o,t,a)=>{const s=`?documentType=${o}&documentNumber=${e}&creditNumber=${t}&user=${a}`,c=`${n.oX}/certificadocredito/api/v1/credits/receipt-payment${s}`;return i.S.get(c)},Q=(e,o,t)=>{const a=`?documentType=${o}&documentNumber=${e}&page=1&pageSize=10&user=${t}`,s=`${n.oX}/certificadocredito/api/v1/credits/peacedmind-pdf${a}`;return i.S.get(s)},H=async(e,o)=>{const t=`?documentType=${o}&page=1&documentNumber=${e}&pageSize=50`,a=`${n.oX}/certificadocredito/api/v1/credits/account-status${t}`;return i.S.get(a)},K=e=>i.S.post(`${n.oX}/certificadocredito/api/v1/credits/account-pdf`,e),Z=e=>i.S.post(`${n.oX}/certificadocredito/api/v1/credits/debt-pdf`,e)},18395:function(e){e.exports=JSON.parse('[{"name":"Cédula de Ciudadania","id":"1","typaDocSAP":"CO1C"},{"name":"Documento Extranjero","id":"0","typaDocSAP":"CO1D"},{"name":"Cédula Extranjería","id":"5","typaDocSAP":"CO1E"},{"name":"Registro Civil","id":"3","typaDocSAP":"CO1L"},{"name":"Nit","id":"6","typaDocSAP":"CO1N"},{"name":"Pasaporte","id":"8","typaDocSAP":"CO1P"},{"name":"Salvoconducto de permanencia","id":"0","typaDocSAP":"CO1R"},{"name":"Sin identificacion del","id":"0","typaDocSAP":"CO1S"},{"name":"Tarjeta de identidad","id":"2","typaDocSAP":"CO1T"},{"name":"Numero Unico de Iden","id":"7","typaDocSAP":"CO1U"},{"name":"Permiso especial de permanencia","id":"9","typaDocSAP":"CO1V"},{"name":"Tarjeta de Extranjería","id":"2","typaDocSAP":"CO1X"},{"name":"Permiso por Protección Temporal","id":"11","typaDocSAP":"CO1W"}]')},33320:function(e){e.exports=JSON.parse('[{"name":"Cédula de Ciudadania","id":"1","typaDocSAP":"CO1C","legal":"02"},{"name":"Cédula Extranjería","id":"5","typaDocSAP":"CO1E","legal":"03"},{"name":"NIT","id":"6","typaDocSAP":"CO1N","legal":"06"},{"name":"Pasaporte","id":"8","typaDocSAP":"CO1P","legal":"05"},{"name":"Permiso especial de permanencia","id":"9","typaDocSAP":"CO1V","legal":"15"},{"name":"Permiso por Protección Temporal","id":"11","typaDocSAP":"CO1W"},{"name":"Registro Civil","id":"3","typaDocSAP":"CO1L","legal":"11"},{"name":"Tarjeta de identidad","id":"2","typaDocSAP":"CO1T","legal":"04"}]')},54775:function(e,o,t){var a=t(34164),n=t(74848);o.A=e=>{const{checkActive:o,checkClick:t,square:i,className:s}=e,c=(0,a.A)({"a-checkbox":!0,square:i,[s]:s,"square--active":i&&o});return(0,n.jsx)("div",{className:c,onClick:t,"data-testid":"checkbox",children:i&&o?(0,n.jsx)("i",{className:"icon-check1"}):(0,n.jsx)(n.Fragment,{children:o&&(0,n.jsx)("div",{className:"a-checkbox--active"})})})}},81865:function(e,o,t){var a=t(12786);o.A=e=>a.filter(o=>o.tipoDocumentoSAP===e)?a.filter(o=>o.tipoDocumentoSAP===e)[0]:"Tipo de documento no encontrado"},99138:function(e,o,t){t.r(o),t.d(o,{default:function(){return T}});var a=t(64810),n=t(96540),i=t(88767),s=t(34164),c=t(73413),r=t(49785),u=t(51145),l=t(54775),m=t(44063),d=t(3887),p=t(83793),f=t(18875),h=t(81865),g=t(29900),$=t(8151),_=t(18395),y=t(5290),x=t(33320),v=t(64691),b=t(74848);var j=({contentInfo:e,setCurrentStep:o,setPostulationInfoData:t})=>{var a;const{register:i,setValue:j,handleSubmit:D,formState:{errors:A}}=(0,r.mN)(),N=(0,n.useRef)(),{gigyaContext:C,userInfoContext:S}
1=(0,n.useContext)(v.A),[w,P]=(0,n.useState)(!1),[k,T]=(0,n.useState)(!1),[E,q]=(0,n.useState)(!1),[I,O]=(0,n.useState)(!1),[X,B]=(0,n.useState)(""),[L,z]=(0,n.useState)(!1),F=new u.A,R=e=>{"one"===e?(T(!k),j("termsOne",!k)):(q(!E),j("termsTwo",!E))},V=(0,s.A)({"m-request-form-shift__checkbox__size":!0,"m-request-form-shift__checkbox--error":A.terms}),J=e=>{"one"===e?(T(!k),j("termsOne",!k)):(q(!E),j("termsTwo",!E))};(0,n.useEffect)(()=>{N&&N.current&&N.current.execute()},[]);const M=async e=>{z(!0);const{documentNumber:a,documentType:n,formNumber:i}=e,s=(0,h.A)(n).tipoDocumentoLegdos,c=i.toString().padStart(10,"0");if(w){var r,u,l,m,d,p,f,$;(0,g.A)(`${null==C||null===(r=C.gigyaAccount)||void 0===r?void 0:r.profile.firstName} ${null!=C&&null!==(u=C.gigyaAccount)&&void 0!==u&&u.data.secondName?`${C.gigyaAccount.data.secondName} `:""}${null==C||null===(l=C.gigyaAccount)||void 0===l?void 0:l.profile.lastName}${null!=C&&null!==(m=C.gigyaAccount)&&void 0!==m&&m.data.secondLastName?` ${C.gigyaAccount.data.secondLastName}`:""}`,null==C||null===(d=C.gigyaAccount)||void 0===d?void 0:d.data.docNumber,null==C||null===(p=C.gigyaAccount)||void 0===p?void 0:p.data.docType,null==C||null===(f=C.gigyaAccount)||void 0===f?void 0:f.profile.email,"click","CertificadosYConsultas :: ConsultaPostulacionVivienda :: } ClickBotonConsultar",null===($=S.data)||void 0===$?void 0:$.userJwt)}else{var _,v;const o=null===(_=x.filter(o=>o.typaDocSAP===e.documentType||o.name===e.documentType))||void 0===_||null===(v=_[0])||void 0===v?void 0:v.legal;(0,y._8)(e.documentNumber,o,"[email protected]"),(0,g.A)("",e.documentNumber,e.documentType,"[email protected]","click","CertificadosYConsultas :: ConsultaPostulacionVivienda :: } ClickBotonConsultar",F.get("token"))}const b=await(0,y.he)(a,s,c);if(200===b.status&&200===b.data.status)t(b.data.data),z(!1),o(2);else{var j;if(404===b.data.status){t({estadoPostulacion:"Not found"}),z(!1),o(2)}z(!1),U(null==b||null===(j=b.data)||void 0===j?void 0:j.userMessage)}},U=e=>O((0,b.jsx)(m.A,{message:e,position:"up-right-small",setActiveToast:O,size:"small"}));return(0,n.useEffect)(()=>{if(C.gigyaAccount){const e=_.filter(e=>{var o;return e.typaDocSAP===(null==C||null===(o=C.gigyaAccount)||void 0===o?void 0:o.data.docType)})[0].name;B(e),P(!0),j("documentType",e),j("documentNumber",C.gigyaAccount.data.docNumber),T(!0),q(!0)}},[]),(0,b.jsxs)(b.Fragment,{children:[I&&(0,b.jsx)(b.Fragment,{children:I}),(0,b.jsx)(c.A,{ref:N,size:"invisible",sitekey:$.E}),(0,b.jsx)(f.A,{desiredTab:"none",buttonCopy:e.referencias[0].boton[0].copy,buttonEvent:()=>{D(M)()},note:{image:e.secciones[0].imagen[0],title:e.secciones[0].imagen[0].title,content:e.secciones[0].descripcion},notePosition:"left",disableButton:!(k&&E),loader:L,children:(0,b.jsxs)("form",{onSubmit:D(M),className:"m-request-form",children:[(0,b.jsx)("div",{className:"m-request-form__input",children:(0,b.jsx)(p.A,{label:e.referencias[0].referencias[0].nombre?e.referencias[0].referencias[0].nombre:"Tipo de documento",name:"documentType",register:i,options:e.referencias[0].referencias[0].listaJson,setValue:j,square:!0,validationRules:{required:{value:!0,message:"Campo requerido"}},defaultValue:{name:e.referencias[0].referencias[0].subtitulo?e.referencias[0].referencias[0].subtitulo:"Selecciona una opción",value:""},forceChangeValue:(null==C?void 0:C.gigyaAccount)&&{name:X,value:null==C||null===(a=C.gigyaAccount)||void 0===a?void 0:a.data.docType},error:A.requestType,required:!0,disabled:w})}),(0,b.jsx)("div",{className:"m-request-form__input",children:(0,b.jsx)(d.A,{label:e.referencias[0].referencias[1].nombre?e.referencias[0].referencias[1].nombre:"Número de documento",name:"documentNumber",maxLength:"25",type:"number",square:!0,placeholder:e.referencias[0].referencias[1].subtitulo?e.referencias[0].referencias[1].subtitulo:"Escribe tu número de documento",register:i,validationRules:{required:{value:!0,message:"Campo requerido"},pattern:{value:/^[{0-9}]+$/,message:"No se permiten caracteres especiales"},maxLength:{value:25,message:"El documento no debe superar los 25 dígitos"},minLength:{value:5,message:"El documento debe tener al menos 5 dígitos"}},setValue:j,required:!0,error:A.documentNumber,disabled:w})}),!w&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"m-request-form__input",children:(0,b.jsx)(d.A,{label:e.referencias[0].referencias[2].nombre?e.referencias[0].referencias[2].nombre:"Número de formulario",name:"formNumber",maxLength:"20",type:"number",square:!0,placeholder:e.referencias[0].referencias[2].subtitulo?e.referencias[0].referencias[2].subtitulo:"Escribe tu número de formulario",register:i,validationRules:{required:{value:!0,message:"Campo requerido"},pattern:{value:/^[{0-9}]+$/,message:"No se permiten caracteres especiales"},maxLength:{value:20,message:"El documento no debe superar los 20 dígitos"},minLength:{value:5,message:"El documento debe tener al menos 5 dígitos"}},tooltip:e.referencias[0]&&e.referencias[0].referencias[6]&&(0,b.jsxs)("div",{className:"m-housing-alowance-form__tooltip",children:[e.referencias[0].referencias[6].nombre&&(0,b.jsx)("h3",{className:"m-housing-alowance-form__tooltip-title",children:e.referencias[0].referencias[6].nombre}),e.referencias[0].referencias[6].subtitulo&&(0,b.jsx)("p",{className:"m-housing-alowance-form__tooltip-subtitle",children:e.referencias[0].referencias[6].subtitulo})]}),setValue:j,required:!w,error:A.formNumber})}),(0,b.jsxs)("div",{className:"m-request-form-shift__checkContainer",children:[(0,b.jsxs)("aside",{className:"m-request-form-shift__checkContainer__checkbox",children:[(0,b.jsx)("input",{className:"checkbox",type:"checkbox",...i("termsOne",{required:{value:!0,message:"Campo requerido"}})}),(0,b.jsx)(l.A,{square:!0,checkActive:k,checkClick:()=>R("one"),className:V}),(0,b.jsxs)("label",{className:"label",onClick:()=>J("one"),children:[`${e.referencias[0].referencias[4].nombre} `,(0,b.jsx)("a",{className:"link",href:e.referencias[0].referencias[4].redireccion,target:"_blank",rel:"noopener noreferrer",children:e.referencias[0].referencias[4].copyBoton}),` ${e.referencias[0].referencias[4].subtitulo}`]})]}),(0,b.jsxs)("aside",{className:"m-request-form-shift__checkContainer__checkbox",children:[(0,b.jsx)("input",{className:"checkbox",type:"checkbox",...i("termsTwo",{required:{value:!0,message:"Campo requerido"}})}),(0,b.jsx)(l.A,{square:!0,checkActive:E,checkClick:()=>R("two"),className:V}),(0,b.jsxs)("label",{className:"label",onClick:()=>J("two"),children:[`${e.referencias[0].referencias[5].nombre} `,(0,b.jsx)("a",{className:"link",href:e.referencias[0].referencias[5].redireccion,target:"_blank",rel:"noopener noreferrer",children:e.referencias[0].referencias[5].copyBoton}),` ${e.referencias[0].referencias[5].subtitulo}`]})]})]})]})]})})]})},D=t(3026),A=t(5588),N=t(17325),C=t(99996);var S=({contentInfo:e,states:o,postulationData:t,onClickBack:a,buttonLoader:i})=>
1{const[s,c]=(0,n.useState)(null),[r,u]=(0,n.useState)(null),[l,m]=(0,n.useState)(null);(0,n.useEffect)(()=>{c(o[t.idEstado]||o.E0000),u(e[1])},[]);const d=e=>null!=e&&e.gatsbyImage?(0,b.jsx)(A.G,{image:e.gatsbyImage,alt:e.title,title:e.title,loading:"eager"}):(0,b.jsx)("img",{src:e.file.url,alt:e.title});return s?(0,b.jsxs)("div",{className:"o-state-of-housing-allowance",children:[(0,b.jsxs)("article",{className:"o-state-of-housing-allowance__card",children:[(0,b.jsx)("figure",{className:"o-state-of-housing-allowance__image",children:d(s.media)}),(0,b.jsxs)("div",{className:"o-state-of-housing-allowance__card__title",children:[(0,b.jsx)("p",{children:`${s.title.split("!")[0]}!`}),(0,b.jsx)("p",{children:s.title.split("!")[1]})]}),(0,b.jsx)("div",{className:"o-state-of-housing-allowance__card__subtitle",children:(0,b.jsx)("p",{children:s.subtitle})})]}),(0,b.jsxs)("article",{className:"o-state-of-housing-allowance__card",children:[(0,b.jsx)("div",{className:"o-state-of-housing-allowance__card__title",children:(0,b.jsx)("p",{children:e[2].nombre})}),(0,b.jsx)("div",{className:"o-state-of-housing-allowance__card__subtitle",children:(0,b.jsx)("p",{children:e[2].subtitulo})}),(0,b.jsx)("hr",{className:"o-state-of-housing-allowance__line"}),(0,b.jsxs)("aside",{className:"o-state-of-housing-allowance__listInfo",children:[(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"o-state-of-housing-allowance__header",children:e[2].lista[0]}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__content",children:t.nombre||"N/A"})]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"o-state-of-housing-allowance__header",children:e[2].lista[1]}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__content",children:t.documento||"N/A"})]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"o-state-of-housing-allowance__header",children:e[2].lista[2]}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__content",children:t.formulario||"N/A"})]})]}),(0,b.jsxs)("aside",{className:"o-state-of-housing-allowance__listInfo",children:[(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"o-state-of-housing-allowance__header",children:e[2].lista[3]}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__content",children:t.fechaEstado||"N/A"})]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"o-state-of-housing-allowance__header",children:e[2].lista[4]}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__content",children:t.estadoPostulacion||"N/A"})]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"o-state-of-housing-allowance__header",children:e[2].lista[5]}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__content",children:t.valor||"N/A"})]})]}),(s.config.showBackButton||s.config.showCertificateButton)&&(0,b.jsx)("aside",{className:"o-state-of-housing-allowance__buttons",children:e[2].boton&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(N.A,{type:"button",classname:"two",text:e[2].boton[0].copy,onClickAction:a,isDisabled:!1,loader:i}),s.config.showCertificateButton&&(0,b.jsx)(N.A,{type:"button",classname:"one",text:e[2].boton[1].copy,onClickAction:()=>{m((0,b.jsx)(C.A,{base64:t.certificadoB64,setActiveModal:m,selectedFileName:"Certificado de afiliacion",setActiveToast:()=>!1}))},isDisabled:!t.certificadoB64,loader:i})]})})]}),s.config.showServiceChannel&&(0,b.jsxs)("article",{className:"o-state-of-housing-allowance__card",children:[(0,b.jsx)("div",{className:"o-state-of-housing-allowance__card__title",children:(0,b.jsx)("p",{children:r.nombre})}),(0,b.jsx)("div",{className:"o-state-of-housing-allowance__card__subtitle",children:(0,b.jsx)("p",{children:null==r?void 0:r.subtitulo})}),(0,b.jsx)("hr",{className:"o-state-of-housing-allowance__line"}),(0,b.jsx)("aside",{className:"o-state-of-housing-allowance__listInfoWrong",children:r.referencias.map((e,o)=>(0,b.jsxs)("a",{href:e.redireccion||"#",children:[(0,b.jsx)("figure",{className:"o-state-of-housing-allowance__image__wrong",children:d(e.imagen[0])}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__header",children:e.nombre}),(0,b.jsx)("span",{className:"o-state-of-housing-allowance__content",children:e.subt
1itulo})]},o))})]}),l&&(0,b.jsx)(b.Fragment,{children:l})]}):null};const w=e=>{const o=e.referenceBlock,t={};return o.forEach(e=>{t[e.contentfulid]={title:e.title,subtitle:e.subtitle,media:{gatsbyImage:e.media.gatsbyImage,title:e.media.title,file:{url:e.media.file.url}},config:JSON.parse(e.config[0].internal.content)}}),t};var P=({contentInfo:e})=>{const[o,t]=(0,n.useState)(0),[a,s]=(0,n.useState)({});return(0,b.jsxs)("div",{className:"o-state-of-housing-allowance",children:[(0,b.jsx)("div",{className:"o-state-of-housing-allowance__breadcrumb",children:(0,b.jsx)(i.A,{content:e&&e.migaDePan?e.migaDePan:"Inicio/Pagos/Pago de crédito"})}),(0,b.jsx)(D.A,{itemList:e.lista,currentIndex:o,title:e.nombre,subtitle:e.subtitulo,titleType:"h1"}),(()=>{switch(o){case 0:return(0,b.jsx)(j,{contentInfo:e,setCurrentStep:t,setPostulationInfoData:s});case 2:return(0,b.jsx)(S,{contentInfo:e.referencias,states:w(e),postulationData:a,onClickBack:()=>t(0),buttonLoader:!1});default:return(0,b.jsx)(j,{contentInfo:e})}})()]})},k=t(68315
1);var T=()=>{var e,o,t;const n=(0,a.useStaticQuery)("1206845999"),i=null==n||null===(e=n.allContentfulTemplate)||void 0===e||null===(o=e.nodes[0])||void 0===o?void 0:o.metaInfo[0],s=null==n||null===(t=n.allContentfulTemplate)||void 0===t?void 0:t.nodes[0];return(0,b.jsx)(k.A,{data:i,hasLoader:!0,hideSide:!0,isPrivate:!1,isActive:null==s?void 0:s.estaActivo,children:(0,b.jsx)(P,{contentInfo:s})})}}}]);
2//# sourceMappingURL=component---src-pages-personas-consulta-postulacion-subsidio-de-vivienda-tsx-06c3025fe65dd662c73d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.