PageSourceSearch

https://www.comfama.com/portal-servicios/ce2899fa046c157b065c496c5687c9ed065f05d0-cc9f1914cd974f5e70f2.js

js comfama.com collected 2026-09-24 17:17:55 UTC 16,839 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcomfama_portalservicios_archetype=self.webpackChunkcomfama_portalservicios_archetype||[]).push([[5677],{5290:function(e,o,t){t.d(o,{Lr:function(){return V},AL:function(){return Z},d2:function(){return q},Bk:function(){return U},Y5:function(){return K},hp:function(){return W},XJ:function(){return G},DB:function(){return M},u7:function(){return H},ji:function(){return B},Pt:function(){return k},UX:function(){return L},ex:function(){return m},CX:function(){return x},qc:function(){return w},GG:function(){return f},uJ:function(){return g},hn:function(){return A},QS:function(){return b},VY:function(){return S},r4:function(){return T},pR:function(){return X},xW:function(){return C},ZY:function(){return Q},gw:function(){return $},vw:function(){return D},Xt:function(){return Y},he:function(){return I},n6:function(){return P},Ft:function(){return _},cl:function(){return O},aG:function(){return y},lg:function(){return v},iy:function(){return h},mO:function(){return j},M:function(){return R},K2:function(){return E}
1,ko:function(){return z},Dc:function(){return p},WU:function(){return F},ui:function(){return N},_8:function(){return J}});var n=t(84166),i=t(48314),a=t(89179),c=t(51145);const r=n.A.create(),s=new c.A;r.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 d(e)}catch(o){console.log(o)}},d=async e=>{const o=s.get("token"),t={headers:{apikey:`${i.aE}`}},a={action:"getJWT"};try{const c=await n.A.post(`${o}`,a,t);if(200===c.status)return e.headers.Authorization=`Bearer ${c.data.data.id_token}`,e.headers.apikey=`${i.gQ}`,e}catch(c){console.log(c)}},l=i.oX+"/afiliaciones/api/v1/",m=async(e,o,t,n="",i="")=>a.S.get(`${l}consultaCertificado?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${i}&numeroDocumentoEmpresa=${n}`,{headers:{Authorization:`${t}`}}),p=async(e,o,t,n,i="",c="")=>a.S.get(`${l}consultarAfiliacionRetirado${n?"Empresa":""}?tipoDocumentoEmpresa=${c}&numeroDocumentoEmpresa=${i}&tipoDocumento=${o}&numeroDocumento=${e}`,{headers:{Authorization:`${t}`}}),$=async(e,o,t)=>a.S.get(`${i.oX}/certificados/proveedores/api/v1/CertificadoExperiencia?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),f=async(e,o,t="",n="")=>a.S.get(`${l}consultarCarnetPdfAfiliacionTitularTrabajador?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}&numeroDocumentoEmpresa=${t}`),g=async(e,o,t="",n="")=>a.S.get(`${l}consultarCarnetPdfAfiliacionPacTrabajador?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}&numeroDocumentoEmpresa=${t}`),v=async(e,o)=>a.S.post(`${l}${o}`,e),y=async e=>a.S.post(`${l}descargarMasivoAfiliacion`,e),h=async e=>a.S.post(`${l}descargarMasivoAfiliacionCarnet`,e),D=async(e,o,t,n)=>a.S.get(`${l}consultarTrabajadorMasivoHistorico?numeroDocumento=${e}&numeroDocumentoEmpresa=${t}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}`),A=async(e,o,t,n,c,r,s)=>a.S.get(`${i.oX}/reportecompensacion/api/v1/consultaReporteCompensacion?anyo=${n}${c&&`&documentoContable=${c}`}${r&&`&fechaDesde=${r}`}${s&&`&fechaHasta=${s}`}&numeroDocumento=${e}&tipoConsulta=${t}&tipoDocumento=${o}`),_=async(e,o,t)=>a.S.get(`${l}listarAfiliadosCarnet?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),S=async(e,o,t)=>a.S.get(`${l}consultarCarnetPdfAfiliacionTitular?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),b=async(e,o,t)=>a.S.get(`${l}consultarCarnetPdfAfiliacionPac?numeroDocumentoPac=${e}&tipoDocumentoPac=${o}`,{headers:{Authorization:`${t}`}}),x=async(e="",o="",t)=>a.S.get(`${l}consultaCertificadoEmpleador?tipoDocumento=${o}&numeroDocumento=${e}`,{headers:{Authorization:`${t}`}}),C=async(e,o)=>a.S.get(`${i.oX}/certificadodeudas/api/v1/consultaCertificadoPersona?numeroDocumento=${e}&tipoDocumento=${o}`),N=async(e,o,t)=>a.S.get(`${i.oX}/entregasubsidio/api/v1/consultaEntregaSubsidio?numeroDocumento=${e}&periodo=${t}&tipoDocumento=${o}`),j=async(e,o,t,n)=>a.S.get(`${i.oX}/cuotamonetaria/api/v1/consultaCuotaMonetaria?numeroDocumento=${e}&periodoFinal=${t}&periodoInicial=${o}&tipoDocumento=${n}`),E=async(e,o,t,n)=>a.S.get(`${i.oX}/aportes/api/v1/consultaCertificadoPagoAporte?numeroDocumento=${e}&tipoDocumento=${n}&periodoInicio=${o}&periodoFin=${t}`),I=async(e,o,t)=>a.S.get(`${i.oX}/postulacionvivienda/api/v1/consultaEstadoPostulacion?numeroDocumento=${e}&tipoDocumento=${o}${t&&`&numeroFormulario=${t}`}`),w=async(e,o)=>a.S.get(`${i.oX}/cesde/api/v1/getStudentByIdentification/${o}?identificationType=${e}`),T=async(e,o)=>a.S.get(`${i.oX}/certificadodeudas/api/v1/consultaCertificadoEmpresa?numeroDocumento=${e}&tipoDocumento=${o}`),P=async e=>a.S.get(`${i.oX}/declaracionrenta/api/v1/certificado/${e}`),X=async(e,o,t,n)=>a.S.get(`${i.oX}/certificadodeudas/api/v1/consultaCertificadoTrabajador?numeroDocumento=${e}&numeroDocumentoEmpresa=${t}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}`),B=async({numeroDocumento:e,periodoAnyos:o,tipoDocumento:t})=>a.S.get(`${l}consultaCertificadoFosfec?numeroDocumento=${e}&periodoAnyos=${o}&tipoDocumento=${t}&applicationId=1`),k=async({numeroDocumento:e,tipoDocumento:o})=>
1a.S.get(`${i.oX}/declaracionrentasubsidio/api/v1/declaracionRentaSubsidio?numeroDocumento=${e}&tipoDocumento=${o}&applicationId=1`),L=async({anyo:e,bimester:o,id:t,certificateType:n,idType:c})=>a.S.get(`${i.U$}consultarCertificadoRetencion?anyo=${e}&bimestre=${o}&numeroDocumento=${t}&tipoCertificado=${n}&tipoDocumento=${c}`),z=async()=>a.S.get(`${i.U$}listarPeriodosIva`),F=async()=>a.S.get(`${i.U$}listarTiposCertificados`),M=async({tipoDocumento:e,numeroDocumento:o,jwt:t,isBussinesTab:a})=>{const c={headers:{Authorization:`Bearer ${t}`}},r=`${i.oX}/aportes/api/v1/estado-cuenta-o-certificado`.concat(a?"":"-indUPensionado",`?numeroDocumento=${o}&tipoDocumento=${e}`);return n.A.get(r,c)},R=async({tipoDocumento:e,numeroDocumento:o})=>a.S.get(`${i.oX}/afiliaciones/api/v1/consultarCertificadoNoAfiliado?tipoDocumento=${e}&numeroDocumento=${o}`),G=async({documentType:e,documentNumber:o,jwt:t})=>{const n={headers:{apikey:`${i.hV}`,Authorization:`Bearer ${t}`}};return r.get(`${i.xQ}${e}/${o}`,n)},O=async(e,o,t)=>a.S.get(`${i.ht}listarEventosAsistencia?anyo=${e}&numeroDocumento=${o}&tipoDocumento=${t}`),H=async(e,o,t,n)=>a.S.get(`${i.ht}
1consultarCertificadoAsistencia?curso=${e}&numeroDocumento=${t}&fechaInicio=${o}&tipoDocumento=${n}`),J=async(e,o,t)=>{const n={document:e,documentType:o,email:t,id:6};return a.S.post(`${i.MR}`,n)},U=async(e,o)=>a.S.get(`${i.oX}/creditoestadocuenta/api/v1/consultaCreditoEstadoCuenta?numeroDocumento=${e}&tipoDocumento=${o}`),K=async(e,o,t)=>a.S.get(`${i.oX}/creditoestadocuenta/api/v1/certificadoCreditoEstadoCuenta?numeroDocumento=${e}&tipoDocumento=${o}&numeroCredito=${t}`),Y=async(e,o,t,n,c,r)=>a.S.get(`${i.oX}/afiliaciones/api/v1/consultarAfiliacionHistorico?fechaFin=${r}&fechaInicio=${c}&numeroDocumento=${e}${""!==t?`&numeroDocumentoEmpresa=${t}`:""}&tipoDocumento=${o}${""!==n?`&tipoDocumentoEmpresa=${n}`:""}`),Q=async(e,o,t,n)=>{const c=`?documentType=${o}&documentNumber=${e}&creditNumber=${t}&user=${n}`,r=`${i.oX}/certificadocredito/api/v1/credits/receipt-payment${c}`;return a.S.get(r)},q=(e,o,t)=>{const n=`?documentType=${o}&documentNumber=${e}&page=1&pageSize=10&user=${t}`,c=`${i.oX}/certificadocredito/api/v1/credits/peacedmind-pdf${n}`;return a.S.get(c)},W=async(e,o)=>{const t=`?documentType=${o}&page=1&documentNumber=${e}&pageSize=50`,n=`${i.oX}/certificadocredito/api/v1/credits/account-status${t}`;return a.S.get(n)},V=e=>a.S.post(`${i.oX}/certificadocredito/api/v1/credits/account-pdf`,e),Z=e=>a.S.post(`${i.oX}/certificadocredito/api/v1/credits/debt-pdf`,e)},20320:function(e,o,t){var n=t(4240),i=t(45871),a=t(5588),c=t(29390),r=t(74848);o.A=({image:e,title:o,content:t})=>{const s={renderNode:{[i.BLOCKS.PARAGRAPH]:(e,o)=>(0,r.jsx)("p",{children:o}),[i.BLOCKS.OL_LIST]:(e,o)=>(0,r.jsx)("ol",{type:"1",children:o}),[i.INLINES.HYPERLINK]:(e,o)=>{var t,n,i,a,c;return(0,r.jsx)("a",{href:null==e||null===(t=e.data)||void 0===t?void 0:t.uri,rel:"noopener noreferrer",target:null!=e&&null!==(n=e.data)&&void 0!==n&&null!==(i=n.uri)&&void 0!==i&&i.includes("www")||null!=e&&null!==(a=e.data)&&void 0!==a&&null!==(c=a.uri)&&void 0!==c&&c.includes("https")?"_blank":"_self",title:o,children:o})}}};return(0,r.jsxs)("div",{className:"a-to-be-aware-image",children:[(0,r.jsx)("div",{className:"a-to-be-aware-image__left",children:e&&e.gatsbyImage?(0,r.jsx)(a.G,{className:"a-to-be-aware-image__left__img",image:e.gatsbyImage,loading:"eager",alt:e.description?e.descripcion:e.title||"Imagen ¡Estamos para ayudarte!",title:e.description?e.descripcion:e.title||"Imagen ¡Estamos para ayudarte!"}):(null==e?void 0:e.file)&&(null==e?void 0:e.file.url)&&(0,r.jsx)("img",{src:(0,c.s)(e),alt:e.description?e.descripcion:e.title||"Imagen ¡Estamos para ayudarte!",title:e.description?e.descripcion:e.title||"Imagen ¡Estamos para ayudarte!",className:"a-to-be-aware-image__left__img"})}),(0,r.jsxs)("div",{className:"a-to-be-aware-image__right",children:[o&&(0,r.jsx)("h2",{children:o}),t&&t.raw&&(0,n.i)(JSON.parse(null==t?void 0:t.raw),s)]})]})}},24491:function(e,o,t){t.d(o,{A:function(){return v}});var n=t(96540),i=t(44063),a=t(20320),c=t(29900),r=t(64691),s=t(98620),u=t(5290),d=t(79771),l=t(62514),m=t(1038),p=t(99996),$=t(74848);var f=({contentInfo:e,note:o,imagen:t})=>{var f,g,v;
1const[y,h]=(0,n.useState)(!1),[D,A]=(0,n.useState)(""),[_,S]=(0,n.useState)(!1),{gigyaContext:b,selectedTab:x,business:C,userInfoContext:N}=(0,n.useContext)(r.A),[j,E]=(0,n.useState)(!1),[I,w]=(0,n.useState)(!1),[T,P]=(0,n.useState)(!1),[X,B]=(0,n.useState)(!1),k=e=>E((0,$.jsx)(i.A,{message:e,position:"up-right-small",setActiveToast:E,size:"small"}));return(0,$.jsx)($.Fragment,{children:X?(0,$.jsx)(l.A,{}):(0,$.jsx)("section",{className:"m-income-certificate",children:(0,$.jsxs)("div",{className:"m-income-certificate__body",children:[(0,$.jsx)(a.A,{image:t[0],content:o}),(0,$.jsxs)("div",{className:"m-income-certificate__body__form",children:[e&&e[0]&&(0,$.jsxs)("div",{className:"m-income-certificate__body__form__info",children:[(0,$.jsx)("h3",{className:"m-income-certificate__body__form__info__title",children:e[0].nombre}),(0,$.jsx)("span",{className:"m-income-certificate__body__form__info__subtitle",children:e[0].subtitulo})]}),(0,$.jsx)("button",{className:"m-income-certificate__form__button",disabled:y,onClick:()=>{(async()=>{if(h(!0),"empresas"===(null==x?void 0:x.get))if(null!=C&&C.get){var e,o,t,n,i,a,r,d,l,m,f;(0,c.A)(`${null==b||null===(e=b.gigyaAccount)||void 0===e?void 0:e.profile.firstName} ${null!=b&&null!==(o=b.gigyaAccount)&&void 0!==o&&o.data.secondName?`${b.gigyaAccount.data.secondName} `:""}${null==b||null===(t=b.gigyaAccount)||void 0===t?void 0:t.profile.lastName}${null!=b&&null!==(n=b.gigyaAccount)&&void 0!==n&&n.data.secondLastName?` ${null==b||null===(i=b.gigyaAccount)||void 0===i?void 0:i.data.secondLastName}`:""}`,null==b||null===(a=b.gigyaAccount)||void 0===a?void 0:a.data.docNumber,null==b||null===(r=b.gigyaAccount)||void 0===r?void 0:r.data.docType,null==b||null===(d=b.gigyaAccount)||void 0===d?void 0:d.profile.email,"click","CertificadosYConsultas :: EstadoCuentaAporte :: } GenerarCertificado",null===(l=N.data)||void 0===l?void 0:l.userJwt);const g=(null==C||null===(m=C.get)||void 0===m?void 0:m.companyDocID)+("CO1N"===C.get.companyDocType?(0,s.A)(String(null==C||null===(f=C.get)||void 0===f?void 0:f.companyDocID)):"");(0,u.n6)(g).then(e=>{var o,t;null!=e&&null!==(o=e.data)&&void 0!==o&&null!==(t=o.data)&&void 0!==t&&t.certificadoB64?(A(e.data.data.certificadoB64),S((0,$.jsx)(p.A,{base64:D||e.data.data.certificadoB64,setActiveModal:S,selectedFileName:"Certificado de deuda",setActiveToast:()=>!1}))):k("Actualmente este Nit no tiene información disponible")}).catch(e=>{console.log(e),k("Este número de identificación no tiene información disponible")}).finally(()=>{h(!1)})}else w(!0);else if(b.gigyaAccount){var g,v,y,_,j,E,I,T,P;(0,c.A)(`${null==b||null===(g=b.gigyaAccount)||void 0===g?void 0:g.profile.firstName} ${null!=b&&null!==(v=b.gigyaAccount)&&void 0!==v&&v.data.secondName?`${b.gigyaAccount.data.secondName} `:""}${null==b||null===(y=b.gigyaAccount)||void 0===y?void 0:y.profile.lastName}${null!=b&&null!==(_=b.gigyaAccount)&&void 0!==_&&_.data.secondLastName?` ${null==b||null===(j=b.gigyaAccount)||void 0===j?void 0:j.data.secondLastName}`:""}`,null==b||null===(E=b.gigyaAccount)||void 0===E?void 0:E.data.docNumber,null==b||null===(I=b.gigyaAccount)||void 0===I?void 0:I.data.docType,null==b||null===(T=b.gigyaAccount)||void 0===T?void 0:T.profile.email,"click","CertificadosYConsultas :: EstadoCuentaAporte :: } GenerarCertificado",null===(P=N.data)||void 0===P?void 0:P.userJwt),(0,u.n6)(b.gigyaAccount.data.docNumber).then(e=>{e.data.data.certificadoB64?(A(e.data.data.certificadoB64),S((0,$.jsx)(p.A,{base64:D||e.data.data.certificadoB64,setActiveModal:S,selectedFileName:"Certificado de deuda",setActiveToast:()=>!1}))):k("Este número de identificación no tiene información disponible")}).catch(e=>{console.log(e),k("Este número de identificación no tiene información disponible")}).finally(()=>{h(!1)})}else B(!0)})()},children:y?(0,$.jsx)(d.A,{size:"__small"}):(null==e||null===(f=e[0])||void 0===f||null===(g=f.boton)||void 0===g||null===(v=g[0])||void 0===v?void 0:v.copy)||"Generar certificado"})]}),_&&(0,$.jsx)($.Fragment,{children:_}),j&&(0,$.jsx)($.Fragment,{children:j}),I&&(0,$.jsx)(m.A,{closeModal:()=>w(!1),isMobile:!0,setShowConfirmation:P,isPrivate:!1,closeModalPermissionPage:()=>w(!1),serviceId:e.serviceId}),T&&(0,$.jsx)($.Fragment,{children:T})]})})})},g=t(88767);var v=({contentInfo:e})=>(0,$.jsxs)("div",{className:"o-income_statement_certificate_content",children:[(0,$.jsx)(g.A,{content:e.migaDePan}),(0,$.jsxs)("div",{className:"o-income_statement_certificate_content__headings",children:[e&&e.nombre&&(0,$.jsx)("h1",{className:"o-income_statement_certificate_content__headings__title",children:e.nombre}),e&&e.subtitulo&&(0,$.jsx)("p",{className:"o-income_statement_certificate_content__headings__subtitle",children:e.subt
1itulo})]}),(0,$.jsx)(f,{contentInfo:e.referencias,note:e.descripcion,imagen:e.imagen})]})},68315:function(e,o,t){t.d(o,{A:function(){return p}});var n=t(96540),i=t(64810),a=t(4240),c=t(45871),r=t(19871),s=t(29390),u=t(74848);var d=()=>{const e=(0,i.useStaticQuery)("8872584"),[o,t]=(0,n.useState)(5),[d,l]=(0,n.useState)(!1),{isBrowser:m,localStorage:p}=(0,r.A)(),$=e.allContentfulTemplate.nodes[0],f={renderNode:{[c.BLOCKS.PARAGRAPH]:(e,o)=>(0,u.jsx)("p",{children:o}),[c.BLOCKS.HEADING_1]:(e,o)=>(0,u.jsx)("h1",{children:o})}},g=(0,n.useCallback)(()=>setInterval(()=>{o>0?t(o-1):l(!0)},1e3),[o]);return(0,n.useEffect)(()=>{const e=g();return 0===o&&(l(!0),clearInterval(e),(()=>{var e,o;const t=null===(e=p.getItem("CURRENT_TAB"))||void 0===e?void 0:e.toString(),n=null===(o=window)||void 0===o?void 0:o.location.hostname;window.location.href="empresas"===t?"localhost"===n?"/empresas":"/portal-servicios/empresas":"localhost"===n?"/personas":"/portal-servicios/personas"})()),()=>{clearInterval(e)}},[d,o]),(0,u.jsx)(u.Fragment,{children:m&&(0,u.jsxs)("section",{className:"o-head404",children:[(0,u.jsxs)("article",{className:"o-head404__container",children:[$.tituloEnriquecido&&(0,a.i)(JSON.parse($.tituloEnriquecido.raw),f),(0,u.jsxs)("p",{children:["Seras Redirigido a la pagina inicial en: ",o," Segundos"]})]}),(0,u.jsx)("figure",{className:"o-head404__cover",children:(0,u.jsx)("img",{loading:"lazy",className:"o-head404__cover__img",src:$.imagen[0]&&(0,s.s)($.imagen[0]),alt:$.imagen[0].title})})]})})},l=t(92490),m=t(59039);var p=({data:e,children:o,hasLoader:t,isPrivate:n,hideSide:i,sideMenu:a,isMain:c,isActive:r,serviceId:s})=>{var p;const{metaTitulo:$,metaDescripcion:f,metaImagen:g,noIndex:v,urlCanonical:y}=e;return(0,u.jsx)(l.A,{hasLoader:t,isPrivate:n,hideSide:i,sideMenu:a,isMain:c,serviceId:s,children:r?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(m.A,{title:$,description:f,image:null==g||null===(p=g.file)||void 0===p?void 0:p.url,noIndex:v,urlCanonical:y,noCanonical:!1,lang:"es"}),o]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(m.A,{title:"Pagina no encontrada",noIndex:!0}),(0,u.jsx)(d,{})]})})}},98620:function(e,o,t){function n(e){let o,t,n,i;if(e=(e=(e=(e=e.replace(/\s/g,"")).replace(/,/g,"")).replace(/\./g,"")).replace(/-/g,""),isNaN(e))return"";o=new Array(16),i=e.length,o[1]=3,o[2]=7,o[3]=13,o[4]=17,o[5]=19,o[6]=23,o[7]=29,o[8]=37,o[9]=41,o[10]=43,o[11]=47,o[12]=53,o[13]=59,o[14]=67,o[15]=71,t=0,n=0;for(let a=0;a<i;a++)n=e.substr(a,1),t+=n*o[i-a];return n=t%11,n>1?11-n:n}t.d(o,{A:function(){return n}})}}]);
2//# sourceMappingURL=ce2899fa046c157b065c496c5687c9ed065f05d0-cc9f1914cd974f5e70f2.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.