1import{g as b,r as o,s as B,L as _,o as m,a as v,as as k,x,ad as w}from"./O86wAYcg.js";const T={key:1},C=b({__name:"CustomLazyHider",props:{height:{type:String,default:"0"},time:{type:Number,default:1e3},enabled:{type:Boolean,default:!0}},emits:["unmounted"],setup(c,{emit:h}){const a=c,g=h,f=o(!1),i=o(!1),u=o(!1),r=o(!0),s=o(null);let t=null,l=null;const p=()=>{try{const e=s.value.getBoundingClientRect(),n=e.height?e.height:a.height;if(i.value||u.value>n)return;i.value=!0,u.value=n}catch(e){console.log("err",e)}},d=e=>{try{if(s.value){if(e)f.value=!0,r.value=!0,t&&clearTimeout(t);else if(r.value&&!e&&!t){if(!f.value)return;t=setTimeout(()=>{p(),r.value=!1,w(()=>{g("unmounted")})},a.time)}}}catch(n){console.log("err",n)}};return B(()=>{if(a.enabled&&"IntersectionObserver"in window){l=new IntersectionObserver(n=>{n.forEach(y=>{y.isIntersecting?d(!0):d(!1)})});const e=s.value;l&&e&&l.observe(e)}}),_(()=>{l&&(l.disconnect(),l=null),t&&(clearTimeout(t),t=null)}),(e,n)=>(m(),v("div",{ref_key:"outerRef",ref:s,class:"invisibleBorder",style:x(`${i.value?`min-height: ${u.value||c.height}px;`:""}`)},[r.value?k(e.$slots,"default",{key:0}):(m(),v("div",T))],4))}});export{C as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.