import{d as u,eA as b,J as f,b as y,c as g,u as _}from"./outputWidgets.9b7c29ed.js";import{a as w}from"./asyncComputed.6a414bed.js";import"./router.a8553211.js";import{M as n}from"./member.6b41b635.js";import"./index.3302f04a.js";import{C as I}from"./CrudView.73bf57c7.js";import"./Title.55bc3e25.js";import"./index.31be9da9.js";import"./gateway.3821173b.js";import"./activeRecord.264ba54c.js";import"./pubsub.f1df5000.js";import"./icons.7c250a15.js";import"./index.ddedd1b8.js";import"./Form.77e50956.js";import"./url.c61c9940.js";import"./index.5695780b.js";import"./index.d8ed1958.js";import"./index.817f3ac7.js";import"./index.316bc1ac.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]="729d5093-ca7e-4e0c-834d-8b5fc28c130d",e._sentryDebugIdIdentifier="sentry-dbid-729d5093-ca7e-4e0c-834d-8b5fc28c130d")}catch{}})();const F=u({__name:"Members",setup(e){const r=b().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=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:p.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{F as default};
//# sourceMappingURL=Members.521fcfaf.js.map
