1"use strict";(self.webpackChunkzenitPlatformHorizon=self.webpackChunkzenitPlatformHorizon||[]).push([[63662],{3662(e,i,t){t.r(i),t.d(i,{default:()=>o});var s=t(4632);class o extends window.PluginBaseClass{static #e=this.options={animationIn:"fade-in-fwd",animationOut:"fade-out",downloadSelector:"a[download]",mailtoSelector:"a[href^=mailto]",telSelector:"a[href^=tel]",timeout:300,maxTimeout:1e4};init(){let e=this.options;this._downloadTriggers=document.querySelectorAll(e.downloadSelector),this._telTriggers=document.querySelectorAll(e.telSelector),this._mailtoTriggers=document.querySelectorAll(e.mailtoSelector),this.ignoreOnbeforeunload=!1,this._registerEvents()}_registerEvents(){let e="click",i=s.A.isIOSDevice()?"pageshow":"load",t=s.A.isIOSDevice()?"pagehide":"visibilitychange";"complete"===document.readyState?this._hidePreloader(this.options.timeout):window.addEventListener(i,this._hidePreloader.bind(this,this.options.timeout)),window.addEventListener("beforeunload",this._showPreloader.bind(this)),window.addEventListener(t,()=>{"visibilitychange"===t&&"hidden"===document.visibilityState?this._hidePreloader(this.options.timeout):"pagehide"===t&&this._hidePreloader(this.options.timeout)}),window.addEventListener("pageshow",e=>{e.persisted&&this._hidePreloader(this,this.options.timeout)}),this._downloadTriggers&&this._downloadTriggers.forEach(i=>{i.addEventListener(e,()=>{this.ignoreOnbeforeunload=!0})}),this._telTriggers&&this._telTriggers.forEach(i=>{i.addEventListener(e,()=>{this.ignoreOnbeforeunload=!0})}),this._mailtoTriggers&&this._mailtoTriggers.forEach(i=>{i.addEventListener(e,()=>{this.ignoreOnbeforeunload=!0})})}_hidePreloader(e){setTimeout(()=>{this.el.classList.add("js-"+this.options.animationOut),this.el.classList.remove("js-"+this.options.animationIn)},e)}_showPreloader(){this.ignoreOnbeforeunload||(this.el.classList.remove("js-"+this.options.animationOut),this.el.classList.add("js-"+this.options.animationIn)),this.ignoreOnbeforeunload=!1,this._hidePreloader(this.options.maxTimeout)}}},4632(e,i,t){t.d(i,{A:()=>s});class s{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return s.isIPhoneDevice()||s.isIPadDevice()}static isNativeWindowsBrowser(){return s.isIEBrowser()||s.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":s.isTouchDevice(),"is-ios":s.isIOSDevice(),"is-native-windows":s.isNativeWindowsBrowser(),"is-iphone":s.isIPhoneDevice(),"is-ipad":s.isIPadDevice(),"is-ie":s.isIEBrowser(),"is-edge":s.isEdgeBrowser()}}}}}]);
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.