import{j as M,x as A,R as L,N as z,cr as T,k as H,l as B,o as W,bk as $,p,q as N,w as e,t as a,an as f,ao as j,A as t,bO as q,B as c,C as l,a2 as V,aZ as O,aU as C,bc as _,a4 as b,H as g,bd as P,bm as R,_ as Z}from"./dashboard-practitioner-b373edf1.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[m]="f6649d8b-8785-426a-b449-90d40f71cbc5",r._sentryDebugIdIdentifier="sentry-dbid-f6649d8b-8785-426a-b449-90d40f71cbc5")}catch{}})();const F={class:"font-weight-medium",style:{color:"#007058","font-size":"13px"}},G={key:0},J={key:1,class:"font-bold",style:{color:"#9e9e9e","font-size":"13px"}},K={style:{color:"#757575"}},Q=M({__name:"AuthMenu",setup(r){const{mdAndDown:m,xs:S,sm:X,smAndDown:v,mdAndUp:Y}=A(),u=L().t,{smAndUp:ee,mobile:y}=A(),s=z(),U=T(),D=H(""),h=()=>{const o=new Date,n=U.format(o,"fullDateWithWeekday");D.value=n.charAt(0).toUpperCase()+n.slice(1)},w=B(()=>s.user.mainDiscipline),E=B(()=>{var o,n,i,d;return s.isLogged&&((o=s.user)!=null&&o.firstName)&&((n=s.user)!=null&&n.lastName)?((i=s.user)==null?void 0:i.firstName)+" "+((d=s.user)==null?void 0:d.lastName["0"])+".":u("appBar.welcome")});return W(()=>{h();const o=setInterval(h,6e4);$(()=>{clearInterval(o)})}),(o,n)=>(p(),N(P,{"offset-y":""},{activator:e(({props:i})=>[a(C,{"bg-color":"transparent",rounded:""},{default:e(()=>{var d,x,k,I;return[a(f,j({rounded:""},i,{"prepend-avatar":(x=(d=t(s).user)==null?void 0:d.avatar)==null?void 0:x.url,slim:t(y)}),q({_:2},[t(v)?void 0:{name:"title",fn:e(()=>[c("span",F,l(E.value),1)]),key:"0"},t(v)?void 0:{name:"subtitle",fn:e(()=>[w.value?(p(),V("span",G,l(w.value),1)):(p(),V("span",J,l(t(y)?void 0:D.value),1))]),key:"1"},(I=(k=t(s).user)==null?void 0:k.avatar)!=null&&I.url?void 0:{name:"prepend",fn:e(()=>[(p(),N(O(R),{class:"mr-2 border rounded-pill",size:"43px",color:"#9E9E9E"}))]),key:"2"}]),1040,["prepend-avatar","slim"])]}),_:2},1024)]),default:e(()=>[a(C,{"bg-color":"white","base-color":"#757575",rounded:"lg",class:"mt-2 pa-2",density:"compact",nav:""},{default:e(()=>[a(f,{to:{name:"DashboardHome"},"active-class":"active-menu"},{default:e(()=>[a(_,{class:"d-flex align-center ga-1"},{default:e(()=>[a(b,null,{default:e(()=>[g("mdi-view-dashboard")]),_:1}),c("span",null,l(t(u)("appBar.dashboard")),1)]),_:1})]),_:1}),a(f,{to:{name:"DashboardSettings"}},{default:e(()=>[a(_,{class:"d-flex align-center ga-1",style:{color:"#757575"}},{default:e(()=>[a(b,null,{default:e(()=>[g("mdi-cog")]),_:1}),c("span",null,l(t(u)("appBar.settings")),1)]),_:1})]),_:1}),a(f,{onClick:n[0]||(n[0]=()=>t(s).logout())},{default:e(()=>[a(_,{class:"d-flex align-center ga-1"},{default:e(()=>[c("span",K,[a(b,null,{default:e(()=>[g("mdi-logout")]),_:1}),c("span",null,l(t(u)("appBar.logout")),1)])]),_:1})]),_:1})]),_:1})]),_:1}))}});const te=Z(Q,[["__scopeId","data-v-ce4c817a"]]);export{te as A};
//# sourceMappingURL=AuthMenu-f69250f7.js.map