1"use strict";(self.webpackChunkzenitPlatformHorizon=self.webpackChunkzenitPlatformHorizon||[]).push([[37652],{7652(e,t,i){i.r(t),i.d(t,{default:()=>s});class s extends window.PluginBaseClass{static #e=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(e){var t=this;let i=function(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t._parallaxTarget.forEach(s=>{let a=s.getAttribute("data-zen-speed")?s.getAttribute("data-zen-speed"):t.options.speed,r=(window.innerWidth-e.pageX*a)/90,o=(window.innerHeight-e.pageY*a)/90;i&&(s.style.transition=`transform ${t.options.firstMoveDuration}ms ease-out`),s.style.transform=`translateX(${r}px) translateY(${o}px)`}),i&&setTimeout(()=>{t._parallaxTarget.forEach(e=>{e.style.transition=""})},t.options.firstMoveDuration+20)};if(!this._didFirstMove){this._didFirstMove=!0,i(!0);return}i(!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.