import{d as u,eA as b,J as f,b as y,c as g,u as _}from"./outputWidgets.65926c1d.js";import{a as w}from"./asyncComputed.4723d9b8.js";import"./router.52af5430.js";import{M as n}from"./member.f5998156.js";import"./index.8b621348.js";import{C as I}from"./CrudView.bb677fb8.js";import"./Title.2cced18a.js";import"./index.553ada1f.js";import"./gateway.0e243f04.js";import"./activeRecord.994400e6.js";import"./pubsub.dc5bec39.js";import"./icons.da7d27cd.js";import"./index.2740d90e.js";import"./Form.47548ee6.js";import"./url.bc2b44ba.js";import"./index.0312767e.js";import"./index.006c6212.js";import"./index.73801d39.js";import"./index.1bb9605d.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]="51315a87-7869-40d6-a32f-0eb16d174b9b",e._sentryDebugIdIdentifier="sentry-dbid-51315a87-7869-40d6-a32f-0eb16d174b9b")}catch{}})();const F=u({__name:"Members",setup(e){const r=b().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(r,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>n.list(r)),c=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:c.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{F as default};
//# sourceMappingURL=Members.9c69bea8.js.map
