System.register(["./vue-legacy-a77002d8.js"],(function(e,t){"use strict";var n,l,s,o,r,c;return{setters:[e=>{n=e.f,l=e.h,s=e.v,o=e.L,r=e.o,c=e.D}],execute:function(){const t={class:""};e("_",n({__name:"ScrollLoad",props:{el:null,maxLen:null,curLen:null,hasMorePages:{type:Boolean},loadingMore:{type:Boolean}},emits:["submit"],setup(e,{emit:n}){const a=e,i=l(!0),u=()=>{const{el:e,maxLen:t,curLen:l,hasMorePages:s,loadingMore:o}=a,r=e.scrollHeight,c=e.scrollTop;if(r-e.clientHeight-c<=20&&l>t&&s){if(o)return;n("submit")}};s((()=>a.el),(e=>{e&&i.value&&(i.value=!1,m())}));const m=()=>{const{el:e,maxLen:t}=a;e&&t&&e.addEventListener("scroll",u)};return o((()=>{const{el:e}=a;e&&e.removeEventListener("scroll",u)})),(e,n)=>(r(),c("div",t))}}))}}}));
