1import{t as e}from"./useLocation-CfHPd6_8.js";import{$r as t,br as n,fi as r,k as i,qr as a,si as o}from"./index-YtqWywuo.js";import{t as s}from"./chevron-down-BQHi26Lj.js";import{t as c}from"./menu-Ccy0-Flh.js";import{t as l}from"./x-XfPai06q.js";import{t as u}from"./auth-client-DVCnjNMR.js";var d=r(o(),1),f=t();function p(){let{t,language:r}=i(),{setLanguage:o}=n(),{data:p}=u.useSession(),[m,h]=(0,d.useState)(!1);(0,d.useEffect)(()=>{h(!0)},[]);let g=m&&!!p?.user,[_,v]=(0,d.useState)(!1),y=e().pathname,b=y===`/`,x=y.startsWith(`/blog`),S=y.startsWith(`/contact`),C=y.startsWith(`/roi`),w=y.startsWith(`/pricing`),T=e=>`text-[15px] font-normal relative py-1 transition-colors ${e?`text-foreground`:`text-foreground/80 hover:text-foreground`}`,E=e=>`text-lg font-semibold ${e?`text-foreground border-b-2 border-foreground w-max pb-1`:`text-foreground/70`}`;return(0,f.jsxs)(`nav`,{className:`sticky top-0 z-50 bg-white`,children:[(0,f.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 h-[90px] flex items-center justify-between`,children:[(0,f.jsx)(a,{to:`/`,search:e=>({...e}),className:`flex-shrink-0`,children:(0,f.jsx)(`img`,{src:`/logos/cloysnc-ai-logo_m.png`,alt:`Closync AI`,className:`h-[30px] w-auto`})}),(0,f.jsxs)(`div`,{className:`hidden md:flex items-center gap-8 absolute left-1/2 -translate-x-1/2`,children:[(0,f.jsxs)(a,{to:`/`,search:e=>({...e}),resetScroll:!0,className:T(b),children:[t(`landing.navHome`),b?(0,f.jsx)(`div`,{className:`absolute bottom-0 left-0 h-[1.5px] w-full bg-foreground`}):null]}),(0,f.jsxs)(a,{to:`/blog`,search:e=>({...e,category:void 0}),resetScroll:!0,className:`${T(x)} flex items-center gap-1`,children:[t(`landing.navBlog`),(0,f.jsx)(s,{className:`h-4 w-4`}),x?(0,f.jsx)(`div`,{className:`absolute bottom-0 left-0 h-[1.5px] w-full bg-foreground`}):null]}),(0,f.jsxs)(a,{to:`/roi`,resetScroll:!0,className:T(C),children:[t(`landing.navRoi`),C?(0,f.jsx)(`div`,{className:`absolute bottom-0 left-0 h-[1.5px] w-full bg-foreground`}):null]}),(0,f.jsxs)(a,{to:`/pricing`,resetScroll:!0,className:T(w),children:[t(`landing.navPricing`),w?(0,f.jsx)(`div`,{className:`absolute bottom-0 left-0 h-[1.5px] w-full bg-foreground`}):null]}),(0,f.jsxs)(a,{to:`/contact`,resetScroll:!0,className:T(S),children:[t(`landing.navContact`),S?(0,f.jsx)(`div`,{className:`absolute bottom-0 left-0 h-[1.5px] w-full bg-foreground`}):null]})]}),(0,f.jsxs)(`div`,{className:`flex items-center gap-4 md:gap-8`,children:[(0,f.jsxs)(`div`,{className:`flex items-center rounded-full border border-border/60 bg-white p-1 shadow-sm`,children:[(0,f.jsx)(`button`,{type:`button`,onClick:()=>o(`en`),className:`rounded-full px-3 py-1.5 text-xs font-semibold tracking-wide transition-all ${r===`en`?`bg-foreground text-background shadow-sm`:`text-foreground/60 hover:text-foreground`}`,"aria-label":t(`landing.navLangEnglish`),children:`EN`}),(0,f.jsx)(`button`,{type:`button`,onClick:()=>o(`tr`),className:`rounded-full px-3 py-1.5 text-xs font-semibold tracking-wide transition-all ${r===`tr`?`bg-foreground text-background shadow-sm`:`text-foreground/60 hover:text-foreground`}`,"aria-label":t(`landing.navLangTurkish`),children:`TR`})]}),g?(0,f.jsx)(a,{to:`/chat/new`,className:`hidden rounded-full bg-[#fd9221] px-6 py-2.5 text-[15px] font-semibold text-white shadow-sm transition-all hover:bg-[#e68319] hover:-translate-y-0.5 md:inline-flex`,children:t(`landing.navOpenApp`)}):(0,f.jsx)(a,{to:`/register`,search:e=>({...e}),className:`hidden rounded-full bg-[#fd9221] px-6 py-2.5 text-[15px] font-semibold text-white shadow-sm transition-all hover:bg-[#e68319] hover:-translate-y-0.5 md:inline-flex`,children:t(`landing.startFree`)}),(0,f.jsx)(`button`,{type:`button`,onClick:()=>v(!_),className:`-mr-2 p-2.5 text-muted-foreground md:hidden`,"aria-label":t(_?`landing.navMobileClose`:`landing.navMobileOpen`),children:_?(0,f.jsx)(l,{className:`h-5 w-5`}):(0,f.jsx)(c,{className:`h-5 w-5`})})]})]}),_&&(0,f.jsxs)(`div`,{className:`md:hidden border-t border-border/50 bg-white px-6 py-8 space-y-6 animate-in slide-in-from-top-4 duration-300`,children:[(0,f.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,f.jsx)(a,{to:`/`,search:e=>({...e}
1),resetScroll:!0,className:E(b),onClick:()=>v(!1),children:t(`landing.navHome`)}),(0,f.jsx)(a,{to:`/blog`,search:e=>({...e,category:void 0}),resetScroll:!0,className:E(x),onClick:()=>v(!1),children:t(`landing.navBlog`)}),(0,f.jsx)(a,{to:`/roi`,resetScroll:!0,className:E(C),onClick:()=>v(!1),children:t(`landing.navRoi`)}),(0,f.jsx)(a,{to:`/pricing`,resetScroll:!0,className:E(w),onClick:()=>v(!1),children:t(`landing.navPricing`)}),(0,f.jsx)(a,{to:`/contact`,resetScroll:!0,className:E(S),onClick:()=>v(!1),children:t(`landing.navContact`)})]}),(0,f.jsxs)(`div`,{className:`pt-6 border-t border-border/50 flex flex-col gap-6`,children:[(0,f.jsxs)(`div`,{className:`inline-flex items-center rounded-full border border-border/60 bg-white p-1`,children:[(0,f.jsx)(`button`,{onClick:()=>{o(`en`),v(!1)},className:`rounded-full px-4 py-2 text-sm font-semibold tracking-wide transition-all ${r===`en`?`bg-foreground text-background shadow-sm`:`text-foreground/60 hover:text-foreground`}`,children:`EN`}),(0,f.jsx)(`button`,{onClick:()=>{o(`tr`),v(!1)},className:`rounded-full px-4 py-2 text-sm font-semibold tracking-wide transition-all ${r===`tr`?`bg-foreground text-background shadow-sm`:`text-foreground/60 hover:text-foreground`}`,children:`TR`})]}),g?(0,f.jsx)(a,{to:`/chat/new`,className:`w-full py-4 rounded-full bg-[#FF8A00] text-white font-bold text-center shadow-lg active:scale-[0.98] transition-all`,onClick:()=>v(!1),children:t(`landing.navOpenApp`)}):(0,f.jsx)(a,{to:`/register`,search:e=>({...e}),className:`w-full py-4 rounded-full bg-[#FF8A00] text-white font-bold text-center shadow-lg active:scale-[0.98] transition-all`,onClick:()=>v(!1),children:t(`landing.startFree`)})]})]})]})}export{p as t};
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.