import{D as e}from"./p-7737f905.js";const t=e=>`${e.firstName[0]}${e.lastName[0]}`,s=e=>`${e.firstName} ${e.lastName}`;class i extends e{static decode(e){var t,s;return Object.assign(Object.create(i.prototype),Object.assign(Object.assign({},e),{initials:e.initials||`${null===(t=e.firstName)||void 0===t?void 0:t[0]} ${null===(s=e.lastName)||void 0===s?void 0:s[0]}`,name:e.name||`${e.firstName} ${e.lastName}`}))}static generateRef(e){return{_ref:"kimlik-users",_id:e}}}export{i as U,t as a,s as g}