import{d as b,eB as u,G as f,b as y,c as g,u as _}from"./outputWidgets.6c6bbcfd.js";import{a as w}from"./asyncComputed.77186ed9.js";import"./router.98f12fd8.js";import"./index.fa74f1f3.js";import{M as n}from"./member.64567b2f.js";import{C as I}from"./CrudView.520a43a0.js";import"./Base.d198dcc9.js";import"./transButton.2945a1d9.js";import"./Text.51d0b007.js";import"./Title.307e6445.js";import"./index.d102918e.js";import"./record.5aef9f17.js";import"./pubsub.ccb56b51.js";import"./gateway.3543d1b0.js";import"./icons.89c226d3.js";import"./url.bf2db6c1.js";import"./index.9883e2bc.js";import"./index.0e6e05b9.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]="bdbf123b-c887-4b85-82d4-707360254d36",e._sentryDebugIdIdentifier="sentry-dbid-bdbf123b-c887-4b85-82d4-707360254d36")}catch{}})();const q=b({__name:"Members",setup(e){const r=u().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(r,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>n.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:m,onCreate:s},null,8,["loading","table"]))}});export{q as default};
//# sourceMappingURL=Members.d3c8233d.js.map
