PageSourceSearch

https://www.comfama.com/portal-servicios/component---src-pages-mi-…iacion-empresas-tsx-f7835699a0e53025ce7e.js

js comfama.com collected 2026-10-02 02:48:36 UTC 15,292 bytes, 2 lines download raw bytes

1(self.webpackChunkcomfama_portalservicios_archetype=self.webpackChunkcomfama_portalservicios_archetype||[]).push([[7934],{2703:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var a=t(64810),i=t(68315),s=t(96540),r=t(51145),o=t(64691),l=t(11049);var c=(e,n,t)=>t?e.children[1].children[0].children.find(e=>e.name===n)?parseInt(e.children[1].children[0].children.find(e=>e.name===n).value):null:e.children[1].children[0].children.find(e=>e.name===n)?e.children[1].children[0].children.find(e=>e.name===n).value:null,u=t(54460),d=t(7095),m=t(88767),p=t(79771),_=t(68054),f=t(4240),h=t(45871),v=t(70277),g=t(74848);var b=({title:e,copies:n,valueList:t})=>(0,g.jsx)("div",{className:"a-business-afiliation-my-data-block",children:n&&t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"a-business-afiliation-my-data-block__title",children:e}),n.map((e,n)=>{if(e&&t[n]&&"-"!==t[n])return(0,g.jsxs)("span",{className:"a-business-afiliation-my-data-block__item",children:[(0,g.jsx)("b",{children:`${e} `}),t[n]]},`a-business-afiliation-my-data-block__item${n}`)})]})});var x=({dataCopies:e,businessData:n,ctaData:t,note:a})=>{const i={renderNode:{[h.BLOCKS.PARAGRAPH]:(e,n)=>(0,g.jsx)("p",{className:"m-business-afiliation-my-data__content__cta__note__text",children:n}),[h.INLINES.HYPERLINK]:(e,n)=>(0,g.jsx)("a",{href:n.data.uri,rel:"noopener noreferrer",target:n.data.uri.includes("www")||n.data.uri.includes("https")?"_blank":"_self",title:n,children:n})}};return(0,g.jsx)("div",{className:"m-business-afiliation-my-data",children:(0,g.jsxs)("div",{className:"m-business-afiliation-my-data__content",children:[(0,g.jsx)("span",{className:"m-business-afiliation-my-data__content__status "+(n.status&&"VIGEN"===n.status?" __active":""),children:"Afiliación "+(n.status&&"VIGEN"===n.status?"Vigente":"Retirada")}),(0,g.jsxs)("div",{className:"m-business-afiliation-my-data__content__info",children:[e&&e[0]&&(0,g.jsx)(b,{title:n.name,copies:e[0].lista,valueList:[n.afiliationDate?(0,v.A)(n.afiliationDate.substr(6,2)+"/"+n.afiliationDate.substr(4,2)+"/"+n.afiliationDate.substr(0,4)):"-",n.typeId,n.id,n.legalRepresentative]}),e&&e[1]&&(0,g.jsx)(b,{title:e[1].nombre,copies:e[1].lista,valueList:[n.phone,n.cellphone,n.email,n.address]}),e&&e[2]&&(0,g.jsx)(b,{title:e[2].nombre,copies:e[2].lista,valueList:[n.ciiu,n.description]})]}),t&&(0,g.jsxs)("div",{className:"m-business-afiliation-my-data__content__cta",children:[(0,g.jsx)("p",{children:t[0].nombre}),(0,g.jsx)("button",{type:"button",className:"m-business-afiliation-my-data__content__cta__button",onClick:()=>{var e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pushEventGA",category:"HomeEmpresas",action:"ClicAfiliacion",label:"Actualizar"}),null===(e=window)||void 0===e||e.open(t[0].boton[0].redireccion,t[0].boton[0].redireccion.includes("https")||t[0].boton[0].redireccion.includes("www")?"_blank":"_self")},children:t[0].boton[0].copy}),(0,g.jsx)("div",{className:"m-business-afiliation-my-data__content__cta__note",children:a&&a.raw&&(0,f.i)(JSON.parse(a.raw),i)})]})]})})},y=t(99476);var j=({contentInfo:e})=>{const{business:n}=(0,s.useContext)(o.A),[a,i]=(0,s.useState)(null),[f,h]=(0,s.useState)(!1),[v,b]=(0,s.useState)(!0),[j,A]=(0,s.useState)(!1),[N,I]=(0,s.useState)(!1),[T,C]=(0,s.useState)(null),S=new r.A,w=e.referencias.slice(0,1),O=e.referencias.slice(1,4),D=e.referencias.slice(4,5),E=e.secciones[0].descripcion;function L(e){return e.split(" ").map(e=>e.charAt(0).toUpperCase()+(e.length>1?e.substring(1).toLowerCase():"")).join(" ")}return(0,s.useEffect)(()=>{if(b(!0),null!=n&&n.get&&(!a||T&&n.get.companyDocID!==T.companyDocID)){var e,s,r,o;const a={headers:{apikey:"64GLTiuHpLfcHlkWE4K09NZfhNMuyii82fpC5UT1",Authorization:`Bearer ${S.get("token")}`,"Content-Type":"text/plain"}},m=`\n                            <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:comfama.com.co:subsidio:pscd_servicio_aportante">\n                            <soapenv:Header/>\n                            <soapenv:Body>\n                                <urn:SUBSIDIO_PSCD_Servicio_Aportante_MT>\n                                    <TIPO_ID>${null==n||null===(e=n.get)||void 0===e?void 0:e.companyDocType}</TIPO_ID>\n                                    <NUMERO_ID>${(null==n||null===(s=n.get)||void 0===s?void 0:s.companyDocID)+("
1CO1N"===(null==n||null===(r=n.get)||void 0===r?void 0:r.companyDocType)?(0,u.A)(String(null==n||null===(o=n.get)||void 0===o?void 0:o.companyDocID)):"")}</NUMERO_ID>\n                                </urn:SUBSIDIO_PSCD_Servicio_Aportante_MT>\n                            </soapenv:Body>\n                            </soapenv:Envelope>\n                        `;d.A.getBusinessInfo(m,a).then(e=>{const a=(new(t(75741))).parseFromString(null==e?void 0:e.data);const s={name:c(a,"RAZON_SOCIAL",!1),id:c(a,"NUMERO_ID",!1),typeId:c(a,"TIPO_ID",!1)?(0,l.A)(c(a,"TIPO_ID",!1)).short:null,legalRepresentative:"NIT"===(0,l.A)(c(a,"TIPO_ID",!1)).short?L(c(a,"NOMBRE_REP_LEGAL",!1).replace("  "," ")):L(c(a,"RAZON_SOCIAL",!1)),ciiu:c(a,"COD_ACT_ECONOMICA",!1),description:c(a,"DESC_ACT_ECONOMICA",!1),phone:c(a,"TELEFONO",!0),cellphone:c(a,"CELULAR",!1),email:null,address:c(a,"DIRECCION",!1),afiliationDate:c(a,"FECHA_AFILIACION",!1),status:function(e){const n=e.filter(e=>"Empresa"===e.children.find(e=>"DESC_CLASE_INTERLOCUTOR"===e.name).value);return n&&n[0]?n[0].children.find(e=>"ESTADO"===e.name).value:null}(a.children[1].children[0].children.filter(e=>"T_DETALLE_APORTANTE"===e.name))};C(null==n?void 0:n.get),h(!1),i(s),b(!1)}).catch(e=>{console.log(e),b(!1),h(!0)})}else null!=n&&n.get||A(!0)},[null==n?void 0:n.get]),f?(0,g.jsx)(y.A,{}):(0,g.jsxs)(g.Fragment,{children:[v?(0,g.jsx)("div",{className:"o-my-business-afiliation-content__loader",children:(0,g.jsx)(p.A,{size:"__big"})}):(0,g.jsx)(g.Fragment,{children:f?(0,g.jsx)(y.A,{}):(0,g.jsxs)("div",{className:"o-my-business-afiliation-content ",children:[(0,g.jsx)(m.A,{content:e.migaDePan}),(0,g.jsxs)("div",{className:"o-my-business-afiliation-content__headings",children:[e&&e.nombre&&(0,g.jsx)("h1",{className:"o-my-business-afiliation-content__headings__title",children:e.nombre}),e&&e.subtitulo&&(0,g.jsx)("p",{className:"o-my-business-afiliation-content__headings__subtitle",children:e.subt
1itulo})]}),w&&(0,g.jsx)("div",{className:"o-my-business-afiliation-content__tabs "+(w.length>1?"--more-than-one":""),children:w.map((e,n)=>(0,g.jsxs)("div",{className:"o-my-business-afiliation-content__tabs__tab",children:[(0,g.jsx)("i",{className:"icon-user-box"}),(0,g.jsx)("h2",{className:"o-my-business-afiliation-content__tabs__tab__name",children:e.nombre})]},`o-my-business-afiliation-content__tabs__tab${n}`))}),(0,g.jsx)("div",{className:"o-my-business-afiliation-content__info",children:a&&(0,g.jsx)(x,{dataCopies:O,businessData:a,ctaData:D,note:E})})]})}),j&&(0,g.jsx)(_.A,{closeModal:()=>A(!1),isMobile:!0,setShowConfirmation:I,isPrivate:!1,closeModalPermissionPage:()=>A(!1),serviceId:e.serviceId}),N&&(0,g.jsx)(g.Fragment,{children:N})]})};var A=()=>{var e,n,t;const s=(0,a.useStaticQuery)("2460007724"),r=null==s||null===(e=s.allContentfulTemplate)||void 0===e||null===(n=e.nodes[0])||void 0===n?void 0:n.metaInfo[0],o=null==s||null===(t=s.allContentfulTemplate)||void 0===t?void 0:t.nodes[0],l=s.allContentfulTemplate.nodes[0].estaActivo;return(0,g.jsx)(i.A,{data:r,hasLoader:!0,hideSide:!0,isPrivate:!0,isActive:l,children:(0,g.jsx)(j,{contentInfo:o})})}},68315:function(e,n,t){"use strict";t.d(n,{A:function(){return p}});var a=t(96540),i=t(64810),s=t(4240),r=t(45871),o=t(19871),l=t(29390),c=t(74848);var u=()=>{const e=(0,i.useStaticQuery)("8872584"),[n,t]=(0,a.useState)(5),[u,d]=(0,a.useState)(!1),{isBrowser:m,localStorage:p}=(0,o.A)(),_=e.allContentfulTemplate.nodes[0],f={renderNode:{[r.BLOCKS.PARAGRAPH]:(e,n)=>(0,c.jsx)("p",{children:n}),[r.BLOCKS.HEADING_1]:(e,n)=>(0,c.jsx)("h1",{children:n})}},h=(0,a.useCallback)(()=>setInterval(()=>{n>0?t(n-1):d(!0)},1e3),[n]);return(0,a.useEffect)(()=>{const e=h();return 0===n&&(d(!0),clearInterval(e),(()=>{var e,n;const t=null===(e=p.getItem("CURRENT_TAB"))||void 0===e?void 0:e.toString(),a=null===(n=window)||void 0===n?void 0:n.location.hostname;window.location.href="empresas"===t?"localhost"===a?"/empresas":"/portal-servicios/empresas":"localhost"===a?"/personas":"/portal-servicios/personas"})()),()=>{clearInterval(e)}},[u,n]),(0,c.jsx)(c.Fragment,{children:m&&(0,c.jsxs)("section",{className:"o-head404",children:[(0,c.jsxs)("article",{className:"o-head404__container",children:[_.tituloEnriquecido&&(0,s.i)(JSON.parse(_.tituloEnriquecido.raw),f),(0,c.jsxs)("p",{children:["Seras Redirigido a la pagina inicial en: ",n," Segundos"]})]}),(0,c.jsx)("figure",{className:"o-head404__cover",children:(0,c.jsx)("img",{loading:"lazy",className:"o-head404__cover__img",src:_.imagen[0]&&(0,l.s)(_.imagen[0]),alt:_.imagen[0].title})})]})})},d=t(62291),m=t(62585);var p=({data:e,children:n,hasLoader:t,isPrivate:a,hideSide:i,sideMenu:s,isMain:r,isActive:o,serviceId:l})=>{var p;const{metaTitulo:_,metaDescripcion:f,metaImagen:h,noIndex:v,urlCanonical:g}=e;return(0,c.jsx)(d.A,{hasLoader:t,isPrivate:a,hideSide:i,sideMenu:s,isMain:r,serviceId:l,children:o?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m.A,{title:_,description:f,image:null==h||null===(p=h.file)||void 0===p?void 0:p.url,noIndex:v,urlCanonical:g,noCanonical:!1,lang:"es"}),n]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m.A,{title:"Pagina no encontrada",noIndex:!0}),(0,c.jsx)(u,{})]})})}},70277:function(e,n){"use strict";n.A=e=>{const n=e.split("/");return n[0]+" de "+["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"][parseInt(n[1])-1]+" de "+n[2]}},75741:function(e){window,e.exports=function(e){var n={};function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(a,i,function(n){return e[n]}.bind(null,i));return a}
1,t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}({
1"./xmlParser.js":function(e,n){function t(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,a,i;return n=e,(a=[{key:"_parseFromString",value:function(e){var n=this,t=(e=this._encodeCDATAValues(e)).replace(/\s{2,}/g," ").replace(/\\t\\n\\r/g,"").replace(/>/g,">\n").replace(/\]\]/g,"]]\n"),a=[];return t.split("\n").map(function(e){if((e=e.trim())&&!(e.indexOf("?xml")>-1))if(0==e.indexOf("<")&&e.indexOf("CDATA")<0){var t=n._parseTag(e);a.push(t),e.match(/\/\s*>$/)&&a.push(n._parseTag("</"+t.name+">"))}else a[a.length-1].value+=" ".concat(n._parseValue(e))}),this._convertTagsArrayToTree(a)[0]}},{key:"_encodeCDATAValues",value:function(e){for(var n=new RegExp(/<!\[CDATA\[([^\]\]]+)\]\]/gi),t=n.exec(e);t;)t.length>1&&(e=e.replace(t[1],encodeURIComponent(t[1]))),t=n.exec(e);return e}},{key:"_getElementsByTagName",value:function(e){var n=[];return"*"!=e&&this.name.toLowerCase()!==e.toLowerCase()||n.push(this),this.children.map(function(t){n=n.concat(t.getElementsByTagName(e))}),n}},{key:"_parseTag",value:function(e,n){var t=e.match(/([^\s]*)=('([^']*?)'|"([^"]*?)")|([\/?\w\-\:]+)/g),a={name:t.shift().replace(/\/\s*$/,""),attributes:{},children:[],value:"",getElementsByTagName:this._getElementsByTagName};return t.map(function(e){var n=e.split("=");if(!(n.length<2)){var t=n[0],i="";i=2===n.length?n[1]:(n=n.slice(1)).join("="),a.attributes[t]="string"==typeof i?i.replace(/^"/g,"").replace(/^'/g,"").replace(/"$/g,"").replace(/'$/g,"").trim():i}}),a}},{key:"_parseValue",value:function(e){return e.indexOf("CDATA")<0?e.trim():e.substring(e.lastIndexOf("[")+1,e.indexOf("]"))}},{key:"_convertTagsArrayToTree",value:function(e){for(var n=[];e.length>0;){var t=e.shift();if(t.value.indexOf("</")>-1||t.name.match(/\/$/))t.name=t.name.replace(/\/$/,"").trim(),t.value=t.value.substring(0,t.value.indexOf("</")).trim(),n.push(t);else{if(0==t.name.indexOf("/"))break;n.push(t),t.children=this._convertTagsArrayToTree(e),t.value=decodeURIComponent(t.value.trim())}}return n}},{key:"_toString",value:function(e){var n=this,t=this._convertTagToText(e);return e.children.length>0&&(e.children.map(function(e){t+=n._toString(e)}),t+="</"+e.name+">"),t}},{key:"_convertTagToText",value:function(e){var n="<"+e.name;for(var t in e.attributes)n+=" "+t+'="'+e.attributes[t]+'"';return e.value.length>0?n+=">"+e.value:n+=">",0===e.children.length&&(n+="</"+e.name+">"),n}},{key:"parseFromString",value:function(e){return this._parseFromString(e)}},{key:"toString",value:function(e){return this._toString(e)}}])&&t(n.prototype,a),i&&t(n,i),e}()}
1,0:function(e,n,t){e.exports=t("./xmlParser.js")}})},88767:function(e,n,t){"use strict";var a=t(64810),i=t(19871),s=t(74848);n.A=e=>{const{content:n}=e,{isBrowser:t}=(0,i.A)();return(0,s.jsx)("nav",{itemType:"https://schema.org/Breadcrumb",className:"miga-de-pan",children:(0,s.jsx)("ul",{className:"a-breadcrumb"+(e.specialEvent?" a-breadcrumb--special-event":""),children:t&&(n=>{const t=n.split("/").map(e=>e.trim()).filter(Boolean);return t.map((n,i)=>{const r=`/${t.slice(1,i+1).map(e=>e.toLowerCase().includes("certificados y consultas")?"certificados":e.replace(/\s+/g,"-").toLowerCase()).join("/")}`;return(0,s.jsx)("li",{itemProp:"url",className:`crumb url-${i}${e.specialEvent?" --special-event":""}`,children:(0,s.jsx)(a.Link,{title:n,to:r.toLocaleLowerCase(),rel:"noopener noreferrer",children:(0,s.jsx)("span",{itemProp:"title",children:n})})},i)})})(n)})})}},99476:function(e,n,t){"use strict";var a=t(35027),i=t(17325),s=t(74848);n.A=()=>(0,s.jsx)("div",{className:"o-we-sorry",children:(0,s.jsxs)("div",{className:"o-we-sorry__content",children:[(0,s.jsx)("img",{className:"o-we-sorry__content__img",src:a.A,alt:"we are sorry image",title:"we are sorry"}),(0,s.jsx)("h1",{className:"o-we-sorry__content__title",children:"¡Ups! Algo salió mal"}),(0,s.jsx)("p",{className:"o-we-sorry__content__desc",children:"En este momento no podemos completar la operación, te recomendamos actualizar la página o intentar más tarde"}),(0,s.jsx)("div",{className:"o-we-sorry__content__btn",children:(0,s.jsx)(i.A,{type:"link",classname:"secondary o-we-sorry__content__btn__back",text:"Volver al inicio",isDisabled:!1,href:"/portal-servicios"})})]})})}}]);
2//# sourceMappingURL=component---src-pages-mi-afiliacion-empresas-tsx-f7835699a0e53025ce7e.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.