1class Helper{constructor(initElement){this.initElement=initElement,this.mql=window.matchMedia("(max-width:767px)"),this.lifecycle()}lifecycle(){this.createHelperContent(),this.createHelperImage(),this.updatePosition(),window.addEventListener("resize",()=>{this.updatePosition()})}createHelperImage(){if(!this.initElement.classList.contains("text")){const __HELPER_CLASS="kl-helper__image",__HELPER_ELEMENT=document.createElement("div");return __HELPER_ELEMENT.classList.add(__HELPER_CLASS),void this.initElement.appendChild(__HELPER_ELEMENT)}}createHelperContent(){const __CONTENT_ELEMENT=document.createElement("span");if(__CONTENT_ELEMENT.classList.add("kl-helper__content"),this.initElement.classList.contains("text")){const __INNER_SPAN_ELEMENT=this.initElement.querySelector("span");__CONTENT_ELEMENT.innerHTML=__INNER_SPAN_ELEMENT.innerHTML,this.initElement.removeChild(__INNER_SPAN_ELEMENT)}else __CONTENT_ELEMENT.innerHTML=this.initElement.innerHTML,this.initElement.innerHTML="";this.initElement.appendChild(__CONTENT_ELEMENT)}updatePosition(){this.initElement.style.overflow="hidden";const __ELEMENT_POSITION=this.initElement.getBoundingClientRect(),__CONTENT_ELEMENT=this.initElement.querySelector(".kl-helper__content");__CONTENT_ELEMENT.classList.remove("right","left","responsive-right","responsive-left","responsive-center"),__CONTENT_ELEMENT.removeAttribute("style"),this.mql.matches?(__ELEMENT_POSITION.x<.3*window.innerWidth?__CONTENT_ELEMENT.classList.add("responsive-left"):__ELEMENT_POSITION.x>.7*window.innerWidth?__CONTENT_ELEMENT.classList.add("responsive-right"):__CONTENT_ELEMENT.classList.add("responsive-center"),__CONTENT_ELEMENT.style.width=.59*window.innerWidth+"px",__CONTENT_ELEMENT.style.minWidth="auto"):__ELEMENT_POSITION.x>window.innerWidth/2?__CONTENT_ELEMENT.classList.add("right"):__CONTENT_ELEMENT.classList.add("left"),this.initElement.removeAttribute("style")}} 2//# sourceURL=https://26981952.fs1.hubspotusercontent-eu1.net/hubfs/26981952/hub_generated/template_assets/1/110313831900/1789143560648/template_helper.js
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.