import{d as e,i as t}from"./hooks.module-5xe-uC6c.js";e();function n(e,n){return t(()=>{let t=e?e.getRelations().filter(e=>e.name===`imageLink`||e.name===`includeNoteLink`):[],r=new Set(t.map(e=>e.value));return n.filter(e=>!r.has(e)&&e!==`_hidden`)},[e,n])}async function r(e,t=!0){let n=e.getRelations(`imageLink`),r=new Set(n.map(e=>e.value));return(await e.getChildNotes()).filter(e=>!r.has(e.noteId)&&(t||!e.isArchived))}export{n,r as t};