import{d as u,ey as f,H as b,b as y,c as _,u as g}from"./registerWidgets.2031932d.js";import{a as w}from"./asyncComputed.57cbb10a.js";import"./gateway.5ec242d0.js";import{M as n}from"./member.68f80279.js";import"./index.f3f00cf3.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.65f898ee.js";import"./passwordlessManager.50ecc1b4.js";import"./pubsub.9625b443.js";import"./storage.8b8c0b1c.js";import"./activeRecord.7b173443.js";import"./Modal.380d5af9.js";import"./Title.6d39f4ca.js";import"./transButton.d9059bcf.js";import"./index.bdecc667.js";import"./Text.f7290fbc.js";import"./index.29b38c7d.js";import"./index.b4b072a9.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]="d931a1cf-03f9-4a88-99a0-26d2a421c06c",e._sentryDebugIdIdentifier="sentry-dbid-d931a1cf-03f9-4a88-99a0-26d2a421c06c")}catch{}})();const j=u({__name:"Members",setup(e){const o=f().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(o,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>n.list(o)),p=b(()=>{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(),_(I,{"entity-name":"members",loading:g(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{j as default};
//# sourceMappingURL=Members.2450e408.js.map
