import{d as u,ey as b,H as f,b as y,c as g,u as _}from"./registerWidgets.d6e66474.js";import{a as w}from"./asyncComputed.5c362931.js";import"./gateway.651c554e.js";import{M as s}from"./member.1dea75b0.js";import"./index.0eed7dd2.js";import{C as I}from"./CrudView.62da965d.js";import"./passwordlessManager.a2051844.js";import"./pubsub.9e806cff.js";import"./storage.d7eb729a.js";import"./activeRecord.1009e596.js";import"./DropdownMenu.687dee5a.js";import"./Modal.87772a38.js";import"./LoadingIndicator.d52fa99a.js";import"./lottie.b059da2e.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]="a0593b8e-a75d-41c4-ad82-80ae599444e5",e._sentryDebugIdIdentifier="sentry-dbid-a0593b8e-a75d-41c4-ad82-80ae599444e5")}catch{}})();const N=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{N as default};
//# sourceMappingURL=Members.abdbd3bb.js.map
