import{u as A,h as E,q as P,p as V,c as C,r as o,o as l,a as p,k as u,l as a,e as t,b as g,f as n,F as y,x as r,y as d,d as H,A as N}from"./app-44623493.js";const S={key:1,class:"grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-3"},j={class:"space-x-1"},D={name:"EmployeeShowLogin"},O=Object.assign(D,{props:{employee:{type:Object,default(){return{}}}},setup(s){const m=s,f=A();E();const e=P("$trans");let _=[];V("employee:edit")&&_.push({label:e("global.edit",{attribute:e("contact.login.login")}),path:{name:"EmployeeEditLogin",params:{uuid:m.employee.uuid}}});const c=C(()=>m.employee.contact.user);return(L,T)=>{const b=o("PageHeaderAction"),x=o("PageHeader"),B=o("BaseAlert"),i=o("BaseDataView"),h=o("BaseBadge"),v=o("BaseCard"),k=o("ParentTransition");return l(),p(y,null,[s.employee.uuid?(l(),u(x,{key:0,title:t(e)(t(f).meta.label),navs:[{label:t(e)("employee.employee"),path:"Employee"},{label:s.employee.contact.name,path:{name:"EmployeeShow",params:{uuid:s.employee.uuid}}}]},{default:a(()=>[n(b,{"additional-actions":t(_)},null,8,["additional-actions"])]),_:1},8,["title","navs"])):g("",!0),n(k,{appear:"",visibility:!0},{default:a(()=>[s.employee.uuid?(l(),u(v,{key:0},{default:a(()=>[c.value?(l(),p("dl",S,[n(i,{label:t(e)("contact.login.props.email")},{default:a(()=>[r(d(c.value.email),1)]),_:1},8,["label"]),n(i,{label:t(e)("contact.login.props.username")},{default:a(()=>[r(d(c.value.username),1)]),_:1},8,["label"]),n(i,{label:t(e)("contact.login.props.password")},{default:a(()=>[r(" xxxxxxxxx ")]),_:1},8,["label"]),n(i,{label:t(e)("team.config.role.role")},{default:a(()=>[H("div",j,[(l(!0),p(y,null,N(c.value.roles,w=>(l(),u(h,{design:"primary"},{default:a(()=>[r(d(w.label),1)]),_:2},1024))),256))])]),_:1},8,["label"])])):(l(),u(B,{key:0,design:"error"},{default:a(()=>[r(d(t(e)("contact.login.no_login_found")),1)]),_:1}))]),_:1})):g("",!0)]),_:1})],64)}}});export{O as default};
