1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[11365],{365:(i,t,n)=>{n.r(t),n.d(t,{default:()=>s});let e=window.PluginBaseClass;class s extends e{init(){this.el.dataset.moorlAnimation?this.config=JSON.parse(this.el.dataset.moorlAnimation):this.config=this.options,this.activeAnimation=null,this.zIndex=parseInt(window.moorlAnimationZIndex??"9000"),this.animateInit(),this.animate(),this._registerEvents()}_registerEvents(){let i=this;window.addEventListener("scroll",function(){i.animate()},!1),this.el.addEventListener("mouseenter",()=>{!i.activeAnimation&&i.config.hover&&i.config.hover.active&&i.animateHover()}),this.el.addEventListener("animationstart",()=>{"in"===i.activeAnimation&&i.el.classList.remove("moorl-animation-hidden")}),this.el.addEventListener("animationend",()=>{"out"===i.activeAnimation&&i.el.classList.add("moorl-animation-hidden"),i.el.style.animation=void 0,i.el.style.zIndex=void 0,i.el.style.animationDelay=void 0,i.el.style.animationDuration=void 0,i.activeAnimation=null,i.animate()})}_ms(i){return i.toString()+"ms"}_visible(i){return"isLoaded"===i||("isOverBottom"===i?this._isOverBottom():"isInViewport"===i?this._isInViewport():void 0)}_isInViewport(){return this.el.getBoundingClientRect().bottom<=(window.innerHeight||document.documentElement.clientHeight)}_isOverBottom(){return this.el.getBoundingClientRect().top<=(window.innerHeight||document.documentElement.clientHeight)}animateHover(){let i=this.config.hover;!this.el.classList.contains("moorl-animation-hidden")&&this._visible(i.condition)&&(this.activeAnimation="hover",this.el.style.animation=i.name,this.el.style.zIndex=this.zIndex,this.el.style.animationDelay=this._ms(i.delay),this.el.style.animationDuration=this._ms(i.duration))}animateIn(){let i=this.config.in;this.el.classList.contains("moorl-animation-hidden")&&this._visible(i.condition)&&(this.activeAnimation="in",this.el.style.animation=i.name,this.el.style.zIndex=this.zIndex,this.el.style.animationDelay=this._ms(i.delay),this.el.style.animationDuration=this._ms(i.duration))}animateOut(){let i=this.config.out;!this.el.classList.contains("moorl-animation-hidden")&&(this._visible(i.condition)||(this.activeAnimation="out",this.el.style.animation=i.name,this.el.style.animationDelay=this._ms(i.delay),this.el.style.animationDuration=this._ms(i.duration)))}animateInit(){let i=this.config;i.in&&i.in.active&&(this._visible(i.in.condition)?"isLoaded"===i.in.condition&&this.el.classList.add("moorl-animation-hidden"):this.el.classList.add("moorl-animation-hidden"))}animate(){!this.activeAnimation&&(this.config.in&&this.config.in.active&&this.animateIn(),this.config.out&&this.config.out.active&&this.animateOut())}}}}]);
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.