import{j as e,q as b,y as j,r as N,s as y,z as v,D as k,t as w,O as z}from"./ui-vendor-8uIfD_JC.js";import{r as h,u as _,L as l}from"./react-vendor-28t7dxFl.js";import{d,c as r,b as x,B as m}from"./index-BagLllOy.js";/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],p=d("instagram",S);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],f=d("map-pin",M);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],E=d("menu",C);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],u=d("send",L);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],I=d("x",T);function A({...t}){return e.jsx(b,{"data-slot":"sheet",...t})}function U({...t}){return e.jsx(j,{"data-slot":"sheet-trigger",...t})}function $({...t}){return e.jsx(w,{"data-slot":"sheet-portal",...t})}function q({className:t,...s}){return e.jsx(z,{"data-slot":"sheet-overlay",className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...s})}function D({className:t,children:s,side:o="right",...i}){return e.jsxs($,{children:[e.jsx(q,{}),e.jsxs(N,{"data-slot":"sheet-content",className:r("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",o==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",o==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",o==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...i,children:[s,e.jsxs(y,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[e.jsx(I,{className:"size-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function B({className:t,...s}){return e.jsx("div",{"data-slot":"sheet-header",className:r("flex flex-col gap-1.5 p-4",t),...s})}function R({className:t,...s}){return e.jsx(v,{"data-slot":"sheet-title",className:r("text-foreground font-semibold",t),...s})}function F({className:t,...s}){return e.jsx(k,{"data-slot":"sheet-description",className:r("text-muted-foreground text-sm",t),...s})}const g=[{label:"Главная",path:"/"},{label:"Кальянные",path:"/places"},{label:"Магазины",path:"/shops"},{label:"Карта",path:"/map"},{label:"Блог",path:"/blog"},{label:"FAQ",path:"/faq"}];function Q(){const[t,s]=h.useState(!1),o=_();h.useEffect(()=>{const a=()=>s(window.scrollY>10);return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[]);const i=a=>a==="/"?o.pathname==="/":o.pathname.startsWith(a);return e.jsx("header",{className:r("sticky top-0 z-50 w-full transition-all duration-300",t?"border-b border-border bg-background/95 backdrop-blur-xl supports-[backdrop-filter]:bg-background/80":"border-b border-transparent bg-transparent"),children:e.jsxs("div",{className:"mx-auto max-w-[1200px] px-6 h-16 flex items-center gap-6",children:[e.jsxs(l,{to:"/",className:"flex items-center gap-2.5 shrink-0 hover:opacity-80 transition-opacity",children:[e.jsx("div",{className:"w-9 h-9 rounded-[8px] overflow-hidden bg-primary shrink-0",children:e.jsx("img",{src:"/images/logo.png",alt:"goh.place",className:"w-full h-full object-cover"})}),e.jsxs("span",{className:"text-[19px] font-bold tracking-[-0.03em]",children:["goh",e.jsx("span",{className:"text-primary",children:"."}),"place"]})]}),e.jsx("nav",{"aria-label":"Основная навигация",className:"hidden md:flex flex-1 items-center gap-0.5",children:g.map(({label:a,path:n})=>{const c=i(n);return e.jsxs(l,{to:n,className:r("relative text-[13px] px-3 py-1.5 rounded-lg transition-colors",c?"font-semibold text-foreground":"font-normal text-muted-foreground hover:text-foreground"),children:[a,c&&e.jsx("span",{className:"absolute bottom-[1px] left-1/2 -translate-x-1/2 w-1 h-1 rounded-full bg-primary"})]},n)})}),e.jsxs("div",{className:"hidden md:flex items-center gap-2 shrink-0",children:[e.jsx("a",{href:x.instagramUrl,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"flex items-center justify-center w-[34px] h-[34px] rounded-lg text-muted-foreground hover:text-foreground bg-secondary border border-border transition-colors",children:e.jsx(p,{className:"size-[15px]"})}),e.jsx("a",{href:x.telegramUrl,target:"_blank",rel:"noopener noreferrer","aria-label":"Telegram",className:"flex items-center justify-center w-[34px] h-[34px] rounded-lg text-muted-foreground hover:text-foreground bg-secondary border border-border transition-colors",children:e.jsx(u,{className:"size-[15px]"})}),e.jsx(l,{to:"/places",children:e.jsxs(m,{size:"sm",className:"gap-1.5 font-semibold text-[13px] h-[34px]",children:[e.jsx(f,{className:"size-3.5"}),"Найти заведение"]})})]}),e.jsx("div",{className:"md:hidden ml-auto",children:e.jsxs(A,{children:[e.jsx(U,{asChild:!0,children:e.jsx(m,{variant:"ghost",size:"icon",className:"size-9","aria-label":"Открыть меню навигации",children:e.jsx(E,{className:"size-5","aria-hidden":"true"})})}),e.jsx(D,{side:"right",className:"w-[280px] p-0",children:e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("div",{className:"flex items-center justify-between p-6 border-b border-border",children:e.jsxs(l,{to:"/",className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-[7px] overflow-hidden bg-primary",children:e.jsx("img",{src:"/images/logo.png",alt:"goh.place",className:"w-full h-full object-cover"})}),e.jsxs("span",{className:"text-[17px] font-bold tracking-[-0.03em]",children:["goh",e.jsx("span",{className:"text-primary",children:"."}),"place"]})]})}),e.jsx("nav",{"aria-label":"Мобильная навигация",className:"flex flex-col p-4 gap-1 flex-1",children:g.map(({label:a,path:n})=>{const c=i(n);return e.jsx(l,{to:n,className:r("flex items-center px-3 py-3 rounded-xl text-[15px] transition-colors",c?"font-bold text-primary bg-primary/10":"font-medium text-muted-foreground hover:text-foreground hover:bg-secondary"),children:a},n)})}),e.jsxs("div",{className:"p-4 border-t border-border space-y-3",children:[e.jsx(l,{to:"/places",className:"block",children:e.jsxs(m,{className:"w-full gap-1.5 font-semibold",children:[e.jsx(f,{className:"size-4"}),"Найти заведение"]})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs text-muted-foreground",children:"Соцсети:"}),e.jsx("a",{href:x.instagramUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-9 h-9 rounded-lg bg-secondary border border-border text-muted-foreground hover:text-foreground transition-colors",children:e.jsx(p,{className:"size-4"})}),e.jsx("a",{href:x.telegramUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-9 h-9 rounded-lg bg-secondary border border-border text-muted-foreground hover:text-foreground transition-colors",children:e.jsx(u,{className:"size-4"})})]})]})]})})]})})]})})}export{Q as H,p as I,f as M,A as S,I as X,U as a,D as b,B as c,R as d,F as e,u as f};