import{defineComponent as n,createElementBlock as r,ref as d,provide as i}from"vue";import"hookable";n({name:"ServerPlaceholder",render(){return r("div")}});const u=Symbol.for("nuxt:client-only"),k=n({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(m,{slots:l,attrs:t}){const c=d(!1);return i(u,!0),e=>{if(c.value)return l.default?.();const a=l.fallback||l.placeholder;if(a)return a();const o=e.fallback||e.placeholder||"",f=e.fallbackTag||e.placeholderTag||"span";return r(f,t,o)}}});export{k as _};
