import{d as u,ez as b,H as f,b as y,c as g,u as _}from"./outputWidgets.942e04a7.js";import{a as w}from"./asyncComputed.581a6d32.js";import"./router.88ac172f.js";import{M as m}from"./member.4c04d374.js";import"./columns.b249ad7a.js";import{C as I}from"./CrudView.ef33eac6.js";import"./Title.02f374d5.js";import"./index.6d3b437a.js";import"./gateway.c853ac2b.js";import"./activeRecord.c49c8827.js";import"./pubsub.c4874b0f.js";import"./index.f4ac7424.js";import"./icons.c37bd5be.js";import"./index.a0056785.js";import"./Form.fa989528.js";import"./url.c27b4b3f.js";import"./index.afbbab9c.js";import"./index.a1c695e0.js";import"./index.f7b7cb5d.js";import"./index.182b7916.js";import"./index.90e879e1.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]="f4aca572-6c88-4db9-a8d7-bbf3167148cc",e._sentryDebugIdIdentifier="sentry-dbid-f4aca572-6c88-4db9-a8d7-bbf3167148cc")}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),c()},{loading:l,result:d,refetch:c}=w(()=>m.list(r)),p=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=d.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:n,onCreate:s},null,8,["loading","table"]))}});export{J as default};
//# sourceMappingURL=Members.537aff81.js.map
