import{d as f,eB as u,G as b,b as y,c as g,u as _}from"./outputWidgets.e60ab380.js";import{a as w}from"./asyncComputed.7ba647bd.js";import"./router.0cf2e70d.js";import{M as n}from"./member.9816b3a0.js";import"./columns.4c9d4799.js";import{C as I}from"./CrudView.a4f4d47c.js";import"./Base.0638c3f7.js";import"./transButton.1b3f66c8.js";import"./Text.742cb8ec.js";import"./Title.666a14b1.js";import"./index.1462457d.js";import"./gateway.990f0877.js";import"./record.04c6d5a0.js";import"./pubsub.e6733ea4.js";import"./icons.6c1915db.js";import"./url.7bd60adc.js";import"./index.ed25df4f.js";import"./index.aaa1fe24.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]="8cfa38e1-ea3f-4100-9db2-8f3acc8700fb",e._sentryDebugIdIdentifier="sentry-dbid-8cfa38e1-ea3f-4100-9db2-8f3acc8700fb")}catch{}})();const q=f({__name:"Members",setup(e){const a=u().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(a,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>n.list(a)),p=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:p.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{q as default};
//# sourceMappingURL=Members.ca602623.js.map
