import{d as c,x as o,O as h,m as l,az as u}from"./m2W8DxR4.js";function a(e,t){return(n,i)=>c({inheritAttrs:!1,props:e,emits:["hydrated"],setup(s,r){const d=o({loader:i}),m=o({hydrate:t(s),loader:()=>Promise.resolve(d)}),y=()=>{r.emit("hydrated")};return()=>h(m,l(r.attrs,{onVnodeMounted:y}),r.slots)}})}const p=a({hydrateOnVisible:{type:[Object,Boolean],required:!1}},e=>u(e.hydrateOnVisible===!0?void 0:e.hydrateOnVisible)),b=a({hydrateAfter:{type:Number,required:!0}},e=>e.hydrateAfter===0?void 0:t=>{const n=setTimeout(t,e.hydrateAfter);return()=>clearTimeout(n)});export{p as a,b as c};
