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