import{w as m,P as p,y as c,a as i}from"./vue-core-Di3IuVqe.js";function g(t,s=60){const n=i(s),l=c(()=>t.value.slice(0,n.value)),o=c(()=>Math.max(0,t.value.length-n.value)),v=()=>{n.value=s},r=()=>{n.value+=s},u=i(null);let e=null;return m(u,a=>{e&&(e.disconnect(),e=null),a&&(e=new IntersectionObserver(f=>{f[0]?.isIntersecting&&o.value>0&&r()},{rootMargin:"300px"}),e.observe(a))}),p(()=>{e&&(e.disconnect(),e=null)}),{affichees:l,reste:o,limite:n,sentinelle:u,reset:v,plus:r,taille:s}}export{g as u};
