import{d as c,eB as f,G as u,b as y,c as g,u as _}from"./outputWidgets.90a37dfb.js";import{a as w}from"./asyncComputed.04259b99.js";import"./authorManager.f2a35532.js";import"./index.c6f2c2d2.js";import{M as m}from"./member.5912dd3e.js";import{C as I}from"./CrudView.19bb4bce.js";import"./index.cf4c23b9.js";import"./record.ebb65067.js";import"./pubsub.4fea4be7.js";import"./gateway.6f30a6bf.js";import"./icons.9cf35040.js";import"./Text.215ae4f0.js";import"./Title.b52522ff.js";import"./FormItem.4720b0a3.js";import"./hasIn.1e7661e3.js";import"./Form.f5b3db33.js";import"./Modal.265d309e.js";import"./router.e0403360.js";import"./index.9624bf8d.js";import"./url.c4b5264e.js";import"./index.85b56a97.js";import"./index.f4297c2c.js";import"./index.6d664715.js";import"./index.52c09cf5.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]="a95a3305-42db-4f95-8f2b-84b57bf4df97",e._sentryDebugIdIdentifier="sentry-dbid-a95a3305-42db-4f95-8f2b-84b57bf4df97")}catch{}})();const Q=c({__name:"Members",setup(e){const r=f().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),d()},{loading:l,result:p,refetch:d}=w(()=>m.list(r)),b=u(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=p.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:b.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{Q as default};
//# sourceMappingURL=Members.6636ac8c.js.map
