import{ensureMongoDocumentToObject as e}from"../ensureMongoDocumentToObject.mjs";const t=(t,n)=>{let r=e(t),i=r.content?[...r.content.keys()??[]]:[],a=n;a||=i[i.length-1];let o=r.content?r.content.get(a)?.content??null:null;return{...r,content:o,version:a,localId:`${r.key}::remote::${r.id}`,versionList:i}};export{t as mapDictionaryToAPI};
//# sourceMappingURL=dictionary.mjs.map