"use strict";var addToWishlistBtn=function(){var t=document.getElementsByClassName("add_to_wishlist");if(t.length)for(var e=0,i=t.length;e<i;e++)t[e].onclick=function(){var t=this;t.classList.add("loading"),jQuery(document.body).on("added_to_wishlist",(function(){t.classList.remove("loading")}))}},headerSticky=function(){var t=document.querySelector(".woostify-header-template-builder");if(t&&t.classList.contains("has-sticky")){var e=t.classList.contains("sticky-on-all-device"),i=t.classList.contains("sticky-on-desktop"),s=t.classList.contains("sticky-on-mobile"),n=(t.classList.contains("has-shrink"),t.querySelector(".woostify-header-template-builder-inner")),a=t.getBoundingClientRect().top||0,o=document.getElementById("wpadminbar"),d=o?o.offsetHeight:0,c=document.querySelector(".woostify-header-template-builder-inner.active");if(e||i&&window.matchMedia("( min-width: 992px )").matches||s&&window.matchMedia("( max-width: 991px )").matches){if(a-d>=0?(n.classList.remove("active"),t.style.height=""):(n.classList.add("active"),t.style.height=n.offsetHeight+"px"),!c||!o)return;(e||s)&&window.matchMedia("( max-width: 600px )").matches?window.scrollY<d?c.style.top=d-window.scrollY+"px":c.style.top="0px":c.style.top=""}else n.classList.remove("active"),t.style.height=""}};document.addEventListener("DOMContentLoaded",(function(){addToWishlistBtn(),window.addEventListener("load",headerSticky),window.addEventListener("scroll",headerSticky),window.addEventListener("resize",headerSticky)}));