import{d as u,K as b,b as y,t as g,z as s,J as _}from"./registerWidgets.cb3a7b8d.js";import{a as w}from"./asyncComputed.31994732.js";import"./gateway.2edca867.js";import{M as i}from"./member.f9b469b1.js";import"./index.7fea4022.js";import{C as I}from"./CrudView.87a92735.js";import"./passwordlessManager.afd7d1d0.js";import"./pubsub.f85a17d2.js";import"./activeRecord.adfc6223.js";import"./DropdownMenu.c973057b.js";import"./Modal.43c3d47a.js";import"./LoadingIndicator.d4ffd545.js";import"./lottie.234eb92e.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]="8b3441fd-947f-408e-b4c0-f7089882d236",e._sentryDebugIdIdentifier="sentry-dbid-8b3441fd-947f-408e-b4c0-f7089882d236")}catch{}})();const K=u({__name:"Members",setup(e){const r=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(r,t.email),p()},{loading:d,result:c,refetch:p}=w(()=>i.list(r)),f=b(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=c.value)==null?void 0:t.map(n=>({key:n.email,cells:[{text:n.email,classes:["title","centered"]},{text:n.role,classes:["centered"]}]})))!=null?a:[]}});return(t,a)=>(y(),g(I,{"entity-name":"members",loading:s(d),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(f),"create-button-text":"Add members",fields:m,onCreate:l},null,8,["loading","table"]))}});export{K as default};
//# sourceMappingURL=Members.af8492bb.js.map
