/* Goya Animations */
// Exclude this file from WP Rocket delayed execution
function runAnimation(){var i=0,e=document.getElementsByClassName("animation");document.body.classList.contains("et-page-load-transition-true")&&document.documentElement.classList.add("et-page-loaded"),document.body.classList.contains("et-animation-ready")&&setTimeout(function(){window.removeEventListener("scroll",runAnimation)},3e3),Array.prototype.forEach.call(e,function(e,t,n){!0!==e.getAttribute("et-animated")&&1==isElementInViewport(e)&&(e.setAttribute("et-animated",!0),setTimeout(function(){e.classList.add("animated")},50*i)),i++})}function isElementInViewport(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,e=window.innerWidth||document.documentElement.clientWidth,n=t.top<=n&&0<=t.top+t.height,t=t.left<=e&&0<=t.left+t.width;return n&&t}window.addEventListener("load",runAnimation),window.addEventListener("scroll",runAnimation);var stickyFilters=document.querySelector("#et-shop-filters"),mobileMenu=document.querySelector(".mobile-toggle"),desktopMenu=document.querySelector(".fullscreen-toggle"),desktopCart=document.querySelector(".header-main .quick_cart"),mobileCart=document.querySelector(".header-mobile .quick_cart"),quickSearch=document.querySelector(".header-main .quick_search");function mobileFilters(){document.body.classList.contains("et-animation-ready")||document.body.classList.contains("panel-open-filters")||document.body.classList.add("panel-open-filters")}function menuPanel(){document.body.classList.contains("et-animation-ready")||this.classList.contains("clicked")||(this.classList.add("clicked"),setTimeout(function(){document.body.classList.add("panel-open-menu")},300))}function miniCart(e){document.body.classList.contains("et-animation-ready")||document.body.classList.contains("panel-open-cart")||(e.stopPropagation(),e.preventDefault(),document.body.classList.add("panel-open-cart"))}function searchPanel(){document.body.classList.contains("et-animation-ready")||document.body.classList.contains("panel-open-search")||document.body.classList.add("panel-open-search")}void 0!==mobileMenu&&null!=mobileMenu&&mobileMenu.addEventListener("click",menuPanel),void 0!==desktopMenu&&null!=desktopMenu&&desktopMenu.addEventListener("click",menuPanel),void 0!==stickyFilters&&null!=stickyFilters&&stickyFilters.addEventListener("click",mobileFilters),void 0!==mobileCart&&null!=mobileCart&&mobileCart.addEventListener("click",miniCart),void 0!==desktopCart&&null!=desktopCart&&desktopCart.addEventListener("click",miniCart),void 0!==quickSearch&&null!=quickSearch&&quickSearch.addEventListener("click",searchPanel);