import{C as e,d as t}from"./dist-rbQIUfXp.js";import{useEffect as n}from"react";function r(e){return e.header.documentType===`powerhouse/document-model`}function i(n=!1){let i=e()??[],a=(t()??[]).filter(r).map(e=>e.state.global.id);return n?[...new Set(a)]:[...new Set([...i,...a])]}function a(e,t,r){n(()=>{if(!t)return;let n=setTimeout(()=>{t(e)},r);return()=>clearTimeout(n)},[e,t,r])}export{a as n,i as t};
//# sourceMappingURL=hooks-Vx4YtE1e-CANWwp8q.js.map