(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6750],{63:(e,t,a)=>{"use strict";var n=a(7260);a.o(n,"usePathname")&&a.d(t,{usePathname:function(){return n.usePathname}})},1725:(e,t,a)=>{"use strict";a.d(t,{Header:()=>c});var n=a(5155),s=a(2619),r=a.n(s),l=a(63),o=a(2115);function c(e){let{contact:t,menu:a}=e,s=(0,l.usePathname)(),[c,i]=(0,o.useState)(!1),[d,x]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>x(window.scrollY>8);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,o.useEffect)(()=>{i(!1)},[s]);let m=e=>"/"===e?"/"===s:s.startsWith(e);return(0,n.jsxs)("header",{className:"sticky top-0 z-50 transition-all duration-300 ".concat(d?"bg-cream-100/95 shadow-soft backdrop-blur":"bg-cream-100/80 backdrop-blur"),children:[(0,n.jsxs)("div",{className:"mx-auto flex max-w-content items-center justify-between gap-4 px-5 py-3.5 md:px-8",children:[(0,n.jsxs)(r(),{href:"/",className:"group flex flex-col leading-none",children:[(0,n.jsx)("span",{className:"font-serif text-xl font-semibold tracking-tight text-brand-700 md:text-2xl",children:"R. Esra Şeng\xfcl"}),(0,n.jsx)("span",{className:"mt-0.5 text-[11px] font-medium uppercase tracking-[0.18em] text-ink-mute",children:"Uzman Klinik Psikolog"})]}),(0,n.jsx)("nav",{className:"hidden items-center gap-1 lg:flex",children:a.map(e=>(0,n.jsx)(r(),{href:e.href,className:"rounded-full px-3.5 py-2 text-sm font-medium transition-colors ".concat(m(e.href)?"bg-brand-100 text-brand-700":"text-ink-soft hover:bg-brand-50 hover:text-brand-700"),children:e.label},e.href))}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(r(),{href:"/iletisim",className:"hidden rounded-full bg-brand-600 px-5 py-2.5 text-sm font-semibold text-cream-50 shadow-sm transition-colors hover:bg-brand-700 sm:inline-flex",children:"Randevu Al"}),(0,n.jsx)("button",{type:"button",onClick:()=>i(e=>!e),className:"inline-flex h-10 w-10 items-center justify-center rounded-full text-brand-700 hover:bg-brand-50 lg:hidden","aria-label":"Men\xfcy\xfc a\xe7/kapat","aria-expanded":c,children:(0,n.jsxs)("span",{className:"relative block h-4 w-5",children:[(0,n.jsx)("span",{className:"absolute left-0 block h-0.5 w-5 bg-current transition-all ".concat(c?"top-1.5 rotate-45":"top-0")}),(0,n.jsx)("span",{className:"absolute left-0 top-1.5 block h-0.5 w-5 bg-current transition-all ".concat(c?"opacity-0":"opacity-100")}),(0,n.jsx)("span",{className:"absolute left-0 block h-0.5 w-5 bg-current transition-all ".concat(c?"top-1.5 -rotate-45":"top-3")})]})})]})]}),c&&(0,n.jsx)("nav",{className:"border-t border-brand-100 bg-cream-100 lg:hidden",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-content flex-col px-5 py-3",children:[a.map(e=>(0,n.jsx)(r(),{href:e.href,className:"rounded-xl px-4 py-3 text-base font-medium transition-colors ".concat(m(e.href)?"bg-brand-100 text-brand-700":"text-ink-soft hover:bg-brand-50"),children:e.label},e.href)),(0,n.jsx)(r(),{href:"/iletisim",className:"mt-2 rounded-xl bg-brand-600 px-4 py-3 text-center text-base font-semibold text-cream-50",children:"Randevu Al"}),(0,n.jsx)("a",{href:"tel:".concat(t.phone),className:"mt-2 rounded-xl border border-brand-200 px-4 py-3 text-center text-base font-medium text-brand-700",children:t.phoneDisplay})]})})]})}},9983:(e,t,a)=>{Promise.resolve().then(a.bind(a,1725)),Promise.resolve().then(a.t.bind(a,2619,23))}},e=>{e.O(0,[2619,8441,1255,7358],()=>e(e.s=9983)),_N_E=e.O()}]);