import{d as u,eB as f,G as b,b as y,c as g,u as _}from"./outputWidgets.f8f8676d.js";import{a as w}from"./asyncComputed.9c91cdf6.js";import"./router.b4a342b4.js";import{M as m}from"./member.f9d116a4.js";import"./columns.dbb1c1df.js";import{C as I}from"./CrudView.fe3c74bf.js";import"./Form.2b1bb5d1.js";import"./Title.53d37289.js";import"./transButton.ca7603a2.js";import"./Text.7ab5366c.js";import"./index.878fa14a.js";import"./gateway.209624eb.js";import"./activeRecord.913921b5.js";import"./pubsub.8eddc628.js";import"./index.cf4c23b9.js";import"./icons.c3170cf4.js";import"./url.46c79102.js";import"./index.4c4e9bdd.js";import"./index.97771f01.js";import"./index.2ab0079e.js";import"./index.e041bc2d.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]="ae2e02ff-42bd-4acf-903d-2a3ab44d9773",e._sentryDebugIdIdentifier="sentry-dbid-ae2e02ff-42bd-4acf-903d-2a3ab44d9773")}catch{}})();const J=u({__name:"Members",setup(e){const a=f().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(a,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>m.list(a)),c=b(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=d.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{J as default};
//# sourceMappingURL=Members.84bcc1bb.js.map
