import{d as b,eA as u,J as f,b as y,c as _,u as g}from"./outputWidgets.52de64cd.js";import{a as w}from"./asyncComputed.00e76dd1.js";import"./console.4411c7a7.js";import{M as a}from"./member.00a5e3a9.js";import"./index.8361ad88.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.70304edb.js";import"./index.a07ffcc5.js";import"./Form.09072055.js";import"./Title.baba2b21.js";import"./index.7800af0b.js";import"./index.c0e74c90.js";import"./index.e5d92658.js";import"./dayjs.7ad6aa6d.js";import"./index.5718341d.js";import"./index.3ed5d65c.js";import"./TabPane.c3c2f5a1.js";import"./index.396ff1b5.js";import"./CollapsePanel.d756b861.js";import"./index.9b3c2ba8.js";import"./index.f6c308cc.js";import"./index.f7915957.js";import"./index.1ebdd57a.js";import"./index.7fdb6bd8.js";import"./index.693f4596.js";import"./index.5a37ef67.js";import"./index.19e4a065.js";import"./gateway.e1457457.js";import"./activeRecord.ebcbfc07.js";import"./pubsub.6e9aa6f2.js";import"./icons.bf6505eb.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]="d08544db-b87c-4518-b2b7-02458a07e078",e._sentryDebugIdIdentifier="sentry-dbid-d08544db-b87c-4518-b2b7-02458a07e078")}catch{}})();const X=b({__name:"Members",setup(e){const r=u().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await a.create(r,t.email),d()},{loading:p,result:l,refetch:d}=w(()=>a.list(r)),c=f(()=>{var t,i;return{columns:[{name:"Email"},{name:"Role"}],rows:(i=(t=l.value)==null?void 0:t.map(m=>({key:m.email,cells:[{text:m.email},{text:m.role}]})))!=null?i:[]}});return(t,i)=>(y(),_(I,{"entity-name":"members",loading:g(p),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:c.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{X as default};
//# sourceMappingURL=Members.f784e57e.js.map
