import{ac as r,al as m}from"./index-CU1_ljpG.js";function u(e){switch(e){case m.PENDING:return"PENDING";case m.ACCEPTED:return"ACCEPTED";case m.REJECTED:return"REJECTED";default:return"PENDING"}}function i(e){return!e?.id||!e.user?.username||!e.user.homeServer||!e.community?.id||!e.community.homeServer?null:{id:e.id,user:{username:e.user.username,homeServer:e.user.homeServer},community:{id:e.community.id,homeServer:e.community.homeServer},state:u(e.state),dateExpires:e.dateExpires??""}}function s(e,t){return!e?.user?.username||!e.user.homeServer||!t?!1:e.user.username===t.username&&r(e.user.homeServer)===r(t.homeServer)}export{s as i,i as r};
//# sourceMappingURL=recruitment-proto-CCgy_A08.js.map
