import{d as u,K as b,L as f,b as y,u as g,A as _}from"./registerWidgets.f8dfb33f.js";import{a as w}from"./asyncComputed.a78c0f7f.js";import"./gateway.3cfecd5b.js";import{M as s}from"./member.b33f9fc3.js";import"./index.b0f5af92.js";import{C as I}from"./CrudView.25d523c5.js";import"./passwordlessManager.e17ec9bd.js";import"./pubsub.4b58e722.js";import"./activeRecord.b9bfe1cb.js";import"./DropdownMenu.d38a204c.js";import"./Modal.b37564e2.js";import"./LoadingIndicator.471e197d.js";import"./lottie.c7ecbe32.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="85368b06-4847-4178-a536-7ba69a70533a",e._sentryDebugIdIdentifier="sentry-dbid-85368b06-4847-4178-a536-7ba69a70533a")}catch{}})();const K=u({__name:"Members",setup(e){const o=b().params.organizationId,i=[{key:"email",label:"Email"}],m=async t=>{await s.create(o,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>s.list(o)),p=f(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(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?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:p.value,"create-button-text":"Add members",fields:i,onCreate:m},null,8,["loading","table"]))}});export{K as default};
//# sourceMappingURL=Members.416d3ea7.js.map
