import{d as f,ez as u,H as b,b as y,c as g,u as _}from"./outputWidgets.4420c31f.js";import{a as w}from"./asyncComputed.937eb3b8.js";import"./router.141c8be7.js";import{M as m}from"./member.5fc3aff5.js";import"./columns.d0453565.js";import{C as I}from"./CrudView.4a9e50e2.js";import"./Title.f4c9dd29.js";import"./index.1ba1c343.js";import"./gateway.c8298b74.js";import"./activeRecord.a89b1253.js";import"./pubsub.1ac087cf.js";import"./index.f4ac7424.js";import"./icons.2ee60219.js";import"./index.6f566923.js";import"./Form.6825d217.js";import"./url.14f2bdd6.js";import"./index.32966139.js";import"./index.f4ff3772.js";import"./index.afb0f92e.js";import"./index.f792c329.js";import"./index.adf86569.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6dfa31b9-8fc9-4db9-af68-1fb6233899ca",e._sentryDebugIdIdentifier="sentry-dbid-6dfa31b9-8fc9-4db9-af68-1fb6233899ca")}catch{}})();const J=f({__name:"Members",setup(e){const r=u().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>m.list(r)),c=b(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=d.value)==null?void 0:t.map(i=>({key:i.email,cells:[{text:i.email},{text:i.role}]})))!=null?a:[]}});return(t,a)=>(y(),g(I,{"entity-name":"members",loading:_(l),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:c.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{J as default};
//# sourceMappingURL=Members.94c3560d.js.map
