1"use strict";(self.webpackChunkzenitPlatformAtmos=self.webpackChunkzenitPlatformAtmos||[]).push([[38963],{8963(t,e,s){s.r(e),s.d(e,{default:()=>i});class i extends window.PluginBaseClass{static #t=this.options={speed:"5",parallaxTargetSelector:"",moveDebounceTime:10,firstMoveDuration:300};init(){this._parallaxTarget=this.el.querySelectorAll(this.options.parallaxTargetSelector),this._parallaxTarget&&this._parallaxTarget.length&&(this._didFirstMove=!1,this._registerEvents())}_registerEvents(){this.el.addEventListener("mousemove",this._onMouseMove.bind(this)),this.el.addEventListener("mouseleave",()=>{this._didFirstMove=!1}),this.el.addEventListener("mouseenter",()=>{this._didFirstMove=!1})}_onMouseMove(t){var e=this;let s=function(){let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e._parallaxTarget.forEach(i=>{let a=i.getAttribute("data-zen-speed")?i.getAttribute("data-zen-speed"):e.options.speed,r=(window.innerWidth-t.pageX*a)/90,o=(window.innerHeight-t.pageY*a)/90;s&&(i.style.transition=`transform ${e.options.firstMoveDuration}ms ease-out`),i.style.transform=`translateX(${r}px) translateY(${o}px)`}),s&&setTimeout(()=>{e._parallaxTarget.forEach(t=>{t.style.transition=""})},e.options.firstMoveDuration+20)};if(!this._didFirstMove){this._didFirstMove=!0,s(!0);return}s(!1)}}}}]);
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.