import{d as u,ey as b,F as f,b as y,u as g,bu as _}from"./registerWidgets.f5996e62.js";import{a as w}from"./asyncComputed.e780c3cc.js";import"./gateway.eafe2228.js";import{M as s}from"./member.d6faa440.js";import"./index.79dc87f7.js";import{C as I}from"./CrudView.43efd215.js";import"./passwordlessManager.4aab4100.js";import"./pubsub.fa157108.js";import"./storage.0e3c3ef3.js";import"./activeRecord.b33716ca.js";import"./DropdownMenu.28d58799.js";import"./Modal.5feb4598.js";import"./LoadingIndicator.0ffc31bd.js";import"./lottie.e46f0f68.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]="1f7ce4b1-6072-4e29-9111-51d089034dd6",e._sentryDebugIdIdentifier="sentry-dbid-1f7ce4b1-6072-4e29-9111-51d089034dd6")}catch{}})();const N=u({__name:"Members",setup(e){const r=b().params.organizationId,i=[{key:"email",label:"Email"}],m=async t=>{await s.create(r,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>s.list(r)),p=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=d.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:_(l),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:p.value,"create-button-text":"Add members",fields:i,onCreate:m},null,8,["loading","table"]))}});export{N as default};
//# sourceMappingURL=Members.fb3c2a6d.js.map
