import{d as b,ey as u,H as f,b as y,c as _,u as g}from"./registerWidgets.5ceb46ef.js";import{a as w}from"./asyncComputed.fd157db2.js";import"./gateway.fadd845e.js";import{M as i}from"./member.87bce9e4.js";import"./index.e1d2843e.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.af549d55.js";import"./passwordlessManager.db35a950.js";import"./pubsub.451b7de0.js";import"./storage.4e9cf889.js";import"./activeRecord.693e9703.js";import"./Modal.4e47c5c5.js";import"./Title.d4cb8bc4.js";import"./index.1a41b32a.js";import"./index.f7704414.js";import"./index.4fdcdf65.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]="79f8c1b3-95d6-48a7-9921-c2ecceb79b51",e._sentryDebugIdIdentifier="sentry-dbid-79f8c1b3-95d6-48a7-9921-c2ecceb79b51")}catch{}})();const O=b({__name:"Members",setup(e){const a=u().params.organizationId,s=[{key:"email",label:"Email"}],m=async t=>{await i.create(a,t.email),d()},{loading:l,result:c,refetch:d}=w(()=>i.list(a)),p=f(()=>{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},{text:n.role}]})))!=null?r:[]}});return(t,r)=>(y(),_(I,{"entity-name":"members",loading:g(l),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:p.value,"create-button-text":"Add members",fields:s,onCreate:m},null,8,["loading","table"]))}});export{O as default};
//# sourceMappingURL=Members.7307c5c9.js.map
