import{d as u,eB as b,G as f,b as y,c as g,u as _}from"./outputWidgets.427e9347.js";import{a as w}from"./asyncComputed.32abd7c2.js";import"./router.1a20c20c.js";import{M as m}from"./member.e9d58ec7.js";import"./columns.eab062cb.js";import{C as I}from"./CrudView.22a93e62.js";import"./Base.dbea8db9.js";import"./FormItem.e1548cef.js";import"./transButton.470f2fe6.js";import"./Text.31458a16.js";import"./Title.213e158e.js";import"./index.e440fe17.js";import"./gateway.5f288bf8.js";import"./activeRecord.91f10272.js";import"./pubsub.9b59356e.js";import"./index.cf4c23b9.js";import"./icons.2a865956.js";import"./url.9044ee0d.js";import"./index.8fcd530b.js";import"./index.36e3a141.js";import"./index.3804082b.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]="a781ac71-d10b-4c8c-9cc1-796c2904c703",e._sentryDebugIdIdentifier="sentry-dbid-a781ac71-d10b-4c8c-9cc1-796c2904c703")}catch{}})();const J=u({__name:"Members",setup(e){const r=b().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),p()},{loading:c,result:l,refetch:p}=w(()=>m.list(r)),d=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=l.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:_(c),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:d.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{J as default};
//# sourceMappingURL=Members.45d8b708.js.map
