1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{9253:function(e,t,a){Promise.resolve().then(a.t.bind(a,7960,23)),Promise.resolve().then(a.bind(a,9234)),Promise.resolve().then(a.bind(a,4098)),Promise.resolve().then(a.t.bind(a,8003,23)),Promise.resolve().then(a.t.bind(a,8870,23))},4098:function(e,t,a){"use strict";a.d(t,{SiteToastClient:function(){return l}});var r=a(7437),s=a(2937);function l(e){let{children:t}=e;return(0,r.jsx)(s.W,{children:t})}},2937:function(e,t,a){"use strict";a.d(t,{W:function(){return c},k:function(){return i}});var r=a(7437),s=a(2265),l=a(129);let n=(0,s.createContext)(null);function i(){let e=(0,s.useContext)(n);if(!e)throw Error("useSiteToast must be used within SiteToastProvider");return e}function c(e){let{children:t}=e,[a,i]=(0,s.useState)(!1),[c,o]=(0,s.useState)({description:""}),d=(0,s.useRef)(),m=(0,s.useCallback)(e=>{o(e),i(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>i(!1),4e3)},[]);(0,s.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);let u="error"===c.variant,x="success"===c.variant;return(0,r.jsxs)(n.Provider,{value:{toast:m},children:[t,(0,r.jsxs)(l.zt,{swipeDirection:"right",children:[(0,r.jsxs)(l.fC,{open:a,onOpenChange:i,className:`rounded-[var(--radius-card)] border-2 bg-white px-4 py-3 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in data-[state=open]:slide-in-from-right-full data-[state=closed]:slide-out-to-right-full ${u?"border-[var(--color-folly)] text-[var(--color-folly)]":x?"border-[var(--color-dark-spring-green)] text-[var(--color-dark-spring-green)]":"border-[var(--color-platinum)] text-[var(--color-gunmetal)]"}`,children:[c.title&&(0,r.jsx)(l.Dx,{className:"font-semibold",children:c.title}),(0,r.jsx)(l.dk,{className:"text-sm",children:c.description}),(0,r.jsx)(l.x8,{className:"absolute right-2 top-2 rounded p-1 opacity-70 hover:opacity-100","aria-label":"Cerrar"})]}),(0,r.jsx)(l.l_,{className:"fixed bottom-0 right-0 z-[100] flex max-w-[100vw] flex-col gap-2 p-4 outline-none"})]})]})}},9234:function(e,t,a){"use strict";a.d(t,{default:function(){return P}});var r=a(7437),s=a(9376),l=a(7648),n=a(3145),i=a(29),c=a.n(i),o=a(2265);function d(e){let{indicators:t}=e,a=[...t,...t],[s,n]=(0,o.useState)(!1),[i,d]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=setTimeout(()=>d(!0),1e3);return()=>clearTimeout(e)},[]),(0,o.useLayoutEffect)(()=>{if(!i)return;let e=document.querySelectorAll(".scroller");window.matchMedia("(prefers-reduced-motion: reduce)").matches||(e.forEach(e=>{e.setAttribute("data-animated","true");let t=e.querySelector(".scroller__inner");Array.from((null==t?void 0:t.children)??[]).forEach(e=>{let a=e.cloneNode(!0);a.setAttribute("aria-hidden","true"),a.setAttribute("inert",""),a.querySelectorAll("a, button, input, select, textarea, [tabindex]").forEach(e=>e.setAttribute("tabindex","-1")),null==t||t.appendChild(a)})}),n(!0))},[i]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"jsx-98945bce5c9f3915 bg-eerie-black text-baby-powder relative flex justify-center items-center min-h-[52px]",children:i?(0,r.jsx)("div",{"data-speed":"slow","data-animated":s?"true":void 0,className:"jsx-98945bce5c9f3915 scroller",children:(0,r.jsx)("ul",{className:"jsx-98945bce5c9f3915 tag-list scroller__inner",children:a.map((e,t)=>(0,r.jsxs)("li",{className:"jsx-98945bce5c9f3915 flex items-center gap-x-1.5 whitespace-nowrap",children:[e.url?(0,r.jsxs)(l.default,{href:e.url,className:"flex items-center gap-x-1.5",children:[(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 font-medium",children:e.number}),(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 font-light",children:e.title})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 font-medium",children:e.number}),(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 font-light",children:e.title})]}),t<a.length-1&&(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 inline-block size-1.5 rounded-full bg-baby-powder ml-1.5 flex-shrink-0",children:"\xa0"})]},t))})}):(0,r.jsxs)("div",{"aria-hidden":"true",className:"jsx-98945bce5c9f3915 flex items-center justify-center gap-2 py-3 px-4",children:[(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 inline-block size-2 roun
1ded-full bg-baby-powder/60 animate-pulse"}),(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 inline-block size-2 rounded-full bg-baby-powder/60 animate-pulse [animation-delay:150ms]"}),(0,r.jsx)("span",{className:"jsx-98945bce5c9f3915 inline-block size-2 rounded-full bg-baby-powder/60 animate-pulse [animation-delay:300ms]"})]})}),(0,r.jsx)(c(),{id:"98945bce5c9f3915",children:'.scroller.jsx-98945bce5c9f3915{max-width:1920px;overflow:hidden}.scroller__inner.jsx-98945bce5c9f3915{padding-block:.5rem;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:1rem;width:-webkit-max-content;width:-moz-max-content;width:max-content}.scroller[data-animated="true"].jsx-98945bce5c9f3915{overflow:hidden}.scroller[data-animated="true"].jsx-98945bce5c9f3915 .scroller__inner.jsx-98945bce5c9f3915{width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-animation:scroll var(--_animation-duration,40s)var(--_animation-direction,forwards)linear infinite;-moz-animation:scroll var(--_animation-duration,40s)var(--_animation-direction,forwards)linear infinite;-o-animation:scroll var(--_animation-duration,40s)var(--_animation-direction,forwards)linear infinite;animation:scroll var(--_animation-duration,40s)var(--_animation-direction,forwards)linear infinite}.scroller[data-direction="right"].jsx-98945bce5c9f3915{--_animation-direction:reverse}.scroller[data-direction="left"].jsx-98945bce5c9f3915{--_animation-direction:forwards}.scroller[data-speed="fast"].jsx-98945bce5c9f3915{--_animation-duration:20s}.scroller[data-speed="slow"].jsx-98945bce5c9f3915{--_animation-duration:60s}@-webkit-keyframes scroll{to{-webkit-transform:translate(-webkit-calc(-50% - .5rem));transform:translate(-webkit-calc(-50% - .5rem));transform:translate(calc(-50% - .5rem))}}@-moz-keyframes scroll{to{-moz-transform:translate(-moz-calc(-50% - .5rem));transform:translate(-moz-calc(-50% - .5rem));transform:translate(calc(-50% - .5rem))}}@-o-keyframes scroll{to{-o-transform:translate(calc(-50% - .5rem));transform:translate(calc(-50% - .5rem))}}@keyframes scroll{to{-webkit-transform:translate(-webkit-calc(-50% - .5rem));-moz-transform:translate(-moz-calc(-50% - .5rem));-o-transform:translate(calc(-50% - .5rem));transform:translate(-webkit-calc(-50% - .5rem));transform:translate(-moz-calc(-50% - .5rem));transform:translate(calc(-50% - .5rem))}}'})]})}var m=a(4243),u=a(1994);function x(e){let{items:t}=e;return(0,r.jsxs)(m.fC,{children:[(0,r.jsx)(m.xz,{asChild:!0,children:(0,r.jsx)("button",{className:"w-[48px] h-[44px] rounded-md grid place-items-center bg-baby-powder focus:outline-none",children:(0,r.jsx)(n.default,{src:"/images/hamburguer.svg",width:28,height:28,alt:"menu"})})}),(0,r.jsx)(m.h_,{children:(0,r.jsxs)(m.VY,{align:"end",sideOffset:-44,className:"bg-baby-powder w-[350px] lg:w-[407px] rounded-md pl-6 pr-2.5 pt-1 pb-7 shadow animate-fade animate-duration-300 z-50",children:[(0,r.jsxs)("div",{className:"flex items-center justify-end gap-x-5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-x-1.5",children:[(0,r.jsx)("div",{children:(0,r.jsx)(n.default,{src:"/images/flag.svg",width:48,height:44,alt:"flag colombia"})}),(0,r.jsx)("div",{children:(0,r.jsx)(l.default,{href:"/comunidad/",className:"w-[139px] h-[44px] rounded-md bg-baby-powder grid place-items-center",children:(0,r.jsx)("p",{className:"bg-pear w-[133px] h-[38px] rounded-sm grid place-items-center",children:(0,r.jsx)("span",{className:"inline-block font-dk-canoodle text-lg lg:text-xl -translate-y-0.5",children:"\xdananse al parche"})})})})]}),(0,r.jsx)("div",{children:(0,r.jsx)(m.x8,{asChild:!0,children:(0,r.jsx)("button",{className:"h-[38px] w-[38px] rounded-md grid place-items-center",children:(0,r.jsx)(n.default,{src:"/images/icons/close.svg",width:28,height:28,alt:"close"})})})})]}),(0,r.jsx)("ul",{children:t.map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsxs)(l.default,{href:e.url,className:(0,u.Z)("flex items-center gap-x-5 py-2.5 px-2.5",0!==t&&"border-t"),children:[(0,r.jsx)("span",{children:(0,r.jsx)(n.default,{width:20,height:20,src:"/images/icons/circle.svg",alt:"circle"})}),(0,r.jsx)("span",{children:e.label})]})},t))})]})})]})}var f=a(4887);function h(e){let{label:t,href:a,entries:s,allowWrap:n=!1}=e,[i,c]=(0,o.useState)(!1),[d,m]=(0,o.useState)({top:0,left:0}),u=(0,o.useRef)(null),x=(0,o.useRef)(null),[h,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>p(!0),[]),(0,o.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),(0,o.useEffect)(()=>
1{if(i&&x.current){let e=x.current.getBoundingClientRect();m({top:e.bottom+window.scrollY,left:e.left+window.scrollX})}},[i]);let b=()=>{u.current&&(clearTimeout(u.current),u.current=null),c(!0)},g=()=>{u.current=setTimeout(()=>{c(!1),u.current=null},300)},j=(0,r.jsx)(l.default,{href:a,className:"inline-block py-2.5 px-6 bg-transparent hover:bg-pear hover:font-bold duration-300",children:t});if(0===s.length)return(0,r.jsx)("li",{className:"flex-shrink-0",children:j});let w=i?(0,r.jsxs)("div",{className:`fixed z-[9999] min-w-[200px] ${n?"max-w-[320px]":""}`,style:{top:`${d.top}px`,left:`${d.left}px`},onMouseEnter:b,onMouseLeave:g,children:[(0,r.jsx)("div",{className:"h-2 w-full"}),(0,r.jsx)("div",{className:`bg-baby-powder py-4 px-5 rounded-lg shadow-lg -mt-2 ${n?"":"whitespace-nowrap"}`,children:(0,r.jsx)("ul",{children:s.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:e.href,className:"block py-2 px-4 hover:bg-pear hover:font-bold duration-300 rounded",onClick:()=>c(!1),children:e.label})},e.id))})})]}):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("li",{ref:x,className:"flex-shrink-0 relative",onMouseEnter:b,onMouseLeave:g,children:j}),h&&(0,f.createPortal)(w,document.body)]})}function p(e){let{category:t,subcategories:a}=e;return(0,r.jsx)(h,{label:t.name,href:`/noticias/?category=${t.slug}`,entries:a.map(e=>({id:e.id,label:e.name,href:`/noticias/?category=${t.slug}&subcategory=${e.slug}`}))})}let b=[{label:"Inicio",url:"/"},{label:"Qui\xe9nes somos",url:"/quienes-somos/"},{label:"Comunidad",url:"/comunidad/"},{label:"Tienda",url:"/comunidad/tienda/"},{label:"Noticias",url:"/noticias/"},{label:"Especiales",url:"/especiales/"},{label:"Interactivos",url:"/interactivos/"}];function g(e){let{indicators:t=[],categories:a=[],subcategories:s=[],interactives:i=[]}=e,c=s.reduce((e,t)=>(e[t.categoryId]||(e[t.categoryId]=[]),e[t.categoryId].push(t),e),{}),o=i.slice(0,6).map(e=>({id:e.slug,label:e.title,href:`/interactivos/${e.slug}/`}));return i.length>6&&o.push({id:"ver-todos",label:"Ver todos los interactivos",href:"/interactivos/"}),(0,r.jsxs)("header",{children:[(0,r.jsx)(d,{indicators:t}),(0,r.jsx)("div",{className:"py-5 bg-navbar bg-cover bg-center",children:(0,r.jsx)("div",{className:"u-container",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)(l.default,{href:"/",children:(0,r.jsx)(n.default,{src:"/images/logo.svg",width:80,height:80,alt:"logo"})})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"flex items-center gap-x-2.5",children:[(0,r.jsx)("div",{children:(0,r.jsx)(n.default,{src:"/images/flag.svg",width:48,height:44,alt:"flag colombia"})}),(0,r.jsx)("div",{children:(0,r.jsx)(l.default,{href:"/comunidad/",className:"w-[139px] h-[44px] rounded-md bg-baby-powder grid place-items-center",children:(0,r.jsx)("p",{className:"bg-pear w-[133px] h-[38px] rounded-sm grid place-items-center",children:(0,r.jsx)("span",{className:"inline-block font-dk-canoodle text-lg lg:text-xl -translate-y-0.5",children:"Ap\xf3yennos"})})})}),(0,r.jsx)("div",{children:(0,r.jsx)(x,{items:b})})]})})]})})}),(0,r.jsx)("div",{className:"bg-links bg-cover bg-center",children:(0,r.jsx)("div",{className:"u-container",children:(0,r.jsx)("nav",{className:"relative",children:(0,r.jsxs)("ul",{className:"flex justify-start xl:justify-center overflow-x-auto u-no-scroll lg:text-lg relative",children:[(0,r.jsx)("li",{className:"flex-shrink-0",children:(0,r.jsx)(l.default,{className:"inline-block py-2.5 px-6 bg-transparent hover:bg-pear hover:font-bold duration-300",href:"/noticias/?section=videopodcast",children:"Podcast"})}),(0,r.jsx)(h,{label:"Interactivos",href:"/interactivos/",entries:o,allowWrap:!0}),a.map(e=>(0,r.jsx)(p,{category:e,subcategories:c[e.id]||[]},e.id))]})})})})]})}function j(){return(0,r.jsx)("footer",{className:"px-4 lg:px-8 pb-8",children:(0,r.jsxs)("div",{className:"bg-footer bg-cover bg-center py-10 px-8",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-y-8 md:flex-row md:gap-x-4 md:justify-between md:items-stretch",children:[(0,r.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("h2",{className:"font-dk-canoodle text-3xl lg:text-4xl text-baby-powder",children:[(0,r.jsx)("span",{className:"lg:block",children:"\xa1Suscr\xedbanse a nuestro newsletter!"}),(0,r.jsxs)("span",{className:"lg:block",children:["Un resumen de los rollos econ\xf3micos ",(0,r.jsx)("br",{})," explicados al estilo pipol (f\xe1cil y parchado)."]}),(0,r.jsx)("span",{className:"mt-3 text-pear lg:block",children:"Prometemos no hacer spam."})]}),(0,r.jsxs)("ul",{className:"text-white space-y-2 text-lg",children:[(0,r.jsx)("li",{children:(0,r.jsxs)("a",{className:"underline inline-flex items-center gap-x-2",href:"https://docs.google.com/forms/d/e/1FAIpQLSeu7HN9k9ontZmnlljsbi4FYLx1xro4As8DgM7gMRIraWvWkQ/viewform",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(n.default,{src:"/images/google-forms.png",alt:"google forms icon",width:20,height:20}),(0,r.jsx)("span",{children:"Inscr\xedbete en este formulario"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)("a",{className:"underline inline-flex items-center gap-x-2",href:"https://substack.com/@economiaparalapipol",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(n.default,{className:"transform scale-150",src:"/images/substack.png",alt:"substack icon",width:20,height:20}),(0,r.jsx)("span",{children:"Inscr\xedbete a nuestro substack"})]})})]})]}),(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)("a",{href:"https://www.datasketch.co/",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.default,{src:"/images/datasketch.svg",alt:"logo datasketch",width:211,height:20})})})]}),(0,r.jsx)("div",{className:"md:-mt-[53px] md:scale-110",children:(0,r.jsxs)("div",{className:"w-full max-w-[402px] h-[387px] px-14 py-20 relative",children:[(0,r.jsxs)("div",{className:"relative z-10 rotate-[2deg]",children:[(0,r.jsxs)("h2",{className:"font-dk-canoodle text-2xl",children:[(0,r.jsx)("span",{className:"font-montserrat",children:"\xbf"}),"Nos quieren contactar",(0,r.jsx)("span",{className:"font-montserrat inline-block -translate-x-1.5",children:"?"})]}),(0,r.jsxs)("p",{className:"text-sm mt-3",children:["Tenemos una l\xednea directa pa' toda la Pipol. Nos pueden escribir al correo"," ",(0,r.jsx)("a",{className:"underline text-cerulean",href:"mailto:[email protected]",children:"[email protected]"})," ","para cualquier cosa."]}),(0,r.jsxs)("ul",{className:"mt-3 flex items-center gap-x-2.5",children:[(0,r.jsx)("li",{children:(0,r.jsx)("a",{className:"inline-grid place-items-center size-10 bg-pear roun
1ded-full",href:"https://www.youtube.com/c/Econom%C3%ADaParalaPipol",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.default,{src:"/images/icons/youtube.svg",alt:"youtube icon",width:20,height:20})})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{className:"inline-grid place-items-center size-10 bg-pear rounded-full",href:"https://www.facebook.com/Economiaparalapipol",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.default,{src:"/images/icons/facebook.svg",alt:"facebook icon",width:22,height:22})})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{className:"inline-grid place-items-center size-10 bg-pear rounded-full",href:"https://www.instagram.com/economiaparalapipol/",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.default,{src:"/images/icons/instagram.svg",alt:"instagram icon",width:20,height:20})})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{className:"inline-grid place-items-center size-10 bg-pear rounded-full",href:"https://wa.me/573012908774",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.default,{src:"/images/icons/whatsapp.svg",alt:"whatsapp icon",width:20,height:20})})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{className:"inline-grid place-items-center size-10 bg-pear rounded-full",href:"https://www.tiktok.com/@economiaparalapipol",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.default,{src:"/images/icons/tiktok.svg",alt:"tiktok icon",width:20,height:20})})})]})]}),(0,r.jsx)("div",{className:"absolute top-0 left-0 w-full h-full",children:(0,r.jsx)(n.default,{src:"/images/clip-paper.svg",alt:"clip paper",width:402,height:387})})]})}),(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)("a",{href:"https://www.datasketch.co/",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.default,{src:"/images/datasketch.svg",alt:"logo datasketch",width:211,height:20})})})]}),(0,r.jsxs)("div",{className:"text-center mt-6 text-baby-powder text-sm flex flex-col gap-y-2 [&>a]:inline-block [&>a]:py-1",children:[(0,r.jsx)("a",{href:"https://drive.google.com/file/d/1NbrPWpWm1ywm_UQTsIZgOHAwYxbe4RRj/view?usp=drive_link",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:"Pol\xedtica de tratamiento de datos"}),(0,r.jsx)(l.default,{href:"/noticias/directrices-editoriales-de-econom\xeda-para-la-pipol/",className:"hover:underline",children:"Directrices editoriales"})]})]})})}var w=a(9027),v=a(2489);function y(){let[e,t]=(0,o.useState)(!1),[a,s]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{e||a||s(!1)},[e,a]),(0,r.jsxs)(w.fC,{open:e,onOpenChange:e=>{e?(t(!0),s(!0)):(s(!0),setTimeout(()=>{t(!1),s(!1)},100))},children:[(0,r.jsx)(w.xz,{asChild:!0,children:(0,r.jsxs)("button",{className:"fixed bottom-6 right-6 z-50 flex h-24 w-24 flex-col items-center justify-center gap-1 rounded-full bg-cerulean text-white shadow-lg hover:bg-indigo-dye hover:scale-110 focus:outline-none focus:ring-2 focus:ring-pear focus:ring-offset-2 duration-300","aria-label":"Abrir La Pipol Bot",onClick:()=>{window.sa_event&&window.sa_event("chatbot_button_click"),window.gtag&&window.gtag("event","chatbot_button_click",{event_category:"engagement",event_label:"chatbot_button"})},children:[(0,r.jsx)("svg",{className:"h-8 w-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),(0,r.jsx)("span",{className:"text-xs font-medium",children:"La Pipol Bot"})]})}),(0,r.jsxs)(w.h_,{children:[(0,r.jsx)(w.aV,{className:`fixed inset-0 z-50 bg-eerie-black/50 backdrop-blur-sm ${e?"animate-fade-in":"animate-fade-out"}`}),(0,r.jsx)(w.VY,{className:`fixed left-[50%] top-[50%] z-50 h-[90vh] w-[90vw] max-w-4xl translate-x-[-50%] translate-y-[-50%] rounded-lg bg-baby-powder shadow-xl ${e?"animate-fade-in":"animate-fade-out"}`,children:(0,r.jsxs)("div",{className:"flex h-full flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-timberwolf px-6 py-4",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,r.jsx)("div",{className:"h-8 w-8 rounded-full bg-cerulean flex items-center justify-center hover:scale-110 duration-300",children:(0,r.jsx)("svg",{className:"h-5 w-5 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-lg font-semibold text-eerie-black",children:"La Pipol Bot"}),(0,r.jsx)("p",{className:"text-sm text-davys-gray",children:"Tu asistente de econom\xeda"}),(0,r.jsx)("p",{className:"text-xs text-orange-600 font-medium mt-1",children:"Este es un producto en fase beta: sus respuestas pueden tener errores."})]})]}),(0,r.jsx)(w.x8,{asChild:!0,children:(0,r.jsx)("button",{className:"rounded-full p-2 text-davys-gray hover:bg-timberwolf hover:text-eerie-black focus:outline-none focus:ring-2 focus:ring-pear hover:scale-110 duration-300","aria-label":"Cerrar chatbot",children:(0,r.jsx)(v.Z,{className:"h-5 w-5"})})})]}),(0,r.jsx)("div",{className:"flex-1 p-0",children:(0,r.jsx)("iframe",{src:"https://services.datasketch.co/org_economia-para-la-pipol_chat/",className:"h-full w-full rounded-b-lg border-0",title:"La Pipol Bot - Chatbot de econom\xeda",allow:"microphone; camera",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})})]})})]})]})}var N=a(1921);function k(e){let t=e.split("?")[0].split("#")[0].trim();return t.length>1&&t.endsWith("/")?t.slice(0,-1):t||"/"}function _(e){return`pipol:campaign:${e}`}function C(e,t){try{window.localStorage.setItem(_(e),JSON.stringify(t))}catch{}}var z=a(3548);let S=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function E(e){let{campana:t,campos:a,ajustes:l}=e,n=(0,s.usePathname)(),[i,c]=(0,o.useState)(!1),[d,m]=(0,o.useState)({}),[u,x]=(0,o.useState)({}),[f,h]=(0,o.useState)(null),[p,b]=(0,o.useState)(!1),[g,j]=(0,o.useTransition)(),v=(0,o.useRef)(!1),y=a.filter(e=>"hidden"!==e.type),E=(0,o.useCallback)(()=>{v.current||(v.current=!0,c(!0),(0,z.qZ)(t.title))},[t.title]);(0,o.useEffect)(()=>{if(v.current||0===y.length||!function(e,t){let a=k(t);if("/dashboard"===a||a.startsWith("/dashboard/"))return!1;let r=(e??"").trim();return!r||r.split(",").map(e=>e.trim()).filter(Boolean).some(e=>{if(e.endsWith("*")){let t=k(e.slice(0,-1));return a===t||a.startsWith("/"===t?"/":`${t}/`)}return a===k(e)})}(t.pathPattern,n??"/")||!function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(!e)return!0;if(e.submitted)return!1;if(!e.dismissedAt)return!0;let r=new Date(e.dismissedAt).getTime();return!Number.isFinite(r)||a.getTime()>=r+864e5*Math.max(0,t)}(function(e){try{let t=window.localStorage.getItem(_(e));return t?JSON.parse(t):null}catch{return null}}(t.id),t.frequencyDays))return;if("delay"===t.triggerType){let e=Math.max(0,t.triggerValue),a=window.setTimeout(E,1e3*e);return()=>window.clearTimeout(a)}if("scroll"===t.triggerType){let e=Math.min(100,Math.max(1,t.triggerValue)),a=()=>{let t=document.documentElement.scrollHeight-window.innerHeight;(t<=0?100:window.scrollY/t*100)>=e&&E()};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>window.removeEventListener("scroll",a)}let e=e=>{e.clientY<=0&&!e.relatedTarget&&E()};return document.addEventListener("mouseout",e),()=>document.removeEventListener("mouseout",e)},[E,t.frequencyDays,t.id,t.pathPattern,t.triggerType,t.triggerValue,n,y.length]);let P=(e,t)=>{m(a=>({...a,[e]:t})),x(t=>{if(!t[e])return t;let{[e]:a,...r}=t;return r})};return(0,r.jsx)(w.fC,{open:i,onOpenChange:e=>{c(e),e||p||(C(t.id,{dismissedAt:new Date().toISOString()}),(0,z.O8)(t.title))},children:(0,r.jsxs)(w.h_,{children:[(0,r.jsx)(w.aV,{className:"fixed inset-0 bg-black/40 animate-fade animate-duration-300 z-40"}),(0,r.jsxs)(w.VY,{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[92vw] max-w-lg max-h-[88vh] overflow-y-auto rounded-lg bg-baby-powder p-6 lg:p-8 z-50 animate-fade animate-duration-300",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsx)(w.Dx,{className:"font-dk-canoodle text-2xl lg:text-3xl",children:t.title}),(0,r.jsx)(w.x8,{asChild:!0,children:(0,r.jsx)("button",{type:"button","aria-label":"Cerrar",className:"text-lg font-medium underline flex-shrink-0",children:"Cerrar"})})]}),t.message?(0,r.jsx)(w.dk,{className:"mt-3 text-base lg:text-lg",children:t.message}):(0,r.jsx)(w.dk,{className:"sr-only",children:"Formulario para dejar tus datos"}),t.image&&(0,r.jsx)("img",{src:t.image,alt:"",className:"mt-4 w-full rounded-md object-cover"}),p?(0,r.jsx)("p",{className:"mt-8 text-lg lg:text-xl",children:t.successMessage??(null==l?void 0:l.successMessage)??"\xa1Listo! Gracias por dejarnos tus datos."}):(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),h(null);let r={};for(let e of y){let t=d[e.key],a=!t||"string"==typeof t&&!t.trim();e.required&&a?r[e.key]="Este campo es obligatorio":"email"!==e.type||a||S.test(String(t))||(r[e.key]="Escribe un correo v\xe1lido")}if(Object.keys(r).length>0){x(r);let e=y.find(e=>r[e.key]);if(e){let t=document.getElementById(`popup-${e.key}`);null==t||t.scrollIntoView({block:"center",behavior:"smooth"}),null==t||t.focus({preventScroll:!0})}return}let{respondent_name:s,respondent_email:l,...n}=d,i=a.find(e=>"email"===e.type&&String(d[e.key]??"").trim()),c=String(l??"").trim()||String(i?d[i.key]:"").trim();j(async()=>{let e=await (0,N.R2)({formSlug:t.formSlug,data:n,respondentName:String(s??"").trim(),respondentEmail:c});e.success?(b(!0),C(t.id,{submitted:!0}),(0,z.dH)(t.title)):h(e.error??"No pudimos guardar tus datos.")})},noValidate:!0,className:"mt-6 flex flex-col gap-y-5",children:[y.map(e=>(0,r.jsx)($,{campo:e,valor:"string"==typeof d[e.key]?d[e.key]:"",error:u[e.key],alEscribir:P},e.key)),f&&(0,r.jsx)("p",{className:"text-imperial-red font-medium",role:"alert",children:f}),(0,r.jsx)("button",{type:"submit",disabled:g,className:"bg-pear border-2 border-eerie-black rounded-md px-5 py-2.5 font-dk-canoodle text-lg lg:text-xl disabled:opacity-60",children:g?"Enviando...":t.buttonLabel??(null==l?void 0:l.submitButtonText)??"Enviar"}),(null==l?void 0:l.showPrivacyNotice)&&(0,r.jsx)("p",{className:"text-sm text-davys-gray",children:"Al enviar tus datos autorizas a Econom\xeda Para la Pipol a guardarlos y a escribirte sobre sus contenidos y actividades. Puedes pedir que los eliminemos cuando quieras."})]})]})]})})}function $(e){let{campo:t,valor:a,error:s,alEscribir:l}=e,n=`popup-${t.key}`,i=`w-full rounded-md border-2 bg-white px-3 py-2 text-base ${s?"border-imperial-red":"border-eerie-black"}`,c=(0,r.jsxs)("label",{htmlFor:n,className:"block font-medium text-lg",children:[t.label,t.required&&(0,r.jsx)("span",{className:"text-imperial-red",children:" *"})]}),o=t.helpText&&(0,r.jsx)("p",{className:"text-sm text-davys-gray",children:t.helpText}),d=s&&(0,r.jsx)("p",{className:"text-sm text-imperial-red",role:"alert",children:s});if("radio"===t.type||"select"===t.type)return(0,r.jsxs)("fieldset",{children:[(0,r.jsxs)("legend",{className:"block font-medium text-lg",children:[t.label,t.required&&(0,r.jsx)("span",{className:"text-imperial-red",children:" *"})]}),o,(0,r.jsx)("div",{className:"mt-2 flex flex-wrap gap-x-6 gap-y-2",children:(t.options??[]).map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-x-2 text-base cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:n,value:e,checked:a===e,onChange:e=>l(t.key,e.target.value)}),e]},e))}),d]});if("textarea"===t.type)return(0,r.jsxs)("div",{children:[c,o,(0,r.jsx)("textarea",{id:n,rows:3,className:`mt-2 ${i}`,placeholder:t.placeholder,value:a,onChange:e=>l(t.key,e.target.value)}),d]});let m="email"===t.type?"email":"tel"===t.type?"tel":"number"===t.type?"number":"text";return(0,r.jsxs)("div",{children:[c,o,(0,r.jsx)("input",{id:n,type:m,className:`mt-2 ${i}`,placeholder:t.placeholder,value:a,onChange:e=>l(t.key,e.target.value)}),d]})}function P(e){let{children:t,indicators:a=[],categories:l=[],subcategories:n=[],interactives:i=[],campana:c=null}=e,o=(0,s.usePathname)();return(null==o?void 0:o.startsWith("/dashboard"))?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g,{indicators:a,categories:l,subcategories:n,interactives:i}),(0,r.jsx)("main",{children:t}),(0,r.jsx)(j,{}),(0,r.jsx)(y,{}),c&&(0,r.jsx)(E,{campana:c.campana,campos:c.campos,ajustes:c.ajustes})]})}},3548:function(e,t,a){"use strict";function r(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function s(e){let{nombre:t,categoria:a,precio:s}=e;r({event:"view_item",item_name:t,item_category:a,price:s})}function l(e){let{nombre:t,precio:a}=e;r({event:"begin_checkout",item_name:t,value:a,currency:"COP"})}function n(e){r({event:"popup_view",promotion_name:e})}function i(e){r({event:"popup_dismiss",promotion_name:e})}function c(e){r({event:"generate_lead",promotion_name:e})}a.d(t,{F5:function(){return s},O8:function(){return i},dH:function(){return c},gx:function(){return l},qZ:function(){return n}})},1921:function(e,t,a){"use strict";a.d(t,{J4:function(){return c},Kz:function(){return d},Np:function(){return n},R2:function(){return l},xM:function(){return i},yv:function(){return s},z1:function(){return o}}),a(3079);var r=a(2119),s=(0,r.$)("11719b61cd9f12bb7872f3cb7c73f1698189b0c8"),l=(0,r.$)("34964d4f6234819fae1df017b74e98608ff4c465"),n=(0,r.$)("d33685304b98b7c1c15ad74af6558a137673c06e"),i=(0,r.$)("acc77ea703466857a010fdb28b41c7feb55eee8b"),c=(0,r.$)("7791344560bda41db02a194841e6f14b7ac83126"),o=(0,r.$)("5d5e67b64061bca89f8cedd5fba0523662b28cf5"),d=(0,r.$)("9bb791502054d1b2e8cd58dbd8f5bb835c35d9f0");(0,r.$)("5fb895c34219645d558d6a43ce2142445915f80c"),(0,r.$)("e4304451d8304a11baed17b1f9b870acf453b79d"),(0,r.$)("0dd6ee33b2b5ed8889be7b238b6eae4d5c89558e"),(0,r.$)("bb26f214cb0e09ed5f7f5bd16c4fbc9364aa5a62"),(0,r.$)("c73592e24e436bf5917a81babf72eec47b1a30ec")},7960:function(){}},function(e){e.O(0,[3587,4235,2972,4032,8068,129,7423,8764,29,7352,4243,6284,2971,2117,1744],function(){return e(e.s=9253)}),_N_E=e.O()}]);
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.