import{h as v,u as k,m as y,t as C,r as a,o as c,a as P,f as n,l as e,e as s,F as V,k as A,x as l,y as i,d as H,b as I}from"./app-44623493.js";const N={class:"grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-2"},D={name:"TeamShow"},E=Object.assign(D,{setup(R){v();const u=k(),m=y(),p={},_="team/",o=C({...p}),f=t=>{Object.assign(o,t)};return(t,r)=>{const g=a("PageHeaderAction"),B=a("PageHeader"),d=a("BaseDataView"),b=a("BaseButton"),T=a("ShowButton"),$=a("BaseCard"),h=a("ShowItem"),w=a("ParentTransition");return c(),P(V,null,[n(B,{title:t.$trans(s(u).meta.trans,{attribute:t.$trans(s(u).meta.label)}),navs:[{label:t.$trans("team.team"),path:"TeamList"}]},{default:e(()=>[n(g,{name:"Team",title:t.$trans("team.team"),actions:["list"]},null,8,["title"])]),_:1},8,["title","navs"]),n(w,{appear:"",visibility:!0},{default:e(()=>[n(h,{"init-url":_,uuid:s(u).params.uuid,onSetItem:f,onRedirectTo:r[1]||(r[1]=S=>s(m).push({name:"Team"}))},{default:e(()=>[o.uuid?(c(),A($,{key:0},{title:e(()=>[l(i(o.name),1)]),footer:e(()=>[n(T,null,{default:e(()=>[n(b,{design:"primary",onClick:r[0]||(r[0]=S=>s(m).push({name:"TeamEdit",params:{uuid:o.uuid}}))},{default:e(()=>[l(i(t.$trans("general.edit")),1)]),_:1})]),_:1})]),default:e(()=>[H("dl",N,[n(d,{label:t.$trans("general.created_at")},{default:e(()=>[l(i(o.createdAt.formatted),1)]),_:1},8,["label"]),n(d,{label:t.$trans("general.updated_at")},{default:e(()=>[l(i(o.updatedAt.formatted),1)]),_:1},8,["label"])])]),_:1})):I("",!0)]),_:1},8,["uuid"])]),_:1})],64)}}});export{E as default};
