PageSourceSearch

https://www.comfama.com/portal-servicios/9426f7f47fb12d2c411e880e8d3c5ea9c1546e42-52486081bef2ac4ce0fe.js

js comfama.com collected 2026-10-02 02:47:30 UTC 15,212 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcomfama_portalservicios_archetype=self.webpackChunkcomfama_portalservicios_archetype||[]).push([[1826],{29900:function(e,o,n){var i=n(7095),l=n(19871),a=n(51145),t=n(21396),s=n.n(t),c=n(48596);o.A=(e,o,n,t,r,d,u)=>{var m,v;const{localStorage:g}=(0,l.A)(),p=new a.A,h={headers:{Authorization:u}},_=p.get("CURRENT_BUSINESS")&&p.get("CURRENT_BUSINESS").toString(),f=_&&s().AES.decrypt(_,"comfama"),N=null!=f?JSON.parse(f.toString(s().enc.Utf8)):null,x={businessName:null!=g&&g.getItem("CURRENT_TAB")&&"empresas"===(null==g?void 0:g.getItem("CURRENT_TAB"))&&null!==N?null==N?void 0:N.label:null,userName:e,documentId:o,email:t,eventName:d.split("::")[d.split("::").length-1].replace(" ",""),eventType:r,profile:null!=g&&g.getItem("CURRENT_TAB")?(0,c.Hn)(null==g?void 0:g.getItem("CURRENT_TAB")):"personas",transaction:d,typeId:n,businessDocumentId:null!=g&&g.getItem("CURRENT_TAB")&&"empresas"===(null==g?void 0:g.getItem("CURRENT_TAB"))&&N?null==N?void 0:N.companyDocID:null,businessTypeId:null!=g&&g.getItem("CURRENT_TAB")&&"empresas"===(null==g?void 0:g.getItem("CURRENT_TAB"))&&N?null==N?void 0:N.companyDocType:null,urlOrigin:null===(m=window)||void 0===m||null===(v=m.location)||void 0===v?void 0:v.pathname};i.A.sendTraceItem(x,h).catch(e=>console.log(e))}},42351:function(e,o,n){var i=n(96540),l=n(29900),a=n(64691),t=n(68667),s=n(32936),c=n(88767),r=n(17325),d=n(67025),u=n(74848);o.A=({data:e,isActivePayment:o})=>{var n;const[m,v]=e.referencias,{gigyaContext:g,selectedTab:p,userInfoContext:h}=(0,i.useContext)(a.A),_=null!=g&&g.gigyaAccount?v:m,[f,N]=(0,i.useState)(9),[x,A]=(0,i.useState)((null===(n=_.referencias)||void 0===n?void 0:n.length)>9),[y,j]=(0,i.useState)(()=>{var e;return(null!==(e=_.referencias.map(e=>e))&&void 0!==e?e:[]).splice(0,9)}),C=(0,s.A)(),I=()=>{var e,o,n,i,a,t,s,c,r;null!=g&&g.gigyaAccount&&((0,l.A)(`${null==g||null===(e=g.gigyaAccount)||void 0===e?void 0:e.profile.firstName} ${null!=g&&null!==(o=g.gigyaAccount)&&void 0!==o&&o.data.secondName?`${g.gigyaAccount.data.secondName} `:""}${null==g||null===(n=g.gigyaAccount)||void 0===n?void 0:n.profile.lastName}${null!=g&&null!==(i=g.gigyaAccount)&&void 0!==i&&i.data.secondLastName?` ${null==g||null===(a=g.gigyaAccount)||void 0===a?void 0:a.data.secondLastName}`:""}`,null==g||null===(t=g.gigyaAccount)||void 0===t?void 0:t.data.docNumber,null==g||null===(s=g.gigyaAccount)||void 0===s?void 0:s.data.docType,null==g||null===(c=g.gigyaAccount)||void 0===c?void 0:c.profile.email,"click","Pagos :: HistoriDePagos :: } ClickBotonHistoricoPagos",null===(r=h.data)||void 0===r?void 0:r.userJwt),window.location.href="/portal-servicios/pagos/historico-de-pagos")};return(0,u.jsxs)("div",{className:"o-payment-content",children:[(0,u.jsx)("div",{className:"o-payment-content-breadcrumb",children:(0,u.jsx)(c.A,{content:_.migaDePan})}),(0,u.jsxs)("div",{className:"o-payment-content-title-container",children:[(0,u.jsx)("h1",{className:"o-payment-content-title",children:_.nombre}),!C&&o&&(null==g?void 0:g.gigyaAccount)&&(0,u.jsx)(r.A,{type:"button",classname:"secondary ",text:"VER HISTÓRICO",onClickAction:I,href:"/portal-servicios/pagos/historico-de-pagos",target:"_self",isDisabled:void 0})]}),(0,u.jsx)("h2",{className:"o-payment-content-subtitle",children:_.subtitulo}),C&&o&&(null==p?void 0:p.get)===t.m.PEOPLE&&(0,u.jsx)(r.A,{type:"button",classname:"secondary o-payment-content-button",text:"VER HISTÓRICO",onClickAction:I,href:"/portal-servicios/pagos/historico-de-pagos",target:"_self",isDisabled:void 0}),(0,u.jsx)("div",{className:"o-payment-content-cards-payment "+(y&&(null==y?void 0:y.length)>0?"":"__center"),children:y&&(null==y?void 0:y.length)>0?null==y?void 0:y.map((e,o)=>(0,u.jsx)(d.A,{index:o,...e,defaultIcono:null,origin:`CardPagos${null==p?void 0:p.get}`},`${e.titulo}${o}`)):(0,u.jsx)("p",{className:"o-payment-content__no-match",children:"Actualmente, no tenemos servicios en esta categoría."})}),x&&(0,u.jsx)("p",{className:"o-payment-content-showmore",onClick:()=>(()=>{var e,o;const n=null!==(e=_.referencias.map(e=>e))&&void 0!==e?e:[],i=f+6;N(i);const l=n.slice(0,i);N(l),j(l),A(l.length<(null===(o=_.referencias)||void 0===o?void 0:o.length))})(),children:"Cargar más"})]})}},67025:function(e,o,n){var i=n(96540),l=n(4240),a=n(20826),t=n.n(a),s=n(93231),c=n(17325),r=n(40587),d=n(64
1691),u=n(68667),m=n(44460),v=n(24021),g=n(29390),p=n(74848);o.A=e=>{var o,n,a,h,_,f,N,x,A,y,j,C,I,w,T,b,E,S,R,B;const{gigyaContext:$,userInfoContext:U,business:k,selectedTab:L}=(0,i.useContext)(d.A),[P,O]=(0,i.useState)(!1),D=(0,i.useMemo)(()=>{const o={},{referenciaContenido:n}=e;if((null==n?void 0:n.length)>0){const e=[...n],l=t()(e,"nombreCategoria");if(l){const n=e.splice(l,1)[0];o.category=n}let a=-1;if((null==e?void 0:e.length)>0&&(a=e.findIndex(e=>(null==e?void 0:e.imagen)&&(null==e?void 0:e.copyBoton)),a>=0)){const n=e.splice(a,1)[0];o.show_more=n}if((null==e?void 0:e.length)>0){const n=e.findIndex(e=>!(null!=e&&e.imagen)&&(null==e?void 0:e.copyBoton));if(n>=0){var i;const l=e.splice(n,1)[0];null!=l&&null!==(i=l.redireccion)&&void 0!==i&&i.includes("tienda")?o.action={...l,redireccion:null!=$&&$.gigyaAccount?"https://tienda.comfama.com/comfama/es/cart":null==l?void 0:l.redireccion}:o.action=l}}if((null==e?void 0:e.length)>0){const n=e.findIndex(e=>null==e?void 0:e.descripcion);if(n>=0){const i=e.splice(n,1)[0];o.tooltip=i}}}return o},[e.referenciaContenido]),H=(0,i.useMemo)(()=>{if(null!=e&&e.fechaExpiracionIconoNuevo){const o=new Date(e.fechaExpiracionIconoNuevo);return new Date<o}return!!e.isNew},[null==e?void 0:e.fechaExpiracionIconoNuevo]),M=(0,i.useMemo)(()=>{var o,n,i,l;const{icono:a,defaultIcono:t}=e;if(null!=a&&null!==(o=a.file)&&void 0!==o&&o.url)return{url:(0,g.s)(a),title:a.title};if(t&&(null!=t&&null!==(n=t.file)&&void 0!==n&&n.url||null!==(i=t[0])&&void 0!==i&&null!==(l=i.file)&&void 0!==l&&l.url)){var s;const e=null!==(s=t[0])&&void 0!==s?s:t;return{url:(0,g.s)(e),title:null==e?void 0:e.title}}return{}},[null==e||null===(o=e.icono)||void 0===o?void 0:o.file]),J=e=>void 0!==e&&!(!e.includes("AFILIACIONES")&&!e.includes("AFILIACIÓN Y SUBSIDIOS"));return(0,p.jsxs)("div",{className:`a-card ${e.tgm}`,children:[(null==M?void 0:M.url)&&(0,p.jsx)("img",{className:`a-card__img ${e.tgm}`,src:M.url}),(0,p.jsxs)("div",{className:`a-card__label ${e.tgm}`,children:[(0,p.jsx)("div",{className:`a-card__line line ${e.tgm}`,style:{backgroundColor:null==D||null===(n=D.category)||void 0===n?void 0:n.hexHover}}),(0,p.jsx)("p",{className:`a-card__label-text ${e.tgm}`,style:{color:null==D||null===(a=D.category)||void 0===a?void 0:a.hexHover},children:null==D||null===(h=D.category)||void 0===h?void 0:h.nombreCategoria}),H&&(0,p.jsx)("div",{className:`a-card__labelNew ${e.tgm}`,children:(0,p.jsx)("p",{children:"¡Nuevo!"})})]}),(0,p.jsxs)("div",{className:`a-card__title  ${e.tgm}`,children:[e.h2?(0,p.jsx)("h2",{children:e.titulo}):(0,p.jsx)("h3",{children:e.titulo}),(null==D?void 0:D.tooltip)&&(0,p.jsxs)("div",{className:"a-card__tooltip",children:[(0,p.jsx)("i",{className:"icon icon-question-circle"}),(0,p.jsx)("div",{className:"a-card__tooltip-box",children:(null==D||null===(_=D.tooltip)||void 0===_||null===(f=_.descripcion)||void 0===f?void 0:f.raw)&&(0,l.i)(JSON.parse(null==D||null===(N=D.tooltip)||void 0===N||null===(x=N.descripcion)||void 0===x?void 0:x.raw))})]})]}),(0,p.jsx)("div",{className:`a-card__text ${e.tgm}`,children:(null==e?void 0:e.descripcion)&&(0,l.i)(JSON.parse(null==e||null===(A=e.descripcion)||void 0===A?void 0:A.raw))}),(0,p.jsxs)("div",{className:`a-card__action ${e.tgm}`,children:[(0,p.jsx)("div",{className:"a-card__action__know-more",children:D.show_more&&!J(null==D||null===(y=D.category)||void 0===y?void 0:y.nombreCategoria)&&(0,p.jsx)("div",{className:`show_more ${e.tgm}`,children:(0,p.jsx)("a",{href:null!=D&&null!==(j=D.show_more)&&void 0!==j&&j.redireccion?(0,v.UG)(D.show_more.redireccion):"#",target:(0,v.EW)(D.show_more.redireccion),rel:"noopener noreferrer",title:null!==(C=D.show_more)&&void 0!==C&&C.copyBoton?null===(I=D.show_more)||void 0===I?void 0:I.copyBoton:"a-card__action-link",className:e.tgm,children:null!==(w=null===(T=D.show_more)||void 0===T?void 0:T.copyBoton)&&void 0!==w?w:""})})}),(0,p.jsx)("div",{className:"a-card__action__button",children:D.action&&(0,p.jsx)("a",{className:`action  ${e.tgm}`,href:null!=D&&null!==(b=D.action)&&void 0!==b&&b.redireccion&&"string"==typeof D.action.redireccion?(0,v.UG)(D.action.redireccion):void 0,target:(0,v.EW)(D.action.redireccion),rel:"noopener noreferrer",title:null!==(E=D.action)&&void 0!==E&&E.copyBoton?null===(S=D.action)||void 0===S?void 0:S.copyBoton:"a-card__action-second-link",onClick:()=>{var o,n,i,l,a,t,s,c,r,d;(J(null==D||null===(o=D.category)||void 0===o?void 0:o.nombreCategoria)&&O(!0),null!=$&&$.gigyaAccount)&&(0,m.A)(`${null==$||null===(n=$.gigyaAccount)||void 0===n?void 0:n.profile.firstName} ${null!=$&&null!==(i=$.gigyaAccount)&&void 0!==i&&i.data.secondName?`${$.gigyaAccount.data.secondName} `:""}${null==$||null===(l=$.gigyaAccount)||void 0===l?void 0:l.profile.lastName}${null!=$&&null!==(a=$.gigyaAccount)&&void 0!==a&&a.data.secondLastName?` ${null==$||null===(t=$.gigyaAccount)||void 0===t?void 0:t.data.secondLastName}`:""}`,null==$||null===(s=$.gigyaAccount)||void 0===s?void 0:s.data.docNumber,null==$||null===(c=$.gigyaAccount)||void 0===c?void 0:c.data.docType,null==$||null===(r=$.gigyaAccount)||void 0===r?void 0:r.profile.email,"click",`${origin||""} :: } Click${e.titulo.replace(/\s+/g,"")} `,null===(d=U.data)||void 0===d?void 0:d.userJwt)},children:null!==(R=null===(B=D.action)||void 0===B?void 0:B.copyBoton.toLowerCase())&&void 0!==R?R:""})})]}),P&&(0,p.jsx)(r.A,{open:P,onClose:()=>O(!1),children:(0,p.jsxs)("div",{className:"o-massive-certificate-form__modal__container",children:[(0,p.jsx)("div",{className:"o-massive-certificate-form__modal__container__closeBtn",onClick:()=>{O(!1)},children:(0,p.jsx)("img",{src:s.A,alt:"closeButton"})}),(0,p.jsxs)("div",{className:"o-massive-certificate-form__modal__container__content",children:[(0,p.jsx)("div",{className:"o-massive-certificate-form__modal__container__content__img",children:(0,p.jsx)("i",{className:"icon-info-circle1"})}),(0,p.jsx)("div",{className:"o-massive-certificate-form__modal__container__content__title",children:(0,p.jsx)("h2",{children:"¡Noticia importante de afiliaciones!"})}),(0,p.jsx)("div",{className:"o-massive-certificate-form__modal__container__content__descriptionOne",children:(0,p.jsx)("p",{children:"Este 16 de diciembre desde 7:00 a.m. realizaremos mantenimiento de nuestra plataforma de afiliaciones, por lo que no se podrán realizar afiliaciones de trabajadores dependientes. El proceso volverá a la normalidad este 17 de diciembre a las 12 m.m"})}),(0,p.jsx)("div",{className:"o-massive-certificate-form__modal__container__content__buttons",children:(0,p.jsx)(c.A,{type:"button",classname:"secondary",text:"Entendido",onClickAction:()=>(()=>{const e=window.location.pathname.includes("empresas"),o=localStorage.getItem("CURRENT_TAB");var n,i,l,a;if(o===u.m.BUSINESS)if(null!=k&&k.get)if(e){var t;localStorage.setItem("CURRENT_TAB",o),null==L||L.set(o),location.href="localhost"===(null===(t=window)||void 0===t?void 0:t.location.hostname)?"/empresas":"/portal-servicios/empresas"}else{var s;location.href="localhost"===(null===(s=window)||void 0===s?void 0:s.location.hostname)?"/empresas":"/portal-servicios/empresas"}else e?location.href="localhost"===(null===(n=window)||void 0===n?void 0:n.location.hostname)?"/empresas":"/portal-servicios/empresas":(localStorage.setItem("CURRENT_TAB",o),null==L||L.set(o),location.href="localhost"===(null===(i=window)||void 0===i?void 0:i.location.hostname)?"/empresas":"/portal-servicios/empresas");o===u.m.PEOPLE&&(localStorage.getItem("CURRENT_TAB")!==o&&(null==L?void 0:L.get)!==o?(localStorage.setItem("CURRENT_TAB",o),null==L||L.set(o),location.href=o===u.m.PEOPLE&&"localhost"===(null===(l=window)||void 0===l?void 0:l.location.hostname)?"/personas":"/portal-servicios/personas"):(localStorage.setItem("CURRENT_TAB",o),null==L||L.set(o),location.href="localhost"===(null===(a=window)||void 0===a?void 0:a.location.hostname)?"/personas":"/portal-servicios/personas"))})(),isDisabled:!1})})]})]})})]})}},68315:function(e,o,n){n.d(o,{A:function(){return v}});var i=n(96540),l=n(64810),a=n(4240),t=n(45871),s=n(19871),c=n(29390),r=n(74848);var d=()=>{const e=(0,l.useStaticQuery)("8872584"),[o,n]=(0,i.useState)(5),[d,u]=(0,i.useState)(!1),{isBrowser:m,localStorage:v}=(0,s.A)(),g=e.allContentfulTemplate.nodes[0],p={renderNode:{[t.BLOCKS.PARAGRAPH]:(e,o)=>(0,r.jsx)("p",{children:o}),[t.BLOCKS.HEADING_1]:(e,o)=>(0,r.jsx)("h1",{children:o})}},h=(0,i.useCallback)(()=>setInterval(()=>{o>0?n(o-1):u(!0)},1e3),[o]);return(0,i.useEffect)(()=>{const e=h();return 0===o&&(u(!0),clearInterval(e),(()=>{var e,o;const n=null===(e=v.getItem("CURRENT_TAB"))||void 0===e?void 0:e.toString(),i=null===(o=window)||void 0===o?void 0:o.location.hostname;window.location.href="empresas"===n?"localhost"===i?"/empresas":"/portal-servicios/empresas":"localhost"===i?"/personas":"/portal-servicios/personas"})()),()=>{clearInterval(e)}},[d,o]),(0,r.jsx)(r.Fragment,{children:m&&(0,r.jsxs)("section",{className:"o-head404",children:[(0,r.jsxs)("article",{className:"o-head404__container",children:[g.tituloEnriquecido&&(0,a.i)(JSON.parse(g.tituloEnriquecido.raw),p),(0,r.jsxs)("p",{children:["Seras Redirigido a la pagina inicial en: ",o," Segundos"]})]}),(0,r.jsx)("figure",{className:"o-head404__cover",children:(0,r.jsx)("img",{loading:"lazy",className:"o-head404__cover__img",src:g.imagen[0]&&(0,c.s)(g.imagen[0]),alt:g.imagen[0].title})})]})})},u=n(62291),m=n(62585);var v=({data:e,children:o,hasLoader:n,isPrivate:i,hideSide:l,sideMenu:a,isMain:t,isActive:s,serviceId:c})=>{var v;const{metaTitulo:g,metaDescripcion:p,metaImagen:h,noIndex:_,urlCanonical:f}=e;return(0,r.jsx)(u.A,{hasLoader:n,isPrivate:i,hideSide:l,sideMenu:a,isMain:t,serviceId:c,children:s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{title:g,description:p,image:null==h||null===(v=h.file)||void 0===v?void 0:v.url,noIndex:_,urlCanonical:f,noCanonical:!1,lang:"es"}),o]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{title:"Pagina no encontrada",noIndex:!0}),(0,r.jsx)(d,{})]})})}},88767:function(e,o,n){var i=n(64810),l=n(19871),a=n(74848);o.A=e=>{const{content:o}=e,{isBrowser:n}=(0,l.A)();return(0,a.jsx)("nav",{itemType:"https://schema.org/Breadcrumb",className:"miga-de-pan",children:(0,a.jsx)("ul",{className:"a-breadcrumb"+(e.specialEvent?" a-breadcrumb--special-event":""),children:n&&(o=>{const n=o.split("/").map(e=>
1e.trim()).filter(Boolean);return n.map((o,l)=>{const t=`/${n.slice(1,l+1).map(e=>e.toLowerCase().includes("certificados y consultas")?"certificados":e.replace(/\s+/g,"-").toLowerCase()).join("/")}`;return(0,a.jsx)("li",{itemProp:"url",className:`crumb url-${l}${e.specialEvent?" --special-event":""}`,children:(0,a.jsx)(i.Link,{title:o,to:t.toLocaleLowerCase(),rel:"noopener noreferrer",children:(0,a.jsx)("span",{itemProp:"title",children:o})})},l)})})(o)})})}}}]);
2//# sourceMappingURL=9426f7f47fb12d2c411e880e8d3c5ea9c1546e42-52486081bef2ac4ce0fe.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.