import{d as u,eB as b,G as f,b as y,c as g,u as _}from"./outputWidgets.737278d2.js";import{a as w}from"./asyncComputed.a421a144.js";import"./authorManager.f6785b31.js";import"./index.7dd076b6.js";import{M as m}from"./member.89fc6bfc.js";import{C as I}from"./CrudView.094ad1c0.js";import"./index.cf4c23b9.js";import"./record.605beade.js";import"./pubsub.88c6ed51.js";import"./gateway.5706e313.js";import"./icons.00e0b192.js";import"./Text.208da576.js";import"./Title.17b695f3.js";import"./FormItem.b35c2502.js";import"./hasIn.1648684d.js";import"./Form.fbb1233f.js";import"./Modal.2dd7ed00.js";import"./router.c82f2111.js";import"./index.ab3c62e5.js";import"./url.2a6e0213.js";import"./index.5d720f89.js";import"./index.d4ece610.js";import"./index.b108b24d.js";import"./index.9006f0ce.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]="0e3156a5-4442-42a7-b415-2e93e8d2760a",e._sentryDebugIdIdentifier="sentry-dbid-0e3156a5-4442-42a7-b415-2e93e8d2760a")}catch{}})();const Q=u({__name:"Members",setup(e){const r=b().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)),c=f(()=>{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:c.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{Q as default};
//# sourceMappingURL=Members.bc2f9b82.js.map
