import{d as u,eB as b,G as f,b as y,c as g,u as _}from"./outputWidgets.84fd06fb.js";import{a as w}from"./asyncComputed.da204aa5.js";import"./router.a59cab44.js";import"./index.0bfee40a.js";import{M as n}from"./member.1ae3e1b8.js";import{C as I}from"./CrudView.500d5f8a.js";import"./Base.67ffff63.js";import"./transButton.64565967.js";import"./Text.9dbcc31d.js";import"./Title.564982df.js";import"./index.a606b6d8.js";import"./record.f0008bb4.js";import"./pubsub.8883f68b.js";import"./gateway.82cdc40d.js";import"./icons.3869c437.js";import"./url.53969469.js";import"./index.6b6af4b4.js";import"./index.02fdeca3.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]="00b2b541-50d7-4170-a02a-ad820b2ce6af",e._sentryDebugIdIdentifier="sentry-dbid-00b2b541-50d7-4170-a02a-ad820b2ce6af")}catch{}})();const q=u({__name:"Members",setup(e){const a=b().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(a,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>n.list(a)),c=f(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=d.value)==null?void 0:t.map(i=>({key:i.email,cells:[{text:i.email},{text:i.role}]})))!=null?r:[]}});return(t,r)=>(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.0d600391.js.map
