import{d as u,eB as b,G as f,b as y,c as g,u as _}from"./outputWidgets.396f5ce1.js";import{a as w}from"./asyncComputed.95737324.js";import"./router.898a5ca4.js";import"./index.d80eeb49.js";import{M as m}from"./member.60f79ce4.js";import{C as I}from"./CrudView.ece8081d.js";import"./FormItem.a8de7296.js";import"./hasIn.63a13365.js";import"./index.f3919413.js";import"./index.cf4c23b9.js";import"./record.1aff3d29.js";import"./pubsub.06faa612.js";import"./gateway.a0e7cb55.js";import"./icons.37b6f90f.js";import"./Text.4e180dc2.js";import"./Base.ee1dde08.js";import"./Form.716e7fa5.js";import"./Modal.c02a2840.js";import"./url.4e42e1d0.js";import"./index.645b3e28.js";import"./index.a44632c5.js";import"./Title.819eb0fe.js";import"./index.f0384574.js";import"./index.a23873b5.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]="ba95359a-44a8-4eba-88a6-49a28428919f",e._sentryDebugIdIdentifier="sentry-dbid-ba95359a-44a8-4eba-88a6-49a28428919f")}catch{}})();const Q=u({__name:"Members",setup(e){const a=b().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(a,t.email),d()},{loading:l,result:p,refetch:d}=w(()=>m.list(a)),c=f(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=p.value)==null?void 0:t.map(i=>({key:i.email,cells:[{text:i.email},{text:i.role}]})))!=null?r:[]}});return(t,r)=>(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{Q as default};
//# sourceMappingURL=Members.32728d08.js.map
