!function(){"use strict";var t=window.ctFrontend;(0,t.registerDynamicChunk)("blocksy_ext_woo_extra_floating_cart",{mount:function(e,a){var n=a.state;"target-after-bottom"===n&&(e.closest(".ct-drawer-canvas").dataset.floatingBar="yes:start",requestAnimationFrame((function(){e.closest(".ct-drawer-canvas").dataset.floatingBar="yes"}))),"target-after-bottom"!==n&&(e.closest(".ct-drawer-canvas").dataset.floatingBar="no:updating",function(t,e){var a=function(){t.removeEventListener("transitionend",n),e()},n=function(e){e.target===t&&a()};t.addEventListener("transitionend",n)}(e,(function(){"no:updating"===e.closest(".ct-drawer-canvas").dataset.floatingBar&&(e.closest(".ct-drawer-canvas").dataset.floatingBar="no")})));var o=e.querySelector(".button:not(.single_add_to_cart_button):not(.product_type_external)");o&&(o.hasClickListener||(o.hasClickListener=!0,o.addEventListener("click",(function(e){e.preventDefault(),function(e){if(e){var a=window.scrollY,n=null,o=function o(r){n||(n=r);var i=r-n,s=e.getBoundingClientRect(),c=0,l=document.querySelector("[data-sticky*=yes], [data-sticky*=fixed]");l&&(c=parseFloat(getComputedStyle(l).top)||0);var d,u,f,g=window.scrollY+s.top-(parseFloat(getComputedStyle(document.body).getPropertyValue("--header-sticky-height"))||0)-20-c,m=Math.max((d=i,u=a,f=-a,(d/=350)<1?f/2*d*d+u:-f/2*(--d*(d-2)-1)+u),g);t.areWeDealingWithSafari?(scrollTo(0,m),i<700&&requestAnimationFrame(o)):scrollTo(0,g)};t.areWeDealingWithSafari?requestAnimationFrame(o):o(0)}}(document.querySelector(".single-product .single_add_to_cart_button").closest("form"))}))))}})}();