1import{w as x,A as v,t as e,b as m,B as f}from"./chunk-4N6VE7H7-DCXb7SYf.js";import{B as d}from"./button-Czn59Ohv.js";import{l as b}from"./logo-DHLcI1K6.js";const w=({e:s,href:a,navigate:i,navigateTo:r})=>{if(a.startsWith("#")){s.preventDefault();const o=()=>{if(a==="#homepage")window.scrollTo({top:0,behavior:"instant"});else{const p=a.substring(1),h=document.getElementById(p);if(h){const u=h.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:u,behavior:"instant"})}}},l=a.substring(1),n=window.location.pathname==="/";a==="#homepage"&&n||!!document.getElementById(l)?o():r&&(i(r),setTimeout(o,100))}},c={features:{name:"Features",href:"#features",navigateTo:"/"},faqs:{name:"FAQs",href:"#faq",navigateTo:"/"},roadmap:{name:"Roadmap",href:"#roadmap",navigateTo:"/"},blog:{name:"Blog",href:"#blog",navigateTo:"/blog"},privacy:{name:"Privacy",href:"#privacy-policy",navigateTo:"/privacy-policy"},"privacy policy":{name:"Privacy Policy",href:"#privacy-policy",navigateTo:"/privacy-policy"},terms:{name:"Terms",href:"#terms-of-service",navigateTo:"/terms-of-service"},"terms of service":{name:"Terms of Service",href:"#terms-of-service",navigateTo:"/terms-of-service"}};function j(s){return s!=null&&s.startsWith("/extension")?{name:"Home",href:"#homepage",navigateTo:"/"}:{name:"Extension",href:"#extension",navigateTo:"/extension"}}function M(s){return c[s.toLowerCase()]??null}function g({children:s,href:a,onMobileClick:i,navigateTo:r,style:o=""}){const l=f();function n(t){a&&w({e:t,href:a,navigate:l,navigateTo:r}),i&&i()}return e.jsx("a",{href:a,onClick:n,className:`${o||"text-sm lg:text-base text-slate-600 hover:text-slate-900 font-medium transition-colors duration-200"}`,children:s})}const y=[c.features,c.faqs,c.blog,c.privacy,c.terms];function E(){const[s,a]=x.useState(!1),[i,r]=x.useState(!1),o=v(),l=[...y,j(o.pathname)];x.useEffect(()=>{const t=()=>{r(window.scrollY>0)};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]);const n=()=>{a(!1)};return e.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-100 ${i?"bg-white border-b border-slate-200":"bg-transparent"}`,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"flex items-center justify-between h-14 sm:h-16",children:[e.jsx(m,{to:"/",className:"shrink-0",children:e.jsx("div",{className:"flex items-center space-x-2 sm:space-x-3",children:e.jsx("img",{src:b,alt:"Focora Logo",className:"w-7 h-7 sm:w-8 sm:h-8 object-contain"})})}),e.jsx("nav",{className:"hidden lg:flex items-center space-x-6 xl:space-x-8 absolute left-1/2 transform -translate-x-1/2",children:l.map(t=>e.jsx(g,{href:t.href,navigateTo:t.navigateTo,children:t.name},t.name))}),e.jsxs("div",{className:"hidden lg:flex items-center space-x-2 xl:space-x-3",children:[e.jsx(m,{to:"/auth/login",children:e.jsx(d,{className:"bg-white text-black hover:bg-slate-100 shadow-sm font-medium transition-all duration-200 px-4 xl:px-6 py-2 text-sm",children:"Login"})}),e.jsx(m,{to:"/auth/login",children:e.jsx(d,{className:"bg-slate-900 shadow-sm hover:bg-slate-800 text-white font-medium transition-all duration-200 px-4 xl:px-6 py-2 text-sm",children:"Get Focora Free"})})]}),e.jsx("button",{onClick:()=>a(!s),className:"lg:hidden p-2 rounded-md text-slate-600 hover:text-slate-900 hover:bg-slate-50 transition-colors duration-200","aria-label":"Toggle menu",children:e.jsx("svg",{className:"w-5 h-5 sm:w-6 sm:h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s?e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]}),e.jsx("div",{className:`lg:hidden bg-white border-t border-slate-200 overflow-hidden transition-all duration-200 ease-in-out ${s?"max-h-96 opacity-100":"max-h-0 opacity-0"}`,children:e.jsxs("div",{className:"py-3 sm:py-4 space-y-1",children:[l.map(t=>e.jsx("div",{className:"block px-3 py-2",children:e.jsx(g,{href:t.href,navigateTo:t.navigateTo,onMobileClick:n,children:t.name})},t.name)),e.jsxs("div",{className:"flex flex-col pt-2 space-y-2 px-3",children:[e.jsx(m,{to:"/auth/login",onClick:n,children:e.jsx(d,{className:"w-full bg-white text-black hover:bg-slate-100 border border-slate-200 font-medium px-6 py-2.5 text-sm sm:text-base transition-all duration-200",children:"Login"})}),e.jsx(m,{to:"/auth/login",onClick:n,children:e.jsx(d,{className:"w-full bg-slate-900 hover:bg-slate-800 text-white font-medium px-6 py-2.5 text-sm sm:text-base transition-all duration-200",children:"Get Focora Free"})})]})]})})]})})}export{E as H,g as N,M as r};
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.