import{d as u,ey as f,H as b,b as y,c as _,u as g}from"./registerWidgets.faf49e08.js";import{a as w}from"./asyncComputed.70c50dd2.js";import"./gateway.ac5d4b11.js";import{M as n}from"./member.17620259.js";import"./index.72bdd39f.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.974c7bb1.js";import"./passwordlessManager.c54f57c4.js";import"./pubsub.04fb37b2.js";import"./storage.0aff2700.js";import"./activeRecord.a639288f.js";import"./Modal.f708ef7e.js";import"./Title.a7f9a7d9.js";import"./transButton.4230aac2.js";import"./index.cf144f25.js";import"./Text.b5970504.js";import"./index.fcf76a3b.js";import"./index.e6dcb33c.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]="742bfe57-af12-4605-85a9-16737a1e32c5",e._sentryDebugIdIdentifier="sentry-dbid-742bfe57-af12-4605-85a9-16737a1e32c5")}catch{}})();const j=u({__name:"Members",setup(e){const a=f().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(a,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>n.list(a)),c=b(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=d.value)==null?void 0:t.map(i=>({key:i.email,cells:[{text:i.email},{text:i.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:c.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{j as default};
//# sourceMappingURL=Members.e216e613.js.map
