1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[486],{1160:function(e,t,s){s.r(t),s.d(t,{default:function(){return u}});var r=s(3827),n=s(4090),i=s(7907),a=s(5140),l=s(6370),o=s(8792),c=s(6173),d=s(1399),h=s(2362);function u(e){let{backgroundColor:t="bg-[#101010]"}=e,s=(0,i.usePathname)(),{setSearchTerm:u}=(0,a.useSearch)(),{playRadio:f}=(0,l.usePlayer)(),[x,m]=(0,n.useState)(!1),[w,p]=(0,n.useState)(""),[g,v]=(0,n.useState)(!1),[b,j]=(0,n.useState)(!1),[y,N]=(0,n.useState)(!0),[k,L]=(0,n.useState)(0),P=(0,i.useRouter)(),C=(0,n.useRef)(null),E=(0,n.useRef)(null),S=[{key:"inicio",label:"Inicio",href:"/"},{key:"programas",label:"Programas",href:"/#shows"},{key:"noticias",label:"Noticias",href:"/news"},{key:"contacto",label:"Contacto",href:"/contact"}],I=[{key:"facebook",label:"Facebook",href:"https://www.facebook.com/columbiaestereo/?locale=es_LA",icon:(0,r.jsx)(d.tBk,{className:"w-4 h-4"})},{key:"instagram",label:"Instagram",href:"https://www.instagram.com/columbiaestereo/?hl=es",icon:(0,r.jsx)(d.Zf_,{className:"w-4 h-4"})},{key:"x",label:"X (Twitter)",href:"https://x.com/927estereo/",icon:(0,r.jsx)(h.LCd,{className:"w-4 h-4"})}];(0,n.useEffect)(()=>{let e=e=>{g&&C.current&&!C.current.contains(e.target)&&v(!1)},t=e=>{"Escape"===e.key&&v(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[g]),(0,n.useEffect)(()=>{g&&E.current&&E.current.focus()},[g]),(0,n.useEffect)(()=>{let e=()=>{let e=window.scrollY;j(e>50),e>k&&e>200?N(!1):N(!0),L(e)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[k]);let A=()=>{m(!1)},D=(e,t)=>{if(e.preventDefault(),t.trim()){u(t.trim()),p(""),A();let e=new URLSearchParams;e.set("search",t.trim());let s="/news?".concat(e.toString());"/news"===window.location.pathname?P.replace(s,{scroll:!1}):P.push(s)}},R=e=>{p(e)},_=e=>{e.preventDefault(),f(),A()},M=e=>"/"===e?"/"===s:s.startsWith(e);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-20"}),(0,r.jsx)("nav",{className:"fixed top-0 left-0 right-0 w-full text-white z-40 transition-all duration-300 ".concat(b?"bg-[#101010] shadow-lg":t," ").concat(y?"translate-y-0":"-translate-y-full"),children:(0,r.jsxs)("div",{className:"mx-auto flex h-20 items-center justify-between gap-6 px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"flex flex-1 items-center gap-8",children:[(0,r.jsx)(o.default,{href:"/",className:"inline-flex items-center",children:(0,r.jsx)("img",{src:"/assets/Logo.png",alt:"Columbia Est\xe9reo",className:"w-36"})}),(0,r.jsx)("div",{className:"hidden lg:flex items-center gap-8 text-base font-medium text-white/90",children:S.map(e=>(0,r.jsx)(o.default,{href:e.href,className:"transition-colors ".concat(M(e.href)?"text-white":"hover:text-white/90"),children:e.label},e.key))})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 lg:gap-4",children:[(0,r.jsxs)("div",{ref:C,className:"hidden lg:flex items-center gap-2",children:[(0,r.jsx)("button",{onClick:()=>v(e=>!e),className:"flex h-10 w-10 items-center justify-center rounded-full transition-colors ".concat(g?"bg-white/15 text-white":"bg-white/10 text-white/70 hover:bg-white/10 hover:text-white"),"aria-label":"Buscar",children:(0,r.jsx)(c.jRj,{className:"h-4 w-4"})}),(0,r.jsxs)("form",{onSubmit:e=>D(e,w),className:"flex items-center gap-2 overflow-hidden rounded-full transition-all duration-300 ease-out ".concat(g?"ml-2 w-64 border border-white/10 bg-[#161616] px-4 py-2 opacity-100 shadow-lg shadow-black/30":"ml-0 w-0 border-none bg-transparent px-0 py-0 opacity-0 pointer-events-none"),children:[(0,r.jsx)(c.jRj,{className:"h-4 w-4 text-white/40"}),(0,r.jsx)("input",{ref:E,type:"text",placeholder:"Buscar en noticias",value:w,onChange:e=>R(e.target.value),className:"w-full bg-transparent text-sm text-white placeholder:text-white/40 focus:outline-none"})]})]}),(0,r.jsx)("div",{className:"hidden lg:flex items-center gap-2",children:I.map(e=>(0,r.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:"flex h-10 w-10 items-center justify-center rounded-full bg-white/10 text-white/70 transition-colors hover:bg-white/10 hover:text-white",children:e.icon},e.key))}),(0,r.jsxs)("button",{onClick:_,className:"hidden sm:inline-flex items-center gap-2 rounded-full bg-[#D92A34] px-5 py-2 font-semibold text-white shadow-md shadow-[#D92A34]/30 transition-transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-[#D92A34]/60",children:[(0,r.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-white/70 opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-white"})]}),"En vivo"]}),(0,r.jsx)("button",{onClick:()=>{m(!x),v(!1)},className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-white/5 text-white/70 transition-colors hover:bg-white/10 hover:text-white lg:hidden","aria-label":"Abrir men\xfa",children:(0,r.jsx)("svg",{className:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x?(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]})]})}),x&&(0,r.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40 lg:hidden",onClick:A}),(0,r.jsx)("div",{className:"fixed top-0 right-0 h-full w-80 bg-[#050505] border-l border-[#141414] shadow-lg z-50 transform transition-transform duration-300 ease-in-out lg:hidden ".concat(x?"translate-x-0":"translate-x-full"),children:(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[(0,r.jsx)("div",{className:"p-6 border-b border-[#141414]",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("img",{src:"/assets/Logo.png",alt:"Columbia Est\xe9reo",className:"w-28"}),(0,r.jsx)("button",{onClick:A,className:"rounded-full p-2 text-white/60 transition-colors hover:bg-white/5 hover:text-white","aria-label":"Cerrar men\xfa",children:(0,r.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),(0,r.jsxs)("div",{className:"space-y-6 p-6",children:[(0,r.jsxs)("button",{onClick:_,className:"inline-flex w-full items-center justify-center gap-2 rounded-full bg-[#D92A34] px-5 py-3 font-semibold text-white shadow-md shadow-[#D92A34]/30 transition-transform hover:scale-[1.01] focus:outline-none focus:ring-2 focus:ring-[#D92A34]/60",children:[(0,r.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-white/70 opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-white"})]}),"En vivo"]}),(0,r.jsx)("div",{className:"flex items-center gap-3",children:I.map(e=>(0,r.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:"flex h-12 w-12 items-center justify-center rounded-full bg-white/5 text-white/70 transition-colors hover:bg-white/10 hover:text-white",children:e.icon},e.key))}),(0,r.jsx)("form",{onSubmit:e=>D(e,w),children:(0,r.jsxs)("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-[#161616] px-4 py-2",children:[(0,r.jsx)(c.jRj,{className:"h-4 w-4 text-white/40"}),(0,r.jsx)("input",{type:"text",placeholder:"Buscar en noticias",value:w,onChange:e=>R(e.target.value),className:"w-full bg-transparent text-sm text-white placeholder:text-white/40 focus:outline-none"})]})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto py-4",children:(0,r.jsx)("nav",{className:"space-y-2",children:S.map(e=>(0,r.jsx)(o.default,{href:e.href,onClick:()=>{A()},className:"flex items-center px-6 py-3 text-lg font-medium transition-colors ".concat(M(e.href)?"text-white":"text-white/60 hover:text-white"),children:e.label},e.key))})})]})})]})}},6370:function(e,t,s){s.r(t),s.d(t,{PlayerProvider:function(){return a},usePlayer:function(){return l}});var r=s(3827),n=s(4090);let i=(0,n.createContext)(void 0);function a(e){let{children:t}
1=e,[s,a]=(0,n.useState)({type:"radio",isPlaying:!1});return(0,r.jsx)(i.Provider,{value:{playerState:s,playRadio:()=>{a({type:"radio",isPlaying:!0,currentEpisode:void 0,currentShow:void 0,episodesList:void 0,currentIndex:void 0})},playEpisode:(e,t,s,r)=>{a({type:"podcast",isPlaying:!0,currentEpisode:e,currentShow:t,episodesList:s,currentIndex:r})},togglePlay:()=>{a(e=>({...e,isPlaying:!e.isPlaying}))},playNext:()=>{if("podcast"===s.type&&s.episodesList&&void 0!==s.currentIndex){let e=s.currentIndex+1;if(e<s.episodesList.length){let t=s.episodesList[e];a(s=>({...s,currentEpisode:t,currentIndex:e,isPlaying:!0}))}}},playPrevious:()=>{if("podcast"===s.type&&s.episodesList&&void 0!==s.currentIndex){let e=s.currentIndex-1;if(e>=0){let t=s.episodesList[e];a(s=>({...s,currentEpisode:t,currentIndex:e,isPlaying:!0}))}}},setIsPlaying:e=>{a(t=>({...t,isPlaying:e}))}},children:t})}function l(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("usePlayer must be used within a PlayerProvider");return e}},5140:function(e,t,s){s.r(t),s.d(t,{SearchContext:function(){return i},SearchProvider:function(){return a},useSearch:function(){return l}});var r=s(3827),n=s(4090);let i=(0,n.createContext)({searchTerm:"",setSearchTerm:()=>{},clearSearch:()=>{}});function a(e){let{children:t}=e,[s,a]=(0,n.useState)("");return(0,r.jsx)(i.Provider,{value:{searchTerm:s,setSearchTerm:a,clearSearch:()=>{a("")}},children:t})}function l(){let e=n.useContext(i);if(!e)throw Error("useSearch must be used within a SearchProvider");return e}}}]);
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.