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