import{d as u,K as b,b as y,t as g,z as s,J as _}from"./registerWidgets.b581b882.js";import{a as w}from"./asyncComputed.d5ac46d6.js";import"./gateway.ace4e6ef.js";import{M as i}from"./member.59ee47bb.js";import"./index.2816490e.js";import{C as I}from"./CrudView.bbdeef54.js";import"./passwordlessManager.202da07d.js";import"./pubsub.e8d7f2be.js";import"./activeRecord.d86e77f4.js";import"./DropdownMenu.cfe14248.js";import"./Modal.b2162631.js";import"./LoadingIndicator.84650e8d.js";import"./lottie.11a8eda8.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]="958f992a-7aff-4050-9ad5-7ffb7aee05c8",e._sentryDebugIdIdentifier="sentry-dbid-958f992a-7aff-4050-9ad5-7ffb7aee05c8")}catch{}})();const K=u({__name:"Members",setup(e){const o=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(o,t.email),f()},{loading:d,result:c,refetch:f}=w(()=>i.list(o)),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.74e94c85.js.map
