import{d as u,ez as b,G as f,b as y,c as g,u as _}from"./outputWidgets.24bc53e6.js";import{a as w}from"./asyncComputed.e4b96939.js";import"./router.5678fba5.js";import{M as m}from"./member.da2f962f.js";import"./columns.29187485.js";import{C as I}from"./CrudView.acebed42.js";import"./Form.026abd8d.js";import"./Title.d959e45a.js";import"./transButton.082aab94.js";import"./Text.9efc0467.js";import"./index.bf56aca1.js";import"./gateway.c4f59e31.js";import"./activeRecord.7f48ce0d.js";import"./pubsub.6b8c4d65.js";import"./index.cf4c23b9.js";import"./icons.346b8028.js";import"./url.12ca99c5.js";import"./index.0ec384bd.js";import"./index.3a0ced65.js";import"./index.b19c9d88.js";import"./index.4b05c792.js";import"./index.d2b2175c.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]="25e179c1-2fe6-4b24-b2da-d76410439e49",e._sentryDebugIdIdentifier="sentry-dbid-25e179c1-2fe6-4b24-b2da-d76410439e49")}catch{}})();const K=u({__name:"Members",setup(e){const r=b().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>m.list(r)),c=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=d.value)==null?void 0:t.map(i=>({key:i.email,cells:[{text:i.email},{text:i.role}]})))!=null?a:[]}});return(t,a)=>(y(),g(I,{"entity-name":"members",loading:_(l),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{K as default};
//# sourceMappingURL=Members.1d24d9c1.js.map
