import{h as C,u as P,m as V,t as D,r as s,o as p,a as Q,f as t,l as e,e as u,F as T,k as f,x as o,y as i,p as A,b as y,d as H}from"./app-44623493.js";const I={class:"grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-2"},N={name:"EmployeeQualificationShow"},O=Object.assign(N,{props:{employee:{type:Object,default(){return{}}}},setup(r){C();const d=P(),c=V(),b={},_="employee/qualification/",l=D({...b}),g=a=>{Object.assign(l,a)};return(a,m)=>{const $=s("PageHeaderAction"),B=s("PageHeader"),n=s("BaseDataView"),q=s("ListMedia"),h=s("BaseButton"),w=s("ShowButton"),S=s("BaseCard"),v=s("ShowItem"),E=s("ParentTransition");return p(),Q(T,null,[t(B,{title:a.$trans(u(d).meta.trans,{attribute:a.$trans(u(d).meta.label)}),navs:[{label:a.$trans("employee.employee"),path:"Employee"},{label:r.employee.contact.name,path:{name:"EmployeeShow",params:{uuid:r.employee.uuid}}}]},{default:e(()=>[t($,{name:"EmployeeQualification",title:a.$trans("employee.qualification.qualification"),actions:["list"]},null,8,["title"])]),_:1},8,["title","navs"]),t(E,{appear:"",visibility:!0},{default:e(()=>[t(v,{"init-url":_,uuid:u(d).params.uuid,"module-uuid":u(d).params.muuid,onSetItem:g,onRedirectTo:m[1]||(m[1]=k=>u(c).push({name:"EmployeeQualification",params:{uuid:r.employee.uuid}}))},{default:e(()=>[l.uuid?(p(),f(S,{key:0},{title:e(()=>[o(i(l.level.name),1)]),footer:e(()=>[t(w,null,{default:e(()=>[u(A)("employee:edit")?(p(),f(h,{key:0,design:"primary",onClick:m[0]||(m[0]=k=>u(c).push({name:"EmployeeQualificationEdit",params:{uuid:r.employee.uuid,muuid:l.uuid}}))},{default:e(()=>[o(i(a.$trans("general.edit")),1)]),_:1})):y("",!0)]),_:1})]),default:e(()=>[H("dl",I,[t(n,{label:a.$trans("employee.qualification.props.course")},{default:e(()=>[o(i(l.course),1)]),_:1},8,["label"]),t(n,{label:a.$trans("employee.qualification.props.institute")},{default:e(()=>[o(i(l.institute),1)]),_:1},8,["label"]),t(n,{label:a.$trans("employee.qualification.props.affiliated_to")},{default:e(()=>[o(i(l.affiliatedTo),1)]),_:1},8,["label"]),t(n,{label:a.$trans("employee.qualification.props.result")},{default:e(()=>[o(i(l.result),1)]),_:1},8,["label"]),t(n,{label:a.$trans("employee.qualification.props.start_date")},{default:e(()=>[o(i(l.startDate.formatted),1)]),_:1},8,["label"]),t(n,{label:a.$trans("employee.qualification.props.end_date")},{default:e(()=>[o(i(l.endDate.formatted),1)]),_:1},8,["label"]),t(n,{class:"col-span-1 sm:col-span-2"},{default:e(()=>[t(q,{media:l.media,url:`/app/employees/${r.employee.uuid}/qualifications/${l.uuid}/`},null,8,["media","url"])]),_:1}),t(n,{label:a.$trans("general.created_at")},{default:e(()=>[o(i(l.createdAt.formatted),1)]),_:1},8,["label"]),t(n,{label:a.$trans("general.updated_at")},{default:e(()=>[o(i(l.updatedAt.formatted),1)]),_:1},8,["label"])])]),_:1})):y("",!0)]),_:1},8,["uuid","module-uuid"])]),_:1})],64)}}});export{O as default};
