import{d as u,eB as b,G as f,b as y,c as g,u as _}from"./outputWidgets.91878a00.js";import{a as w}from"./asyncComputed.6ced1d7b.js";import"./router.77bfbaae.js";import"./index.8262a422.js";import{M as n}from"./member.b6fae053.js";import{C as I}from"./CrudView.d6529c3b.js";import"./Base.80d71c98.js";import"./transButton.c9ea1045.js";import"./Text.24e27494.js";import"./Title.cb0c3b9b.js";import"./index.571df689.js";import"./record.8ded570d.js";import"./pubsub.862a9619.js";import"./gateway.6c51aaca.js";import"./icons.842bb077.js";import"./url.dddb8fdb.js";import"./index.aed07cef.js";import"./index.43a9b125.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]="ac2c0d8c-cec1-48ff-b8ef-a687e2bb2609",e._sentryDebugIdIdentifier="sentry-dbid-ac2c0d8c-cec1-48ff-b8ef-a687e2bb2609")}catch{}})();const q=u({__name:"Members",setup(e){const r=b().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(r,t.email),d()},{loading:l,result:c,refetch:d}=w(()=>n.list(r)),p=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=c.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:p.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{q as default};
//# sourceMappingURL=Members.e5b05681.js.map
