import{_ as h}from"./DM9QX0ua.js";import{_ as C}from"./DbxL9lRD.js";import{d as g,r as x,G as y,m as w,o as N,a as I,c as _,b as l,e as n,f as a,w as u,q as f,h as i,F as $,p as k,g as A,t as d,_ as v,i as E,an as L,ao as O,ap as B}from"./tpFEFzWU.js";import{u as H}from"./jiBgvKN8.js";const S={class:"app-header"},T={class:"header-content"},V={class:"header-actions"},j={class:"btn-text"},F=["aria-label"],G=g({__name:"AppHeader",setup(m){const t=x(!1),c=[{to:"/kanban",label:"nav.kanban"},{to:"/stats",label:"nav.stats"},{to:"/changelog",label:"nav.changelog"},{to:"/settings/pipeline",label:"nav.settings"}],r=y();return w(()=>r.path,()=>{t.value=!1}),N(()=>{const o=e=>{e.key==="Escape"&&(t.value=!1)};document.addEventListener("keydown",o),I(()=>{document.removeEventListener("keydown",o)})}),(o,e)=>{const s=h,b=C;return l(),_("header",S,[n("div",T,[a(s,{to:"/",class:"logo"},{default:u(()=>[...e[2]||(e[2]=[n("span",{class:"logo-icon"},"⚡",-1),n("span",{class:"logo-text"},"AutoCode",-1)])]),_:1}),n("nav",{class:f(["main-nav",{open:i(t)}])},[(l(),_($,null,k(c,p=>a(s,{key:p.to,to:p.to,class:"nav-link",onClick:e[0]||(e[0]=W=>t.value=!1)},{default:u(()=>[A(d(o.$t(p.label)),1)]),_:2},1032,["to"])),64))],2),n("div",V,[a(s,{to:"/issue/new",class:"btn btn-primary new-issue-btn"},{default:u(()=>[e[3]||(e[3]=n("span",{class:"btn-icon"},"+",-1)),n("span",j,d(o.$t("nav.newIssue")),1)]),_:1}),a(b),n("button",{class:"mobile-menu-btn","aria-label":i(t)?"Close menu":"Open menu",onClick:e[1]||(e[1]=p=>t.value=!i(t))},[n("span",{class:f(["hamburger",{open:i(t)}])},[...e[4]||(e[4]=[n("span",null,null,-1),n("span",null,null,-1),n("span",null,null,-1)])],2)],8,F)])])])}}}),M=Object.assign(v(G,[["__scopeId","data-v-055d7a5c"]]),{__name:"AppHeader"}),q={class:"notification-container"},z={class:"notification-icon"},D={class:"notification-message"},K=["onClick"],R=g({__name:"NotificationContainer",setup(m){const{notifications:t,remove:c}=H(),r=o=>({success:"OK",error:"X",warning:"!",info:"i"})[o]||"i";return(o,e)=>(l(),E(O,{to:"body"},[n("div",q,[a(L,{name:"notification"},{default:u(()=>[(l(!0),_($,null,k(i(t),s=>(l(),_("div",{key:s.id,class:f(["notification",`notification-${s.type}`])},[n("span",z,d(r(s.type)),1),n("span",D,d(s.message),1),n("button",{class:"notification-close",onClick:b=>i(c)(s.id)},"x",8,K)],2))),128))]),_:1})])]))}}),U=Object.assign(v(R,[["__scopeId","data-v-87475ab3"]]),{__name:"NotificationContainer"}),X={},J={class:"app-layout"},P={class:"app-main"};function Q(m,t){const c=M,r=U;return l(),_("div",J,[a(c),n("main",P,[B(m.$slots,"default",{},void 0,!0)]),t[0]||(t[0]=n("footer",{class:"app-footer"},[n("p",null,"AutoCode v0.3.0")],-1)),a(r)])}const tn=v(X,[["render",Q],["__scopeId","data-v-157bd0ef"]]);export{tn as default};
