import{d as u,ey as b,H as f,b as y,c as _,u as g}from"./registerWidgets.d207d3d8.js";import{a as w}from"./asyncComputed.9245c077.js";import"./gateway.b835e205.js";import{M as n}from"./member.34589100.js";import"./index.ec4e5819.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.892f2f1d.js";import"./passwordlessManager.66faf323.js";import"./pubsub.a025efb1.js";import"./storage.955f9c37.js";import"./activeRecord.3ac0bec0.js";import"./Modal.c3922cf6.js";import"./Title.db9c20f2.js";import"./transButton.c5e342ac.js";import"./index.ed3f099d.js";import"./Text.df3bd99f.js";import"./index.a3599972.js";import"./index.ce572c42.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]="0a7c809a-0bf1-4e66-91b7-269dec88e771",e._sentryDebugIdIdentifier="sentry-dbid-0a7c809a-0bf1-4e66-91b7-269dec88e771")}catch{}})();const j=u({__name:"Members",setup(e){const a=b().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(a,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>n.list(a)),p=f(()=>{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:p.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{j as default};
//# sourceMappingURL=Members.e3cd6ab8.js.map
