1!function(){"use strict";var t=function(t){this.init(t)};t.DEFAULTS={element:".js-productdetails-box-sticky",container:".js-productdetails-box-sticky-body",blockBasketAdd:"add-to-cart",buttonBasketAdd:"#result-wrapper #buy_form #add-to-cart .btn-primary",scrollY:300},t.prototype={constructor:t,init:function(e){this.options=$.extend({},t.DEFAULTS,e),this.copyElement={title:document.querySelector("#result-wrapper h1.product-title"),price:document.querySelector("#result-wrapper .price_wrapper"),buy:document.querySelector("#result-wrapper .product-buy-add-to-cart")?document.querySelector("#result-wrapper .product-buy-add-to-cart"):document.querySelector("#result-wrapper #add-to-cart .choose-variations"),delivery:document.querySelector("#result-wrapper #buy_form .product-offer .delivery-status")},this.element=document.querySelector(this.options.element),this.buttonBasketAdd=document.querySelector(this.options.buttonBasketAdd),this.blockBasketAdd=document.getElementById(this.options.blockBasketAdd);let o=document.body.querySelector("#cfg-container");this.element&&this.blockBasketAdd&&!o&&(this.close=document.querySelector(this.options.close),this._registerEvents())},_registerEvents:function(){let t=this,e=document.getElementById("box-sticky-to-buy"),o=document.getElementById("box-sticky-btn-plus"),s=document.getElementById("box-sticky-btn-minus");document.querySelector("#result-wrapper .product-buy-add-to-cart")||document.getElementById("box-sticky-form-counter").classList.add("d-none"),e&&e.addEventListener("click",this._onJsAddToCartSticky.bind(this)),o.addEventListener("click",function(){$("#buy_form button[data-count-upx]").trigger("click"),t._updateQuantity()}),s.addEventListener("click",function(){$("#buy_form button[data-count-downx]").trigger("click"),t._updateQuantity()}),window.addEventListener("scroll",this._onScroll.bind(this)),window.addEventListener("resize",this._setValue.bind(this))},_updateQuantity:function(){let t=document.querySelector("#result-wrapper .quantity"),e=document.getElementById("box-sticky-counter");t&&(e.value=t.value),$("#box-sticky-to-delivery").find('[data-toggle="popover"]').popover({html:!0})},_setValue:function(){this.bottom=this.element.querySelector(this.options.container).clientHeight},_onCopyElements:function(){let t=this;Object.keys(t.copyElement).map(function(e,o){let s=document.getElementById(`box-sticky-to-${e}`);s.innerHTML=t.copyElement[e].outerHTML});let e=document.querySelector("#box-sticky-to-title > h1");if(e){let o=document.createElement("span");o.className="h2",o.innerHTML=e.innerHTML,e.parentNode.replaceChild(o,e)}},_onScroll:function(){this.scrollY=$.evo.salepix().getCoordsElem(this.blockBasketAdd);let t=this.element;window.scrollY>this.scrollY.top?t.classList.contains("is-show")||(this._onCopyElements(),t.classList.add("is-show"),t.classList.add("fadeInUp"),t.classList.remove("fadeOutDown"),this._setValue(),this._updateQuantity(),t.style.bottom=this.bottom+"px"):t.classList.contains("is-show")&&($('#box-sticky-to-delivery [data-toggle="popover"]').popover("hide"),t.classList.remove("is-show"),t.classList.remove("fadeInUp"),t.classList.add("fadeOutDown")),window.innerHeight+window.scrollY>document.body.clientHeight-200?($('#box-sticky-to-delivery [data-toggle="popover"]').popover("hide"),t.classList.remove("is-show"),t.classList.remove("fadeInUp"),t.classList.add("is-end")):t.classList.remove("is-end")},_onJsAddToCartSticky:function(t){t.preventDefault(),this.buttonBasketAdd?$(this.buttonBasketAdd).trigger("click"):window.scrollTo(0,0)}},$.evo.productDetailBoxSticky=function(){return new t}}(jQuery);
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.