(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5783],{63:(e,a,r)=>{"use strict";var t=r(7260);r.o(t,"usePathname")&&r.d(a,{usePathname:function(){return t.usePathname}})},2582:(e,a,r)=>{Promise.resolve().then(r.bind(r,4238))},4238:(e,a,r)=>{"use strict";r.d(a,{Sidebar:()=>c});var t=r(5155),l=r(2619),n=r.n(l),s=r(63),i=r(2115);let d=[{label:"Genel Bakış",href:"/admin",exact:!0},{label:"Ana Sayfa",href:"/admin/anasayfa"},{label:"Sayfalar",href:"/admin/sayfalar"},{label:"Hizmetler",href:"/admin/hizmetler"},{label:"Blog",href:"/admin/blog"},{label:"Men\xfc",href:"/admin/menu"},{label:"Footer",href:"/admin/footer"},{label:"Şifre",href:"/admin/sifre"}];function c(e){let{username:a,logout:r}=e,l=(0,s.usePathname)(),[c,m]=(0,i.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-brand-100 bg-cream-50 px-4 py-3 lg:hidden",children:[(0,t.jsx)("span",{className:"font-serif text-lg font-semibold text-brand-700",children:"Y\xf6netim"}),(0,t.jsx)("button",{onClick:()=>m(e=>!e),className:"admin-icon-btn h-9 w-9","aria-label":"Men\xfc",children:"☰"})]}),(0,t.jsx)("aside",{className:"".concat(c?"block":"hidden"," border-b border-brand-100 bg-brand-800 text-cream-100 lg:sticky lg:top-0 lg:block lg:h-screen lg:w-64 lg:shrink-0 lg:border-b-0"),children:(0,t.jsxs)("div",{className:"flex h-full flex-col p-5",children:[(0,t.jsxs)(n(),{href:"/admin",className:"block",children:[(0,t.jsx)("span",{className:"font-serif text-xl font-semibold text-cream-50",children:"R. Esra Şeng\xfcl"}),(0,t.jsx)("p",{className:"mt-0.5 text-[11px] font-medium uppercase tracking-[0.18em] text-brand-200",children:"Y\xf6netim Paneli"})]}),(0,t.jsx)("nav",{className:"mt-8 flex-1 space-y-1",onClick:()=>m(!1),children:d.map(e=>{let a;return(0,t.jsx)(n(),{href:e.href,className:"block rounded-xl px-4 py-2.5 text-sm font-medium transition-colors ".concat((a=e.href,e.exact?l===a:l===a||l.startsWith(a+"/"))?"bg-brand-600 text-cream-50":"text-brand-100/80 hover:bg-brand-700 hover:text-cream-50"),children:e.label},e.href)})}),(0,t.jsxs)("div",{className:"mt-6 border-t border-brand-700 pt-4",children:[(0,t.jsx)(n(),{href:"/",target:"_blank",className:"block rounded-xl px-4 py-2 text-sm text-brand-100/80 hover:text-cream-50",children:"↗ Siteyi g\xf6r\xfcnt\xfcle"}),(0,t.jsxs)("p",{className:"mt-3 px-4 text-xs text-brand-200/70",children:["Oturum: ",a]}),(0,t.jsx)("form",{action:r,className:"mt-1 px-4",children:(0,t.jsx)("button",{type:"submit",className:"text-sm font-medium text-gold-light hover:underline",children:"\xc7ıkış yap"})})]})]})})]})}}},e=>{e.O(0,[2619,8441,1255,7358],()=>e(e.s=2582)),_N_E=e.O()}]);