PageSourceSearch

https://www.comfama.com/portal-servicios/component---src-pages-pagos-pago-express-tsx-e814f60c8cf3acb69e08.js

js comfama.com collected 2026-10-02 02:48:05 UTC 26,862 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcomfama_portalservicios_archetype=self.webpackChunkcomfama_portalservicios_archetype||[]).push([[5268],{499:function(e,o,t){var n=t(4240),a=t(45871),i=t(74848);o.A=({content:e})=>{const o={renderNode:{[a.BLOCKS.PARAGRAPH]:(e,o)=>(0,i.jsx)("p",{children:o}),[a.BLOCKS.OL_LIST]:(e,o)=>(0,i.jsx)("ol",{type:"1",children:o}),[a.INLINES.HYPERLINK]:(e,o)=>{var t,n,a,r,s;return(0,i.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!==(a=n.uri)&&void 0!==a&&a.includes("www")||null!=e&&null!==(r=e.data)&&void 0!==r&&null!==(s=r.uri)&&void 0!==s&&s.includes("https")?"_blank":"_self",title:o,children:o})}}};return(0,i.jsx)("div",{className:"a-to-be-aware",children:(0,i.jsx)("div",{children:e&&e.raw&&(0,n.i)(JSON.parse(null==e?void 0:e.raw),o)})})}},5290:function(e,o,t){t.d(o,{Lr:function(){return Q},AL:function(){return Z},d2:function(){return W},Bk:function(){return K},Y5:function(){return H},hp:function(){return Y},XJ:function(){return B},DB:function(){return z},u7:function(){return J},ji:function(){return k},Pt:function(){return O},UX:function(){return L},ex:function(){return m},CX:function(){return S},qc:function(){return E},GG:function(){return v},uJ:function(){return g},hn:function(){return x},QS:function(){return b},VY:function(){return D},r4:function(){return I},pR:function(){return w},xW:function(){return C},ZY:function(){return G},gw:function(){return f},vw:function(){return h},Xt:function(){return M},he:function(){return P},n6:function(){return R},Ft:function(){return A},cl:function(){return F},aG:function(){return y},lg:function(){return $},iy:function(){return _},mO:function(){return j},M:function(){return U},K2:function(){return T},ko:function(){return X},Dc:function(){return p},WU:function(){return q},ui:function(){return N},_8:function(){return V}});var n=t(84166),a=t(48314),i=t(89179),r=t(51145);const s=n.A.create(),c=new r.A;s.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=c.get("token"),t={headers:{apikey:`${a.aE}`}},i={action:"getJWT"};try{const r=await n.A.post(`${o}`,i,t);if(200===r.status)return e.headers.Authorization=`Bearer ${r.data.data.id_token}`,e.headers.apikey=`${a.gQ}`,e}catch(r){console.log(r)}},d=a.oX+"/afiliaciones/api/v1/",m=async(e,o,t,n="",a="")=>i.S.get(`${d}consultaCertificado?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${a}&numeroDocumentoEmpresa=${n}`,{headers:{Authorization:`${t}`}}),p=async(e,o,t,n,a="",r="")=>i.S.get(`${d}consultarAfiliacionRetirado${n?"Empresa":""}?tipoDocumentoEmpresa=${r}&numeroDocumentoEmpresa=${a}&tipoDocumento=${o}&numeroDocumento=${e}`,{headers:{Authorization:`${t}`}}),f=async(e,o,t)=>i.S.get(`${a.oX}/certificados/proveedores/api/v1/CertificadoExperiencia?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),v=async(e,o,t="",n="")=>i.S.get(`${d}consultarCarnetPdfAfiliacionTitularTrabajador?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}&numeroDocumentoEmpresa=${t}`),g=async(e,o,t="",n="")=>i.S.get(`${d}consultarCarnetPdfAfiliacionPacTrabajador?numeroDocumento=${e}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}&numeroDocumentoEmpresa=${t}`),$=async(e,o)=>i.S.post(`${d}${o}`,e),y=async e=>i.S.post(`${d}descargarMasivoAfiliacion`,e),_=async e=>i.S.post(`${d}descargarMasivoAfiliacionCarnet`,e),h=async(e,o,t,n)=>i.S.get(`${d}consultarTrabajadorMasivoHistorico?numeroDocumento=${e}&numeroDocumentoEmpresa=${t}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}`),x=async(e,o,t,n,r,s,c)=>i.S.get(`${a.oX}/reportecompensacion/api/v1/consultaReporteCompensacion?anyo=${n}${r&&`&documentoContable=${r}`}${s&&`&fechaDesde=${s}`}${c&&`&fechaHasta=${c}`}&numeroDocumento=${e}&tipoConsulta=${t}&tipoDocumento=${o}`),A=async(e,o,t)=>i.S.get(`${d}listarAfiliadosCarnet?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),D=async(e,o,t)=>i.S.get(`${d}consultarCarnetPdfAfiliacionTitular?numeroDocumento=${e}&tipoDocumento=${o}`,{headers:{Authorization:`${t}`}}),b=async(e,o,t)=>i.S.get(`${d}consultarCarnetPdfAfiliacionPac?numeroDocumentoPac=${e}&tipoDocumentoPac=${o}
1`,{headers:{Authorization:`${t}`}}),S=async(e="",o="",t)=>i.S.get(`${d}consultaCertificadoEmpleador?tipoDocumento=${o}&numeroDocumento=${e}`,{headers:{Authorization:`${t}`}}),C=async(e,o)=>i.S.get(`${a.oX}/certificadodeudas/api/v1/consultaCertificadoPersona?numeroDocumento=${e}&tipoDocumento=${o}`),N=async(e,o,t)=>i.S.get(`${a.oX}/entregasubsidio/api/v1/consultaEntregaSubsidio?numeroDocumento=${e}&periodo=${t}&tipoDocumento=${o}`),j=async(e,o,t,n)=>i.S.get(`${a.oX}/cuotamonetaria/api/v1/consultaCuotaMonetaria?numeroDocumento=${e}&periodoFinal=${t}&periodoInicial=${o}&tipoDocumento=${n}`),T=async(e,o,t,n)=>i.S.get(`${a.oX}/aportes/api/v1/consultaCertificadoPagoAporte?numeroDocumento=${e}&tipoDocumento=${n}&periodoInicio=${o}&periodoFin=${t}`),P=async(e,o,t)=>i.S.get(`${a.oX}/postulacionvivienda/api/v1/consultaEstadoPostulacion?numeroDocumento=${e}&tipoDocumento=${o}${t&&`&numeroFormulario=${t}`}`),E=async(e,o)=>i.S.get(`${a.oX}/cesde/api/v1/getStudentByIdentification/${o}?identificationType=${e}`),I=async(e,o)=>i.S.get(`${a.oX}/certificadodeudas/api/v1/consultaCertificadoEmpresa?numeroDocumento=${e}&tipoDocumento=${o}`),R=async e=>i.S.get(`${a.oX}/declaracionrenta/api/v1/certificado/${e}`),w=async(e,o,t,n)=>i.S.get(`${a.oX}/certificadodeudas/api/v1/consultaCertificadoTrabajador?numeroDocumento=${e}&numeroDocumentoEmpresa=${t}&tipoDocumento=${o}&tipoDocumentoEmpresa=${n}`),k=async({numeroDocumento:e,periodoAnyos:o,tipoDocumento:t})=>i.S.get(`${d}consultaCertificadoFosfec?numeroDocumento=${e}&periodoAnyos=${o}&tipoDocumento=${t}&applicationId=1`),O=async({numeroDocumento:e,tipoDocumento:o})=>i.S.get(`${a.oX}/declaracionrentasubsidio/api/v1/declaracionRentaSubsidio?numeroDocumento=${e}&tipoDocumento=${o}&applicationId=1`),L=async({anyo:e,bimester:o,id:t,certificateType:n,idType:r})=>i.S.get(`${a.U$}consultarCertificadoRetencion?anyo=${e}&bimestre=${o}&numeroDocumento=${t}&tipoCertificado=${n}&tipoDocumento=${r}`),X=async()=>i.S.get(`${a.U$}listarPeriodosIva`),q=async()=>i.S.get(`${a.U$}listarTiposCertificados`),z=async({tipoDocumento:e,numeroDocumento:o,jwt:t,isBussinesTab:i})=>{const r={headers:{Authorization:`Bearer ${t}`}},s=`${a.oX}/aportes/api/v1/estado-cuenta-o-certificado`.concat(i?"":"-indUPensionado",`?numeroDocumento=${o}&tipoDocumento=${e}`);return n.A.get(s,r)},U=async({tipoDocumento:e,numeroDocumento:o})=>i.S.get(`${a.oX}/afiliaciones/api/v1/consultarCertificadoNoAfiliado?tipoDocumento=${e}&numeroDocumento=${o}`),B=async({documentType:e,documentNumber:o,jwt:t})=>{const n={headers:{apikey:`${a.hV}`,Authorization:`Bearer ${t}`}};return s.get(`${a.xQ}${e}/${o}`,n)},F=async(e,o,t)=>i.S.get(`${a.ht}listarEventosAsistencia?anyo=${e}&numeroDocumento=${o}&tipoDocumento=${t}`),J=async(e,o,t,n)=>i.S.get(`${a.ht}
1consultarCertificadoAsistencia?curso=${e}&numeroDocumento=${t}&fechaInicio=${o}&tipoDocumento=${n}`),V=async(e,o,t)=>{const n={document:e,documentType:o,email:t,id:6};return i.S.post(`${a.MR}`,n)},K=async(e,o)=>i.S.get(`${a.oX}/creditoestadocuenta/api/v1/consultaCreditoEstadoCuenta?numeroDocumento=${e}&tipoDocumento=${o}`),H=async(e,o,t)=>i.S.get(`${a.oX}/creditoestadocuenta/api/v1/certificadoCreditoEstadoCuenta?numeroDocumento=${e}&tipoDocumento=${o}&numeroCredito=${t}`),M=async(e,o,t,n,r,s)=>i.S.get(`${a.oX}/afiliaciones/api/v1/consultarAfiliacionHistorico?fechaFin=${s}&fechaInicio=${r}&numeroDocumento=${e}${""!==t?`&numeroDocumentoEmpresa=${t}`:""}&tipoDocumento=${o}${""!==n?`&tipoDocumentoEmpresa=${n}`:""}`),G=async(e,o,t,n)=>{const r=`?documentType=${o}&documentNumber=${e}&creditNumber=${t}&user=${n}`,s=`${a.oX}/certificadocredito/api/v1/credits/receipt-payment${r}`;return i.S.get(s)},W=(e,o,t)=>{const n=`?documentType=${o}&documentNumber=${e}&page=1&pageSize=10&user=${t}`,r=`${a.oX}/certificadocredito/api/v1/credits/peacedmind-pdf${n}`;return i.S.get(r)},Y=async(e,o)=>{const t=`?documentType=${o}&page=1&documentNumber=${e}&pageSize=50`,n=`${a.oX}/certificadocredito/api/v1/credits/account-status${t}`;return i.S.get(n)},Q=e=>i.S.post(`${a.oX}/certificadocredito/api/v1/credits/account-pdf`,e),Z=e=>i.S.post(`${a.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"}]')},20320:function(e,o,t){var n=t(4240),a=t(45871),i=t(5588),r=t(29390),s=t(74848);o.A=({image:e,title:o,content:t})=>{const c={renderNode:{[a.BLOCKS.PARAGRAPH]:(e,o)=>(0,s.jsx)("p",{children:o}),[a.BLOCKS.OL_LIST]:(e,o)=>(0,s.jsx)("ol",{type:"1",children:o}),[a.INLINES.HYPERLINK]:(e,o)=>{var t,n,a,i,r;return(0,s.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!==(a=n.uri)&&void 0!==a&&a.includes("www")||null!=e&&null!==(i=e.data)&&void 0!==i&&null!==(r=i.uri)&&void 0!==r&&r.includes("https")?"_blank":"_self",title:o,children:o})}}};return(0,s.jsxs)("div",{className:"a-to-be-aware-image",children:[(0,s.jsx)("div",{className:"a-to-be-aware-image__left",children:e&&e.gatsbyImage?(0,s.jsx)(i.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,s.jsx)("img",{src:(0,r.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,s.jsxs)("div",{className:"a-to-be-aware-image__right",children:[o&&(0,s.jsx)("h2",{children:o}),t&&t.raw&&(0,n.i)(JSON.parse(null==t?void 0:t.raw),c)]})]})}},29900:function(e,o,t){var n=t(7095),a=t(19871),i=t(51145),r=t(21396),s=t.n(r),c=t(48596);o.A=(e,o,t,r,u,l,d)=>{var m,p;const{localStorage:f}=(0,a.A)(),v=new i.A,g={headers:{Authorization:d}},$=v.get("CURRENT_BUSINESS")&&v.get("CURRENT_BUSINESS").toString(),y=$&&s().AES.decrypt($,"comfama"),_=null!=y?JSON.parse(y.toString(s().enc.Utf8)):null,h={businessName:null!=f&&f.getItem("CURRENT_TAB")&&"empresas"===(null==f?void 0:f.getItem("CURRENT_TAB"))&&null!==_?null==_?void 0:_.label:null,userName:e,documentId:o,email:r,eventName:l.split("::")[l.split("::").length-1].replace(" ",""),eventType:u,profile:null!=f&&f.getItem("CURRENT_TAB")?(0,c.Hn)(null==f?void 0:f.getItem("CURRENT_TAB")):"personas",transaction:l,typeId:t,businessDocumentId:null!=f&&f.getItem("CURRENT_TAB")&&"empresas"===(null==f?void 0:f.getItem("CURRENT_TAB"))&&_?null==_?void 0:_.companyDocID:null,businessTypeId:null!=f&&f.getItem("CURRENT_TAB")&&"empresas"===(null==f?void 0:f.getItem("CURRENT_TAB"))&&_?null==_?void 0:_.companyDocType:null,urlOrigin:null===(m=window)||void 0===m||null===(p=m.location)||void 0===p?void 0:p.pathname};n.A.sendTraceItem(h,g).catch(e=>console.log(e))}},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"}]')},94238:function(e,o,t){t.r(o),t.d(o,{default:function(){return I}});var n=t(64810),a=t(96540),i=t(51145),r=t(79771),s=t(34164),c=t(49785),u=t(54775),l=t(2
10320),d=t(64691),m=t(3887),p=t(83793),f=t(74848);var v=({contentInfo:e,onClickAction:o})=>{var t,n,i,v,g,$,y,_,h,x,A,D,b;const{register:S,setValue:C,handleSubmit:N,formState:{errors:j},watch:T}=(0,c.mN)(),[P,E]=(0,a.useState)(!1),[I,R]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),[O,L]=(0,a.useState)(!1),{gigyaContext:X}=(0,a.useContext)(d.A),q=T("documentType"),z=T("document"),U=T("quotation"),B=(null==e||null===(t=e.referencias)||void 0===t||null===(n=t[0])||void 0===n||null===(i=n.referencias)||void 0===i||null===(v=i[0])||void 0===v?void 0:v.referencias)||null,F=(0,s.A)({"m-request-form-shift__checkbox__size":!0,"m-request-form-shift__checkbox--error":j.terms}),J=e=>{"one"===e?(k(!w),C("termsOne",!w)):(L(!O),C("termsTwo",!O))},V=e=>{"one"===e?(k(!w),C("termsOne",!w)):(L(!O),C("termsTwo",!O))};return(0,a.useEffect)(()=>{X.gigyaAccount&&(R(!0),k(!0),L(!0))},[]),(0,f.jsx)("section",{className:"m-express-payment-step-one",children:(0,f.jsxs)("div",{className:"m-express-payment-step-one__body",children:[(0,f.jsx)(l.A,{image:e.referencias[0].imagen[0],content:null==e?void 0:e.referencias[0].descripcion}),(0,f.jsxs)("form",{onSubmit:N(e=>{E(!0),o(e),E(!1)}),className:"m-express-payment-step-one__form",children:[e&&e.referencias[0]&&(0,f.jsxs)("div",{className:"m-express-payment-step-one__form__info",children:[(0,f.jsx)("h3",{className:"m-express-payment-step-one__form__info__title",children:e.referencias[0].nombre}),(0,f.jsx)("span",{className:"m-express-payment-step-one__form__info__subtitle",children:e.referencias[0].subtitulo})]}),B&&B[0].listaJson.length>0&&(0,f.jsx)(p.A,{label:B&&B[0].titulo,name:"documentType",id:"m-express-payment-step-one__document-type",register:S,options:B[0].listaJson,setValue:C,square:!0,validationRules:{required:{value:!0,message:"Campo requerido"}},error:j.documentType,required:!0}),B&&B[1]&&(0,f.jsx)(m.A,{label:B[1].nombre?B[1].nombre:"Número de documento",name:"document",maxLength:"25",type:"number",square:!0,placeholder:B[1].subtitulo?B[1].subtitulo:"Escribe tu número de documento",register:S,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:C,required:!0,error:j.document}),B&&B[2]&&(0,f.jsx)(m.A,{label:B[2].nombre?B[2].nombre:"Número de cotizacion",name:"quotation",maxLength:"25",type:"number",square:!0,placeholder:B[2].subtitulo?B[2].subtitulo:"Escribe tu número de cotizacion",register:S,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:4,message:"El documento debe tener al menos 5 dígitos"}},tooltip:B&&B[3]&&(0,f.jsxs)("div",{className:"m-express-payment-step-one__tooltip",children:[B[3].nombre&&(0,f.jsx)("h3",{className:"m-express-payment-step-one__tooltip-title",children:B[3].nombre}),B[3].nombreEmpresa&&(0,f.jsxs)("p",{className:"m-express-payment-step-one__tooltip-subtitle",children:[B[3].nombreEmpresa," ",(0,f.jsx)("a",{href:B[3].redireccion,children:B[3].subtitulo})]})]}),setValue:C,required:!0,error:j.document}),!I&&(0,f.jsxs)("div",{className:"m-express-payment-step-one__form__checkContainer",children:[(0,f.jsxs)("aside",{className:"m-express-payment-step-one__form__checkContainer__checkbox",children:[(0,f.jsx)("input",{className:"checkbox",type:"checkbox",...S("termsOne",{required:{value:!0,message:"Campo requerido"}})}),(0,f.jsx)(u.A,{square:!0,checkActive:w,checkClick:()=>J("one"),className:F}),(0,f.jsxs)("label",{className:"label",onClick:()=>V("one"),children:[`${B[4].titulo} `,(0,f.jsx)("a",{className:"link",href:B[4].redireccion,target:"_blank",rel:"noopener noreferrer",children:B[4].copyBoton}),` ${B[4].subtitulo}`]})]}),(0,f.jsxs)("aside",{className:"m-express-payment-step-one__form__checkContainer__checkbox",children:[(0,f.jsx)("input",{className:"checkbox",type:"checkbox",...S("termsTwo",{required:{value:!0,message:"Campo requerido"}})}),(0,f.jsx)(u.A,{square:!0,checkActive:O,checkClick:()=>J("two"),className:F}),(0,f.jsxs)("label",{className:"label",onClick:()=>V("two"),children:[`${B[5].titulo} `,(0,f.jsx)("a",{className:"link",href:B[5].redireccion,target:"_blank",rel:"noopener noreferrer",children:B[5].copyBoton}),` ${B[5].subtitulo}`]})]})]}),(null===(g=e.referencias)||void 0===g||null===($=g[0])||void 0===$||null===(y=$.referencias)||void 0===y||null===(_=y[0])||void 0===_?void 0:_.boton)&&(0,f.jsx)("div",{className:"m-express-payment-step-one__form-btn",children:(0,f.jsx)("button",{className:"m-express-payment-step-one__form__button",disabled:P||!(U&&z&&q&&w&&O),children:P?(0,f.jsx)(r.A,{size:"__small"}):(null===(h=e.referencias)||void 0===h||null===(x=h[0])||void 0===x||null===(A=x.referencias)||void 0===A||null===(D=A[0])||void 0===D||null===(b=D.boton)||void 0===b?void 0:b[0].copy)||"CONTINUAR"})})]})]})})},g=t(29900),$=t(68667),y=t(5290),_=t(84166),h=t(48314);var x=t(19871),A=t(18395),D=t(33320),b=t(88767),S=t(44063),C=t(3026),N=t(499);var j=({setStepPage:e,creditData:o,setSelectedCredits:t,contentInfo:n})=>{var i,r,s,u,l,d,m,p,v,g;const{register:$,handleSubmit:y}=(0,c.mN)(),[_,h]=(0,a.useState)(!1),x=n.referencias[0].referencias[0].secciones[0]||null,A=null==o||null===(i=o.creditData)||void 0===i?void 0:i.credits[0];return(0,f.jsx)("section",{className:"m-express-payment-intermediate-step",children:(0,f.jsxs)("div",{className:"m-express-payment-intermediate-step__body",children:[(0,f.jsxs)("form",{onSubmit:y(()=>{t(o.creditData),e(1)}),className:"m-express-payment-intermediate-step__body__form",children:[x&&(0,f.jsxs)("div",{className:"m-express-payment-intermediate-step__body__form__info",children:[(0,f.jsx)("h3",{className:"m-express-payment-intermediate-step__body__form__info__title",children:x.nombre}),(0,f.jsx)("span",{className:"m-express-payment-intermediate-step__body__form__info__subtitle",children:x.subtitulo})]}),x&&(0,f.jsxs)("div",{className:"m-express-payment-intermediate-step__body__form__userinfo",children:[(0,f.jsxs)("div",{className:"m-express-payment-intermediate-step__body__form__userinfo__item",children:[(0,f.jsx)("p",{children:x.lista[0]}),(0,f.jsx)("span",{children:null==o||null===(r=o.creditData)||void 0===r||null===(s=r.owner)||void 0===s?void 0:s.name})]}),(0,f.jsxs)("div",{className:"m-express-payment-intermediate-step__body__form__userinfo__item",children:[(0,f.jsx)("p",{children:x.lista[1]}),(0,f.jsx)("span",{children:`${null==o||null===(u=o.creditData)||void 0===u||null===(l=u.owner)||void 0===l||null===(d=l.docType)||void 0===d?void 0:d.short}  ${null==o||null===(m=o.creditData)||void 0===m||null===(p=m.owner)||void 0===p?void 0:p.document}`})]})]}),(0,f.jsx)("div",{className:"m-credit-payment-step-one__form-methods",children:(0,f.jsxs)("div",{className:"m-credit-payment-step-one__form-method-item",children:[(0,f.jsxs)("div",{className:"m-credit-payment-step-one__form-method-button",onClick:()=>{h(!0)},children:[(0,f.jsx)("input",{type:"radio",id:"radioSelf",value:"self",defaultChecked:!0,...$("method",{required:!0})}),(0,f.jsx)("div",{className:"m-credit-payment-step-one__form-radio-button",children:(0,f.jsx)("div",{className:"m-credit-payment-step-one__form-radio-button-inner"})})]}),(0,f.jsxs)("label",{htmlFor:"radioSelf",className:_?"__active":"",children:[(0,f.jsxs)("div",{className:"m-credit-payment-step-one__form-method-item__creditItem",children:[(0,f.jsx)("p",{children:(e=>{const o=e.toLowerCase().replace(/\b\w/g,e=>e.toUpperCase()),t=[],n="abcdefghijklmnñopqrstuvwxyz";for(let a=0;a<o.length;
1a++)-1===n.indexOf(o.charAt(a),0)&&t.push(o[a]),-1!==n.indexOf(o.charAt(a),0)&&t.push(".");return t.toString().replaceAll(",","")})(A.descrption)}),(0,f.jsxs)("span",{children:["No. ",A.numeroCotizacion]})]}),(0,f.jsxs)("div",{className:"m-credit-payment-step-one__form-method-item__creditItem",children:[(0,f.jsx)("p",{children:"Valor"}),(0,f.jsxs)("span",{children:["$ ",(D=A.value,new Intl.NumberFormat("es-ES").format(D)+(Number.isInteger(parseFloat(D))?",00":""))]})]})]})]})}),x&&(0,f.jsxs)("div",{className:"m-express-payment-intermediate-step__body__form__buttons",children:[(0,f.jsx)("button",{className:"m-express-payment-intermediate-step__body__form__buttons__back",disabled:!1,onClick:()=>{e(0)},children:x.boton[0].copy||"Volver"}),(0,f.jsx)("button",{className:"m-express-payment-intermediate-step__body__form__buttons__pay",disabled:!1,children:x.boton[1].copy||"Pagar"})]})]}),(null==n||null===(v=n.referencias)||void 0===v||null===(g=v[0])||void 0===g?void 0:g.descripcion)&&(0,f.jsx)(N.A,{content:null==n?void 0:n.referencias[0].descripcion})]})});var D},T=t(11460);var P=({contentInfo:e,contentType:o})=>{const{gigyaContext:t,userInfoContext:n}=(0,a.useContext)(d.A),s=new i.A,{window:c}=(0,x.A)(),[u,l]=(0,a.useState)(0),[m,p]=(0,a.useState)(null),[N,P]=(0,a.useState)(null),[E,I]=(0,a.useState)(null),[R,w]=(0,a.useState)(!1),[k,O]=(0,a.useState)(!1),[L,X]=(0,a.useState)(!1);(0,a.useEffect)(()=>{null==c||c.scroll(0,0)},[u]),(0,a.useEffect)(()=>{t.gigyaAccount&&X(!0)},[]);const q=e=>A.filter(o=>o.typaDocSAP===e)[0],z=e=>{const o=e.toLowerCase().replace(/\b\w/g,e=>e.toUpperCase()),t=[],n="abcdefghijklmnñopqrstuvwxyz";for(let a=0;a<o.length;a++)-1===n.indexOf(o.charAt(a),0)&&t.push(o[a]),-1!==n.indexOf(o.charAt(a),0)&&t.push(".");return t.toString().replaceAll(",","")},U=e=>{var o,a,i,r,c,u,d,m,v;(w(!0),null!=t&&t.gigyaAccount)&&(0,g.A)(`${null==t||null===(o=t.gigyaAccount)||void 0===o?void 0:o.profile.firstName} ${null!=t&&null!==(a=t.gigyaAccount)&&void 0!==a&&a.data.secondName?`${t.gigyaAccount.data.secondName} `:""}${null==t||null===(i=t.gigyaAccount)||void 0===i?void 0:i.profile.lastName}${null!=t&&null!==(r=t.gigyaAccount)&&void 0!==r&&r.data.secondLastName?` ${null==t||null===(c=t.gigyaAccount)||void 0===c?void 0:c.data.secondLastName}`:""}`,null==t||null===(u=t.gigyaAccount)||void 0===u?void 0:u.data.docNumber,null==t||null===(d=t.gigyaAccount)||void 0===d?void 0:d.data.docType,null==t||null===(m=t.gigyaAccount)||void 0===m?void 0:m.profile.email,"click","Pagos :: PagoExpress :: } ClickBotonContinuar",null===(v=n.data)||void 0===v?void 0:v.userJwt);(async(e,o,t,n)=>{const a={headers:{apiKey:h.UZ,Authorization:`Bearer ${n}`}};return _.A.get(`${h.U1}InformacionPago?documento=${e}&tipoDocumento=${o}&numeroCotizacion=${t}`,a)})(e.document,e.documentType,e.quotation,s.get("token")).then(e=>{if(200===e.status){var o,t,n,a,i,r,s,c,u,d,m,v,g,_,h,x,A,b,C,N,j,T,P,E;const f=e.data.Result.Seguros.map(e=>({...e,descrption:z(e.Descripcion),code:e.TransaccionId,numeroCotizacion:e.NumeroCotizacion,value:e.ValorPesos,fee:0}));if(!L){var I,R;const o=null===(I=D.filter(o=>o.typaDocSAP===e.data.Result.Asegurado.TipoDocumento))||void 0===I||null===(R=I[0])||void 0===R?void 0:R.legal;(0,y._8)(e.data.Result.Asegurado.Documento,o,e.data.Result.Asegurado.Email)}p({creditData:{owner:{name:`${null==e||null===(o=e.data)||void 0===o||null===(t=o.Result)||void 0===t||null===(n=t.Asegurado)||void 0===n?void 0:n.Nombre} ${null==e||null===(a=e.data)||void 0===a||null===(i=a.Result)||void 0===i||null===(r=i.Asegurado)||void 0===r?void 0:r.Apellido}`,docType:{tipoDocumentoSAP:null==e||null===(s=e.data)||void 0===s||null===(c=s.Result)||void 0===c||null===(u=c.Asegurado)||void 0===u?void 0:u.TipoDocumento,descripcion:q(null==e||null===(d=e.data)||void 0===d||null===(m=d.Result)||void 0===m||null===(v=m.Asegurado)||void 0===v?void 0:v.TipoDocumento).name,nombre:q(null==e||null===(g=e.data)||void 0===g||null===(_=g.Result)||void 0===_||null===(h=_.Asegurado)||void 0===h?void 0:h.TipoDocumento).name,tipoDocumentoLegdos:q(null==e||null===(x=e.data)||void 0===x||null===(A=x.Result)||void 0===A||null===(b=A.Asegurado)||void 0===b?void 0:b.TipoDocumento).id,short:$.K[null==e||null===(C=e.data)||void 0===C||null===(N=C.Result)||void 0===N||null===(j=N.Asegurado)||void 0===j?void 0:j.TipoDocumento]},document:null==e||null===(T=e.data)||void 0===T||null===(P=T.Result)||void 0===P||null===(E=P.Asegurado)||void 0===E?void 0:E.Documento},credits:f},fluxType:"seguro"}),w(!1),l(.1)}
1else O((0,f.jsx)(S.A,{setActiveToast:O,isOk:!1,message:e.data.Descripcion,position:"up-right",duration:4e3}))}).catch(e=>{w(!1),console.log(e),O((0,f.jsx)(S.A,{setActiveToast:O,isOk:!1,message:"No se encuentra información de la cotización",position:"up-right",duration:8e3}))})};return(0,f.jsxs)("div",{className:"o-express-payment-content",children:[(0,f.jsx)("div",{className:"o-express-payment-content__breadcrumb",children:(0,f.jsx)(b.A,{content:e&&e.migaDePan?e.migaDePan:"Inicio/Pagos/Pago express"})}),E&&(0,f.jsx)(f.Fragment,{children:E}),k&&(0,f.jsx)(f.Fragment,{children:k}),R?(0,f.jsx)(r.A,{size:"__big"}):(0,f.jsxs)(f.Fragment,{children:[e&&e.referencias[0]&&e.referencias[0].lista&&e.referencias[0].lista.length>0&&(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(C.A,{itemList:e.referencias[0].lista,currentIndex:0===u||.1===u?0:u,title:e.referencias[0].nombre,subtitle:e.referencias[0].subtitulo,titleType:"h1"})}),(()=>{switch(u){case 0:return(0,f.jsx)(v,{contentInfo:e,setCurrentStep:l,setCreditData:p,setActiveModal:I,onClickAction:U});case.1:return(0,f.jsx)(j,{setStepPage:l,creditData:m,setSelectedCredits:P,contentInfo:e});case 1:return(0,f.jsx)(T.A,{setStepPage:l,contentType:o,creditData:N,setActiveModal:I,fluxType:"seguro"});default:return(0,f.jsx)(v,{contentInfo:e,setCurrentStep:l,setCreditData:p})}})()]})]})},E=t(68315);var I=()=>{var e,o,t;const a=(0,n.useStaticQuery)("2627970706"),i=null==a||null===(e=a.allContentfulTemplate)||void 0===e||null===(o=e.nodes[0])||void 0===o?void 0:o.metaInfo[0],r=null==a||null===(t=a.allContentfulTemplate)||void 0===t?void 0:t.nodes[0],s=r.referencias[0].estaActivo;return(0,f.jsx)(E.A,{data:i,hasLoader:!0,isPrivate:!1,isActive:s,children:(0,f.jsx)(P,{contentInfo:r,contentType:"pension"})})}}}]);
2//# sourceMappingURL=component---src-pages-pagos-pago-express-tsx-e814f60c8cf3acb69e08.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.