var woodmartThemeModule={};!function(e){"use strict";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(o){woodmartThemeModule.supports_html5_storage=!1}woodmartThemeModule.$window=e(window),woodmartThemeModule.$document=e(document),woodmartThemeModule.$body=e("body"),woodmartThemeModule.windowWidth=woodmartThemeModule.$window.width(),woodmartThemeModule.removeDuplicatedStylesFromHTML=function(t,o,n=""){var r=e('<div class="temp-wrapper"></div>').append(t),i=e("head"),d=r.find("link"),s=0,a=!1,l=0;function m(){var t=d.length+l;s>=t&&!a&&(o(e(r.html())),a=!0)}n&&n.find("link").each(function(){l++;var t=e(this).clone();t.on("load error",function(){s++,m()}),i.append(t)}),0!==d.length||0!==l?(d.each(function(){void 0!==e(this).attr("id")&&-1!==e(this).attr("id").indexOf("theme_settings_")&&i.find('link[id*="theme_settings_"]:not([id*="theme_settings_default"])').remove()}),d.each(function(){var t=e(this),o=t.attr("id"),n=t.attr("href");if(void 0===o)return s++,void m();var r=-1!==o.indexOf("theme_settings_"),d=-1!==o.indexOf("theme_settings_default");t.remove(),void 0!==woodmart_page_css[o]||d?(s++,m()):(r||(woodmart_page_css[o]=n),i.append(t.on("load error",function(){s++,m()})))})):o(t)},woodmartThemeModule.debounce=function(e,t,o){var n;return function(){var r=this,i=arguments,d=o&&!n;clearTimeout(n),n=setTimeout(function(){n=null,o||e.apply(r,i)},t),d&&e.apply(r,i)}},woodmartThemeModule.wdElementorAddAction=function(e,t){woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&elementorFrontend.hooks.addAction(e,t)})},woodmartThemeModule.slideUp=function(e,t){t=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(function(){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){t=t||400,e.style.removeProperty("display");var 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(function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)},woodmartThemeModule.googleMapsCallback=function(){return""};var t=null;woodmartThemeModule.$document.on("wdOpenSide wdOpenSearch",".wd-side-hidden, .wd-fs-menu, [class*=wd-search-full-screen]",function(){var o=e(this);t=document.activeElement,o.attr("tabindex")||o.attr("tabindex","-1"),o.trigger("focus"),e(document).on("focusin.wd",function(t){t.target===o[0]||o[0].contains(t.target)||e(t.target).closest(".mfp-wrap").length||o.trigger("focus")})}).on("wdCloseSide wdCloseSearch",".wd-side-hidden, .wd-fs-menu, [class*=wd-search-full-screen]",function(){e(document).off("focusin.wd"),t&&document.contains(t)&&(t.closest(".wd-quick-shop, .wd-quick-shop-2")&&(t=t.closest(".wd-product").querySelector(".wd-product-img-link")),e(t).trigger("focus"),t=null)}),woodmartThemeModule.$document.on("keyup",".wd-role-btn[tabindex]",function(t){13===t.which&&(e(this).trigger("click"),t.preventDefault())})}(jQuery),window.addEventListener("load",function(){var e=["keydown","scroll","mouseover","touchmove","touchstart","mousedown","mousemove"],t=function(){window.dispatchEvent(new CustomEvent("wdEventStarted")),o()},o=function(){e.forEach(function(e){window.removeEventListener(e,t)})};setTimeout(function(){e.forEach(function(e){!function(e){window.addEventListener(e,t)}(e)})},100)});
!function(e){"use strict";woodmartThemeModule.wdElementorAddAction("frontend/element_ready/global",function(e){e.removeClass("wd-animation-ready wd-animated wd-in"),woodmartThemeModule.$document.trigger("wdElementorGlobalReady")}),e.each(["frontend/element_ready/column","frontend/element_ready/container"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(e){e.removeClass("wd-animation-ready wd-animated wd-in"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdElementorColumnReady")},100)})}),woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&"enabled"===woodmart_settings.elementor_no_gap&&(e.each(["frontend/element_ready/section","frontend/element_ready/container"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(e){e.removeClass("wd-animation-ready wd-animated wd-in"),woodmartThemeModule.$document.trigger("wdElementorSectionReady")}),elementorFrontend.hooks.addAction(t,function(e){var t,n,o=e.data("model-cid");void 0!==elementorFrontend.config.elements.data[o]&&(t=elementorFrontend.config.elements.data[o],n="",void 0!==t.attributes.elType&&("container"===t.attributes.elType?n="boxed"!==t.attributes.content_width||t.attributes.boxed_width.size:"section"===t.attributes.elType&&(n=t.attributes.content_width.size)),n||e.addClass("wd-negative-gap"))})}),elementor.channels.editor.on("change:section change:container",function(t){!function(t){var n=t.elementSettingsModel.changed;if(void 0!==n.content_width||void 0!==n.boxed_width){var o=[];"container"===t.elementSettingsModel.attributes.elType?void 0!==n.boxed_width&&(o=n.boxed_width.size):void 0!==n.content_width&&(o=n.content_width.size);var d=t._parent.model.id,i=e(".elementor-element-"+d);o?i.removeClass("wd-negative-gap"):i.addClass("wd-negative-gap")}}(t)}))})}(jQuery);
!function(o){woodmartThemeModule.ajaxFilters=function(){if(woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==o.fn.pjax&&!woodmartThemeModule.$body.hasClass("single-product")&&!woodmartThemeModule.$body.hasClass("elementor-editor-active")&&0!==o('.products[data-source="main_loop"]').length){var e=!1,t=!1;woodmartThemeModule.$document.on("pjax:popstate",function(o){t=!0}),woodmartThemeModule.$document.on("pjax:end",function(){t&&(woodmartThemeModule.$document.trigger("wdShopPageInit"),t=!1)}),woodmartThemeModule.$body.on("click",".post-type-archive-product .products-footer .woocommerce-pagination a",function(){d(!0)}),woodmartThemeModule.$document.pjax(woodmart_settings.ajax_links,".wd-page-content",{timeout:woodmart_settings.pjax_timeout,scrollTo:!1,renderCallback:function(o,e,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(e,function(e){o.html(e),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")},o)}}),"click"===woodmart_settings.price_filter_action?woodmartThemeModule.$document.on("click",".widget_price_filter form .button",function(){var e=o(".widget_price_filter form");return o.pjax({container:".wd-page-content",timeout:woodmart_settings.pjax_timeout,url:e.attr("action"),data:e.serialize(),scrollTo:!1,renderCallback:function(o,e,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(e,function(e){o.html(e),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")},o)}}),!1}):"submit"===woodmart_settings.price_filter_action&&woodmartThemeModule.$document.on("submit",".widget_price_filter form",function(e){o.pjax.submit(e,".wd-page-content")}),woodmartThemeModule.$document.on("pjax:error",function(o,e,t){console.log("pjax error "+t)}),woodmartThemeModule.$document.on("pjax:start",function(){var e=o(".wd-content-layout");e.removeClass("wd-loaded"),e.addClass("wd-loading"),woodmartThemeModule.$document.trigger("wdPjaxStart"),woodmartThemeModule.$window.trigger("scroll.loaderVerticalPosition")}),woodmartThemeModule.$document.on("pjax:complete",function(){woodmartThemeModule.$window.off("scroll.loaderVerticalPosition"),d(!1),woodmartThemeModule.$document.trigger("wood-images-loaded"),o(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),"undefined"!=typeof woodmart_wpml_js_data&&woodmart_wpml_js_data.languages&&o.each(woodmart_wpml_js_data.languages,function(e,t){o(".wpml-ls-item-"+t.code+" > :is(.woodmart-nav-link, .wpml-ls-link)").attr("href",t.url)})}),woodmartThemeModule.$document.on("pjax:beforeReplace",function(){o(".filters-area").hasClass("filters-opened")&&"yes"===woodmart_settings.shop_filters_close&&(e=!0,woodmartThemeModule.$body.addClass("body-filters-opened"))}),woodmartThemeModule.$document.on("wdShopPageInit",function(){var t=o(".wd-content-layout");e&&(o(".filters-area").css("display","block"),woodmartThemeModule.openFilters(200),e=!1),t.removeClass("wd-loading"),t.addClass("wd-loaded")});var d=function(e){if("no"===woodmart_settings.ajax_scroll&&!1===e)return!1;var t=o(woodmart_settings.ajax_scroll_class).offset().top-woodmart_settings.ajax_scroll_offset;o("html, body").stop().animate({scrollTop:t},400)}}},o(document).ready(function(){woodmartThemeModule.ajaxFilters()})}(jQuery);
!function(o){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.sortByWidget()}),woodmartThemeModule.sortByWidget=function(){if(woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==o.fn.pjax){var e=o(".woocommerce-ordering");e.on("change","select.orderby",function(){var e=o(this).closest("form");e.find('[name="_pjax"]').remove(),o.pjax({container:".wd-page-content",timeout:woodmart_settings.pjax_timeout,url:"?"+e.serialize(),scrollTo:!1,renderCallback:function(o,e,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(e,function(e){o.html(e),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")},o)}})}),e.on("submit",function(o){o.preventDefault(o)})}},o(document).ready(function(){woodmartThemeModule.sortByWidget()})}(jQuery);
!function(o){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.shopPageInit()}),woodmartThemeModule.shopPageInit=function(){woodmartThemeModule.clickOnScrollButton(".wd-products-load-more.load-on-scroll",!1,woodmart_settings.infinit_scroll_offset),o("body > .tooltip").remove(),woodmartThemeModule.$body.on("updated_wc_div",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour")}}(jQuery);
!function(t){woodmartThemeModule.clickOnScrollButton=function(n,o,e){if("function"==typeof t.fn.waypoint){var i=t(n);if(0!==i.length){i.trigger("wd-waypoint-destroy"),e||(e=0);var a=new Waypoint({element:i[0],handler:function(){i.trigger("click")},offset:function(){return woodmartThemeModule.$window.outerHeight()+parseInt(e)}});i.data("waypoint-inited",!0).off("wd-waypoint-destroy").on("wd-waypoint-destroy",function(){i.data("waypoint-inited")&&(a.destroy(),i.data("waypoint-inited",!1))})}}}}(jQuery);
!function(o){woodmartThemeModule.$document.on("wdShopPageInit wdBackHistory",function(){woodmartThemeModule.backHistory()}),woodmartThemeModule.backHistory=function(){o(".wd-back-btn > a").off("click").on("click",function(e){e.preventDefault(),history.go(-1),setTimeout(function(){o(".filters-area").removeClass("filters-opened").stop().hide(),woodmartThemeModule.$window.width()<=1024&&o(".wd-nav-product-cat").removeClass("categories-opened").stop().hide(),woodmartThemeModule.$document.trigger("wdBackHistory")},20)})},o(document).ready(function(){woodmartThemeModule.backHistory()})}(jQuery);
!function(e){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.widgetCollapse()}),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.widgetCollapse()},300)),woodmartThemeModule.widgetCollapse=function(){var o=e(".main-footer .footer-widget");"yes"===woodmart_settings.collapse_footer_widgets&&0<o.length&&(woodmartThemeModule.$window.innerWidth()<=575?o.addClass("wd-widget-collapse"):(o.removeClass("wd-widget-collapse"),o.find("> *:not(.widget-title, style, link)").show())),e(".wd-widget-collapse .widget-title").off("click").on("click",function(){var o=e(this).parent(),d=o.find("> *:not(.widget-title, style, link)");o.hasClass("wd-opened")?(o.removeClass("wd-opened"),d.stop().slideUp(200)):(o.addClass("wd-opened"),d.stop().slideDown(200),woodmartThemeModule.$document.trigger("wood-images-loaded"))})},e(document).ready(function(){woodmartThemeModule.widgetCollapse()})}(jQuery);