(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[14],{637:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return s}));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,(r=n.key,s=void 0,s=function(t,e){if("object"!==o(t)||null===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)}(r,"string"),"symbol"===o(s)?s:String(s)),n)}var r,s}var s=function(){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)}var e,i,o;return e=t,(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(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(e.prototype,i),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()}}]);