(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[14],{668:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return c}));var n=i(33);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=Object(n.a)(e,"data-toubiz-sticky-element-");this.node=e,this.isActive="true"===i.active,this.switchPoint=parseFloat(e.offsetTop),this.whitespaceFixElement=document.createElement("div"),this.bindScroll(),this.bindResize(),this.setWhitespaceFixElementHeight(),this.isActive&&this.toggle(!0)},(e=[{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(t){this.isActive=t,this.node.setAttribute("data-toubiz-sticky-element-active",t)}},{key:"bindResize",value:function(){var t=this;window.addEventListener("resize",(function(){t.whitespaceFixElement.style.height="".concat(t.node.clientHeight,"px")}))}},{key:"bindScroll",value:function(){var t=this;window.addEventListener("scroll",(function(){var e=window.pageYOffset>=t.switchPoint;e&&!t.isActive?t.toggle(!0):!e&&t.isActive&&t.toggle(!1)}))}}])&&r(t.prototype,e),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i}()}}]);