PageSourceSearch

https://www.comfama.com/portal-servicios/c5bfffab6f4e6fcc638979a283d55fb13d0f3d50-bd8722184da63c0aa6f6.js

js comfama.com collected 2026-09-24 17:17:58 UTC 35,682 bytes, 2 lines download raw bytes

1(self.webpackChunkcomfama_portalservicios_archetype=self.webpackChunkcomfama_portalservicios_archetype||[]).push([[5745],{3026:function(e,a,t){"use strict";var s=t(34164),n=t(74848);a.A=({itemList:e,currentIndex:a,title:t,subtitle:i,titleType:o,isTwo:l})=>{const r=e=>(0,s.A)("m-payment-stepper__item",{"--past":a>e,__active:a===e,"--pre-past":1===e&&.9===a}),c=(0,s.A)("m-payment-stepper__progress-bar-wrapper",{"--first":0===a,"--medium":1===a||l,"--next":.9===a,"--last":2===a,"--two":!!l,"two--left":l}),m=(0,s.A)("m-payment-stepper__content",{"stepper-two":!!l}),d=(0,s.A)("m-payment-stepper__item-name",{"--two":!!l}),_=(0,s.A)("m-payment-stepper",{"--two":!!l});return(0,n.jsxs)("div",{className:_,children:[t&&i&&(0,n.jsx)("div",{className:"m-payment-stepper__headings",children:"h1"===o?(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:m,children:[e.map((e,a)=>(0,n.jsxs)("div",{className:r(a),children:[(0,n.jsx)("div",{className:"m-payment-stepper__item-number",children:(0,n.jsx)("span",{children:a+1})}),(0,n.jsx)("span",{className:d,children:e})]},`m-payment-stepper__item${a}`)),(0,n.jsx)("div",{className:c,children:(0,n.jsx)("div",{className:"m-payment-stepper__progress-bar"})})]})]})}},3887:function(e,a,t){"use strict";var s=t(32936),n=t(74848);const i=({label:e,name:a,id:t,type:i,placeholder:o,register:l,validationRules:r,error:c,maxLength:m,setValue:d,onChange:_,onBlurEvent:u,onFocusEvent:p,square:h,required:v,tooltip:g,onTypeValidation:x,disabled:y,role:b})=>{const f=(0,s.A)();return(0,n.jsxs)("div",{className:"f-a-input",children:[(0,n.jsxs)("div",{className:"f-a-input__label-wrapper "+(h?" __square":""),children:[(0,n.jsx)("label",{id:a+e,htmlFor:a,className:"f-a-input__label "+(v?" __required":""),children:e}),g&&(0,n.jsxs)("div",{className:"f-a-input__tooltip",children:[(0,n.jsx)("i",{"data-testid":"icon",className:"icon icon-question-circle",onClick:()=>{if(f){const e=document.getElementById("f-a-input__tooltip-box-wrapper");e&&e.classList.add("__open")}}}),(0,n.jsx)("div",{className:"f-a-input__tooltip-box-wrapper",id:"f-a-input__tooltip-box-wrapper",onClick:()=>{if(f){const e=document.getElementById("f-a-input__tooltip-box-wrapper");e&&e.classList.remove("__open")}},children:(0,n.jsx)("div",{className:"f-a-input__tooltip-box",children:g})})]})]}),(0,n.jsx)("div",{id:a,className:`f-a-input__box ${c?"__error":""}${h?" __square":""}`,children:x?(0,n.jsx)("input",{"data-testid":"input",tabIndex:"0",name:a,maxLength:m,placeholder:o,type:i,...l(a,r),onFocus:()=>{p&&p()},onBlur:()=>{u&&u()},id:t||`input${a}`,disabled:y||!1,role:b}):(0,n.jsx)("input",{"data-testid":"input",tabIndex:"0",name:a,maxLength:m,placeholder:o,type:i,...l(a,r),onChange:e=>{if(" "===e.target.value)d(a,"");else if(_(e),"number"===i){const t=e.target.value.replace(/\D/g,"");d(a,t)}else d(a,e.target.value.replace(/ {2}/g," "))},onFocus:()=>{p&&p()},onBlur:()=>{u&&u()},id:t||`input${a}`,disabled:y||!1,role:b})}),c&&(0,n.jsx)("span",{className:"f-a-input__error",children:c.message})]})};i.defaultProps={onChange:()=>{}},a.A=i},5419:function(e){e.exports=function(e,a,t,s){var n=new Blob(void 0!==s?[s,e]:[e],{type:t||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(n,a);else{var i=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(n):window.webkitURL.createObjectURL(n),o=document.createElement("a");o.style.display="none",o.href=i,o.setAttribute("download",a),void 0===o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(i)},200)}}},6515:function(e,a,t){"use strict";var s=t(96540),n=t(64810),i=t(4240),o=t(45871),l=t(17325),r=t(29390),c=t(74848);a.A=e=>
1{const a=(0,n.useStaticQuery)("936848023").allContentfulTemplate.nodes[0],{imagen:t,nombre:m,referencias:d,descripcion:_}=null!=a?a:{};(0,s.useEffect)(()=>(document.documentElement.style.overflowY="hidden",()=>{document.documentElement.style.overflowY="scroll"}),[]);const u=()=>{e.closeModal()},p=e=>({renderNode:{[o.BLOCKS.PARAGRAPH]:(a,t)=>(0,c.jsx)("p",{className:e,children:t})}});return(0,c.jsxs)("div",{role:"dialog",className:"m-error-modal",children:[(0,c.jsxs)("div",{className:"m-error-modal__content",onClick:()=>{},children:[(0,c.jsx)("div",{className:"m-error-modal__exit",children:(0,c.jsx)("button",{"aria-label":"Close",className:"icon icon-close m-error-modal__exit-icon",onClick:u})}),(0,c.jsxs)("div",{className:"m-error-modal__container",children:[((null==a?void 0:a.imagen)||e.imageNew)&&(0,c.jsx)("img",{className:"m-error-modal__container-icon",src:e.imageNew?e.imageNew:(0,r.s)(t[0]),alt:e.imageNew?e.imageNew.title:t[0].title,title:e.imageNew?e.imageNew.title:t[0].title}),(m||e.title)&&(0,c.jsx)("h3",{className:"m-error-modal__container-title",children:e.title?e.title:m}),(_&&_.raw||e.subtitle)&&e.subtitle?e.subtitle.raw?(0,i.i)(JSON.parse(e.subtitle.raw),p("m-error-modal__container-description")):(0,c.jsx)("p",{className:"m-error-modal__container-description",children:e.subt
1itle}):(0,i.i)(JSON.parse(_.raw),p("m-error-modal__container-description")),(0,c.jsx)(l.A,{type:"button",classname:"m-error-modal__container-button modal",text:e.buttonCopy?e.buttonCopy:d[0].copyBoton?d[0].copyBoton:"Aceptar",isDisabled:!1,onClickAction:e.buttonEvent?e.buttonEvent:()=>{u()}}),e.extraEvent&&e.extraEventCopy&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"m-error-modal__container-separator"}),(0,c.jsx)("p",{className:"m-error-modal__container-extra-event",onClick:e.extraEvent,children:e.extraEventCopy})]})]})]}),(0,c.jsx)("button",{role:"button","aria-label":"Close",className:"m-error-modal__bkg",onClick:u})]})}},11460:function(e,a,t){"use strict";t.d(a,{A:function(){return B}});var s=t(96540),n=t(64810),i=t(4240),o=t(84166),l=t(5419),r=t.n(l),c=t(49785),m=t(51145),d=t(93231),_=t(64691),u=t(7095),p=t(19871),h=t(17325),v=t(40587),g=t(74848);var x=e=>{const{contentInfo:a,contentType:t,creditList:s}=e,n=e=>new Intl.NumberFormat("es-ES").format(e)+(Number.isInteger(parseFloat(e))?",00":""),i=()=>{let e=0;for(const a of s)e+=+a.value;return e};return(0,g.jsxs)("div",{"data-testid":"summary-table",className:"a-summary-table "+(s.length>1?"a-summary-table--lot":""),children:[(0,g.jsxs)("div",{className:"a-summary-table__header "+(s.length>1?"hide-mobile":""),children:[(0,g.jsx)("div",{className:"a-summary-table__header__item firts",children:"pension"===t?"Referencia de pago":a[0]}),1===s.length&&(0,g.jsx)("p",{className:"hide-desktop a-summary-table__header__result",children:s[0].code}),(0,g.jsx)("div",{className:"a-summary-table__header__item second",children:a[1]}),1===s.length&&(0,g.jsx)("p",{className:"hide-desktop  a-summary-table__header__result",children:s[0].descrption}),(0,g.jsxs)("div",{className:"three-price "+(s.length>1?"--multiple":""),children:[(0,g.jsx)("div",{className:"a-summary-table__header__item "+(s.length>1?"three__lot":""),children:a[2]}),1===s.length&&(0,g.jsxs)("p",{className:"hide-desktop  a-summary-table__header__result value-price",children:["$",n(s[0].value)]})]})]}),(0,g.jsxs)("div",{className:"a-summary-table__data",children:[s.length&&s.map((e,a)=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"a-summary-table__data__content",children:[(0,g.jsx)("p",{className:"a-summary-table__data__info firts",children:e.code}),(0,g.jsx)("p",{className:"a-summary-table__data__info second",children:e.descrption}),(0,g.jsxs)("p",{className:"a-summary-table__data__info three  "+(s.length>1?"three__lot":"value-price"),children:["$",n(e.value)]})]},`a-summary-table__data__content${a}`),s.length>1&&(0,g.jsx)("div",{className:"content__separate",children:(0,g.jsx)("span",{className:"content__separate--active"})})]})),s.length>1&&(0,g.jsxs)("div",{className:"a-summary-table__data__lot",children:[(0,g.jsx)("p",{}),(0,g.jsx)("p",{className:"a-summary-table__data__lot__title",children:"Valor total"}),(0,g.jsxs)("p",{className:"three three__lot value-price",children:["$",n(i())]})]})]}),s.length>1&&(0,g.jsxs)("div",{className:"a-summary-table__pensions hide-desktop",children:[s.length>1&&s.map((e,a)=>(0,g.jsxs)("div",{className:"a-summary-table__pensions__card",children:[(0,g.jsxs)("p",{className:"a-summary-table__pensions__card__title",children:["Crédito ",a+1]}),(0,g.jsxs)("div",{className:"a-summary-table__pensions__card__body",children:[(0,g.jsx)("p",{className:"a-summary-table__pensions__card__body__name",children:"Formulario"}),(0,g.jsx)("p",{className:"a-summary-table__pensions__card__body__value",children:e.code}),(0,g.jsx)("div",{className:"content__separate",children:(0,g.jsx)("span",{className:"content__separate--active total-width"})}),(0,g.jsx)("p",{className:"a-summary-table__pensions__card__body__name",children:"Descripción"}),(0,g.jsx)("p",{className:"a-summary-table__pensions__card__body__value",children:e.descrption}),(0,g.jsx)("div",{className:"content__separate",children:(0,g.jsx)("span",{className:"content__separate--active total-width"})}),(0,g.jsxs)("div",{className:"a-summary-table__pensions__card__footer",children:[(0,g.jsx)("p",{className:"a-summary-table__pensions__card__footer__name",children:"Valor a pagar"}),(0,g.jsxs)("p",{className:"a-summary-table__pensions__card__footer__price",children:["$",n(e.value)]})]})]})]},`a-summary-table__pensions__card${a}`)),(0,g.jsxs)("div",{className:"a-summary-table__pensions__total",children:[(0,g.jsx)("p",{className:"a-summary-table__pensions__total__name",children:"Valor total"}),(0,g.jsxs)("p",{className:"value-price a-summary-table__pensions__total__price","data-testid":"total-price",children:["$",n(i())]})]}),(0,g.jsx)("div",{className:"content__separate",children:(0,g.jsx)("span",{className:"content__separate--active total-width"})})]})]})},y=t(45871),b=t(29390);var f=e=>{var a,t;
1const o=(0,n.useStaticQuery)("1410423991").allContentfulTemplate.nodes[0],{imagen:l,nombre:r,referencias:c}=null!=o?o:{};(0,s.useEffect)(()=>(document.documentElement.style.overflowY="hidden",()=>{document.documentElement.style.overflowY="scroll"}),[]);const m=()=>{e.closeModal()},d=()=>{m()};return(0,g.jsxs)("div",{className:"m-choise-modal",children:[(0,g.jsxs)("div",{className:"m-choise-modal__content",onClick:()=>{},children:[(0,g.jsx)("div",{className:"m-choise-modal__exit",children:(0,g.jsx)("i",{className:"icon icon-close m-choise-modal__exit-icon",onClick:m})}),(0,g.jsxs)("div",{className:"m-choise-modal__container",children:[((null==o?void 0:o.imagen)||e.imageNew)&&(0,g.jsx)("img",{className:"m-choise-modal__container-icon",src:e.imageNew?e.imageNew.url:(0,b.s)(l[0]),alt:e.imageNew?e.imageNew.title:l[0].title,title:e.imageNew?e.imageNew.title:l[0].title}),(r||e.title)&&(0,g.jsx)("h3",{className:"m-choise-modal__container-title",children:e.title?e.title:r}),e.subtitle&&(e.subtitle.raw?(0,i.i)(JSON.parse(e.subtitle.raw),(_="m-choise-modal__container-description",{renderNode:{[y.BLOCKS.PARAGRAPH]:(e,a)=>(0,g.jsx)("p",{className:_,children:a})}})):(0,g.jsx)("p",{className:"m-choise-modal__container-description",children:e.subt
1itle})),(0,g.jsxs)("div",{className:"m-choise-modal__container-buttons",children:[(0,g.jsx)(h.A,{type:"button",classname:"m-choise-modal__container-button --left primary",text:e.leftButtonCopy?e.leftButtonCopy:(null==c||null===(a=c[0])||void 0===a?void 0:a.copyBoton)||"cancelar",isDisabled:!1,onClickAction:e.leftButtonEvent?e.leftButtonEvent:d}),(0,g.jsx)(h.A,{type:"button",classname:"m-choise-modal__container-button secondary",text:e.rightButtonCopy?e.rightButtonCopy:(null==c||null===(t=c[0])||void 0===t?void 0:t.copyBoton)||"Aceptar",isDisabled:!1,onClickAction:e.rightButtonEvent?e.rightButtonEvent:d})]}),e.extraEvent&&e.extraEventCopy&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"m-choise-modal__container-separator"}),(0,g.jsx)("p",{className:"m-choise-modal__container-extra-event",onClick:e.extraEvent,children:e.extraEventCopy})]})]})]}),(0,g.jsx)("div",{className:"m-choise-modal__bkg",onClick:m})]});var _},j=t(6515),N=t(5588);var w=e=>{const{contentInfo:a,setStepPage:t,watchName:n,watchLastname:o,watchDocType:l,watchDocument:r,watchEmail:c,watchTelephone:m,setCancelConfirmation:d,loader:_,fluxType:u,gigyaContext:v,haveIntermediateStep:x}=e,[f,j]=(0,s.useState)(!1),[w,C]=(0,s.useState)(!1),{isBrowser:A}=(0,p.A)(),E=localStorage.getItem("class_theme")||null,B={renderNode:{[y.BLOCKS.PARAGRAPH]:(e,a)=>(0,g.jsx)("p",{children:a}),[y.INLINES.HYPERLINK]:(e,a)=>(0,g.jsx)("a",{href:e.data.uri,rel:"noopener noreferrer",target:"_blank",title:e.data.uri,children:a})}};return(0,s.useEffect)(()=>{A&&C(null===E)},[E]),(0,g.jsxs)("div",{className:"m-payment",children:[(0,g.jsx)("div",{className:"m-payment__head",children:(0,g.jsxs)("div",{className:"m-payment__head__info",children:[(0,g.jsxs)("div",{className:"m-payment__head__info__title",children:[(0,g.jsx)("p",{className:"m-payment__head__info__title__pay",children:a[0].nombre}),(0,g.jsx)("p",{className:"m-payment__head__info__title__desc",children:a[0].subtitulo})]}),(0,g.jsxs)("div",{className:"m-payment__head__info__content",children:[(0,g.jsxs)("div",{className:"m-payment__head__info__content__item",children:[(0,g.jsxs)("div",{className:"m-payment__head__info__content__item__description",children:[(0,g.jsx)("div",{className:"m-payment__head__info__content__item__description__number",children:(0,g.jsx)("p",{children:"1"})}),(0,g.jsxs)("div",{className:"m-payment__head__info__content__item__description__content",children:[(0,g.jsx)("p",{className:"m-payment__head__info__content__item__description__content__name",children:a[1].nombre}),(0,g.jsx)("p",{className:"m-payment__head__info__content__item__description__content__desc",children:a[1].subtitulo})]})]}),(0,g.jsx)("div",{className:"m-payment__head__info__content__item__img img-one",children:a[1].imagen[w?1:0].file&&a[1].imagen[w?1:0].file.url&&(0,g.jsx)("div",{className:"img-one__container "+(w?"-dark":"-light"),children:(0,g.jsx)("img",{src:w?"https://static.placetopay.com/placetopay-logo.svg":"https://static.placetopay.com/placetopay-logo-dark-background.svg",alt:a[1].imagen[w?1:0].title,title:a[1].imagen[w?1:0].title})})})]}),(0,g.jsxs)("div",{className:"m-payment__head__info__content__item",children:[(0,g.jsxs)("div",{className:"m-payment__head__info__content__item__description",children:[(0,g.jsx)("div",{className:"m-payment__head__info__content__item__description__number",children:(0,g.jsx)("p",{children:"2"})}),(0,g.jsxs)("div",{className:"m-payment__head__info__content__item__description__content",children:[(0,g.jsx)("p",{className:"m-payment__head__info__content__item__description__content__name",children:a[2].nombre}),(0,g.jsx)("p",{className:"m-payment__head__info__content__item__description__content__desc",children:a[2].subtitulo})]})]}),(0,g.jsx)("div",{className:"m-payment__head__info__content__item__img",children:a[2].imagen&&a[2].imagen[w?1:0]&&a[2].imagen[w?1:0].gatsbyImage?(0,g.jsx)(N.G,{loading:"eager",image:a[2].imagen[w?1:0].gatsbyImage,alt:a[2].imagen[w?1:0].title,title:a[2].imagen[w?1:0].title}):a[2].imagen[w?1:0].file&&a[2].imagen[w?1:0].file.url&&(0,g.jsx)("img",{src:(0,b.s)(a[2].imagen[w?1:0]),alt:a[2].imagen[w?1:0].title,title:a[2].imagen[w?1:0].title})})]})]})]})}),(0,g.jsxs)("div",{className:"m-payment__body",children:[(0,g.jsxs)("div",{className:"m-payment__body__term",children:[(0,g.jsx)("div",{className:"m-payment__body__term__check"+(f?"--active":""),onClick:()=>j(!f),children:f&&(0,g.jsx)("i",{className:"icon-check1"})}),(0,g.jsx)("div",{className:"m-payment__body__term__desc",children:a&&(0,i.i)(JSON.parse(a[3].tituloEnriquecido.raw),B)})]}),(0,g.jsxs)("div",{className:"m-payment__body__btn",children:[(0,g.jsx)(h.A,{type:"button",classname:"primary",text:a[4].copyBoton,isDisabled:!1,onClickAction:()=>{t(!0===x||void 0===x?.1:0)},loader:_}),(0,g.jsx)(h.A,{type:"button",classname:"secondary",text:a[5].copyBoton,isDisabled:!(f&&(null!=v&&v.gigyaAccount||n&&o&&r&&l)&&m&&c),loader:_,onClickAction:()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pushEventGA",category:"HomePersonas",action:"Clic"+("educacion"===u?"PagoPensionesYSemestre":"ClicPagoCreditoPersonas"),label:"ContinuarPaso2"})}})]}),!_&&(0,g.jsx)("p",{className:"m-payment__body__cancel",onClick:()=>
1d(!0),children:a[6].copyBoton})]})]})},C=t(3887),A=t(83793);var E=e=>{const{contentInfo:a,register:t,setValue:s,errors:n,gigyaContext:o}=e;return(0,g.jsxs)("div",{className:"m-where",children:[(0,g.jsxs)("div",{className:"m-where__headings",children:[(0,g.jsx)("h2",{className:"m-where__headings__title",children:a&&a.nombre?a.nombre:"Datos de contacto"}),(0,g.jsx)("div",{className:"m-where__headings__subtitle",children:a&&(0,i.i)(JSON.parse(a.descripcion.raw))})]}),(0,g.jsxs)("div",{className:"m-where__content",children:[!(null!=o&&o.gigyaAccount)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"m-where__content__input",children:(0,g.jsx)(C.A,{label:a.referencias[0].nombre?a.referencias[0].nombre:"Nombre(s)",name:"name",maxLength:"100",type:"text",square:!0,placeholder:a.referencias[0].subtitulo?a.referencias[0].subtitulo:"Escribe tu nombre",register:t,validationRules:{required:{value:!0,message:"Campo requerido"},pattern:{value:/^[A-Za-zÀ-ÿ ,.'-]+$/,message:"No se permiten caracteres especiales"},minLength:{value:2,message:"El nombre debe tener al menos 2 caracteres"}},setValue:s,required:!0,onTypeValidation:!0,error:n.name})}),(0,g.jsx)("div",{className:"m-where__content__input",children:(0,g.jsx)(C.A,{label:a.referencias[1].nombre?a.referencias[1].nombre:"Apellido(s)",name:"lastname",maxLength:"100",type:"text",square:!0,placeholder:a.referencias[1].subtitulo?a.referencias[1].subtitulo:"Escribe tu nombre",register:t,validationRules:{required:{value:!0,message:"Campo requerido"},pattern:{value:/^[A-Za-zÀ-ÿ ,.'-]+$/,message:"No se permiten caracteres especiales"},minLength:{value:2,message:"El nombre debe tener al menos 2 caracteres"}},setValue:s,required:!0,onTypeValidation:!0,error:n.lastname})}),a.referencias&&a.referencias[2]&&(0,g.jsx)("div",{className:"m-where__content__input",children:(0,g.jsx)(A.A,{label:"Tipo de documento",name:"resumeDocumentType",id:"m-where__content__input-resume-document-type",register:t,options:a.referencias[2].listaJson?a.referencias[2].listaJson:[{name:a.referencias&&a.referencias[2]&&a.referencias[2].subtitulo?a.referencias[2].subtitulo:"Selecciona un tipo de documento",value:""}],setValue:s,square:!0,validationRules:{required:{value:!0,message:"Campo requerido"}},error:n.resumeDocumentType,required:!0})}),(0,g.jsx)("div",{className:"m-where__content__input",children:(0,g.jsx)(C.A,{label:a.referencias&&a.referencias[3].nombre?a.referencias[3].nombre:"Número de documento",name:"document",maxLength:"25",type:"number",square:!0,placeholder:a.referencias&&a.referencias[3].subtitulo?a.referencias[3].subtitulo:"Escribe tu número de documento",register:t,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"}},onTypeValidation:!0,setValue:s,required:!0,error:n.document})})]}),(0,g.jsx)("div",{className:"m-where__content__input",children:(0,g.jsx)(C.A,{label:a.referencias[4].nombre,name:"email",maxLength:"50",type:"email",placeholder:a.referencias[4].subtitulo,register:t,square:!0,validationRules:{required:{value:!0,message:"Campo requerido"},pattern:{value:/^(([^<>()[\]\\.,;:=\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Debe cumplir con la estructura de un correo"},maxLength:{value:50,message:"El correo no debe superar los 50 dígitos"},minLength:{value:4,message:"El correo debe tener al menos 4 dígitos"}},setValue:s,required:!0,error:n.email,onTypeValidation:!0})}),(0,g.jsx)("div",{className:"m-where__content__input",children:(0,g.jsx)(C.A,{label:a.referencias[5].nombre,name:"cellphone",type:"number",placeholder:a.referencias[5].subtitulo,register:t,square:!0,maxLength:"10",validationRules:{required:{value:!0,message:"Campo requerido"},pattern:{value:/^([0-9])+$/,message:"No se permiten caracteres especiales o valores negativos"},maxLength:{value:10,message:"El número de celular no debe superar los 10 dígitos"},minLength:{value:10,message:"El número de celular debe tener al menos 10 dígitos"}},setValue:s,required:!0,error:n.cellphone,onTypeValidation:!0}
1)})]})]})};var B=e=>{const a=(0,n.useStaticQuery)("3781002675").allContentfulTemplate.nodes[0],{gigyaContext:t,userInfoContext:l}=(0,s.useContext)(_.A),{setStepPage:y,contentType:b,creditData:N,setActiveModal:C,fluxType:A,haveIntermediateStep:B}=e,{register:k,setValue:L,handleSubmit:q,formState:{errors:S},watch:T}=(0,c.mN)({mode:"onChange"}),{window:$}=(0,p.A)(),I=T("name"),P=T("lastname"),D=T("resumeDocumentType"),O=T("document"),R=T("email"),V=T("cellphone"),[J,F]=(0,s.useState)(!1),[U,z]=(0,s.useState)(!1),[M,Y]=(0,s.useState)(!1),[G,H]=(0,s.useState)(!1),[K,Q]=(0,s.useState)(!1),[Z,W]=(0,s.useState)(""),X=()=>{const e=(new m.A).get("transactionData");if(e){var a;const i=JSON.parse(atob(e));if(t&&l&&null!==(a=l.data)&&void 0!==a&&a.userJwt&&i){var s,n;const e={headers:{Authorization:null!==(s=l.data)&&void 0!==s&&s.userJwt?null===(n=l.data)||void 0===n?void 0:n.userJwt:null}},a=`/${i.requestId}`;u.A.cancelPaymentPlaceToPay(a,e).then(e=>{H(!1),$.location.href=$.location.origin+("localhost"===(null==$?void 0:$.location.hostname)?"/pagos":"/portal-servicios/pagos")}).catch(e=>{console.log(e),H(!1),$.location.href=$.location.origin+("localhost"===(null==$?void 0:$.location.hostname)?"/pagos":"/portal-servicios/pagos")})}}},ee=()=>{const e=new m.A,a=e.get("transactionData"),s=e.get("token");if(a){var n;const e=JSON.parse(atob(a));if(t&&l&&null!==(n=l.data)&&void 0!==n&&n.userJwt&&e){const a={headers:{Authorization:s}},t=`/${e.requestId}`;Y(!0),u.A.cancelPaymentPlaceToPay(t,a).then(e=>{Q(!1),Y(!1)}).catch(e=>{console.log(e),Q(!1),Y(!1)})}else{var i,o;const a={headers:{Authorization:null!==(i=l.data)&&void 0!==i&&i.userJwt?null===(o=l.data)||void 0===o?void 0:o.userJwt:null}},t=`/${e.requestId}`;Y(!0),u.A.cancelPaymentPlaceToPay(t,a).then(e=>{Q(!1),Y(!1)}).catch(e=>{console.log(e),Q(!1),Y(!1)})}}else Q(!1)};return(0,g.jsxs)("div",{className:"o-payment",children:[J&&(0,g.jsx)(f,{closeModal:()=>F(!1),title:"¿Estás seguro de cancelar esta transacción?",leftButtonCopy:"NO",leftButtonEvent:()=>{F(!1)},rightButtonCopy:"SI",rightButtonEvent:()=>{$.location.href="localhost"===(null==$?void 0:$.location.hostname)?`${$.location.origin}/pagos`:`${$.location.origin}/portal-servicios/pagos`}}),G&&(0,g.jsx)(v.A,{open:G,onClose:()=>X(),children:(()=>{const e=a.secciones[0];return(0,g.jsxs)("div",{className:"o-payment__modal__container",children:[(0,g.jsx)("div",{className:"o-payment__modal__container__closeBtn",onClick:()=>X(),children:(0,g.jsx)("img",{src:d.A,alt:"closeButton"})}),(0,g.jsxs)("div",{className:"o-payment__modal__container__content",children:[(0,g.jsx)("div",{className:"o-payment__modal__container__content__img",children:(0,g.jsx)("img",{src:e.imagen[0].file.url,alt:e.imagen[0].file.title})}),(0,g.jsx)("div",{className:"o-payment__modal__container__content__title",children:(0,g.jsxs)("h2",{children:[e.nombre.split("!")[0],"!"]})}),(0,g.jsx)("div",{className:"o-payment__modal__container__content__subtitle",children:(0,g.jsx)("h2",{children:e.nombre.split("!")[1]})}),(0,g.jsx)("div",{className:"o-payment__modal__container__content__descriptionOne",children:e.tituloEnriquecido.raw&&(0,i.i)(JSON.parse(e.tituloEnriquecido.raw))}),(0,g.jsx)("div",{className:"o-payment__modal__container__content__otherPay",children:(0,g.jsx)("p",{children:e.subt
1itulo})}),(0,g.jsxs)("div",{className:"o-payment__modal__container__content__buttons",children:[(0,g.jsx)(h.A,{type:"button",classname:"primary",text:"Cancelar",onClickAction:()=>X(),isDisabled:!1,loader:M}),(0,g.jsx)(h.A,{type:"button",classname:"secondary",text:"Continuar",onClickAction:()=>{Y(!0),$.location.href=Z},isDisabled:!1,loader:M})]})]})]})})()}),K&&(0,g.jsx)(v.A,{open:K,onClose:()=>X(),children:(()=>{const e=a.modal[0];return(0,g.jsxs)("div",{className:"o-payment__modal__container",children:[(0,g.jsx)("div",{className:"o-payment__modal__container__closeBtn",onClick:()=>ee(),children:(0,g.jsx)("img",{src:d.A,alt:"closeButton"})}),(0,g.jsxs)("div",{className:"o-payment__modal__container__content",children:[(0,g.jsx)("div",{className:"o-payment__modal__container__content__img",children:(0,g.jsx)("img",{src:e.imagen[0].file.url,alt:e.imagen[0].file.title})}),(0,g.jsx)("div",{className:"o-payment__modal__container__content__title",children:(0,g.jsx)("h2",{children:"Atención"})}),(0,g.jsx)("div",{className:"o-payment__modal__container__content__descriptionOne",children:e.descripcion.raw&&(0,i.i)(JSON.parse(e.descripcion.raw))}),(0,g.jsxs)("div",{className:"o-payment__modal__container__content__buttons",children:[(0,g.jsx)(h.A,{type:"button",classname:"primary",text:"Cancelar",onClickAction:ee,isDisabled:!1}),(0,g.jsx)(h.A,{type:"button",classname:"secondary",text:"Continuar",onClickAction:()=>$.location.href=Z,isDisabled:!1})]})]})]})})()}),(0,g.jsx)("h1",{className:"o-payment__title",children:a.nombre}),(0,g.jsx)(x,{creditList:N.credits,contentInfo:a.referencias[0].lista,contentType:b}),(0,g.jsxs)("form",{onSubmit:q(async e=>{if(t){var a,s;z(!0);const n={headers:{Authorization:null!==(a=l.data)&&void 0!==a&&a.userJwt?null===(s=l.data)||void 0===s?void 0:s.userJwt:null}},i=(e=>{var a,s,n,i;if(t&&null!=t&&t.gigyaAccount&&l&&null!=l&&null!==(a=l.data)&&void 0!==a&&a.userJwt){var o,r,c,m,d,_,u,p,h,v,g,x,y,b,f,j,w,C;const a=null==t||null===(o=t.gigyaAccount)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.docType;return{buyer:{document:null==t||null===(c=t.gigyaAccount)||void 0===c||null===(m=c.data)||void 0===m?void 0:m.docNumber,documentCompany:"factura"===A?null==N||null===(d=N.owner)||void 0===d?void 0:d.document:"",documentType:a,documentTypeCompany:"factura"===A?null==N||null===(_=N.owner)||void 0===_||null===(u=_.docType)||void 0===u?void 0:u.tipoDocumentoSAP:"",email:e.email,mobile:e.cellphone,name:`${null==t||null===(p=t.gigyaAccount)||void 0===p||null===(h=p.profile)||void 0===h?void 0:h.firstName} ${null!=t&&null!==(v=t.gigyaAccount)&&void 0!==v&&null!==(g=v.data)&&void 0!==g&&g.secondName?null==t||null===(x=t.gigyaAccount)||void 0===x?void 0:x.data.secondName:""}`,surname:`${null==t||null===(y=t.gigyaAccount)||void 0===y||null===(b=y.profile)||void 0===b?void 0:b.lastName} ${null!=t&&null!==(f=t.gigyaAccount)&&void 0!==f&&null!==(j=f.data)&&void 0!==j&&j.secondLastName?null==t||null===(w=t.gigyaAccount)||void 0===w||null===(C=w.data)||void 0===C?void 0:C.secondLastName:""}`},payments:N.credits.map(e=>({amount:{currency:"COP",total:parseFloat(e.value)},category:A,description:e.descrption,reference:e.code,objContrato:e.objContrato})),returnUrl:$.location.origin+("localhost"===(null==$?void 0:$.location.hostname)?"/pagos/confirmacion-estado-pago":"/portal-servicios/pagos/confirmacion-estado-pago"),cancelUrl:$.location.origin+("localhost"===(null==$?void 0:$.location.hostname)?"/pagos":"/portal-servicios/pagos")}}return{buyer:{document:e.document,documentCompany:"factura"===A?null==N||null===(s=N.owner)||void 0===s?void 0:s.document:"",documentType:e.resumeDocumentType,documentTypeCompany:"factura"===A?null==N||null===(n=N.owner)||void 0===n||null===(i=n.docType)||void 0===i?void 0:i.tipoDocumentoSAP:"",email:e.email,mobile:e.cellphone,name:e.name,surname:e.lastname},payments:N.credits.map(e=>({amount:{currency:"COP",total:parseFloat(e.value)},category:A,description:e.descrption,reference:e.code,objContrato:e.objContrato})),returnUrl:$.location.origin+("localhost"===(null==$?void 0:$.location.hostname)?"/pagos/confirmacion-estado-pago":"/portal-servicios/pagos/confirmacion-estado-pago"),cancelUrl:$.location.origin+("localhost"===(null==$?void 0:$.location.hostname)?"/pagos":"/portal-servicios/pagos")}})(e);setTimeout(()=>{u.A.createSessionPlaceToPay(i,n).then(e=>{if(z(!1),200===e.status){if(""===e.errorCode){const a={reference:e.data.reference,requestId:e.data.requestId,references:N.credits.map(e=>({description:e.descrption,code:e.code}))},t=btoa(JSON.stringify(a));(new m.A).set("transactionData",t,{path:"/"}),Q(!0),W(e.data.request.fields[0].value)}else if("1"===e.errorCode)C((0,g.jsx)(j.A,{title:"Pago pendiente",subt
1itle:"Ahora mismo hay una transacción con las mismas referencias en estado pendiente, por favor, espere a que esta expire o intente de nuevo con otra obligación",closeModal:()=>C(!1),buttonCopy:"Aceptar",buttonEvent:()=>C(!1)}));else if("2"===e.errorCode){const a={reference:e.data.reference,requestId:e.data.requestId,references:N.credits.map(e=>({description:e.descrption,code:e.code}))},t=btoa(JSON.stringify(a)),s=new m.A,n=(new Date).getTime(),i=new Date(n+9e5);s.set("transactionData",t,{path:"/",expires:i}),W(e.data.request.fields[0].value),H(!0)}}else C((0,g.jsx)(j.A,{subtitle:e.userMessage,closeModal:()=>C(!1),buttonCopy:"Aceptar",buttonEvent:()=>C(!1)}))}).catch(e=>{z(!1),console.log(e),C((0,g.jsx)(j.A,{closeModal:()=>C(!1),buttonCopy:"Aceptar",buttonEvent:()=>C(!1)}))})},2e3)}}),children:[(0,g.jsx)(E,{contentInfo:a.referencias[1],setValue:L,errors:S,register:k,gigyaContext:t}),(0,g.jsx)(w,{contentInfo:a.referencias[2].referencias,setStepPage:y,watchName:I,watchLastname:P,watchDocType:D,watchDocument:O,watchTelephone:V,watchEmail:R,setCancelConfirmation:F,loader:U,fluxType:A,gigyaContext:t,haveIntermediateStep:B})]}),(0,g.jsxs)("div",{className:"o-payment__pay-safe",children:[(0,g.jsx)("p",{children:a.referencias[3].nombre}),(0,g.jsx)("div",{className:"o-payment__pay-safe__img",children:a.referencias[3].referencias.map((e,a)=>e.redireccion&&"/"!==e.redireccion&&" "!==e.redireccion?(0,g.jsx)("a",{href:e.redireccion,rel:"noopener noreferrer",target:e.redireccion.includes("www")||e.redireccion.includes("https")?"_blank":"_self",title:e.imagen[0].file.title,children:(0,g.jsx)("img",{className:"o-payment__pay-safe__img__placetopay",src:"https://static.placetopay.com/placetopay-logo.svg",alt:e.imagen[0].file.title,title:e.imagen[0].file.title})},`o-payment__pay-safe__img${a}`):"ver preguntas frecuentes"===e.imagen[0].title?(0,g.jsx)("div",{className:"o-payment__pay-safe__img__frecuentQuestions",onClick:()=>{return a=e.imagen[0].file.url,void o.A.get(a,{responseType:"blob"}).then(e=>{r()(e.data,"Preguntas frecuentes.pdf")});var a},children:(0,g.jsxs)("p",{children:[e.nombre," ",(0,g.jsx)("span",{children:e.subt
1itulo})]})},`o-payment__pay-safe__img${a}`):(0,g.jsx)("img",{src:e.imagen[0].file.url,alt:e.imagen[0].file.title,title:e.imagen[0].file.title},`o-payment__pay-safe__img${a}`))})]})]})}},54775:function(e,a,t){"use strict";var s=t(34164),n=t(74848);a.A=e=>{const{checkActive:a,checkClick:t,square:i,className:o}=e,l=(0,s.A)({"a-checkbox":!0,square:i,[o]:o,"square--active":i&&a});return(0,n.jsx)("div",{className:l,onClick:t,"data-testid":"checkbox",children:i&&a?(0,n.jsx)("i",{className:"icon-check1"}):(0,n.jsx)(n.Fragment,{children:a&&(0,n.jsx)("div",{className:"a-checkbox--active"})})})}},83793:function(e,a,t){"use strict";var s=t(96540),n=t(79771),i=t(74848);const o=({name:e,options:a,label:t,register:o,validationRules:l,error:r,id:c,onChange:m,setValue:d,defaultValue:_,onDisplayEvent:u,onSelectEvent:p,forceChangeValue:h,required:v,square:g,loader:x,role:y,disabled:b=!1,isDefaultValue:f=!1})=>{const[j,N]=(0,s.useState)(),[w,C]=(0,s.useState)(!1);(0,s.useEffect)(()=>{a.length&&(a[0]&&d(e,a[0].value),N(a[0].name))},[]),(0,s.useEffect)(()=>{f&&N(_.name),_?(_&&j===_.name||!j)&&(d(e,_.value),N(_.name)):(d(e,a[0].value),N(a[0].name))},[_]),(0,s.useEffect)(()=>{h&&A(h.name,h.value)},[h]),(0,s.useLayoutEffect)(()=>{"requestType"===e&&(N("Selecciona"),d("requestType",""))},[a]);const A=(a,t)=>{d(e,t),N(a),m(a,t),C(!1)},E=()=>{const a=document.getElementById(`${c}select`),s=document.getElementById(`${c}options`),n=document.getElementById(`${c}currentOption`);if(t){const a=document.getElementById(e+t);a&&a.classList.toggle("__visible")}a&&s&&n&&(a.classList.toggle("__active"),s.classList.toggle("__active"),n.classList.toggle("__active"))};return(0,i.jsxs)("div",{className:"f-a-selectBox "+(g?" __square":""),role:y,"data-testid":"selectBox",children:[t&&(0,i.jsx)("label",{id:e+t,htmlFor:e,className:"f-a-selectBox__label"+(v?" __required":""),children:t}),w&&(0,i.jsx)("div",{className:"f-a-selectBox__background",onClick:()=>{b||(E(),C(!1))}}),(0,i.jsx)("div",{"data-testid":"select",tabIndex:0,className:"f-a-selectBox__select "+(r?"__error":""),id:`${c}select`,onClick:()=>{b||(u&&u(),C(!w),E())},children:(0,i.jsxs)("div",{className:"f-a-selectBox__select-inner",children:[(0,i.jsxs)("div",{className:"f-a-selectBox__select-content",children:[x&&(0,i.jsx)("div",{className:"f-a-selectBox__select-content__loader",children:(0,i.jsx)(n.A,{size:"__small"})}),(0,i.jsx)("p",{"data-testid":"currentOption",id:`${c}currentOption`,className:_&&j!==_.name?"__green":"",children:j})]}),g?w?(0,i.jsx)("span",{className:"icon-caret-up f-a-selectBox__icon"}):(0,i.jsx)("span",{className:"icon-caret-down f-a-selectBox__icon"}):w?(0,i.jsx)("span",{className:"icon-chevron-up f-a-selectBox__icon"}):(0,i.jsx)("span",{className:"icon-chevron-down1 f-a-selectBox__icon"})]})}),(0,i.jsx)("ul",{className:"f-a-selectBox__option-container",id:`${c}options`,"data-testid":"options",children:a&&a.map((a,s)=>(0,i.jsx)("li",{className:"f-a-selectBox__option",onClick:()=>{p&&p(),((a,s)=>{const n=document.getElementById(`${c}select`),i=document.getElementById(`${c}options`),o=document.getElementById(`${c}currentOption`);if(n&&i&&o&&(n.classList.toggle("__active"),n.classList.remove("__error"),i.classList.toggle("__active"),o.classList.toggle("__active")),d(e,s),N(a),m(a,s),t){const a=document.getElementById(e+t);a&&a.classList.remove("__visible")}C(!1)})(a.name,a.value)},children:(0,i.jsx)("p",{children:a.name})},s))}),(0,i.jsx)("input",{type:"hidden",name:e,id:e,...o(e,l)}),r&&(0,i.jsx)("span",{className:"f-a-selectBox__error",children:r.message})]})};o.defaultProps={id:"f-a-",onChange:()=>{}},a.A=o},88767:function(e,a,t){"use strict";var s=t(64810),n=t(19871),i=t(74848);a.A=e=>{const{content:a}=e,{isBrowser:t}=(0,n.A)();return(0,i.jsx)("nav",{itemType:"https://schema.org/Breadcrumb",className:"miga-de-pan",children:(0,i.jsx)("ul",{className:"a-breadcrumb"+(e.specialEvent?" a-breadcrumb--special-event":""),children:t&&(a=>{const t=a.split("/").map(e=>e.trim()).filter(Boolean);return t.map((a,n)=>{const o=`/${t.slice(1,n+1).map(e=>e.toLowerCase().includes("certificados y consultas")?"certificados":e.replace(/\s+/g,"-").toLowerCase()).join("/")}`;return(0,i.jsx)("li",{itemProp:"url",className:`crumb url-${n}${e.specialEvent?" --special-event":""}`,children:(0,i.jsx)(s.Link,{title:a,to:o.toLocaleLowerCase(),rel:"noopener noreferrer",children:(0,i.jsx)("span",{itemProp:"title",children:a})})},n)})})(a)})})}}}]);
2//# sourceMappingURL=c5bfffab6f4e6fcc638979a283d55fb13d0f3d50-bd8722184da63c0aa6f6.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.