import{d as b,ez as u,H as f,b as y,c as g,u as _}from"./outputWidgets.1cf78234.js";import{a as w}from"./asyncComputed.513601fc.js";import"./router.4077f51e.js";import{M as m}from"./member.400ac443.js";import"./columns.301c6458.js";import{C as I}from"./CrudView.9f0a1020.js";import"./Title.a8b8fdd6.js";import"./index.748edabf.js";import"./gateway.39b6f9d7.js";import"./activeRecord.1ee4e98a.js";import"./pubsub.a66a61fd.js";import"./index.f4ac7424.js";import"./icons.ba4d43de.js";import"./index.a7df5fa7.js";import"./Form.5fb25f40.js";import"./url.18ee0e18.js";import"./index.427c7dc5.js";import"./index.4f30f3fe.js";import"./index.960f4655.js";import"./index.7a53699a.js";import"./index.67188546.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]="befa5295-1c4e-46e8-bc93-56b1b6a6601e",e._sentryDebugIdIdentifier="sentry-dbid-befa5295-1c4e-46e8-bc93-56b1b6a6601e")}catch{}})();const J=b({__name:"Members",setup(e){const r=u().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),d()},{loading:l,result:p,refetch:d}=w(()=>m.list(r)),c=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=p.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:c.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{J as default};
//# sourceMappingURL=Members.42d82cac.js.map
