import{u as A,q as B,p as C,r as d,o as m,a as P,k as p,l as o,e as t,b as u,f as l,F as k,d as x,x as c,y as s}from"./app-44623493.js";const D={class:"grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-3"},E={name:"EmployeeShowContact"},v=Object.assign(E,{props:{employee:{type:Object,default(){return{}}}},setup(e){const y=e,b=A(),a=B("$trans");let i=[];return C("employee:edit")&&i.push({label:a("global.edit",{attribute:a("contact.contact")}),path:{name:"EmployeeEditContact",params:{uuid:y.employee.uuid}}}),(N,V)=>{const f=d("PageHeaderAction"),g=d("PageHeader"),n=d("BaseDataView"),h=d("BaseCard"),_=d("ParentTransition");return m(),P(k,null,[e.employee.uuid?(m(),p(g,{key:0,title:t(a)(t(b).meta.label),navs:[{label:t(a)("employee.employee"),path:"Employee"},{label:e.employee.contact.name,path:{name:"EmployeeShow",params:{uuid:e.employee.uuid}}}]},{default:o(()=>[l(f,{"additional-actions":t(i)},null,8,["additional-actions"])]),_:1},8,["title","navs"])):u("",!0),l(_,{appear:"",visibility:!0},{default:o(()=>[e.employee.uuid?(m(),p(h,{key:0},{default:o(()=>[x("dl",D,[l(n,{label:t(a)("contact.props.contact_number")},{default:o(()=>[c(s(e.employee.contact.contactNumber),1)]),_:1},8,["label"]),l(n,{label:t(a)("global.alternate",{attribute:t(a)("contact.props.contact_number")})},{default:o(()=>{var r;return[c(s((r=e.employee.contact.alternateRecords)==null?void 0:r.contactNumber),1)]}),_:1},8,["label"]),l(n),l(n,{label:t(a)("contact.props.email")},{default:o(()=>[c(s(e.employee.contact.email),1)]),_:1},8,["label"]),l(n,{label:t(a)("global.alternate",{attribute:t(a)("contact.props.email")})},{default:o(()=>{var r;return[c(s((r=e.employee.contact.alternateRecords)==null?void 0:r.email),1)]}),_:1},8,["label"]),l(n),l(n,{class:"col-span-1 sm:col-span-3",label:t(a)("contact.props.present_address")},{default:o(()=>[c(s(e.employee.contact.presentAddressDisplay),1)]),_:1},8,["label"]),l(n,{class:"col-span-1 sm:col-span-3",label:t(a)("contact.props.permanent_address")},{default:o(()=>[c(s(e.employee.contact.sameAsPresentAddress?e.employee.contact.presentAddressDisplay:e.employee.contact.permanentAddressDisplay),1)]),_:1},8,["label"])])]),_:1})):u("",!0)]),_:1})],64)}}});export{v as default};
