1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppAvatar-CKL_w2U_.js","assets/index-MSa8avpS.js","assets/index-DY-sP-Wx.css","assets/AppAvatar-CSNQL9y2.css","assets/SessionModal-BldByjxN.js","assets/SessionForms-DpdaUxS8.js","assets/SessionModal-BJOczm4M.css"])))=>i.map(i=>d[i]); 2import{u as w,F as d,S as x,G as I,r as _,o as t,g as l,b as e,c as i,w as L,h as c,l as a,t as k,L as p,d as D,H as R,I as f,J as g}from"./index-MSa8avpS.js";import{u as T}from"./useModals-D4Ja-b66.js";const V={key:1,class:"session__text margin__l--6"},z={key:0,class:"session__text margin__l--6"},G={__name:"AppSessionButton",props:{tab:{type:String,default:"login"},icon:{type:Boolean,default:!0},text:{type:Boolean,default:!0}},emits:["click","close"],setup(o,{emit:v}){const y=f(()=>g(()=>import("./AppAvatar-CKL_w2U_.js"),__vite__mapDeps([0,1,2,3]))),A=f(()=>g(()=>import("./SessionModal-BldByjxN.js"),__vite__mapDeps([4,1,2,5,6]))),u=v,{t:C}=w(),{authUser:r,isAuthenticated:S}=d(x()),{locale:$}=d(I()),{show_modal:b,openModal:B,closeModal:M}=T(),h=()=>{M(),u("close")};return(n,s)=>{const E=_("router-link"),P=_("fa-icon");return t(),l(R,null,[e(S)?(t(),i(E,p({key:0,class:"session d-flex align-items-center link--naked"},n.$attrs,{to:{name:"Profile",params:{locale:e($)}},onClick:s[0]||(s[0]=m=>u("click"))}),{default:L(()=>[c(n.$slots,"user",{user:e(r)},()=>[o.icon?(t(),i(e(y),{key:0,class:"session__avatar",size:"2",avatar:e(r).avatar},null,8,["avatar"])):a("",!0),o.text?(t(),l("span",V,k(e(r).firstname),1)):a("",!0)])]),_:3},16,["to"])):(t(),l("button",p({key:1,class:"session link--naked"},n.$attrs,{onClick:s[1]||(s[1]=D(m=>e(B)(),["prevent"]))}),[c(n.$slots,"login",{},()=>[c(n.$slots,"icon",{},()=>[o.icon?(t(),i(P,{key:0,class:"session__icon",icon:["fas","user"]})):a("",!0)]),o.text?(t(),l("span",z,k(e(C)("literal.login")),1)):a("",!0)])],16)),e(b)?(t(),i(e(A),{key:2,size:"sm",tab:o.tab,onClose:s[2]||(s[2]=m=>h())},null,8,["tab"])):a("",!0)],64)}}};export{G as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.