1import{r as g}from"./index.o9bRfbtw.js";const n="__trigger_once",f=({props:r})=>{const{scrollPercent:c,delay:l,events:s}=r,a=Math.ceil(l*1e3);g.useEffect(()=>{const e=window;e&&(e?.[n]||(e[n]=!0,m()))},[]);const i=()=>{const e=document.documentElement,t=document.body,o=(e.scrollTop||t.scrollTop)/((e.scrollHeight||t.scrollHeight)-e.clientHeight)*100;return Math.max(o,0)},u=()=>{const e=`scroll-trigger-${Date.now()}`;s?.forEach((t,o)=>{const{name:p,props:v}=t,E=new CustomEvent(p,{bubbles:!0,detail:{eventProps:v,eventId:`${e}-${o}`}});document.dispatchEvent(E)})},d=()=>{const e=setInterval(()=>{i()>=c&&(u(),clearInterval(e))},1e3)},m=()=>{setTimeout(()=>{d()},a)};return null};export{f as default};
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.