(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[16],{554:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return o}));var n=i(30);function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=Object(n.a)(t,"data-toubiz-sticky-element-");this.node=t,this.isActive="true"===i.active,this.switchPoint=parseFloat(t.offsetTop),this.whitespaceFixElement=document.createElement("div"),this.bindScroll(),this.bindResize(),this.setWhitespaceFixElementHeight(),this.isActive&&this.toggle(!0)}var t,i,o;return t=e,(i=[{key:"setWhitespaceFixElementHeight",value:function(){this.whitespaceFixElement.setAttribute("data-toubiz-sticky-element-whitespace",""),this.whitespaceFixElement.style.height="".concat(this.node.clientHeight,"px"),this.node.parentNode.insertBefore(this.whitespaceFixElement,this.node.nextSibling)}},{key:"toggle",value:function(e){this.isActive=e,this.node.setAttribute("data-toubiz-sticky-element-active",e)}},{key:"bindResize",value:function(){var e=this;window.addEventListener("resize",(function(){e.whitespaceFixElement.style.height="".concat(e.node.clientHeight,"px")}))}},{key:"bindScroll",value:function(){var e=this;window.addEventListener("scroll",(function(){var t=window.pageYOffset>=e.switchPoint;t&&!e.isActive?e.toggle(!0):!t&&e.isActive&&e.toggle(!1)}))}}])&&s(t.prototype,i),o&&s(t,o),e}()}}]);