1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[337],{42072:function(e,t){"use strict";t.Z={src:"/_next/static/media/default-image.30d74d1a.png",height:317,width:598,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAEBAMAAABB42PDAAAAIVBMVEX09PTz8/Pv7+/u7u/u7u7t7e3s7O3r6+zr6+vl5ebk5OV9IhGYAAAAGUlEQVR42mMQMHNmZBAISwcSncuBhFoSIwAelgMzpqzcRgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},2469:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var s=a(85893),r=a(67294),l=a(42072),n=a(46403),i=a(14394),d=a(85490),c=a(9041),o=a(49383),m=a(21876).Buffer;let x="https://api-simon.inder.gov.co/api/scenarios-properties-inder";function u(){let[e,t]=(0,r.useState)(null),[a,u]=(0,r.useState)(!1),[h,g]=(0,r.useState)(null),[b,f]=(0,r.useState)(null),[p,j]=(0,r.useState)(""),[v,y]=(0,r.useState)(""),[N,w]=(0,r.useState)(1);(0,r.useEffect)(()=>{let e=async()=>{let e=new URL(window.location.href),a=e.searchParams.get("id");if(a)try{let s=await A(a),r=s.details.RENTAL_REQUIREMENTS;try{null!=r&&(r=m.from(r),r=(0,o.KD)((0,d.E)((0,c.convertFromRaw)(JSON.parse(r.toString().replaceAll("\\","")))).replaceAll("&","&")))}catch(l){console.log("Error converting rental requirements JSON to string"),r=r.toString()}finally{s.details.RENTAL_REQUIREMENTS=r}f(s),u(!0)}catch(n){console.error(n)}else try{let i=await k();t(i)}catch(x){console.error(x)}};e()},[v,N]);let k=async()=>{try{let e=await fetch("".concat(x,"?pk=&name=").concat(p,"&type=").concat(v));return e.json()}catch(t){throw Error("Failed to fetch items.")}},A=async e=>{try{let t=await fetch("".concat(x,"/").concat(e));return t.json()}catch(a){throw Error("Failed to fetch item details.")}},T=e=>{y(e)},E=e=>{j(e.target.value)},C=async(e,t)=>{e.preventDefault(),u(!0),g(t);let a=new URL(window.location.href);a.searchParams.set("id",t),window.history.pushState({},"",a);try{let s=await A(t),r=s.details.RENTAL_REQUIREMENTS;try{null!=r&&(r=m.from(r),r=(0,o.KD)((0,d.E)((0,c.convertFromRaw)(JSON.parse(r.toString().replaceAll("\\","")))).replaceAll("&","&")))}catch(l){console.log("Error converting rental requirements JSON to string"),r=r.toString()}finally{s.details.RENTAL_REQUIREMENTS=r}f(s)}catch(n){console.error(n)}},I=e=>{w(e)},S=e=>{e.preventDefault(),u(!1),g(null);let t=new URL(window.location.href);t.searchParams.delete("id"),window.history.pushState({},"",t)},R=async e=>{e.preventDefault();try{let a=await k();t(a)}catch(s){console.error(s)}};return a&&b?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:"",onClick:S,className:"font-bold m-4 p-8",children:"< Ver todos los bienes inmuebles"}),(0,s.jsx)("div",{className:"mt-5 p-6 bg-white borderGrayRight border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700",children:(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-8",children:[(0,s.jsx)("div",{children:(0,s.jsx)(i.lr,{slide:!0,style:{height:"100vh"},children:b.fileReported.length>0?b.fileReported.map((e,t)=>(0,s.jsx)("div",{style:{display:"flex",alignItems:"flex-start"},children:(0,s.jsx)("img",{className:"w-full",src:null==e?void 0:e.src,alt:null==e?void 0:e.name,title:null==e?void 0:e.name,style:{objectFit:"contain",height:"100vh",maxHeight:"100%",width:"100%"}})},t)):(0,s.jsx)("img",{className:"w-full mb-2",src:l.Z.src,alt:"Imagen por defecto",title:"Imagen por defecto"})})}),(0,s.jsxs)("div",{className:"col-span-2",children:[(0,s.jsx)("h5",{className:"mb-2 text-2xl font-semibold tracking-tight dark:text-white",style:{color:"#169ab2"},children:b.details.PROPERTY_NAME}),(0,s.jsx)("hr",{}),(0,s.jsx)("p",{className:"mb-3 mt-6 font-normal text-gray-500 dark:text-gray-400",children:b.details.PROPERTY_DESCRIPTION}),(0,s.jsxs)("p",{className:"mb-3 mt-5 font-normal text-gray-500 dark:text-gray-400",children:[(0,s.jsx)("b",{children:"Direcci\xf3n"})," ",b.details.LOCATION_LINE_1.replace(/\||\|/g," ")]}),(0,s.jsxs)("p",{className:"mb-3 mt-5 font-normal text-gray-500 dark:text-gray-400",children:[(0,s.jsx)("b",{children:"Area"})," ",b.details.PROPERTY_AREA," - ",(0,s.jsx)("b",{children:"Metros cuadrados"})," ",b.details.SQUARTER_METERS]}),(0,s.jsxs)("p",{className:"mb-3 mt-5 font-normal text-gray-500 dark:text-gray-400",children:[(0,s.jsx)("b",{children:"Valor fiscal"})," ",b.details.TAX_VALUE]}),(0,s.jsxs)("p",{className:"mb-3 mt-5 font-normal text-gray-500 dark:text-gray-400",children:[(0,s.jsx)("b",{children:"Tipo de contrato"})," ",b.details.CONTRACT_TYPE_DESC]}),(0,s.jsx)("br",{}),(0,s.jsx)("h6",{className:"mb-2 text-lg font-semibold tracking-tight dark:text-white",style:{color:"#169ab2"},children:"Requerimientos de arriendo"}),(0,s.jsx)("p",{className:"mb-3 font-normal text-gray-500 dark:text-gray-400",children:b.details.RENTAL_REQUIREMENTS}),(0,s.jsx)("div",{className:"button",style:{margin:"3rem auto"},children:(0,s.jsx)("a",{href:"https://simon.inder.gov.co/apps/realstate/requests/add/?pr=".concat(b.details.SCENARY_PROPERTY_PK),target:"_blank",className:"",children:(0,s.jsx)("div",{className:"grupo-ver-noticias",children:(0,s.jsx)("div",{className:"ver-ms text-white font-semibold underline text-sm",children:"SOLICITAR"})})})})]})]})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"grid md:grid-cols-2 gap-8 sm:grid-cols-1 gap-8",children:(0,s.jsx)("form",{onSubmit:R,children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("label",{htmlFor:"search-dropdown",className:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white",children:"Your Email"}),(0,s.jsxs)("button",{id:"dropdown-button","data-dropdown-toggle":"dropdown",className:"flex-shrink-0 z-10 inline-flex items-center py-2.5 px-4 text-sm font-medium text-center text-gray-900 bg-gray-100 border border-gray-300 dark:border-gray-700 dark:text-white rounded-l-lg hover:bg-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800",type:"button",children:[v||"Todos los tipos de contratos",(0,s.jsx)("svg",{className:"w-2.5 h-2.5 ml-2.5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6",children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 1 4 4 4-4"})})]}),(0,s.jsx)("div",{id:"dropdown",className:"z-10 hidden bg-white divide-y divide-gray-100 rounded-lg shadow w-60 dark:bg-gray-700",children:(0,s.jsxs)("ul",{className:"py-6 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdown-button",children:[(0,s.jsx)("a",{href:"#",onClick:()=>T(""),className:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:"Todos los tipos de contratos"}),(0,s.jsx)("a",{href:"#",onClick:()=>T("Arrendamiento"),className:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:"Arrendamiento"}),(0,s.jsx)("a",{href:"#",onClick:()=>T("Comodato"),className:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:"Comodato"})]})}),(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("input",{type:"search",id:"search-dropdown",value:p,onChange:E,className:"block p-2.5 w-full z-20 text-sm text-gray-900 bg-gray-50 rounded-r-lg border-l-gray-100 border-l-2 border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:border-blue-500",placeholder:"Nombre del bien inmueble"}),(0,s.jsx)("button",{type:"submit",style:{background:"#169ab2"},className:"absolute top-0 right-0 p-2.5 h-full text-sm font-medium text-white rounded-r-lg border focus:outline-none",children:(0,s.jsx)("svg",{className:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})})})]})]})})}),(0,s.jsx)("div",{className:"grid md:grid-cols-3 gap-10 my-6",children:e?e.slice((N-1)*12,12*N).map((e,t)=>(0,s.jsxs)("div",{className:"max-w-md p-6 bg-white borderGrayRight border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700",children:[(0,s.jsx)("img",{className:"w-full mb-2",src:e.FILE_SRC?e.FILE_SRC:l.Z.src,alt:e.PROPERTY_NAME,title:e.PROPERTY_NAME}),(0,s.jsx)("h5",{className:"mb-2 text-2xl font-semibold tracking-tight dark:text-white",style:{color:"#169ab2"},children:e.PROPERTY_NAME}),(0,s.jsx)("p",{className:"mb-3 font-normal text-gray-500 dark:text-gray-400",style:{textTransform:"uppercase"},children:e.SCENARY_NAME}),(0,s.jsx)("hr",{}),(0,s.jsxs)("p",{className:"mb-3 mt-5 font-normal text-gray-500 dark:text-gray-400",children:[(0,s.jsx)("b",{children:"Contrato"})," ",e.CONTRACT_TYPE_NAME]}),(0,s.jsxs)("p",{className:"mb-3 font-normal text-gray-500 dark:text-gray-400",children:[(0,s.jsx)("b",{children:"Ubicaci\xf3n"})," ",e.CITY_NAME," - ",e.NEIGHBORHOOD_NAME]}),(0,s.jsx)("a",{href:"",onClick:t=>C(t,e.SCENARY_PROPERTY_PK),className:"font-bold",children:"Conoce m\xe1s"})]},t)):(0,s.jsxs)("div",{role:"status",className:"max-w-sm animate-pulse",children:[(0,s.jsx)("div",{className:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"}),(0,s.jsx)("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[360px] mb-2.5"}),(0,s.jsx)("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"}),(0,s.jsx)("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[330px] mb-2.5"}),(0,s.jsx)("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[300px] mb-2.5"}),(0,s.jsx)("div",{className:"h-2 bg-gray-200 rounded-full dark:bg-gray-700 max-w-[360px]"}),(0,s.jsx)("span",{className:"sr-only",children:"Loading..."})]})}),(0,s.jsx)(n.Z,{currentPage:N,itemsPerPage:12,totalItems:e?e.length:0,onPageChange:I})]})}},64552:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var s=a(85893),r=a(67294);function l(e){let{data:t}=e;return(0,s.jsx)(r.Fragment,{children:null==t.ImagenDestacada.data?(0,s.jsx)("div",{className:" mx-auto container md:h-40 md:my-10",children:(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)("div",{className:"subtittle text-base md:text-base py-5 ",children:[(0,s.jsxs)("a",{href:"/",className:" text-xs md:text-base ",children:[(0,s.jsx)("span",{children:"Inicio"})," "]}),"/ ",(0,s.jsx)("span",{className:"font-bold text-xs md:text-base",children:t.Titulo})]}),(0,s.jsx)("p",{className:"flex titlenews text-lg md:text-2xl lg:text-3xl font-bold md:my-10",children:t.Titulo})]})}):(0,s.jsx)("div",{className:"banner-inner",style:{backgroundImage:"url(".concat("https://administracion.inder.gov.co").concat(t.ImagenDestacada.data.attributes.url,")")},title:t.ImagenDestacada.data.attributes.alternativeText,children:(0,s.jsx)("div",{className:"inner
1-overlap m-auto flex flex-row",children:(0,s.jsxs)("div",{className:"lg:basis-1/2",children:[(0,s.jsxs)("div",{className:"subtittle text-sm md:text-sm lg:text-base text-white ",children:[(0,s.jsxs)("a",{href:"/",children:[(0,s.jsx)("span",{children:"Inicio"})," "]}),"/ ",(0,s.jsxs)("span",{children:[" ",t.Titulo]})]}),(0,s.jsx)("p",{className:" titulo text-base md:text-lg lg:text-3xl text-white my-2 font-bold lg:my-10",children:t.Titulo})]})})})})}},58018:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var s=a(85893),r=a(67294),l=a(25935);function n(e){let{data:t}=e,[a,n]=(0,r.useState)("");if((0,r.useEffect)(()=>{if(null==t?void 0:t.Contenido){let e=new DOMParser,a=e.parseFromString(t.Contenido,"text/html"),s=a.getElementsByTagName("img");for(let r=0;r<s.length;r++){let l=s[r].getAttribute("alt");s[r].setAttribute("title",l)}n(a.body.innerHTML)}},[t]),t){console.log(t);let i=new Date(t.publishedAt),d=i.toLocaleDateString("es-CO",{year:"numeric",month:"2-digit",day:"2-digit"});return(0,s.jsxs)(s.Fragment,{children:["/noticias"==t.Routes&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"italic m-8",style:{color:"#169ab2"},children:["Fecha de publicaci\xf3n: ",d]}),(0,s.jsx)("hr",{})]}),(0,s.jsx)("div",{className:"container text-base text-gray-500 content-news mt-16 mb-10 px-4",children:(0,l.ZP)(a)})]})}}},71893:function(e,t,a){"use strict";a.d(t,{Z:function(){return I}});var s=a(85893),r=a(67294),l=a(14394);function n(e){let{data:t}=e;return(0,s.jsx)("div",{className:"mt-20 container mx-auto border p-4",style:{height:"35rem"},children:(0,s.jsx)(l.lr,{slide:!0,children:t?t.map((e,t)=>{var a,r,l,n,i,d;return(0,s.jsxs)("div",{className:"flex flex-col md:flex-row items-center justify-center",children:[(0,s.jsx)("div",{className:null==e.ImagenDestacada.data?"hidden":e.Contenido&&e.ImagenDestacada?"md:w-1/2":"w-full",children:(0,s.jsx)("img",{className:"imgslider",style:{width:"100%",height:"100%",margin:"0 auto"},src:"".concat("https://administracion.inder.gov.co").concat(null===(a=e.ImagenDestacada.data)||void 0===a?void 0:null===(r=a.attributes)||void 0===r?void 0:r.url),alt:null===(l=e.ImagenDestacada.data)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.alternativeText,title:null===(i=e.ImagenDestacada.data)||void 0===i?void 0:null===(d=i.attributes)||void 0===d?void 0:d.alternativeText})}),e.Contenido?(0,s.jsx)("div",{className:"md:w-1/2 md:ml-10 ",children:(0,s.jsxs)("a",{href:null==e?void 0:e.Enlace,target:(null==e?void 0:e.Target)=="Abrir en la misma pesta\xf1a"?"_self":"_blank",children:[(0,s.jsx)("div",{className:"cdigo-deintegridad-inder underline my-3",children:null==e?void 0:e.Titulo}),(0,s.jsx)("div",{className:"el-cdigo-de-integri poppins-normal-concord-16px text-gray-500 md:mt-5",dangerouslySetInnerHTML:{__html:e.Contenido?e.Contenido:null}})]})}):null]})}):null})})}function i(e){let{data:t}=e;return(0,s.jsx)("div",{className:"container mx-auto md:my-8 relative",children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-1 md:gap-x-14 timeline ",children:t.map((e,t)=>(0,s.jsx)("div",{className:"Mitad - 50%"==e.Distribucion?"card-timeline col-span-2 md:col-span-1":"flex justify-center md:my-5 card-timeline col-span-2",children:(0,s.jsx)("div",{className:"fomentar-el-deporte poppins-normal-concord-16px",dangerouslySetInnerHTML:{__html:e.Contenido?e.Contenido:null}})}))})})}var d=a(44080),c=a(14284);function o(e){let{data:t}=e,[a,l]=(0,r.useState)(),n=(0,r.useRef)(null);return(0,s.jsx)("div",{className:"mt-20 mb-20 container mx-auto",children:(0,s.jsx)("div",{className:"grid md:grid-cols-3 gap-4",children:t.map((e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsx)("a",{type:"button",style:{backgroundColor:e.Color},className:"inline-flex w-full justify-center border-transparent px-4 py-4 text-base font-bold text-white shadow-sm focus:outline-none focus:ring-offset-2 sm:ml-3 sm:text-sm",onClick:()=>l("modal-".concat(t)),children:null==e.ImagenDestacada.data?e.Titulo:(0,s.jsx)("img",{title:e.ImagenDestacada.data.attributes.alternativeText,alt:e.ImagenDestacada.data.attributes.alternativeText,src:"".concat("https://administracion.inder.gov.co").concat(e.ImagenDestacada.data.attributes.url)})}),(0,s.jsx)(d.u.Root,{show:a==="modal-".concat(t),as:r.Fragment,children:(0,s.jsxs)(c.V,{as:"div",className:"relative z-10",initialFocus:n,onClose:l,children:[(0,s.jsx)(d.u.Child,{as:r.Fragment,e:!0,enter
1:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,s.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,s.jsx)(d.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,s.jsxs)(c.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl w-full md:w-4/6 lg:w-4/6 transition-all sm:my-8 ",children:[(0,s.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,s.jsx)("div",{className:"sm:flex sm:items-start",children:(0,s.jsx)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("div",{className:"text-sm text-gray-500",dangerouslySetInnerHTML:{__html:e.Contenido?e.Contenido:null}})})})})}),(0,s.jsx)("div",{className:"bg-gray-50 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6",children:(0,s.jsx)("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-full border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:()=>l(!1),ref:n,children:"Cerrar"})})]})})})})]})})]}))})})}var m=a(92879);a(46534);var x=a(25675),u=a.n(x);function h(e){let{data:t}=e,[a,l]=(0,r.useState)(0),[n,i]=(0,r.useState)(!1),d=t.map(e=>"".concat("https://administracion.inder.gov.co").concat(e.Imagen.data.attributes.url)),c=e=>{l(e),i(!0)};return(0,s.jsxs)("section",{className:"overflow-hidden text-gray-700",children:[(0,s.jsx)("div",{className:"container px-5 py-2 mx-auto lg:pt-12 lg:px-32",children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 -m-1 md:-m-2",children:t.map((e,t)=>(0,s.jsx)("div",{className:"flex flex-row w-full",children:(0,s.jsx)("div",{className:2===t||3===t?"w-full p-1 md:p-2":"w-2/2 p-1 md:p-2",children:(0,s.jsx)(u(),{src:"".concat("https://administracion.inder.gov.co").concat(e.Imagen.data.attributes.url),alt:e.Imagen.data.attributes.alternativeText,title:e.Imagen.data.attributes.alternativeText,className:"block object-cover object-center w-full h-full rounded-lg cursor-pointer",width:e.Imagen.data.attributes.width,height:e.Imagen.data.attributes.height,onClick:()=>c(t),quality:65})})},e.Imagen.data.id))})}),n&&(0,s.jsx)(m.Z,{mainSrc:d[a],nextSrc:d[(a+1)%d.length],prevSrc:d[(a+d.length-1)%d.length],onCloseRequest:()=>i(!1),onMovePrevRequest:()=>l((a+d.length-1)%d.length),onMoveNextRequest:()=>l((a+1)%d.length)})]})}function g(e){let{data:t}=e;return(0,s.jsx)("div",{className:"mt-10 container mx-auto h-screen sm:h-screen md:h-screen px-10",children:(0,s.jsx)(l.lr,{slide:!0,className:"h-auto w-full md:w-10/12 container mx-auto",children:t.map((e,t)=>(0,s.jsx)("div",{className:"flex flex-row h-auto md:h-screen items-center justify-center",children:(0,s.jsx)("iframe",{className:"w-full aspect-video",src:e.EnlaceVideo,title:"Video ".concat(t)})},t))})})}function b(e){let{data:t}=e;return(0,s.jsxs)("div",{className:"flex flex-col mt-16",children:[(0,s.jsx)("div",{className:"basis-full componente-container-2 mb-4",children:(0,s.jsx)("h6",{className:"text-base text-white font-bold",children:"Documentos y archivos relacionados"})}),t.map((e,t)=>(0,s.jsx)("div",{className:"componente-container-1 basis-full my-2",children:(0,s.jsxs)("div",{className:" flex flex-col md:flex-row",children:[(0,s.jsxs)("div",{className:" basis-full my-4 md:basis-2/4",children:[(0,s.jsx)("p",{className:"font-bold text-lg",children:e.Titulo}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:e.Contenido?e.Contenido:null}})]}),(0,s.jsx)("div",{className:" basis-full md:basis-2/4 md:relative",children:(0,s.jsx)("a",{download:!0,target:"_blank",href:"".concat("https://administracion.inder.gov.co").concat(e.Documento.data.attributes.url),className:"relative md:absolute top-0 right-0 p-2.5 text-sm font-medium text-white bg-cyan-700 border border-cyan-700 hover:bg-cyan-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-cyan-600 dark:hover:bg-cyan-700 dark:focus:ring-cyan-800",children:" Descargar"})})]})}))]})}var f=a(25935);function p(e){let{data:t}=e,[a,l]=(0,r.useState)([]);return(0,r.useEffect)(()=>{let e=t.map(e=>{let t=new DOMParser,a=t.parseFromString(e.Contenido,"text/html"),s=a.getElementsByTagName("img");console.log(a);for(let r=0;r<s.length;r++){let l=s[r].getAttribute("alt");s[r].setAttribute("title",l)}return a.body.innerHTML});l(e)},[t]),(0,s.jsx)("div",{className:"grid md:grid-cols-3 gap-10 my-6",children:t.map((e,t)=>(0,s.jsxs)("div",{className:"rounded overflow-hidden shadow-md",children:[(0,s.jsx)("img",{className:"w-full",src:"".concat("https://administracion.inder.gov.co").concat(e.ImagenDestacada.data.attributes.url),alt:e.ImagenDestacada.data.attributes.alternativeText,title:e.ImagenDestacada.data.attributes.alternativeText}),(0,s.jsx)("div",{className:"px-6 py-4",children:(0,s.jsxs)("a",{href:e.Enlace,children:[(0,s.jsx)("div",{className:"font-bold text-xl mb-2 underline",children:e.Titulo}),(0,s.jsx)("div",{className:"text-gray-700 text-base",dangerouslySetInnerHTML:{__html:e.Contenido?e.Contenido:null}})]})})]}))})}var j=a(52743),v=a(73426),y=a(55499),N=a(79974),w=a(82123);function k(e){let{data:t}=e,[a,l]=(0,r.useState)(0),[n,i]=(0,r.useState)("");return(0,r.useEffect)(()=>{let e=new DOMParser,s=e.parseFromString(t[a].Contenido,"text/html"),r=s.getElementsByTagName("img");for(let l=0;l<r.length;l++){let n=r[l].getAttribute("alt");r[l].setAttribute("title",n)}i(s.body.innerHTML)},[t,a]),(0,s.jsxs)("div",{className:"flex flex-col md:flex-row px-2 ",children:[(0,s.jsx)("div",{className:"flex basis-full md:basis-1/4 flex-col md:mr-14",children:t?t.map((e,t)=>(0,s.jsxs)("a",{className:" border-y-4 transition-colors duration-300 drop-shadow-xl text-left cursor-pointer my-1 ".concat(t===a?"border-teal-500 bgfooter text-white":"border-gray-400 border-y-2 hover:border-gray-200 h-16 overflow-hidden bg-white text-teal-900"),onClick:()=>l(t),children:[(0,s.jsxs)("div",{className:" p-4 flex justify-between",children:[(0,s.jsx)("h3",{className:"font-bold text-base",children:e.Titulo}),t===a?(0,s.jsx)(j.Z,{className:"w-6 h-6 order-last"}):(0,s.jsx)(v.Z,{className:"w-6 h-6 order-last"})]}),(0,s.jsxs)("div",{className:" bg-white p-4 text-black",children:[(0,s.jsxs)("p",{className:"flex ",children:[(0,s.jsx)(y.Z,{className:"w-6 h-6 text-color063a52 px-1"})," ",(0,s.jsx)("b",{className:"text-color063a52 font-bold px-1",children:"Coordinador"})," "]}),(0,s.jsxs)("p",{className:"text-sm md:ml-6",children:[" ",e.coordinador]}),(0,s.jsxs)("p",{className:"flex my-2",children:[(0,s.jsx)(N.Z,{className:"w-6 h-6 text-color063a52 px-1"})," ",e.Telefono]}),(0,s.jsxs)("p",{className:"flex",children:[(0,s.jsx)(w.Z,{className:"w-6 h-6 text-color063a52 px-1"})," ",e.Correo]})]})]},t)):null}),(0,s.jsx)("div",{className:"basis-full text-ellip-with md:basis-3/4 text-sm text-gray-500 contenido-innerHTML",children:(0,f.ZP)(n)})]})}function A(e){let{data:t}=e,[a,n]=(0,r.useState)([]);return(0,r.useEffect)(()=>{let e=t.map(e=>{let t=new DOMParser,a=t.parseFromString(e.Contenido,"text/html"),s=a.getElementsByTagName("img");for(let r=0;r<s.length;r++){let l=s[r].getAttribute("alt");s[r].setAttribute("title",l)}return a.body.innerHTML});n(e)},[t]),(0,s.jsx)("div",{className:"container mt-10 accordion",children:(0,s.jsx)(l.UQ,{collapseAll:!0,flush:!0,alwaysOpen:!0,children:t.map((e,t)=>{var r;return(0,s.jsxs)(l.UQ.Panel,{children:[(0,s.jsx)(l.UQ.Title,{children:e.Titulo}),(0,s.jsx)(l.UQ.Content,{className:"text-ellip-with",children:(0,s.jsx)("div",{children:(0,f.ZP)(null!==(r=a[t])&&void 0!==r?r:"")})})]})})})})}let T=e=>(0,s.jsx)("div",{className:"container mx-auto mb-10",children:(0,s.jsx)("ul",{className:"md:flex",children:e.data.map((e,t)=>{var a;return(0,s.jsx)("a",{className:"mx-auto",target:"Abrir en la misma pesta\xf1a"==e.Target?"_self":"_blank",href:e.Enlace,style:{cursor:"pointer"},children:(0,s.jsxs)("li",{children:[(0,s.jsx)("div",{className:"mb-5",dangerouslySetInnerHTML:{__html:e.Encabezado?e.Encabezado:null}}),(0,s.jsxs)("div",{className:"card",children:[(0,s.jsx)("div",{className:"image",children:(0,s.jsx)("img",{src:"".concat("https://administracion.inder.gov.co").concat(e.ImagenDestacada.data.attributes.url),alt:e.ImagenDestacada.data.attributes.alternativeText,title:e.ImagenDestacada.data.attributes.alternativeText})}),(0,s.jsxs)("div",{className:"card-body-org",style:{backgroundColor:e.Color},children:[(0,s.jsx)("h4",{className:"font-bold",style:{textTransform:"capitalize"},children:e.Titulo}),(0,s.jsx)("hr",{className:"mt-1 mb-1"}),(0,s.jsx)("p",{className:"text-sm",children:e.Subtitulo})]})]}),(null===(a=e.ItemJerarquia2)||void 0===a?void 0:a.length)&&(0,s.jsx)(T,{data:e.ItemJerarquia2})]})})})})}),E=e=>{let{data:t}=e;return(0,s.jsx)("div",{className:"org-tree mt-10 container mx-auto",children:(0,s.jsx)(T,{data:t})})};function C(e){let{data:t}=e;return(0,s.jsx)("div",{className:"bg-white w-full py-5 md:py-8 px-5",children:(0,s.jsx)("div",{className:"mx-auto container py-5 my-5",children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 ga
1p-4 justify-items-center",children:t.map((e,t)=>(0,s.jsxs)("div",{className:"justify-items-center w-full text-center transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-100 duration-300",children:[(0,s.jsx)("img",{className:"w-full mx-auto my-5",src:"".concat("https://administracion.inder.gov.co").concat(e.ImagenDestacada.data.attributes.url),title:e.ImagenDestacada.data.attributes.alternativeText,alt:e.ImagenDestacada.data.attributes.alternativeText}),(0,s.jsx)("div",{className:"text-left w-auto mx-auto",children:(0,s.jsxs)("p",{className:"sm:text-base md:text-md break-words",style:{wordWrap:"break-word",maxWidth:"100%"},children:[" ",e.Contenido," "]})})]},t))})})})}function I(e){let{dinamic:t}=e;if(!(t.length>0))return null;{let a=t.map((e,t)=>(0,s.jsxs)("div",{className:"contenido container",children:[e.GaleriaImagenes.length>0&&(0,s.jsx)(h,{data:e.GaleriaImagenes}),e.GaleriaVideos.length>0&&(0,s.jsx)(g,{data:e.GaleriaVideos}),e.Timeline.length>0&&(0,s.jsx)(i,{data:e.Timeline}),e.Tarjeta.length>0&&(0,s.jsx)(p,{data:e.Tarjeta}),e.Documento.length>0&&(0,s.jsx)(b,{data:e.Documento}),e.Iconos.length>0&&(0,s.jsx)(C,{data:e.Iconos}),e.Carrusel.length>0&&(0,s.jsx)(n,{data:e.Carrusel}),e.VentanaEmergente.length>0&&(0,s.jsx)(o,{data:e.VentanaEmergente}),e.Tabs.length>0&&(0,s.jsx)(k,{data:e.Tabs}),e.Desplegable.length>0&&(0,s.jsx)(A,{data:e.Desplegable}),e.Jerarquia.length>0&&(0,s.jsx)(E,{data:e.Jerarquia})]},t));return(0,s.jsx)(s.Fragment,{children:a})}}I.defaultProps={blocks:[]}},46403:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var s=a(85893);function r(e){let{currentPage:t,itemsPerPage:a,totalItems:r,onPageChange:l}=e,n=Math.ceil(r/a),i=()=>{t>1&&l(t-1)},d=()=>{t<n&&l(t+1)};return(0,s.jsx)("div",{className:"flex justify-center mt-4",children:(0,s.jsxs)("div",{className:"pagination",children:[(0,s.jsx)("div",{className:"page-item",children:(0,s.jsx)("button",{onClick:i,className:"page-link",disabled:1===t,children:"Anterior"})}),(0,s.jsx)("div",{className:"page-numbers",children:(()=>{let e=[];for(let t=1;t<=n;t++)e.push(t);return e})().map(e=>(0,s.jsx)("button",{className:"page-link ".concat(t===e?"active":""),onClick:()=>l(e),children:e},e))}),(0,s.jsx)("button",{onClick:d,className:"page-link",disabled:t===n,children:"Siguiente"})]})})}},49383:function(e,t,a){"use strict";a.d(t,{Xg:function(){return n},KD:function(){return i}});var s=a(81354),r=a.n(s);let l=()=>{let e=r().enc.Utf8.parse("4512631236589784"),t=r().enc.Utf8.parse("4512631236589784"),a=a=>{if(a)try{var s=r().enc.Base64url.parse(a).toString(r().enc.Utf8);return r().AES.decrypt(s,t,{iv:e}).toString(r().enc.Utf8)}catch(l){return""}},s=a=>{var s=r().AES.encrypt(a,t,{iv:e}),l=r().enc.Utf8.parse(s.toString());return r().enc.Base64url.stringify(l)};return{decrypt:a,encrypt:s}},n=e=>{let{encrypt:t}=l();return t(String(e))},i=e=>e.replaceAll("á","\xe1").replaceAll("Á","\xc1").replaceAll("é","\xe9").replaceAll("É","\xc9").replaceAll("í","\xed").replaceAll("Í","\xcd").replaceAll("ó","\xf3").replaceAll("Ó","\xd3").replaceAll("ú","\xfa").replaceAll("Ú","\xda").replaceAll("ü","\xfc").replaceAll("Ü","\xdc").replaceAll("ñ","\xf1").replaceAll("Ñ","\xd1")},42480:function(){}}]);
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.