apolostwatur.com Open in urlscan Pro
172.67.133.186  Public Scan

URL: https://apolostwatur.com/_nuxt/COiMdP-Q.js
Submission: On December 12 via api from US — Scanned from IS

Form analysis 0 forms found in the DOM

Text Content

import{l as d}from"./ChtYCqXz.js";import{d as f,r as s,o as m,b as v,M as p,e as h,a as b,F as _}from"./cUFroScT.js";const y=50,M=f({__name:"intersection-trigger",props:{loading:{type:Boolean,default:!1},enable:{type:Boolean,default:!0},rootMargin:{}},emits:["triggerIntersected"],setup(l,{emit:i}){const c=i,n=l,t=s(null),o=s(null),u=d(()=>c("triggerIntersected"),y);async function g(e){e.isIntersecting&&n.enable&&!n.loading&&u()}return m(()=>{t.value=new IntersectionObserver(e=>e.forEach(g),{root:null,threshold:0,rootMargin:n.rootMargin}),t.value.observe(o.value),v(()=>n.loading,async e=>{var r,a;e||((r=t.value)==null||r.unobserve(o.value),await p(),(a=t.value)==null||a.observe(o.value))})}),h(()=>{var e;(e=t.value)==null||e.disconnect()}),(e,r)=>(b(),_("div",{ref_key:"trigger",ref:o,style:{height:"20px"}},null,512))}});export{M as _};