import{m as x,h as A,q as L,c as d,z as M,t as N,r as t,o as r,k as _,l as e,f as a,e as f,a as p,A as P,x as i,y as u,b as R,F as S,d as V}from"./app-44623493.js";const $={key:0},j=V("i",{class:"fas fa-check-circle fa-lg text-success cursor-pointer"},null,-1),w=[j],H={name:"TodoList"},E=Object.assign(H,{setup(O){const g=x(),l=A(),h=L("emitter"),k=d(()=>l.getters["auth/user/currentTeamId"]);d(()=>l.getters["auth/user/isSuperAdmin"]);const I="team/";M(!1);const s=N({}),T=o=>{Object.assign(s,o)};return(o,m)=>{const C=t("PageHeader"),c=t("DataCell"),D=t("FloatingMenuItem"),b=t("FloatingMenu"),v=t("DataRow"),F=t("DataTable"),y=t("ParentTransition"),B=t("ListItem");return r(),_(B,{"init-url":I,onSetItems:T},{header:e(()=>[a(C,{title:o.$trans("team.team")},null,8,["title"])]),default:e(()=>[a(y,{appear:"",visibility:!0},{default:e(()=>[a(F,{header:s.headers,meta:s.meta,module:"team",onRefresh:m[0]||(m[0]=n=>f(h).emit("listItems"))},{actionButton:e(()=>[]),default:e(()=>[(r(!0),p(S,null,P(s.data,n=>(r(),_(v,{key:n.uuid},{default:e(()=>[a(c,{name:"name"},{default:e(()=>[i(u(n.name)+" ",1),n.id==k.value?(r(),p("span",$,w)):R("",!0)]),_:2},1024),a(c,{name:"createdAt"},{default:e(()=>[i(u(n.createdAt.formatted),1)]),_:2},1024),a(c,{name:"action"},{default:e(()=>[a(b,null,{default:e(()=>[a(D,{icon:"fas fa-cog",onClick:q=>f(g).push({name:"TeamConfig",params:{uuid:n.uuid}})},{default:e(()=>[i(u(o.$trans("team.config.config")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["header","meta"])]),_:1})]),_:1})}}});export{E as default};
