1import{B as e}from"./GlobalStylesStore--z5tmrDj.js";import{d as t}from"./defineElement-Bh-rOTph.js";t("animate-scroll-entrance",class extends e{animationClass(e){return{fade:"animate__fadeIn",fromLeft:"animate__fadeInLeft",fromRight:"animate__fadeInRight",fromTop:"animate__fadeInDown",fromBottom:"animate__fadeInUp"}[e]??e}properties(){return{rootMargin:"0px 0px -200px 0px",threshold:0,entranceAnimation:"animate__fadeInUp",leaveAnimation:"animate__fadeOut",delay:100,hasEntered:!1,animatedOnce:!0,animateSelector:"[animate]"}}connected(){this.$elementToAnimate=this.querySelector(this.animateSelector)||this.firstElementChild,this.$elementToAnimate.style.setProperty("opacity","0"),this.$elementToAnimate.style.animationFillMode="none",this._intersectionObserver=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting&&!this.hasEntered?this.enter():!e.isIntersecting&&this.hasEntered&&this.leave()}))}),{rootMargin:this.rootMargin,threshold:this.threshold}),this._intersectionObserver.observe(this)}leave(){this._enterTimeout&&clearTimeout(this._enterTimeout),this.hasEntered=!1,this.$elementToAnimate.classList.remove(this.animationClass(this.entranceAnimation)),this.$elementToAnimate.classList.add(this.leaveAnimation),this._leaveTimeout=setTimeout((()=>{this.$elementToAnimate.style.setProperty("opacity","0"),this.$elementToAnimate.classList.remove("animate__animated")}),1e3),this._enterTimeout&&clearTimeout(this._enterTimeout)}enter(){this._leaveTimeout&&clearTimeout(this._leaveTimeout),this.hasEntered=!0,this._enterTimeout=setTimeout((()=>{this.$elementToAnimate.classList.add("animate__animated"),this.$elementToAnimate.classList.remove(this.leaveAnimation),this.$elementToAnimate.classList.add(this.animationClass(this.entranceAnimation)),this.$elementToAnimate.style.removeProperty("opacity"),this.animatedOnce&&this._intersectionObserver.unobserve(this)}),this.delay)}}); 2//# sourceMappingURL=animate-scroll-entrance-CeM3Po8A.js.map
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.