File: /home/lgooir/public_html/wp-content/themes/woodmart/js/scripts/global/helpers.min.js
var woodmartThemeModule={};!function(s){woodmartThemeModule.supports_html5_storage=!1;try{woodmartThemeModule.supports_html5_storage="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wd","test"),window.sessionStorage.removeItem("wd")}catch(e){woodmartThemeModule.supports_html5_storage=!1}woodmartThemeModule.$window=s(window),woodmartThemeModule.$document=s(document),woodmartThemeModule.$body=s("body"),woodmartThemeModule.windowWidth=woodmartThemeModule.$window.width(),woodmartThemeModule.removeURLParameter=function(e,t){var o=e.split("?");if(2<=o.length){for(var n=encodeURIComponent(t)+"=",d=o[1].split(/[&;]/g),r=d.length;0<r--;)-1!==d[r].lastIndexOf(n,0)&&d.splice(r,1);return o[0]+(0<d.length?"?"+d.join("&"):"")}return e},woodmartThemeModule.removeDuplicatedStylesFromHTML=function(e,r){var i=s('<div class="temp-wrapper"></div>').append(e),a=i.find("link"),l=0,m=!1;0===a.length?r(e):(setTimeout(function(){l<=a.length&&!m&&(r(s(i.html())),m=!0)},500),a.each(function(){void 0!==s(this).attr("id")&&-1!==s(this).attr("id").indexOf("theme_settings_")&&s("head").find('link[id*="theme_settings_"]:not([id*="theme_settings_default"])').remove()}),a.each(function(){var e,t,o=s(this),n=o.attr("id"),d=o.attr("href");void 0!==n&&(e=-1!==n.indexOf("theme_settings_"),t=-1!==n.indexOf("theme_settings_default"),o.remove(),void 0!==woodmart_page_css[n]||t?++l>=a.length&&!m&&(r(s(i.html())),m=!0):(e||(woodmart_page_css[n]=d),s("head").append(o.on("load",function(){++l>=a.length&&!m&&(r(s(i.html())),m=!0)}))))}))},woodmartThemeModule.debounce=function(n,d,r){var i;return function(){var e=this,t=arguments,o=r&&!i;clearTimeout(i),i=setTimeout(function(){i=null,r||n.apply(e,t)},d),o&&n.apply(e,t)}},woodmartThemeModule.wdElementorAddAction=function(e,t){woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&elementorFrontend.hooks.addAction(e,t)})},woodmartThemeModule.wdElementorAddAction("frontend/element_ready/global",function(e){e.removeClass("wd-animation-ready"),e.removeClass("wd-animated"),e.removeClass("wd-in"),woodmartThemeModule.$document.trigger("wdElementorGlobalReady")}),s.each(["frontend/element_ready/column","frontend/element_ready/container"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(e){e.removeClass("wd-animation-ready"),e.removeClass("wd-animated"),e.removeClass("wd-in"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdElementorColumnReady")},100)})}),woodmartThemeModule.shopLoadMoreBtn=".wd-products-load-more.load-on-scroll",woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&"enabled"===woodmart_settings.elementor_no_gap&&(s.each(["frontend/element_ready/section","frontend/element_ready/container"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(e){e.removeClass("wd-animation-ready"),e.removeClass("wd-animated"),e.removeClass("wd-in"),woodmartThemeModule.$document.trigger("wdElementorSectionReady")}),elementorFrontend.hooks.addAction(t,function(e){var t,o=e.data("model-cid");void 0!==elementorFrontend.config.elements.data[o]&&(t="",void 0!==elementorFrontend.config.elements.data[o].attributes.elType&&("container"===elementorFrontend.config.elements.data[o].attributes.elType?t="boxed"!==elementorFrontend.config.elements.data[o].attributes.content_width||elementorFrontend.config.elements.data[o].attributes.boxed_width.size:"section"===elementorFrontend.config.elements.data[o].attributes.elType&&(t=elementorFrontend.config.elements.data[o].attributes.content_width.size)),t||e.addClass("wd-negative-gap"))})}),elementor.channels.editor.on("change:section change:container",function(e){var t,o=e.elementSettingsModel.changed;void 0===o.content_width&&void 0===o.boxed_width||(t=[],"container"===e.elementSettingsModel.attributes.elType?void 0!==o.boxed_width&&(t=o.boxed_width.size):void 0!==o.content_width&&(t=o.content_width.size),o=e._parent.model.id,e=s(".elementor-element-"+o),t?e.removeClass("wd-negative-gap"):e.addClass("wd-negative-gap"))}))}),woodmartThemeModule.$window.on("load",function(){s(".wd-preloader").delay(parseInt(woodmart_settings.preloader_delay)).addClass("preloader-hide"),s(".wd-preloader-style").remove(),setTimeout(function(){s(".wd-preloader").remove()},200)}),woodmartThemeModule.googleMapsCallback=function(){return""};var e=null;woodmartThemeModule.$document.on("wdOpenSide wdOpenSearch",".wd-side-hidden, .wd-fs-menu, [class*=wd-search-full-screen]",function(){var t=s(this);e=document.activeElement,t.attr("tabindex")||t.attr("tabindex","-1"),t.trigger("focus"),s(document).on("focusin.wd",function(e){e.target===t[0]||t[0].contains(e.target)||t.trigger("focus")})}).on("wdCloseSide wdCloseSearch",".wd-side-hidden, .wd-fs-menu, [class*=wd-search-full-screen]",function(){s(document).off("focusin.wd"),e&&document.contains(e)&&(e.closest(".wd-quick-shop, .wd-quick-shop-2")&&(e=e.closest(".wd-product").querySelector(".product-image-link")),s(e).trigger("focus"),e=null)}),woodmartThemeModule.$document.on("keyup",".wd-role-btn[tabindex]",function(e){13===e.which&&(s(this).trigger("click"),e.preventDefault())})}(jQuery),woodmartThemeModule.slideUp=function(e,t=400){e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",window.getComputedStyle(e).height,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout(()=>{e.style.display="none";e.style.removeProperty("height");e.style.removeProperty("padding-top");e.style.removeProperty("padding-bottom");e.style.removeProperty("margin-top");e.style.removeProperty("margin-bottom");e.style.removeProperty("overflow");e.style.removeProperty("transition-duration");e.style.removeProperty("transition-property")},t)},woodmartThemeModule.slideDown=function(e,t=400){e.style.removeProperty("display");let o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o;var n=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.getComputedStyle(e).height,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=n+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout(()=>{e.style.removeProperty("height");e.style.removeProperty("overflow");e.style.removeProperty("transition-duration");e.style.removeProperty("transition-property")},t)},woodmartThemeModule.slideToggle=function(e,t=400){return"none"===window.getComputedStyle(e).display?woodmartThemeModule.slideDown(e,t):woodmartThemeModule.slideUp(e,t)},window.addEventListener("load",function(){function t(e){window.dispatchEvent(new CustomEvent("wdEventStarted")),o()}var e=["keydown","scroll","mouseover","touchmove","touchstart","mousedown","mousemove"],o=function(){e.forEach(function(e){window.removeEventListener(e,t)})};setTimeout(function(){e.forEach(function(e){window.addEventListener(e,t)})},100)});