import{r as n,h as i,m as u,j as f,Z as d}from"./BCLrUOBx.js";const v={__name:"LoadSection",props:{rootMargin:{type:Number,default:0}},setup(a){const s=a,o=n(!1),e=n(null);return i(()=>{const r=new IntersectionObserver((t,c)=>{t.forEach(l=>{l.intersectionRatio>0&&(o.value=!0,c.disconnect())})},{rootMargin:`${s.rootMargin}px`});e.value&&r.observe(e.value)}),(r,t)=>(f(),u("div",{ref_key:"el",ref:e},[d(r.$slots,"default",{renderArea:o.value})],512))}};export{v as default};
