import{d as u,eA as b,J as f,b as y,c as g,u as _}from"./outputWidgets.5f5dca9f.js";import{a as w}from"./asyncComputed.eae0c0ea.js";import"./router.a7910fab.js";import{M as n}from"./member.839fa7b3.js";import"./index.fcdb7e23.js";import{C as I}from"./CrudView.f3b7e8d3.js";import"./Title.c2ba09dc.js";import"./index.92c8cf6e.js";import"./gateway.68ea1e37.js";import"./activeRecord.ad81cab4.js";import"./pubsub.628f19a6.js";import"./icons.a77543dc.js";import"./index.d2da0107.js";import"./Form.09052538.js";import"./url.1555ad6e.js";import"./index.f5a72b75.js";import"./index.10f6bb5a.js";import"./index.7ef152c5.js";import"./index.7ab474e7.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]="9c385e06-7a59-4a7d-9a78-f85b3ebce4a5",e._sentryDebugIdIdentifier="sentry-dbid-9c385e06-7a59-4a7d-9a78-f85b3ebce4a5")}catch{}})();const F=u({__name:"Members",setup(e){const a=b().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(a,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>n.list(a)),c=f(()=>{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:c.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{F as default};
//# sourceMappingURL=Members.a4259728.js.map
