!function(){"use strict";var e=window.VAMTAM=window.VAMTAM||{};e.debounce=function(e,t=300,n=!1){var a;return function(){var i=this,o=arguments,r=n&&!a;clearTimeout(a),a=setTimeout((function(){a=null,n||e.apply(i,o)}),t),r&&e.apply(i,o)}},e.offset=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+a,left:t.left+n}},e.scroll_handlers=[],e.latestKnownScrollY=0;var t=!1;e.addScrollHandler=function(t){requestAnimationFrame((function(){t.init(),e.scroll_handlers.push(t),t.measure(e.latestKnownScrollY),t.mutate(e.latestKnownScrollY)}))},e.onScroll=function(){e.latestKnownScrollY=window.pageYOffset,t||(t=!0,requestAnimationFrame((function(){var n;for(n=0;n2,e.getScrollbarWidth=()=>window.innerWidth-document.documentElement.clientWidth;let n=!1;e.waitForLoad=function(e){n?e():window.addEventListener("load",e)},window.addEventListener("load",(function(){n=!0}))}(),function(e,t){"use strict";var n,a,i=e("header.main-header").find(".header-contents"),o=document.getElementById("vamtam-fallback-main-menu-toggle"),r=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),s=function(){clearTimeout(n),n=setTimeout(l,200)},l=function(){window.removeEventListener("scroll",s,{passive:!0}),t.blockStickyHeaderAnimation=!1,a&&a()},c=function(e,n,l){requestAnimationFrame((function(){var n=e.offset().top;t.blockStickyHeaderAnimation=!0;var c;c=i.height()||0;var d=n-t.adminBarHeight-c;a=l,window.addEventListener("scroll",s,{passive:!0}),window.scroll({left:0,top:d,behavior:"smooth"}),e.attr("id")&&(history.pushState?history.pushState(null,null,"#"+e.attr("id")):window.location.hash=e.attr("id")),o&&o.classList.remove("mega-menu-open"),r&&r.classList.remove("mega-menu-open")}))};if(e(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",(function(t){var n=e(this).prop("href")||e(this).data("href"),a=e("#"+n.split("#")[1]),i=document.createElement("a");i.href=n,a.length&&i.pathname===window.location.pathname&&(o&&o.classList.remove("mega-menu-open"),r&&r.classList.remove("mega-menu-open"),c(a),t.preventDefault())})),""!==window.location.hash&&(e('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)){var d=e(window.location.hash);d.length>0&&e(window).add("html, body, #page").scrollTop(0),setTimeout((function(){c(d)}),400)}}(jQuery,window.VAMTAM),function(e){"use strict";window.VAMTAM=window.VAMTAM||{},e((function(){var t,n;window.VAMTAM.adminBarHeight=document.body.classList.contains("admin-bar")?32:0,/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&requestAnimationFrame((function(){document.documentElement.classList.add("ios-safari")})),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&requestAnimationFrame((function(){document.documentElement.classList.add("safari")})),n=document.body,window.addEventListener("scroll",(function(){clearTimeout(t),requestAnimationFrame((function(){n.classList.add("disable-hover"),t=setTimeout((function(){n.classList.remove("disable-hover")}),300)}))}),{passive:!0}),document.addEventListener("click",(function(e){e.target.closest(".vamtam-trigger-print")&&(window.print(),e.preventDefault())})),window.VAMTAM.resizeElements=function(){e("#page .media-inner,\t\t\t\t.wp-block-embed-vimeo:not(.wp-has-aspect-ratio),\t\t\t\t:not(.wp-block-embed__wrapper) > .vamtam-video-frame").find("iframe, object, embed, video").each((function(){setTimeout(function(){requestAnimationFrame(function(){var t=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*t/16+"px":this.style.height=this.height*t/this.width+"px",e(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)})),setTimeout((function(){requestAnimationFrame((function(){e(".mejs-time-rail").css("width","-=1px")}))}),100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements(),e(document).on("ajaxSuccess",(function(t,n,a){if(a.data&&"string"==typeof a.data){if("wishlist_remove"===a.data.split("&").map((e=>e.split("="))).reduce(((e,t)=>(e[t[0]]=t[1],e)),{}).action){const t=JSON.parse(n.responseText);1===t.status&&0===t.count&&(e(".vamtam-empty-wishlist-notice").show(),e("table.woosw-items").hide())}}}))}));var t=function(){var t=document.querySelectorAll(".vamtam-overlay-trigger"),n=[],a=window.VAMTAM.isBelowMaxDeviceWidth(),i=function(t){var a=t.currentTarget;if(e(a).hasClass("elementor-menu-toggle")){var o=e(a).closest(".elementor-row");o.length||(o=e(a).closest(".elementor-container")),o.hasClass("vamtam-overlay-trigger--overlay")&&(o.removeClass("vamtam-overlay-trigger--overlay"),a.removeEventListener("click",i),n.forEach((function(e){e.overlayTarget!==a&&e.closeTrigger!==a||(e.isActive=!1)})))}e(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(e("html, body").removeClass("vamtam-disable-scroll"),e("#scroll-to-top").removeClass("hidden"))},o=function(t){var a=t.currentTarget;if(e(a).hasClass("elementor-menu-toggle")){var o=e(a).closest(".elementor-row");if(o.length||(o=e(a).closest(".elementor-container")),o.hasClass("vamtam-menu-nav-overlay-inside")||(o.addClass("vamtam-menu-nav-overlay-inside"),e(o).find(".vamtam-overlay-element").css("top",e(o)[0].getBoundingClientRect().top+e(o).height()+"px")),o.hasClass("vamtam-overlay-trigger--overlay"))return;o.addClass("vamtam-overlay-trigger--overlay"),n.forEach((function(e){e.overlayTarget!==a&&e.closeTrigger!==a||(e.isActive=!0)}))}e("html, body").addClass("vamtam-disable-scroll"),e("#scroll-to-top").addClass("hidden"),function(t){if(e(t).hasClass("elementor-menu-toggle"))t.removeEventListener("click",i),t.addEventListener("click",i)}(a)};if(t.forEach((function(t){if(e(t).hasClass("elementor-widget-nav-menu")){var a=e(t).find(".elementor-menu-toggle")[0];a.removeEventListener("click",o),a.addEventListener("click",o),n.push({overlayTarget:t,closeTrigger:a,isActive:!1});var i=e(t).closest(".elementor-row");return i.length||(i=e(t).closest(".elementor-container")),void e('').appendTo(i)}})),t.length){document.addEventListener("click",(function(e){n.forEach((function(t){t.isActive&&(e.target===t.overlayTarget||t.overlayTarget.contains(e.target)||t.closeTrigger.click())}))}),!0),window.addEventListener("resize",window.VAMTAM.debounce((function(){var e=window.VAMTAM.isBelowMaxDeviceWidth();a!==e&&(n.forEach((function(e){e.isActive&&e.closeTrigger.click()})),a=e)}),200),!1)}};document.addEventListener("DOMContentLoaded",(function(){window.VAMTAM.load_script("/assets/low-priority.js"),t(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")}),{passive:!0})}(jQuery),function(e){"use strict";window.VAMTAM=window.VAMTAM||{},window.VAMTAM.CUSTOM_ANIMATIONS={},window.VAMTAM.CUSTOM_ANIMATIONS={init:function(){},onDomReady:function(){this.VamtamCustomAnimations.init(),this.VamtamCustomAnimations.scrollBasedAnims()},VamtamCustomAnimations:{init:function(){this.registerAnimations(),this.utils.watchScrollDirection()},registerAnimations:function(){var e=this;["stickyHeader"].forEach((function(t){e[t].apply(e)}))},stickyHeader:function(){var t=e(".vamtam-sticky-header"),n=this;t.length&&(t.length>1&&(t=t[0]),function(){var a,i=e(t).hasClass("vamtam-sticky-header--transparent-header"),o=e(t).innerHeight(),r=function(){e(t).removeClass("vamtam-sticky-header--fixed-shown"),e(t).hasClass("vamtam-sticky-header--fixed-hidden")||e(t).addClass("vamtam-sticky-header--fixed-hidden"),a="fixedHiddenState"},s=function(){e(t).removeClass("vamtam-sticky-header--fixed-hidden"),e(t).hasClass("vamtam-sticky-header--fixed-shown")||e(t).addClass("vamtam-sticky-header--fixed-shown"),a="fixedShownState"},l=function(){e(t).removeClass("vamtam-sticky-header--fixed-shown"),e(t).removeClass("vamtam-sticky-header--fixed-hidden"),a="noAnimState"};(()=>{const n=e("body").css("padding-left"),a=e("body").css("padding-right"),i=e(t).parents('[data-elementor-type="header"]').first();i.length&&(parseInt(n)&&i.css("--vamtam-sticky-mleft",`-${n}`),parseInt(a)&&i.css("--vamtam-sticky-mright",`-${a}`))})();e("#wpadminbar").length&&e(t).hasClass("vamtam-sticky-header--mobile")&&e("#wpadminbar").addClass("vamtam-sticky-mobile-header");const c=(e=!1)=>{window.pageYOffset>=10?r():e||window.addEventListener("load",(function(){a||setTimeout((()=>{c(!0)}),10)}))};c();var d,m=null,u=window.scrollY;window.addEventListener("scroll",(function(c){null!==m&&clearTimeout(m),m=setTimeout((function(){u=window.scrollY}),500);var h=window.VAMTAM.debounce((function(){if("#document"===c.target.nodeName){if(e(t).find("a:hover").length||e(".vamtam-header-mega-menu:visible").length)return void(i&&"fixedShownState"!==a&&s());var m=n.utils.getScrollDirection();d!==m&&(u=window.scrollY),d=m;const c=Math.abs(window.scrollY-u);if(window.scrollY>o&&c<20)return;if("up"===m)return void(window.pageYOffset>=10?"fixedShownState"!==a&&s():"noAnimState"!==a&&l());if("down"===m&&(window.pageYOffset>=10||i)){var h=!e(t).find(".elementor-menu-cart--shown").length;"fixedHiddenState"!==a&&h&&r()}}}),25);window.VAMTAM.isMaxDeviceWidth()?requestAnimationFrame(h):"noAnimState"!==a&&l()}),{passive:!0})}())},scrollBasedAnims:function(){var t=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(!t.length)return;var n,a={},i=this,o=function(e){e.forEach((function(e){var t=e.boundingClientRect.y,n=e.isIntersecting,o=e.target,r=Math.abs(parseFloat((100*e.intersectionRatio).toFixed(2))),s=a[o.dataset.vamtam_anim_id].lastScrollPercentage,l=a[o.dataset.vamtam_anim_id].lastScrollY,c=a[o.dataset.vamtam_anim_id].animateEl,d=function(){window.requestAnimationFrame((function(){c.style.setProperty("--vamtam-scroll-ratio",r+"%")}))};n&&l!==t&&("down"===i.utils.getScrollDirection()?s');var s=e(t).prev(".vamtam-scroll-anim-wrap");e(s).append(t),i=s[0]}a[t.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:i,animateEl:t},n.observe(i)}))},utils:{getAdminBarHeight:function(){return window.VAMTAM.adminBarHeight},watchScrollDirection:function(){var e=function(){return this.lastScrollTop=0,this.utils=this,{init:function(){},measure:function(e){this.direction=e>this.lastScrollTop?"down":"up"}.bind(this),mutate:function(e){this.utils.getScrollDirection=function(){return this.direction},this.lastScrollTop=e<=0?0:e}.bind(this)}}.bind(this);window.VAMTAM.addScrollHandler(e())},isTouchDevice:function(){const e=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||function(e){return window.matchMedia(e).matches}(["(",e.join("touch-enabled),("),"heartz",")"].join(""))}}}},window.VAMTAM.CUSTOM_ANIMATIONS.init(),document.addEventListener("DOMContentLoaded",(function(){window.VAMTAM.CUSTOM_ANIMATIONS.onDomReady()}),!0)}(jQuery);