import{d as f,ey as u,H as b,b as y,c as _,u as g}from"./registerWidgets.aa99a257.js";import{a as w}from"./asyncComputed.0fe9c7ca.js";import"./gateway.f016ddd8.js";import{M as i}from"./member.5623fc0e.js";import"./index.736fba6e.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.28754d4f.js";import"./passwordlessManager.16d17276.js";import"./pubsub.1c962ca1.js";import"./storage.140ce577.js";import"./activeRecord.a0fab812.js";import"./index.a431d18c.js";import"./index.7dfbdbc1.js";import"./Title.6e572405.js";import"./Form.edded16b.js";import"./index.4fae01ae.js";import"./index.782ff7c7.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]="9336af3f-cfc7-46ac-a291-46a66b5b3891",e._sentryDebugIdIdentifier="sentry-dbid-9336af3f-cfc7-46ac-a291-46a66b5b3891")}catch{}})();const $=f({__name:"Members",setup(e){const o=u().params.organizationId,s=[{key:"email",label:"Email"}],m=async t=>{await i.create(o,t.email),d()},{loading:l,result:c,refetch:d}=w(()=>i.list(o)),p=b(()=>{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},{text:n.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:s,onCreate:m},null,8,["loading","table"]))}});export{$ as default};
//# sourceMappingURL=Members.73451f7a.js.map
