import{d as u,eA as f,J as b,b as y,c as g,u as _}from"./outputWidgets.b8e3fbc0.js";import{a as w}from"./asyncComputed.977b7d3a.js";import"./router.c0f681d7.js";import{M as n}from"./member.453422bb.js";import"./index.c28e38ab.js";import{C as I}from"./CrudView.4bacc99a.js";import"./Title.b922ff42.js";import"./index.b9764f4b.js";import"./gateway.fb1f3fe6.js";import"./activeRecord.407da188.js";import"./pubsub.dbd75de9.js";import"./icons.4de3900f.js";import"./index.364876d6.js";import"./Form.a05787d5.js";import"./url.e34f8e7c.js";import"./index.0e41e755.js";import"./index.4cd7b067.js";import"./index.2ea342e8.js";import"./index.5ca55868.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]="3c234422-cbbd-4da4-9fea-0f878fc82e59",e._sentryDebugIdIdentifier="sentry-dbid-3c234422-cbbd-4da4-9fea-0f878fc82e59")}catch{}})();const F=u({__name:"Members",setup(e){const r=f().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(r,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>n.list(r)),p=b(()=>{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:p.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{F as default};
//# sourceMappingURL=Members.92d07add.js.map
