import{_ as m}from"./BNEsDCLV.js";import{f,j as b,s as N,r as $,_ as p,l as u,o as c,c as i,a as s,aL as y,b as t,t as v,w as _,X as k,a0 as C,aM as B}from"./qGWCsquX.js";const w=f({setup(){const a=b(),{loggedIn:e,user:n}=N(a),o=$(!1);return{loggedIn:e,user:n,toggleNav:()=>{o.value=!o.value},displayNav:o}}},"$hcjc7driI8"),I={class:"page-header fixed-top"},T={class:"header-title"},V={class:"toggle-box"},A=s("span",{class:"sr-only"},"Toggle navigation",-1),j=s("span",{class:"icon-bar"},null,-1),x=s("span",{class:"icon-bar"},null,-1),D=s("span",{class:"icon-bar"},null,-1),F=[A,j,x,D],L=s("div",{class:"logo"}," Authup ",-1),S={class:"page-navbar navbar-expand-md"},z={key:0,class:"navbar-nav nav-items navbar-gadgets"},E={class:"nav-item"},H={href:"javascript:void(0)",class:"nav-link"},M={class:"nav-item"},R=s("i",{class:"fa fa-cog"},null,-1),X={class:"nav-item"},Y=s("i",{class:"fa fa-power-off"},null,-1);function q(a,e,n,o,r,g){const l=u("VCNavItems"),d=m;return c(),i("div",null,[s("header",I,[s("div",T,[s("div",V,[s("button",{type:"button",class:"toggle-trigger",onClick:e[0]||(e[0]=(...h)=>a.toggleNav&&a.toggleNav(...h))},F)]),L]),s("nav",S,[s("div",{id:"page-navbar",class:y(["navbar-content navbar-collapse collapse",{show:a.displayNav}])},[t(l,{class:"navbar-nav",tier:0}),a.loggedIn&&a.user?(c(),i("ul",z,[s("li",E,[s("a",H,[s("span",null,v(a.user.display_name?a.user.display_name:a.user.name),1)])]),s("li",M,[t(d,{to:"/settings",class:"nav-link"},{default:_(()=>[R]),_:1})]),s("li",X,[t(d,{to:"/logout",class:"nav-link"},{default:_(()=>[Y]),_:1})])])):k("",!0)],2)])])])}const U=p(w,[["render",q]]),G=C({components:{BToaster:B},computed:{year(){return new Date().getFullYear()}}}),J={class:"page-footer"},K={class:"copyright"};function O(a,e,n,o,r,g){const l=u("BToaster");return c(),i("div",null,[s("div",J,[s("div",K," © Authup "+v(a.year),1)]),t(l)])}const W=p(G,[["render",O]]);export{W as a,U as p};
