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