import{d as b,K as f,b as y,t as g,z as s,J as _}from"./registerWidgets.80830a62.js";import{a as w}from"./asyncComputed.7fd138fd.js";import"./gateway.0f7f822d.js";import{M as i}from"./member.601c685a.js";import{C as I}from"./CrudView.4ea83d11.js";import"./passwordlessManager.65c1d475.js";import"./activeRecord.dd1973bd.js";import"./DropdownMenu.8a84ea08.js";import"./Modal.75286ba0.js";import"./LoadingIndicator.246acf5c.js";import"./lottie.ab5349ef.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="aed1ad1e-0ac2-4e67-bad4-e0a6b2200825",e._sentryDebugIdIdentifier="sentry-dbid-aed1ad1e-0ac2-4e67-bad4-e0a6b2200825")}catch{}})();const A=b({__name:"Members",setup(e){const o=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(o,t.email),p()},{loading:d,result:c,refetch:p}=w(()=>i.list(o)),u=f(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=c.value)==null?void 0:t.map(n=>({key:n.email,cells:[{text:n.email,classes:["title","centered"]},{text:n.role,classes:["centered"]}]})))!=null?r:[]}});return(t,r)=>(y(),g(I,{"entity-name":"members",loading:s(d),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(u),"create-button-text":"Add members",fields:m,onCreate:l},null,8,["loading","table"]))}});export{A as default};
//# sourceMappingURL=Members.1baaf89f.js.map
