PageSourceSearch

https://www.comfama.com/8fa293cb3c3d8f5bd829034effb3d86470cdc6d3-75b76ded39b86e6345d4.js

js comfama.com collected 2026-10-02 02:46:48 UTC 41,253 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcomfama_portal_archetype=self.webpackChunkcomfama_portal_archetype||[]).push([[609],{1228:function(e,a,t){t.d(a,{A:function(){return ce}});var r=t(6540),n=t(4164),o=t(5659),s=t(1848),i=t(9077),c=t(5607),l=t(8466),u=t(8660),m=t(4155),d=t(8413),p=t(1609);function L(e){return(0,p.Ay)("MuiAppBar",e)}(0,d.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var M=t(4848);const h=(e,a)=>e?`${e?.replace(")","")}, ${a})`:a,y=(0,s.Ay)(m.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:t}=e;return[a.root,a[`position${(0,l.A)(t.position)}`],a[`color${(0,l.A)(t.color)}`]]}})((0,i.A)(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter((0,u.A)(["contrastText"])).map(([a])=>({props:{color:a},style:{"--AppBar-background":(e.vars??e).palette[a].main,"--AppBar-color":(e.vars??e).palette[a].contrastText}})),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?h(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?h(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]})));var g=r.forwardRef(function(e,a){const t=(0,c.b)({props:e,name:"MuiAppBar"}),{className:r,color:s="primary",enableColorOnDark:i=!1,position:u="fixed",...m}=t,d={...t,color:s,position:u,enableColorOnDark:i},p=(e=>{const{color:a,position:t,classes:r}=e,n={root:["root",`color${(0,l.A)(a)}`,`position${(0,l.A)(t)}`]};return(0,o.A)(n,L,r)})(d);return(0,M.jsx)(y,{square:!0,component:"header",ownerState:d,elevation:4,className:(0,n.A)(p.root,r,"fixed"===u&&"mui-fixed"),ref:a,...m})}),v=t(7834),w=t(7164);const f=r.createContext();var E=t(9701),A=t(5953),N=t(3431),S=t(4675);function k(e){return(0,p.Ay)("MuiDrawer",e)}(0,d.A)("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var _=t(8536);function b(e,a){if(!e)return a;
1if("function"==typeof e||"function"==typeof a)return t=>{const r="function"==typeof a?a(t):a,o="function"==typeof e?e({...t,...r}):e,s=(0,n.A)(t?.className,r?.className,o?.className);return{...r,...o,...!!s&&{className:s},...r?.style&&o?.style&&{style:{...r.style,...o.style}},...r?.sx&&o?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const t=a,r=(0,n.A)(t?.className,e?.className);return{...a,...e,...!!r&&{className:r},...t?.style&&e?.style&&{style:{...t.style,...e.style}},...t?.sx&&e?.sx&&{sx:[...Array.isArray(t.sx)?t.sx:[t.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const j=(e,a)=>{const{ownerState:t}=e;return[a.root,("permanent"===t.variant||"persistent"===t.variant)&&a.docked,a.modal]},C=(0,s.Ay)(E.A,{name:"MuiDrawer",slot:"Root",overridesResolver:j})((0,i.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),D=(0,s.Ay)("div",{shouldForwardProp:N.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:j})({flex:"0 0 auto"}),x=(0,s.Ay)(m.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,a)=>{const{ownerState:t}=e;return[a.paper,a[`paperAnchor${(0,l.A)(t.anchor)}`],"temporary"!==t.variant&&a[`paperAnchorDocked${(0,l.A)(t.anchor)}`]]}})((0,i.A)(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),T={left:"right",right:"left",top:"down",bottom:"up"};var I=r.forwardRef(function(e,a){const t=(0,c.b)({props:e,name:"MuiDrawer"}),s=(0,S.A)(),i=r.useContext(f)??!1,u={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:m="left",BackdropProps:d,children:p,className:L,elevation:h=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:g,...v}={},onClose:w,open:E=!1,PaperProps:N={},SlideProps:j,TransitionComponent:I,transitionDuration:z=u,variant:B="temporary",slots:$={},slotProps:Y={},...O}=t,Z=r.useRef(!1);r.useEffect(()=>{Z.current=!0},[]);const P=function({direction:e},a){return"rtl"===e&&function(e){return["left","right"].includes(e)}(a)?T[a]:a}({direction:i?"rtl":"ltr"},m),Q=m,R={...t,anchor:Q,elevation:h,open:E,variant:B,...O},F=(e=>{const{classes:a,anchor:t,variant:r}=e,n={root:["root",`anchor${(0,l.A)(t)}`],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,l.A)(t)}`,"temporary"!==r&&`paperAnchorDocked${(0,l.A)(t)}`]};return(0,o.A)(n,k,a)})(R),U={slots:{transition:I,...$},slotProps:{paper:N,transition:j,...Y,backdrop:b(Y.backdrop||{...d,...g},{transitionDuration:z})}},[W,V]=(0,_.A)("root",{ref:a,elementType:C,className:(0,n.A)(F.root,F.modal,L),shouldForwardComponentProp:!0,ownerState:R,externalForwardedProps:{...U,...O,...v},additionalProps:{open:E,onClose:w,hideBackdrop:y,slots:{backdrop:U.slots.backdrop},slotProps:{backdrop:U.slotProps.backdrop}}}),[G,H]=(0,_.A)("paper",{elementType:x,shouldForwardComponentProp:!0,className:(0,n.A)(F.paper,N.className),ownerState:R,externalForwardedProps:U,additionalProps:{elevation:"temporary"===B?h:0,square:!0}}),[J,q]=(0,_.A)("docked",{elementType:D,ref:a,className:(0,n.A)(F.root,F.docked,L),ownerState:R,externalForwardedProps:U,additionalProps:O}),[X,K]=(0,_.A)("transition",{elementType:A.A,ownerState:R,externalForwardedProps:U,additionalProps:{in:E,direction:T[P],timeout:z,appear:Z.current}}
1),ee=(0,M.jsx)(G,{...H,children:p});if("permanent"===B)return(0,M.jsx)(J,{...q,children:ee});const ae=(0,M.jsx)(X,{...K,children:ee});return"persistent"===B?(0,M.jsx)(J,{...q,children:ae}):(0,M.jsx)(W,{...V,children:ae})}),z=t(4733),B=t(9871);var $=()=>{const{0:e,1:a}=(0,r.useState)(!1),t=(0,r.useRef)(null),n=(0,r.useRef)(null),o=(0,r.useRef)(null),{window:s}=(0,B.A)(),i=()=>a(!0),c=()=>{var e;a(!1),null===(e=t.current)||void 0===e||e.focus()};return(0,r.useEffect)(()=>{if(e){var a;const e=null===(a=n.current)||void 0===a?void 0:a.querySelector("a");null==e||e.focus()}},[e]),(0,r.useEffect)(()=>{var a,t;e?null===(a=n.current)||void 0===a||a.querySelectorAll("a").forEach(e=>{e.removeAttribute("tabindex")}):null===(t=n.current)||void 0===t||t.querySelectorAll("a").forEach(e=>{e.setAttribute("tabindex","-1")})},[e]),(0,r.useEffect)(()=>{const a=e=>{"Escape"===e.key&&c()};return e&&document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[e]),(0,r.useEffect)(()=>{const e=()=>{s.scrollY>0&&a(!1)};return s.addEventListener("scroll",e),()=>{s.removeEventListener("scroll",e)}},[]),(0,r.useEffect)(()=>(0,z.A)(o,c),[]),r.createElement("div",{ref:o,className:"zonaTransaccional-module--m_zt--3e16d"},r.createElement("button",{ref:t,"aria-haspopup":"true","aria-expanded":e,"aria-controls":"zona-transaccional-menu",className:"gtm_click_menu_comfama_home_header_transaccional",onClick:()=>e?c():i(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i())}},"Zona transaccional",r.createElement("i",{className:"icon-chevron-down1 "+(e?"zonaTransaccional-module--zt__open--c98e4":""),style:{pointerEvents:"none"}})),r.createElement("div",{ref:n,id:"zona-transaccional-menu",className:"zonaTransaccional-module--m_ztopen--c7d74",style:{opacity:e?1:0,top:e?49:0,pointerEvents:e?"initial":"none"},onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),c())}},r.createElement("a",{href:"https://www.comfama.com/portal-servicios/personas/",target:"_blank",rel:"noopener noreferrer","aria-label":"Zona transaccional para personas"},r.createElement("i",{className:"icon-users"}),"Personas"),r.createElement("a",{href:"https://www.comfama.com/portal-servicios/empresas/",target:"_blank",rel:"noopener noreferrer","aria-label":"Zona transaccional para empresas"},r.createElement("i",{className:"icon-industry"}),"Empresas")))},Y=t(5458),O=t(8450),Z=t(6075),P=t(3154),Q=t(9027);var R=()=>{var e,a;const{isBrowser:t,window:n}=(0,B.A)(),{searchChips:o,mostSearched:s,recommendedContents:i}=(0,Q.g)(),{recentFilters:c,addRecentSearch:l}=(0,O.tB)({maxItems:3}),{doSearch:u,result:m,isLoading:d}=(0,Z.A)({apikeyElastic:null!==(e="VUQxOEU1Z0JDc1VaMG1DNEN2MVM6V1EweWNDMmZTeVcyNk9YVlVPWDhUQQ==")?e:"",urlElastic:null!==(a="https://integraciones.comfama.com/tran/elasticsearch/_search?index=*,-cda_contentful_projects_ai")?a:"",selectedFields:["id","origin","category","title","description","tags"]});return r.createElement(O.yT,{filters:[].concat((0,Y.A)(c),(0,Y.A)(o)),mostSearched:s,contents:i,searchSuggestions:(null!=m?m:[]).map(P.wv),isLoadingSuggestions:d,onSearch:u,onSearchFull:e=>{l(e),t&&n.location.assign(`/resultados-busqueda/?q=${encodeURIComponent(e)}`)},onEvent:e=>t&&(0,P.w7)(n,e)})},F=t(5268),U=t(8865),W=t(7126);var V=e=>{const{category:a,index:t,setActiveItem:n,activeItem:o,isAnyActive:s,setIsAnyActive:i}=e,{0:c,1:l}=(0,r.useState)(!1);(0,r.useEffect)(()=>{t!==o&&l(!1)},[o]);const u=(e,a,t)=>r.createElement("li",{className:`gtmMenuTransSubcategoria${(0,U.Z5)(e.nombreSubcategoria)}`,key:`cat${a}`},r.createElement("a",{className:`gtmMenuTransSubcategoria${(0,U.Z5)(e.nombreSubcategoria)}`,target:(0,U.FB)(t),rel:(0,U.DH)(t),href:t}," ",e.nombreSubcategoria," ")),m=a.referenciaSubcategorias&&a.referenciaSubcategorias.length>0;return r.createElement(r.Fragment,null,a.referenciaSubcategorias||a.links&&a.links.length>0?r.createElement("button",{id:""+(!c||!s&&t!==o?`gtm_click_menu_comfama_home_header_${(0,W.z)(a.nombreCategoria.split(" ")[0],"_")}`:""),className:`a-nav-accord__btn ${c?"a-nav-accord__btn--active":""} ${s||t===o?"":"a-nav-accord__btn--locked"}`,onClick:()=>{n(t),l(!c),i(c)},"aria-label":a.nombreCategoria},a.nombreCategoria):r.createElement("a",{href:`/${a.slug}`,id:`gtm_click_menu_comfama_home_header_${(0,W.z)(a.nombreCategoria.split(" ")[0],"_")}`,className:"a-nav-accord__link "+(s||t===o?"":"a-nav-accord__link--locked")},a.nombreCategoria),r.createElement("ul",{className:"a-nav-accord__sub "+(c&&t===o?"a-nav-accord__sub--active":"")},r.createElement("li",null," Encontrarás "),a.links&&a.links.length>0?a.links.map((e,a)=>r.createElement("li",{className:`gtmMenuTransSubcategoria${(0,U.Z5
1)(e.label||"")}`,key:`link${a}`},r.createElement("a",{className:`gtmMenuTransSubcategoria${(0,U.Z5)(e.label||"")}`,target:(0,U.FB)(e.link||""),rel:(0,U.DH)(e.link||""),href:e.link},e.label))):r.createElement(r.Fragment,null,m&&u(a.referenciaSubcategorias[0],-1,a.referenciaSubcategorias[0].link||`/${a.referenciaSubcategorias[0].slug}`),m&&a.referenciaSubcategorias[0].referenciaSubcategorias&&a.referenciaSubcategorias[0].referenciaSubcategorias.map((e,t)=>e.verEnMenu?u(e,t,e.link||`/${a.referenciaSubcategorias[0].slug}${e.slug}`):null))))},G=t(9962),H=t(8614),J=t(8622);var q=e=>{const a=e.data,{categorias:t,listaDerecha:n}=a,{isMenuActive:o,isSearcherActive:s,sideLinks:i}=e,{document:c}=(0,B.A)(),{0:l,1:u}=(0,r.useState)(0),{0:m,1:d}=(0,r.useState)(!0);return(0,r.useEffect)(()=>{const e=c.querySelector(".m-nav-component");e&&(e.scrollTop=0)},[o]),r.createElement("nav",{className:"m-nav-component "+(o||s?"":"m-nav-component--hide")},s?r.createElement(G.A,{type:"comfama"}):r.createElement(r.Fragment,null,r.createElement(w.A,{className:"m-nav-component__zt"},r.createElement("a",{href:"https://www.comfama.com/portal-servicios",rel:"noreferrer follow",target:"_blank"},"Zona transaccional"),r.createElement("a",{href:"https://www.comfama.com/ayuda",rel:"noreferrer follow",target:"_blank"},"Ayuda")),r.createElement("div",{className:"m-nav-component__accordion"},t&&t.map((e,a)=>r.createElement(V,{key:`cat${a}`,index:a,category:e,activeItem:l,setActiveItem:u,isAnyActive:m,setIsAnyActive:d}))),r.createElement("div",{className:"m-nav-component__sidelinks"},r.createElement("ul",null,i&&i.map((e,a)=>r.createElement("li",{key:`link${a}`},r.createElement("a",{href:e.hyperLink?e.hyperLink:"/"+e.slug,target:e.hyperLink?"_blank":"_self",rel:e.hyperLink?"nofollow noreferrer":"follow"},r.createElement("img",{loading:"lazy",src:e.imagenDestacada&&e.imagenDestacada[0].file.url,alt:e.imagenDestacada[0].description})))))),r.createElement("div",{className:"m-nav-component__topbar"},r.createElement("span",null,"Accede a:"),r.createElement(J.A,null)),r.createElement("div",{className:"m-nav-component__links "+(m?"":"m-nav-component__links--locked")},r.createElement("ul",{className:"m-nav-component__links-list"},n&&n.map((e,a)=>r.createElement("li",{key:`cat${a}`,className:`gtmMenuTransLateral${(0,U.Z5)(e.nombreCategoria)}`},r.createElement("a",{className:`gtmMenuTransLateral${(0,U.Z5)(e.nombreCategoria)}`,href:e.hyperLink||"/"+e.slug,target:e.hyperLink?"_blank":"_self",rel:e.hyperLink?"nofollow noreferrer":"follow"}," ",e.nombreCategoria," ")))),r.createElement("div",{className:"m-nav-component__links-social"}
1,r.createElement(H.A,null)))))};var X=e=>{const{0:a,1:t}=(0,r.useState)(null);return(0,r.useEffect)(()=>{fetch("/components/menu-principal-info.json").then(async e=>{const a=await e.json();t(a)})},[]),a&&r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:a[0]})};var K=e=>{const a=(0,F.useStaticQuery)("3527028818");return r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:a})};var ee=e=>{const a=(0,F.useStaticQuery)("4204460702");return r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:a})};var ae=e=>{const a=(0,F.useStaticQuery)("3293921910");return r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:a})};var te=e=>{const a=(0,F.useStaticQuery)("634765228");return r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:a})};var re=e=>{var a,t;const n=(0,F.useStaticQuery)("1114220265");return r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:null==n||null===(a=n.allContentfulMenuCategorias)||void 0===a||null===(t=a.nodes)||void 0===t?void 0:t[0]})};var ne=e=>{var a,t;const n=(0,F.useStaticQuery)("1360647783");return r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:null==n||null===(a=n.allContentfulMenuCategorias)||void 0===a||null===(t=a.nodes)||void 0===t?void 0:t[0]})};var oe=e=>{const a=(0,F.useStaticQuery)("3697274977");return r.createElement(q,{isMenuActive:e.isMenuActive,isSearcherActive:e.isSearcherActive,sideLinks:e.sideLinks,isDark:e.isDark,actionTheme:e.actionTheme,data:a})};var se=({isMenuActive:e,isSearcherActive:a,isDark:t,actionTheme:n,menuType:o})=>{const s=(0,F.useStaticQuery)("3019550761"),{iconosLaterales:i}=s.allContentfulMenuCategorias.nodes[0];return r.createElement(r.Fragment,null,(o=>{switch(o){case"Informe 2020":return r.createElement(K,{isMenuActive:e,isSearcherActive:a,sideLinks:i,isDark:t,actionTheme:n});case"Informe 2021":return r.createElement(ee,{isMenuActive:e,isSearcherActive:a,sideLinks:i,isDark:t,actionTheme:n});case"Informe 2022":return r.createElement(ae,{isMenuActive:e,isSearcherActive:a,sideLinks:i,isDark:t,actionTheme:n});case"Informe 2023":return r.createElement(te,{isMenuActive:e,isSearcherActive:a,sideLinks:i,isDark:t,actionTheme:n});case"Informe 2024":return r.createElement(re,{isMenuActive:e,isSearcherActive:a,sideLinks:i,isDark:t,actionTheme:n});case"Informe 2025":return r.createElement(ne,{isMenuActive:e,isSearcherActive:a,sideLinks:i,isDark:t,actionTheme:n});case"Biosuroeste":return r.createElement(oe,{isMenuActive:e,isSearcherActive:a,sideLinks:i,isDark:t,actionTheme:n});default:return r.createElement(X,{isMenuActive:e,isSearcherActive:a,isDark:t,actionTheme:n})}})(o))},ie=t(2790);var ce=function(e){const{0:a,1:t}=(0,r.useState)(!1),{0:n,1:o}=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!n)return;const e=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),r.createElement(r.Fragment,null,r.createElement(g,{position:"fixed",className:"header-module--o_header--d4114 "+(a?"header-module--menu_open--93f2a":"header-module--menu_close--aa9e3")},r.createElement(v.A,{className:"header-module--o_header__container--ab96f"},r.createElement(w.A,{className:"header-module--o_header__toolbar--89285"},r.createElement("div",{className:"header-module--o_header__logo--16e19"},r.createElement("a",{role:"button",href:"/","aria-label":"Página principal Comfama",target:"_self",rel:"referrer follow"},r.createElement("img",{src:ie.A,alt:"Logo Comfama"}))),r.createElement("div",{className:"header-module--o_header__items--416b1"},r.createElement("div",{className:"header-module--o_header__options--7a6e2"},r.createElement($,null),r.createElement("a",{role:"button",href:"https://www.comfama.com/ayuda","aria-label":"centro de ayuda",target:"_black",rel:"referrer follow",className:"gtm_click_button_comfama_home_header_ayuda header-module--o_header__help--3ef8a"},"Ayuda",r.createElement("i",{className:"icon-question-circle1",style:{pointerEvents:"none"}})),r.createElement("button",{type:"button","aria-label":"Buscar en comfama.com",onClick:()=>{o(!n)},className:"gtm_click_button_comfama_home_header_buscador header-module--o_header__search--666ef"},r.createElement("span",null,"Buscador"),r.createElement("i",{className:"icon icon-search"}))),r.createElement("div",{className:"header-module--o_header__burger--2dc36"},r.createElement("button",{"aria-label":"abrir menú",onClick:()=>t(!a)},"Menú",a?r.createElement("i",{className:"icon-close"}):r.createElement("i",{className:"icon-menu-hamburger"}))))))),r.createElement("div",{className:"header-module--o_header__searcher--ec38d "+(n?"header-module--searcher_open--0cd60":"header-module--searcher_close--fb3d8"),"aria-hidden":!n},r.createElement("button",{type:"button","aria-label":"cerrar buscador",className:"header-module--o_header__close--a2d46",onClick:()=>o(!1)},r.createElement("i",{className:"icon-close"})),r.createElement(R,null)),r.createElement(I,{className:"header-module--o_header__drawer
1--974f3 o_header__drawer",open:a,onClose:()=>t(!a),anchor:"right",transitionDuration:300},r.createElement(se,{isMenuActive:a,isSearcherActive:n,isDark:!1,actionThe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tMC4zLTEuNy0wLjljLTAuNC0wLjYtMC40LTEuMy0wLjEtMS45bDYuNy0xMy40QzEzMi45LDYuOSwxMzMuNiw2LjUsMTM0LjQsNi41eiBNODcuNSw3LjUNCglMOTQuMiwyMWMwLjMsMC42LDAuMywxLjMtMC4xLDEuOWMtMC40LDAuNi0xLDAuOS0xLjcsMC45SDc4LjljLTAuNywwLTEuMy0wLjMtMS43LTAuOWMtMC40LTAuNi0wLjQtMS4zLTAuMS0xLjlsMy44LTcuNQ0KCWMwLjUtMSwxLjctMS40LDIuNi0wLjljMSwwLjUsMS40LDEuNywwLjksMi42bC0yLjMsNC42aDcuMUw4NCw5LjNoMGMtMC41LTEtMC4xLTIuMSwwLjktMi42Qzg1LjgsNi4yLDg3LDYuNiw4Ny41LDcuNXoiLz4NCjwvc3ZnPg0K"},3154:function(e,a,t){t.d(a,{Ip:function(){return L},pB:function(){return c},w7:function(){return y},Y5:function(){return u},O0:function(){return p},o8:function(){return l},wv:function(){return m},vB:function(){return h}});var r=t(5458);const n=t(7487).A;var o=t(4522);const s=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/,i=e=>{const a=null!=e?e:"";return a.length>200?`${a.slice(0,200)}...`:a},c=e=>(null!=e?e:[]).map(e=>JSON.parse(e.internal.content)),l=e=>({label:e.label,value:e.value,type:"popular",...e.icon&&{icon:e.icon}}),u=e=>{return{category:e.category,title:e.title,description:e.description,image:(a=e.image,null!=a&&a.includes("/")?a:n),url:e.url};var a},m=e=>{var a;return{id:e.id,title:e.title,description:null!==(a=e.description)&&void 0!==a?a:"",icon:e.iconType||"icon-Contenidos",slug:e.slug,origin:e.origin}},d=e=>{var a,t;const{fecha:n,hora:o}=(e=>{const a=(null!=e?e:"").trim().match(s);if(!a)return{fecha:"",hora:""};const[,t,r,n,o,i]=a,c=`${n}/${r}/${t}`;if(void 0===o)return{fecha:c,hora:""};const l=Number(o);return{fecha:c,hora:`${l%12==0?12:l%12}:${i} ${l<12?"AM":"PM"}`}})(e.fullStartDate),i=null!==(a=null===(t=e.formattedAddress)||void 0===t?void 0:t.trim())&&void 0!==a?a:"";return[].concat((0,r.A)(n?[{icon:"icon-Agendar-citas",label:n}]:[]),(0,r.A)(o?[{icon:"icon-Hora",label:o}]:[]),(0,r.A)(i?[{icon:"icon-Sede",label:i}]:[]))},p=e=>{var a;const t=(0,o.b1)(e.origin,e.category),r="agenda"===(null==t?void 0:t.id)?d(e):[];return{category:null!==(a=null==t?void 0:t.label)&&void 0!==a?a:e.category,title:e.title,description:i(e.description),image:e.urlImageCard||n,slug:e.slug,origin:e.origin,...r.length>0&&{tags:r}}},L=(e,a)=>0===a.length?e:e.filter(e=>{const t=(0,o.b1)(e.origin,e.category);return void 0!==t&&a.includes(t.label)}),M=(e,a)=>({bool:{should:[{terms:{[`${e}.keyword`]:a}},{terms:{[e]:a}}],minimum_should_match:1}}),h=e=>{if(0===e.length)return{};const a=o._8.filter(({label:a})=>e.includes(a)),t=a.filter(e=>void 0===e.category).map(({origin:e})=>e);return{filter:[{bool:{should:[].concat((0,r.A)(t.length>0?[M("origin",t)]:[]),(0,r.A)(a.filter(e=>void 0!==e.category).map(e=>({bool:{must:[M("origin",[e.origin]),M("category",[e.category])]}})))),minimum_should_match:1}}]}},y=(e,{name:a,details:t={}})=>{const{query:r,url:n,origin:o}=t,s=e;s.ga_debug={trace:!0},s.dataLayer=s.dataLayer||[],s.dataLayer.push({event:a,...void 0!==r&&{keyword:r},...void 0!==n&&{url:n},...void 0!==o&&{index:o}})}},4522:function(e,a,t){t.d(a,{_8:function(){return r},b1:function(){return o}});const r=[{id:"comfama.com",origin:"comfama.com",label:"Beneficios y servicios Comfama",name:"Comfama.com",url:"https://www.comfama.com/",icon:"icon-Contenidos"},{id:"portal-servicios-per",origin:"Portal servicios",category:"Persona",label:"Trámites | Personas",name:"Portal de Servicios",url:"https://www.comfama.com/portal-servicios/personas/",icon:"icon-Documento-uno"},{id:"portal-servicios-emp",origin:"Portal servicios",category:"Empresa",label:"Trámites | Empresas",name:"Portal de Servicios",url:"https://www.comfama.com/portal-servicios/empresas/",icon:"icon-Persona-juridica"},{id:"tienda",origin:"tienda",label:"Tienda Comfama",name:"Tienda Comfama",url:"https://tienda.comfama.com/",icon:"icon-Tienda"},{id:"CDA: Centro de Ayuda",origin:"CDA: Centro de Ayuda",label:"Centro de ayuda",name:"Centro de ayuda",url:"https://www.comfama.com/ayuda/",icon:"icon-Centro-ayuda"},{id:"agenda",origin:"agenda",label:"Agenda Comfama",name:"Agenda Comfama",url:"https://www.comfama.com/agenda/",icon:"icon-Musica"},{id:"revista",origin:"revista",label:"Revista Comfama",name:"Revista Comfama",url:"https://revista.comfama.com/",icon:"icon-Subsidios"},{id:"servicio-empleo",origin:"servicio-empleo",label:"Servicio de empleo",name:"Servicio de empleo",url:"https://www.comfama.com/servicio-de-empleo/",icon:"icon-Servicio-de-empleo"}],n=e=>e.trim().toLowerCase(),o=(e,a)=>{var t;if(!e)return;const o=r.filter(a=>n(a.origin)===n(e));return null!==(t=o.find(e=>void 0!==e.category&&void 0!==a&&n(e.category)===n(a)))&&void 0!==t?t:o.find(e=>void 0===e.category)}},6075:function(e,a,t){var r=t(6540);a.A=({debounceTime:e=500,boostIndex:a=[],urlElastic:t,apikeyElastic:n,selectedFields:o=null,limitPerPage:s=10,currentPage:i=1,onNoResults:c})=>{const{0:l,1:u}=(0,r.useState)(""),{0:m,1:d}=(0,r.useState)(i),{0:p,1:L}=(0,r.useState)(0),{0:M,1:h}=(0,r.useState)(0),{0:y,1:g}=(0,r.useState)(null),{0:v,1:w}=(0,r.useState)([]),{0:f,1:E}=(0,r.useState)(!1),{0:A,1:N}=(0,r.useState)(null);return(0,r.useEffect)(()=>{const a=setTimeout(()=>{if(!l.trim()||l.length<=2)return void g(null);(async()=>{E(!0),N(null);try{const e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`ApiKey ${n}`},body:JSON.stringify({from:(m-1)*s,size:s,query:{query_string:{query:`${l}~`,...o&&{fields:o}}},indices_boost:v})});if(!e.ok)throw new Error(`Error: ${e.statusText}`);const a=await e.json();if(0===a.hits.total.value)return g([]),h(0),L(0),void(c&&c());g(a.hits.hits.map(e=>e._source)),h(a.hits.total.value),L(Math.ceil(a.hits.total.value/s))}catch(e){e instanceof Error?N(e.message):N("An unknown error occurred")}finally{E(!1)}})()},e);return()=>clearTimeout(a)},[l,m]),(0,r.useEffect)(()=>{const e=a.map(e=>({[e]:10}));e.push({"*":1}),w(e)},[]),{result:y,isLoading:f,errorMsg:A,doSearch:u,reset:()=>{g(null),E(!1),N(null),u(""),d(1),L(0),h(0)},nextPage:()=>{d(m+1)},prevPage:()=>{m>1&&d(m-1)},totalPages:p,goToPage:e=>{d(e)},currentPage:m,totalResults:M}}},8614:function(e,a,t){t.d(a,{A:function(){return s}});
1var r=t(6540),n=t(8865);var o=e=>{switch(e){case"tiktok":return r.createElement("svg",{className:`gtm${(0,n.Z5)(e)}`,xmlns:"http://www.w3.org/2000/svg",width:"45",height:"45"},r.createElement("defs",null,r.createElement("clipPath",{id:"clip-path-t"},r.createElement("path",{className:"cls-1",d:"M22.49,45a22.46,22.46,0,1,1,8.76-1.77A22.5,22.5,0,0,1,22.49,45Zm0-43.65A21.05,21.05,0,1,0,30.72,3,20.94,20.94,0,0,0,22.49,1.35Z"}))),r.createElement("g",{id:"Capa_1","data-name":"Capa 1"},r.createElement("path",{id:"Combined_Shape-7","data-name":"Combined Shape-7",className:"cls-1",d:"M22.49,45a22.46,22.46,0,1,1,8.76-1.77A22.5,22.5,0,0,1,22.49,45Zm0-43.65A21.05,21.05,0,1,0,30.72,3,20.94,20.94,0,0,0,22.49,1.35Z"}),r.createElement("path",{className:"cls-1",d:"M22.49,45a22.46,22.46,0,1,1,8.76-1.77A22.5,22.5,0,0,1,22.49,45Zm0-43.65A21.05,21.05,0,1,0,30.72,3,20.94,20.94,0,0,0,22.49,1.35Z"}),r.createElement("g",{className:"cls-2-t"},r.createElement("g",{id:"Enmascarar_grupo_11","data-name":"Enmascarar grupo 11"},r.createElement("g",{id:"color_iconos_blue-gray-2","data-name":"color iconos blue-gray-2"},r.createElement("rect",{id:"black-2",className:"cls-1",x:"-0.23",width:"45",height:"45"}))))),r.createElement("g",{id:"Objects"},r.createElement("path",{className:"cls-1",d:"M23.41,11.25h3.8c.37,3.25,2.24,5,5.41,5.41v3.73a8.93,8.93,0,0,1-5.3-1.62c0,.27-.05.46-.05.65,0,2.38,0,4.75,0,7.12a7.11,7.11,0,0,1-7,7.2c-3.32.22-6.65-2.68-7.17-6.24a7.1,7.1,0,0,1,7.25-8c.23,0,.47.06.73.09v3.78c-.2,0-.4,0-.6,0a3.23,3.23,0,1,0-.51,6.44,3.21,3.21,0,0,0,3.48-3.25c0-4.74,0-9.49,0-14.23Z"})));case"spotify":return r.createElement("svg",{className:`gtm${(0,n.Z5)(e)}`,xmlns:"http://www.w3.org/2000/svg",width:"45",height:"45"},r.createElement("defs",null,r.createElement("clipPath",{id:"clip-path-s"},r.createElement("path",{className:"cls-1",d:"M22.49,45a22.46,22.46,0,1,1,8.76-1.77A22.5,22.5,0,0,1,22.49,45Zm0-43.65A21.05,21.05,0,1,0,30.72,3,20.94,20.94,0,0,0,22.49,1.35Z"}))),r.createElement("g",{id:"Capa_1","data-name":"Capa 1"},r.createElement("path",{id:"Combined_Shape-7","data-name":"Combined Shape-7",className:"cls-1",d:"M22.49,45a22.46,22.46,0,1,1,8.76-1.77A22.5,22.5,0,0,1,22.49,45Zm0-43.65A21.05,21.05,0,1,0,30.72,3,20.94,20.94,0,0,0,22.49,1.35Z"}),r.createElement("path",{className:"cls-1",d:"M22.49,45a22.46,22.46,0,1,1,8.76-1.77A22.5,22.5,0,0,1,22.49,45Zm0-43.65A21.05,21.05,0,1,0,30.72,3,20.94,20.94,0,0,0,22.49,1.35Z"}),r.createElement("g",{className:"cls-2-s"},r.createElement("g",{id:"Enmascarar_grupo_11","data-name":"Enmascarar grupo 11"},r.createElement("g",{id:"color_iconos_blue-gray-2","data-name":"color iconos blue-gray-2"},r.createElement("rect",{id:"black-2",className:"cls-1",x:"-0.23",width:"45",height:"45"}))))),r.createElement("g",{id:"Modo_de_aislamiento","data-name":"Modo de aislamiento"},r.createElement("circle",{className:"cls-1",cx:"22.45",cy:"22.48",r:"11.23"}),r.createElement("path",{className:"cls-3",d:"M27,27.83a.76.76,0,0,1-.38-.11c-4.42-2.66-9.67-1.12-9.72-1.1a.75.75,0,0,1-.92-.49.73.73,0,0,1,.49-.92c.24-.08,5.91-1.76,10.91,1.25a.73.73,0,0,1,.25,1A.73.73,0,0,1,27,27.83Z"}),r.createElement("path",{className:"cls-3",d:"M28.23,24.8a.88.88,0,0,1-.43-.12,14.79,14.79,0,0,0-11.21-1.31.88.88,0,0,1-1.11-.55.86.86,0,0,1,.54-1.1,16.35,16.35,0,0,1,12.65,1.45.87.87,0,0,1-.44,1.63Z"}),r.createElement("path",{className:"cls-3",d:"M29.61,21.36a1.07,1.07,0,0,1-.49-.12,18.68,18.68,0,0,0-13.06-1.33,1.07,1.07,0,0,1-.64-2.05,20.65,20.65,0,0,1,14.69,1.48,1.07,1.07,0,0,1-.5,2Z"})));case"twitter":return r.createElement("svg",{className:`gtm${(0,n.Z5)(e)}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"45px",height:"45px",viewBox:"0 0 45 45",version:"1.1"},r.createElement("g",{id:"surface1"},r.createElement("path",{className:"cls-x-twitter-1",d:"M 10.097656 11.054688 L 19.726562 23.660156 L 10 33.925781 L 12.195312 33.925781 L 20.679688 24.964844 L 27.542969 33.925781 L 34.980469 33.925781 L 24.777344 20.578125 L 33.835938 11.054688 L 31.644531 11.054688 L 23.824219 19.363281 L 17.53125 11.054688 Z M 13.242188 12.644531 L 16.675781 12.644531 L 31.738281 32.339844 L 28.304688 32.339844 Z M 13.242188 12.644531 "}),r.createElement("path",{className:"cls-x-twitter-2",d:"M 46.101944 24.1 C 46.101944 36.52766 36.026875 46.599504 23.6 46.599504 C 11.173125 46.599504 1.098056 36.52766 1.098056 24.1 C 1.098056 11.67234 11.173125 1.600496 23.6 1.600496 C 36.026875 1.600496 46.101944 
111.67234 46.101944 24.1 Z M 46.101944 24.1 ",transform:"matrix(0.95339,0,0,0.933528,0,0.00198623)"})));default:return r.createElement("i",{className:`gtm${(0,n.Z5)(e)} ${a=!1,t=e,a?t.includes("1")?t.replace("1",""):t.concat("","1"):t}`})}var a,t};var s=()=>{const{0:e,1:a}=(0,r.useState)([]);(0,r.useEffect)(()=>{fetch("/components/footer-info.json").then(async e=>{const t=await e.json();a(t[0].redesSociales)})},[]);return r.createElement("div",{className:"socialMediaIcons-module--m_social_media_icons--2b584"},r.createElement("span",{className:"socialMediaIcons-module--m_social_media_icons__title--3daf1"},"Síguenos"),r.createElement("ul",{className:"socialMediaIcons-module--m_social_media_icons__rrss--9bccd"},e.map((e,a)=>((e,a)=>e.icon.includes("icon-")?r.createElement("li",{key:a},r.createElement("a",{href:e.link,"aria-label":e.titulo},r.createElement("i",{className:e.icon}))):r.createElement("li",{key:a},r.createElement("a",{href:e.link,"aria-label":e.titulo},o(e.icon))))(e,a))))}},8622:function(e,a,t){t.d(a,{A:function(){return l}});var r=t(6540),n=t(4589),o=t(1667),s=t(8865),i=t(4096),c=t(7126);var l=()=>{const e=(0,o.A)(),{0:a,1:t}=(0,r.useState)();(0,r.useEffect)(()=>{fetch("/components/menu-secundario-info.json").then(async e=>{const a=await e.json();t(a[0])})},[]);const l={dots:!0,infinite:!1,slidesToShow:e/326,slidesToScroll:1,autoplay:!1};return r.createElement(r.Fragment,null,a&&(e>968?r.createElement("nav",{className:"topbarMenu-module--m_topbarm--ab6c7"},r.createElement("ul",{className:"topbarMenu-module--m_topbarm__list--bf6ae"},a.enlaces.map((e,a)=>r.createElement("li",{key:a,className:"topbarMenu-module--m_topbarm__link--38220"},r.createElement("a",{id:`gtm_click_menu_comfama_home_body_servicios_${(0,c.z)(e.label)}`,href:e.link,target:(0,i.F)(e.link),rel:(0,s.DH)(e.link),"aria-label":`Ir a ${e.label}`},e.label))))):r.createElement(n.A,Object.assign({},l,{className:"m_topbarm__mobile"}),a.enlaces.map((e,a)=>r.createElement("a",{id:`gtm_click_menu_comfama_home_body_servicios_${(0,c.z)(e.label)}`,key:a,href:e.link,target:(0,i.F)(e.link),rel:(0,s.DH)(e.link),className:"topbarMenu-module--m_topbarm__card--3d591"},r.createElement("div",{className:"topbarMenu-module--m_topbarm__content--3836d"},r.createElement("i",{className:e.icon}),r.createElement("h3",null,e.label),e.desc&&r.createElement("p",null,e.desc)))))))}},9027:function(e,a,t){t.d(a,{g:function(){return o}});var r=t(5268),n=t(3154);const o=()=>{var e;const a=(0,r.useStaticQuery)("3253199104").contentfulBuscador;return{searchChips:(0,n.pB)(null==a?void 0:a.populares).map(n.o8),mostSearched:(0,n.pB)(null==a?void 0:a.loMasVisitado).map(n.Y5),recommendedContents:(0,n.pB)(null==a?void 0:a.teRecomendamos).map(n.Y5),hideResultsFilterButton:null===(e=null==a?void 0:a.ocultarBotonFiltroResultados)||void 0===e||e}}},9962:function(e,a,t){var r=t(6540),n=t(9871),o=t(5268),s=t(6075),i=t(6667);a.A=e=>{var a,t;const c=(0,o.useStaticQuery)("902629388").allContentfulHome.nodes[0].placeholdersBuscador,{compact:l,type:u,defaultPlaceholder:m}=e,d=(0,r.useRef)(),{doSearch:p,result:L,isLoading:M}=(0,s.A)({apikeyElastic:null!==(a="VUQxOEU1Z0JDc1VaMG1DNEN2MVM6V1EweWNDMmZTeVcyNk9YVlVPWDhUQQ==")?a:"",urlElastic:null!==(t="https://integraciones.comfama.com/tran/elasticsearch/_search?index=*,-cda_contentful_projects_ai")?t:"",selectedFields:["id","origin","category","title","description","tags"],onNoResults:()=>k({event:"cfm_no_result_elastic",keyword:w})}),{0:h,1:y}=(0,r.useState)(!1),{0:g,1:v}=(0,r.useState)(""),{0:w,1:f}=(0,r.useState)(""),{isBrowser:E,window:A,document:N}=(0,n.A)(),S=e=>{d.current.contains(e.target)||y(!1)},k=e=>{A.ga_debug={trace:!0},A.dataLayer=A.dataLayer||[],A.dataLayer.push(e)};return(0,r.useEffect)(()=>{if("comfama"===u||"headboard"===u){let e=0;const a=setInterval(()=>{e>2&&(e=0),v(`${c[e]}`),e++},1200);return()=>clearInterval(a)}},[]),(0,r.useEffect)(()=>(N.addEventListener("mousedown",S),()=>{N.removeEventListener("mousedown",S)}),[h]),(0,r.useEffect)(()=>{L&&L.length>0&&k({event:"cfm_hot_search_elastic",keyword:w})},[L]),r.createElement("div",{className:`m-searcher-container ${l?"m-searcher-container--compact":""} ${"preguntas"===u?"m-searcher-container--compact-extended":""} ${"headboard"===u?"--headboard":""}`},r.createElement("div",{className:"m-searcher-container m-searcher-container__content "+(h||w.trim().length>2?"m-searcher-container__content--active":"")},r.createElement("div",{className:"m-searcher-container__input"},r.createElement("i",{className:"icon icon-search",onClick:()=>E&&w.trim().length>2&&A.location.assign(`/resultados-busqueda/?search=${w}&sort=ASC`)}),r.createElement("input",{id:"cfm-searcher",type:"search",name:"q","aria-label":"Buscar en Comfama.com",autoFocus:!0,ref:d,value:w,placeholder:"preguntas"===u?"¿Qué estás buscando?":m||g,onClickCapture:()=>y(!0),onChange:e=>{f(e.currentTarget.value),p(e.currentTarget.value)},onKeyDown:e=>{"Enter"===e.key&&"comfama"===u&&E&&w.trim().length>2&&A.location.assign(`/resultados-busqueda/?search=${w}&sort=ASC`)}}),w.trim().length>2&&r.createElement("button",{className:"icon",onClickCapture:()=>{f("")}},r.createElement("i",{className:"icon-times-circle1"}))),(w.trim().length>2||!l)&&r.createElement("div",{className:"m-searcher-container__separator"}),(w.trim().length>2||!l)&&r.createElement("div",{className:`m-searcher-container__results ${w.trim().length>2?"":"--hide-results"} ${"headboard"===u?"--headboard-results":""}`},r.createElement("ul",null,w.length>2&&L&&0===L.length&&r.createElement("li",null,r.createElement("span",{className:"m-searcher-results__title"},`No encontramos resultados para "${w.trim()}"`)),M&&r.createElement(i.A,null),L&&L.length>0&&r.createElement("li",null,r.createElement("a",{href:`/resultados-busqueda/?search=${w}&sort=ASC`,target:"_self",rel:"noreferrer"},r.createElement("span",{className:"m-searcher-results__title"},`Ver todos los resultados para "${w}"`),r.createElement("br",null),r.createElement("span",{className:"m-searcher-results__subtitle"},"resultados"))),L&&L.map((e,a)=>r.createElement("li",{key:`result${a}`,onClick:()=>k({event:"cfm_click_result_elastic",keyword:w,url:e.slug,index:e.origin})},r.createElement("a",{href:`${e.slug}`,target:"_blank",rel:"noreferrer"},r.createElement("span",{className:"m-searcher-results__title"},e.title),r.createElement("br",null),r.createElement("span",{className:"m-searcher-results__subtitle"},`${e.origin} / ${e.category}`))))))))}}}]);

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.