import{i as e}from"./dist.EDwYBRuO.js";import{createBlock as t,createCommentVNode as n,onMounted as r,openBlock as i,ref as a,renderSlot as o,resolveDynamicComponent as s,unref as c,withCtx as l}from"/vue.js";var u=Object.assign({name:`nc-lazy`},{__name:`nc-lazy`,props:{tag:{type:String,default:`div`}},setup(u){let d=a(!1),f=a(null),{stop:p,isSupported:m}=e(f,([{isIntersecting:e}])=>{console.debug(`* nc-lazy isIntersecting`,e),e&&(d.value=!0,p())});return r(()=>{m||(d.value=!0)}),(e,r)=>(i(),t(s(u.tag),{ref_key:`wrapper`,ref:f,style:{minWidth:`1px`,minHeight:`1px`}},{default:l(()=>[c(d)?o(e.$slots,`default`,{key:0}):n(``,!0),c(d)?n(``,!0):o(e.$slots,`placeholder`,{key:1})]),_:3},512))}});export{u as default};