(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[365],{4851:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(91414).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},16703:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(91414).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},20976:(e,t,r)=>{"use strict";var s=r(59104);r.o(s,"useParams")&&r.d(t,{useParams:function(){return s.useParams}}),r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},42617:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(53756),a=r(5008),n=r(28655),c=r.n(n),i=r(16703),o=r(66365),d=r(4851);function l({user:e}){let[t,r]=(0,a.useState)(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("button",{onClick:()=>r(!t),className:"flex items-center gap-3 p-2 rounded-2xl hover:bg-accent transition-all group",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-xl bg-gradient-to-br from-brand-primary to-brand-secondary flex items-center justify-center font-black text-xs text-white shadow-lg",children:e.username[0].toUpperCase()}),(0,s.jsx)("span",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground group-hover:text-foreground",children:e.username})]}),t&&(0,s.jsxs)("div",{className:"absolute right-0 mt-2 w-48 bg-card border border-border rounded-2xl shadow-xl z-50 p-2",children:[(0,s.jsx)("div",{className:"px-4 py-2 text-xs font-black uppercase tracking-widest text-muted-foreground mb-1",children:e.username}),(0,s.jsxs)(c(),{href:"/admin/settings/profile",className:"flex items-center gap-3 px-4 py-2 text-xs font-black uppercase tracking-widest hover:bg-accent rounded-xl transition-all",children:[(0,s.jsx)(i.A,{className:"w-4 h-4"})," Profile"]}),(0,s.jsxs)(c(),{href:"/admin/settings",className:"flex items-center gap-3 px-4 py-2 text-xs font-black uppercase tracking-widest hover:bg-accent rounded-xl transition-all",children:[(0,s.jsx)(o.A,{className:"w-4 h-4"})," Settings"]}),(0,s.jsx)("hr",{className:"my-2 border-border"}),(0,s.jsx)("form",{action:"/api/auth/logout",method:"POST",children:(0,s.jsxs)("button",{className:"w-full flex items-center gap-3 px-4 py-2 text-xs font-black uppercase tracking-widest text-rose-500 hover:bg-rose-500/10 rounded-xl transition-all",children:[(0,s.jsx)(d.A,{className:"w-4 h-4"})," Log Out"]})})]})]})}},55516:(e,t,r)=>{"use strict";r.d(t,{AdminNavLink:()=>o});var s=r(53756),a=r(28655),n=r.n(a),c=r(20976),i=r(90307);function o({href:e,icon:t,label:r,allHrefs:a}){let d=(0,c.usePathname)(),l=d===(0,i.z)(d,a);return(0,s.jsxs)(n(),{href:e,className:(0,i.cn)("flex items-center gap-3 p-2 rounded-xl transition-all text-sm",l?"bg-brand-primary/10 text-brand-primary border border-brand-primary/20 font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:[(0,s.jsx)("span",{className:(0,i.cn)("transition-colors",l?"text-brand-primary":"text-zinc-400"),children:t}),(0,s.jsx)("span",{children:r})]})}},66365:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(91414).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},85839:(e,t,r)=>{Promise.resolve().then(r.bind(r,42617)),Promise.resolve().then(r.bind(r,55516)),Promise.resolve().then(r.t.bind(r,28655,23))},90307:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n,z:()=>c});var s=r(99586),a=r(98782);function n(...e){return(0,a.QP)((0,s.$)(e))}function c(e,t){let r=null,s=-1;for(let a of t)(e===a||"/"!==a&&e.startsWith(a+"/"))&&a.length>s&&(r=a,s=a.length);return r}}},e=>{e.O(0,[8655,4290,4708,2424,7358],()=>e(e.s=85839)),_N_E=e.O()}]);