import{d as u,K as b,b as y,t as g,z as s,J as _}from"./registerWidgets.89616af0.js";import{a as w}from"./asyncComputed.8ac91a75.js";import"./gateway.0deebb85.js";import{M as i}from"./member.f4131337.js";import"./index.dae46ea1.js";import{C as I}from"./CrudView.7ced9145.js";import"./passwordlessManager.884221ca.js";import"./pubsub.d7600aa1.js";import"./activeRecord.3d3c7835.js";import"./DropdownMenu.8f7fc9d3.js";import"./Modal.73e976a2.js";import"./LoadingIndicator.10cfcfe7.js";import"./lottie.fc57e5ac.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]="93603f9f-fb1f-416c-86dd-d10506a968e0",e._sentryDebugIdIdentifier="sentry-dbid-93603f9f-fb1f-416c-86dd-d10506a968e0")}catch{}})();const K=u({__name:"Members",setup(e){const a=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(a,t.email),f()},{loading:d,result:c,refetch:f}=w(()=>i.list(a)),p=b(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(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?r:[]}});return(t,r)=>(y(),g(I,{"entity-name":"members",loading:s(d),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(p),"create-button-text":"Add members",fields:m,onCreate:l},null,8,["loading","table"]))}});export{K as default};
//# sourceMappingURL=Members.f5d95bd4.js.map
