Warning: Undefined variable $code in /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php on line 171

Warning: Undefined variable $data in /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php on line 171

Warning: Trying to access array offset on value of type null in /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php on line 171

Warning: Undefined variable $dev in /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php:171) in /home/uwxijom1/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php:171) in /home/uwxijom1/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php:171) in /home/uwxijom1/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php:171) in /home/uwxijom1/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/uwxijom1/public_html/wp-content/themes/woodmart/inc/classes/class-activation.php:171) in /home/uwxijom1/public_html/wp-content/plugins/jetpack-boost/app/lib/minify/functions-service.php on line 34
!function(f){function t(t,e,n){return n=u(e,n),this.on("click.pjax",t,function(t){var e=n;e.container||((e=f.extend({},n)).container=f(this).attr("data-pjax")),a(t,e)})}function a(t,e,n){n=u(e,n);var e=t.currentTarget,a=f(e);if("A"!==e.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";1",{method:"GET"===a?"GET":"POST",action:n,style:"display:none"}),o=("GET"!==a&&"POST"!==a&&r.append(f("",{type:"hidden",name:"_method",value:a.toLowerCase()})),t.data);if("string"==typeof o)f.each(o.split("&"),function(t,e){e=e.split("=");r.append(f("",{type:"hidden",name:e[0],value:e[1]}))});else if(Array.isArray(o))f.each(o,function(t,e){r.append(f("",{type:"hidden",name:e.name,value:e.value}))});else if("object"==typeof o)for(e in o)r.append(f("",{type:"hidden",name:e,value:o[e]}));f(document.body).append(r),r.submit()}function x(t){t&&t.readyState<4&&(t.onreadystatechange=f.noop,t.abort())}function g(){return(new Date).getTime()}function y(t){t=t.clone();return t.find("script").each(function(){this.src||jQuery._data(this,"globalEval",!1)}),t.contents()}function c(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,"").replace(/^&/,""),t.href.replace(/\?($|#)/,"$1")}function j(t){var e=document.createElement("a");return e.href=t,e}function s(t){return t.href.replace(/#.*/,"")}function u(t,e){return t&&e?((e=f.extend({},e)).container=t,e):f.isPlainObject(t)?t:{container:t}}function d(t,e){return t.filter(e).add(t.find(e))}function v(t){return f.parseHTML(t,document,!0)}function w(t,e,n){var a,r={},o=/]*>([\s\S.]*)<\/body>/i)[0])),null!=(e=t.match(/]*>([\s\S.]*)<\/head>/i))?f(v(e[0])):a):a=f(v(t)),0!==a.length&&(r.title=d(e,"title").last().text(),n.fragment?(t=a,(t="body"!==n.fragment?d(t,n.fragment).first():t).length&&(r.contents="body"===n.fragment?t:t.contents(),r.title||(r.title=t.attr("title")||t.data("title")))):o||(r.contents=a),r.contents&&(r.contents=r.contents.not(function(){return f(this).is("title")}),r.contents.find("title").remove(),r.scripts=d(r.contents,"script[src]").remove(),r.contents=r.contents.not(r.scripts)),r.title)&&(r.title=null==(e=r.title)?"":"string"==typeof e?e.trim():(e+"").replace("/^[\\s\ufeff ]+|[\\s\ufeff ]+$/g","")),r}r&&r.container&&(h.state=r),"state"in window.history&&(l=!1);var b={},T=[],E=[];function S(t,e){for(;t.length>e;)delete b[t.shift()]}function C(){return f("meta").filter(function(){var t=f(this).attr("http-equiv");return t&&"X-PJAX-VERSION"===t.toUpperCase()}).attr("content")}function P(){f.fn.pjax=t,f.pjax=h,f.pjax.enable=f.noop,f.pjax.disable=A,f.pjax.click=a,f.pjax.submit=e,f.pjax.reload=n,f.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:C},f(window).on("popstate.pjax",o)}function A(){f.fn.pjax=function(){return this},f.pjax=i,f.pjax.enable=P,f.pjax.disable=f.noop,f.pjax.click=f.noop,f.pjax.submit=f.noop,f.pjax.reload=function(){window.location.reload()},f(window).off("popstate.pjax",o)}"state"in f.Event.prototype||f.event.addProp("state"),f.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),(f.support.pjax?P:A)()}(jQuery);; var woodmartThemeModule={};!function(m){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=m(window),woodmartThemeModule.$document=m(document),woodmartThemeModule.$body=m("body"),woodmartThemeModule.windowWidth=woodmartThemeModule.$window.width(),woodmartThemeModule.removeURLParameter=function(e,t){var o=e.split("?");if(2<=o.length){for(var r=encodeURIComponent(t)+"=",n=o[1].split(/[&;]/g),d=n.length;0').append(e),l=a.find("link"),i=0,s=!1;0===l.length?d(e):(setTimeout(function(){i<=l.length&&!s&&(d(m(a.html())),s=!0)},500),l.each(function(){void 0!==m(this).attr("id")&&-1!==m(this).attr("id").indexOf("theme_settings_")&&m("head").find('link[id*="theme_settings_"]:not([id*="theme_settings_default"])').remove()}),l.each(function(){var e,t,o=m(this),r=o.attr("id"),n=o.attr("href");void 0!==r&&(e=-1!==r.indexOf("theme_settings_"),t=-1!==r.indexOf("theme_settings_default"),o.remove(),void 0!==woodmart_page_css[r]||t?++i>=l.length&&!s&&(d(m(a.html())),s=!0):(e||(woodmart_page_css[r]=n),m("head").append(o.on("load",function(){++i>=l.length&&!s&&(d(m(a.html())),s=!0)}))))}))},woodmartThemeModule.debounce=function(r,n,d){var a;return function(){var e=this,t=arguments,o=d&&!a;clearTimeout(a),a=setTimeout(function(){a=null,d||r.apply(e,t)},n),o&&r.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.attr("style")&&0===e.attr("style").indexOf("transform:translate3d")&&!e.hasClass("wd-parallax-on-scroll")&&e.attr("style",""),e.removeClass("wd-animated"),e.data("wd-waypoint",""),e.removeClass("wd-anim-ready"),woodmartThemeModule.$document.trigger("wdElementorGlobalReady")}),m.each(["frontend/element_ready/column","frontend/element_ready/container"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(e){e.attr("style")&&0===e.attr("style").indexOf("transform:translate3d")&&!e.hasClass("wd-parallax-on-scroll")&&e.attr("style",""),e.removeClass("wd-animated"),e.data("wd-waypoint",""),e.removeClass("wd-anim-ready"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdElementorColumnReady")},100)})}),woodmartThemeModule.setupMainCarouselArg=function(){woodmartThemeModule.$mainCarouselWrapper=m(".woocommerce-product-gallery");var e=1;(woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered")||woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-carousel_two_columns"))&&(e=2),woodmartThemeModule.mainCarouselArg={slidesPerView:e,loop:woodmart_settings.product_slider_autoplay,centeredSlides:woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered"),initialSlide:woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered")?woodmart_settings.centered_gallery_start:0,autoHeight:"yes"===woodmart_settings.product_slider_auto_height,grabCursor:!0,a11y:{enabled:!1},slideClass:"wd-carousel-item",slideActiveClass:"wd-active",slideVisibleClass:"wd-slide-visible",slideNextClass:"wd-next",slidePrevClass:"wd-prev",containerModifierClass:"wd-",wrapperClass:"wd-carousel-wrap",on:{slideChange:function(){document.querySelector(".woocommerce-product-gallery__wrapper.wd-carousel").dispatchEvent(new CustomEvent("wdSlideChange",{activeIndex:this.activeIndex})),woodmartThemeModule.$document.trigger("wood-images-loaded")}}},document.querySelector(".woocommerce-product-gallery__wrapper.wd-carousel")&&document.querySelector(".woocommerce-product-gallery__wrapper.wd-carousel").parentElement.querySelector(".wd-btn-arrow.wd-next")&&(woodmartThemeModule.mainCarouselArg.navigation={nextEl:document.querySelector(".woocommerce-product-gallery__wrapper.wd-carousel").parentElement.querySelector(".wd-btn-arrow.wd-next"),prevEl:document.querySelector(".woocommerce-product-gallery__wrapper.wd-carousel").parentElement.querySelector(".wd-btn-arrow.wd-prev"),disabledClass:"wd-disabled",lockClass:"wd-lock",hiddenClass:"wd-hide"}),woodmart_settings.product_slider_autoplay&&(woodmartThemeModule.mainCarouselArg.autoplay={delay:3e3,pauseOnMouseEnter:!0}),woodmartThemeModule.$mainCarouselWrapper.find(".wd-nav-pagin-wrap").length&&(woodmartThemeModule.mainCarouselArg.pagination={el:document.querySelector(".woocommerce-product-gallery .wd-nav-pagin"),type:"bullets",clickable:!0,bulletClass:"wd-nav-pagin-item",bulletActiveClass:"wd-active",modifierClass:"wd-type-",lockClass:"wd-lock",currentClass:"wd-current",totalClass:"wd-total",hiddenClass:"wd-hidden",clickableClass:"wd-clickable",horizontalClass:"wd-horizontal",verticalClass:"wd-vertical",paginationDisabledClass:"wd-disabled",renderBullet:function(e,t){var o="";return'
  • '+(o=woodmartThemeModule.$mainCarouselWrapper.find(".wd-nav-pagin-wrap").hasClass("wd-style-number-2")&&(o=e+1)<=9?"0"+o:o)+"
  • "}})},woodmartThemeModule.shopLoadMoreBtn=".wd-products-load-more.load-on-scroll",woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&"enabled"===woodmart_settings.elementor_no_gap&&(m.each(["frontend/element_ready/section","frontend/element_ready/container"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(e){e.attr("style")&&0===e.attr("style").indexOf("transform:translate3d")&&!e.hasClass("wd-parallax-on-scroll")&&e.attr("style",""),e.removeClass("wd-animated"),e.data("wd-waypoint",""),e.removeClass("wd-anim-ready"),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=m(".elementor-element-"+o),t?e.removeClass("wd-negative-gap"):e.addClass("wd-negative-gap"))}))}),woodmartThemeModule.$window.on("load",function(){m(".wd-preloader").delay(parseInt(woodmart_settings.preloader_delay)).addClass("preloader-hide"),m(".wd-preloader-style").remove(),setTimeout(function(){m(".wd-preloader").remove()},200)}),woodmartThemeModule.googleMapsCallback=function(){return""}}(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 r=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=r+"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)})};e.forEach(function(e){window.addEventListener(e,t)})});; !function(e){woodmartThemeModule.woocommerceNotices=function(){woodmartThemeModule.$body.on("click",".woocommerce-error, .woocommerce-info, .woocommerce-message, div.wpcf7-response-output, #yith-wcwl-popup-message, .mc4wp-alert, .dokan-store-contact .alert-success, .yith_ywraq_add_item_product_message",function(){o(e(this))});var o=function(o){o.removeClass("shown-notice").addClass("hidden-notice")}},e(document).ready(function(){woodmartThemeModule.woocommerceNotices()})}(jQuery);; !function(t){woodmartThemeModule.ajaxFilters=function(){var e,o;!woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")||void 0===t.fn.pjax||woodmartThemeModule.$body.hasClass("single-product")||woodmartThemeModule.$body.hasClass("elementor-editor-active")||0===t('.products[data-source="main_loop"]').length||(window.addEventListener("popstate",function o(e){e.target.removeEventListener("popstate",o,!1),woodmartThemeModule.$document.trigger("wdShopPageInit")}),e=!1,woodmartThemeModule.$body.on("click",".post-type-archive-product .products-footer .woocommerce-pagination a",function(){o(!0)}),woodmartThemeModule.$document.pjax(woodmart_settings.ajax_links,".wd-page-content",{timeout:woodmart_settings.pjax_timeout,scrollTo:!1,renderCallback:function(e,o,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(o){e.html(o),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),"click"===woodmart_settings.price_filter_action?woodmartThemeModule.$document.on("click",".widget_price_filter form .button",function(){var o=t(".widget_price_filter form");return t.pjax({container:".wd-page-content",timeout:woodmart_settings.pjax_timeout,url:o.attr("action"),data:o.serialize(),scrollTo:!1,renderCallback:function(e,o,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(o){e.html(o),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),!1}):"submit"===woodmart_settings.price_filter_action&&woodmartThemeModule.$document.on("submit",".widget_price_filter form",function(o){t.pjax.submit(o,".wd-page-content")}),woodmartThemeModule.$document.on("pjax:error",function(o,e,t){console.log("pjax error "+t)}),woodmartThemeModule.$document.on("pjax:start",function(){var o=t(".wd-content-layout");o.removeClass("wd-loaded"),o.addClass("wd-loading"),woodmartThemeModule.$document.trigger("wdPjaxStart"),woodmartThemeModule.$window.trigger("scroll.loaderVerticalPosition")}),woodmartThemeModule.$document.on("pjax:complete",function(){woodmartThemeModule.$window.off("scroll.loaderVerticalPosition"),o(!1),woodmartThemeModule.$document.trigger("wood-images-loaded"),t(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),"undefined"!=typeof woodmart_wpml_js_data&&woodmart_wpml_js_data.languages&&t.each(woodmart_wpml_js_data.languages,function(o,e){t(".wpml-ls-item-"+e.code+" .wpml-ls-link").attr("href",e.url)})}),woodmartThemeModule.$document.on("pjax:beforeReplace",function(){t(".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 o=t(".wd-content-layout");e&&(t(".filters-area").css("display","block"),woodmartThemeModule.openFilters(200),e=!1),o.removeClass("wd-loading"),o.addClass("wd-loaded")}),o=function(o){if("no"===woodmart_settings.ajax_scroll&&!1===o)return!1;o=t(woodmart_settings.ajax_scroll_class).offset().top-woodmart_settings.ajax_scroll_offset;t("html, body").stop().animate({scrollTop:o},400)})},t(document).ready(function(){woodmartThemeModule.ajaxFilters()}),window.addEventListener("popstate",function(){woodmartThemeModule.ajaxFilters()})}(jQuery);; !function(e){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.sortByWidget()}),woodmartThemeModule.sortByWidget=function(){var o;woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==e.fn.pjax&&((o=e(".woocommerce-ordering")).on("change","select.orderby",function(){var o=e(this).closest("form");o.find('[name="_pjax"]').remove(),e.pjax({container:".wd-page-content",timeout:woodmart_settings.pjax_timeout,url:"?"+o.serialize(),scrollTo:!1,renderCallback:function(e,o,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(o){e.html(o),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}})}),o.on("submit",function(o){o.preventDefault(o)}))},e(document).ready(function(){woodmartThemeModule.sortByWidget()})}(jQuery);; !function(o){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.shopPageInit()}),woodmartThemeModule.shopPageInit=function(){woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!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(a){woodmartThemeModule.clickOnScrollButton=function(t,n,o){var e,i;"function"==typeof a.fn.waypoint&&0!==(e=a(t)).length&&(e.trigger("wd-waypoint-destroy"),o=o||0,i=new Waypoint({element:e[0],handler:function(){e.trigger("click")},offset:function(){return woodmartThemeModule.$window.outerHeight()+parseInt(o)}}),e.data("waypoint-inited",!0).off("wd-waypoint-destroy").on("wd-waypoint-destroy",function(){e.data("waypoint-inited")&&(i.destroy(),e.data("waypoint-inited",!1))}))}}(jQuery);; !function(e){woodmartThemeModule.$document.on("wdShopPageInit wdBackHistory",function(){woodmartThemeModule.backHistory()}),woodmartThemeModule.backHistory=function(){e(".wd-back-btn > a").off("click").on("click",function(o){o.preventDefault(),history.go(-1),setTimeout(function(){e(".filters-area").removeClass("filters-opened").stop().hide(),woodmartThemeModule.$window.width()<=1024&&e(".wd-nav-product-cat").removeClass("categories-opened").stop().hide(),woodmartThemeModule.$document.trigger("wdBackHistory")},20)})},e(document).ready(function(){woodmartThemeModule.backHistory()})}(jQuery);; /*! PWA — easy way to Progressive Web App - 1.7.0 * https://github.com/iworks/iworks-pwa * Copyright (c) 2025; * Licensed GPL-3.0 */ window.addEventListener("load",function(a){var b;const c=document.querySelector("#iworks-pwa-add-button"),d=document.querySelector("#iworks-pwa-add-button-container");c&&window.addEventListener("beforeinstallprompt",function(a){a.preventDefault(),b=a,d.style.display="block",c.addEventListener("click",function(){d.style.display="none",b.prompt(),b.userChoice.then(function(a){"accepted"===a.outcome,b=null})})})}),"serviceWorker"in navigator&&navigator.serviceWorker.register(window.iworks_pwa.serviceWorkerUri).then(function(a){})["catch"](function(a){});; !function(f){woodmartThemeModule.headerBuilder=function(){var a,s,r=f(".whb-header"),t=f(".header-banner"),e=f(".whb-sticky-row"),l="",d=woodmartThemeModule.$window,h=!1,n=300,o="",w=r.hasClass("whb-hide-on-scroll");if(e.each(function(){var e=f(this);if(10]+)?%>|{{([^{}]+)}}/g,function(e){e=e.slice(2,-2);return r.find(e).length?f("
    ").append(r.find(e).first().clone()).html():void 0!==s[e]?s[e]:""})).replace(/]*>/g,"")).replace("whb-col-1","")).replace("dropdowns-loading",""),r.after(o),(r=r.parent().find(".whb-clone")).find(".whb-row").removeClass("whb-flex-equal-sides").addClass("whb-flex-flex-middle"),window.dispatchEvent(new CustomEvent("wdHeaderBuilderCloneCreated"))),d.on("scroll",function(){var e=n,s=woodmartThemeModule.$window.scrollTop(),l=woodmartThemeModule.$window.height(),d=woodmartThemeModule.$document.height(),o=(0{window.addEventListener(e,function(){woodmartThemeModule.headerBuilder()})})}(jQuery);; !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(d){"use strict";var n={escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},o=27,s=9,i=13,a=38,l=39,r=40;function u(e,t){function n(){}var o=this,s={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:u.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:n,onSearchComplete:n,onSearchError:n,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?JSON.parse(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};o.element=e,o.el=d(e),o.suggestions=[],o.badQueries=[],o.selectedIndex=-1,o.currentValue=o.element.value,o.intervalId=0,o.cachedResponse={},o.onChangeInterval=null,o.onChange=null,o.isLocal=!1,o.suggestionsContainer=null,o.noSuggestionsContainer=null,o.options=d.extend({},s,t),o.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},o.hint=null,o.hintValue="",o.selection=null,o.initialize(),o.setOptions(t)}u.utils=n,(d.Autocomplete=u).formatResult=function(e,t){t="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(t,"gi"),"$1").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},u.prototype={killerFn:null,initialize:function(){var e,t=this,n="."+t.classes.suggestion,o=t.classes.selected,s=t.options;t.element.setAttribute("autocomplete","off"),t.killerFn=function(e){0===d(e.target).closest("."+t.options.containerClass).length&&(t.killSuggestions(),t.disableKillerFn())},t.noSuggestionsContainer=d('
    ').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=u.utils.createNode(s.containerClass),(e=d(t.suggestionsContainer)).appendTo(s.appendTo),"auto"!==s.width&&e.width(s.width),e.on("mouseover.autocomplete",n,function(){t.activate(d(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.children("."+o).removeClass(o)}),e.on("click.autocomplete",n,function(){t.select(d(this).data("index"))}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},d(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition(),0===e.options.minChars&&0===e.el.val().length&&e.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(e){var t=this,n=t.options;d.extend(n,e),t.isLocal=Array.isArray(n.lookup),t.isLocal&&(n.lookup=t.verifySuggestionsFormat(n.lookup)),n.orientation=t.validateOrientation(n.orientation,"bottom"),d(t.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearInterval(e.onChangeInterval),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e,t,n,o,s,i,a,l,r=this,u=d(r.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!r.options.forceFixPosition||(i=r.options.orientation,e=u.outerHeight(),t=r.el.outerHeight(),n={top:(l=r.el.offset()).top,left:l.left},"auto"===i&&(a=d(window).height(),o=-(s=d(window).scrollTop())+l.top-e,s=s+a-(l.top+t+e),i=Math.max(o,s)===o?"top":"bottom"),n.top+="top"===i?-e:t,c!==document.body&&(a=u.css("opacity"),r.visible||u.css("opacity",0).show(),l=u.offsetParent().offset(),n.top-=l.top,n.left-=l.left,r.visible||u.css("opacity",a).hide()),"auto"===r.options.width&&(n.width=r.el.outerWidth()-2+"px"),u.css(n))},enableKillerFn:function(){d(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){d(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.el.val(e.currentValue),e.hide()),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e=this.el.val().length,t=this.element.selectionStart;return"number"==typeof t?t===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==r||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case o:t.el.val(t.currentValue),t.hide();break;case l:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case s:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case i:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case r:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case r:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),0s&&(e.suggestions=e.suggestions.slice(0,s)),e},getSuggestions:function(o){var e,t,n,s=this,i=s.options,a=i.serviceUrl;i.params[i.paramName]=o,e=i.ignoreParams?null:i.params,!1!==i.onSearchStart.call(s.element,i.params)&&("function"==typeof i.lookup?i.lookup(o,function(e){s.suggestions=e.suggestions,s.suggest(),i.onSearchComplete.call(s.element,o,e.suggestions)}):(n=s.isLocal?s.getSuggestionsLocal(o):("function"==typeof a&&(a=a.call(s.element,o)),t=a+"?"+d.param(e||{}),s.cachedResponse[t]))&&Array.isArray(n.suggestions)?(s.suggestions=n.suggestions,s.suggest(),i.onSearchComplete.call(s.element,o,n.suggestions)):s.isBadQuery(o)?i.onSearchComplete.call(s.element,o,[]):(s.abortAjax(),n={url:a,data:e,type:i.type,dataType:i.dataType},d.extend(n,i.ajaxSettings),s.currentRequest=d.ajax(n).done(function(e){s.currentRequest=null,e=i.transformResult(e,o),s.processResponse(e,o,t),i.onSearchComplete.call(s.element,o,e.suggestions)}).fail(function(e,t,n){i.onSearchError.call(s.element,o,e,t,n)})))},isBadQuery:function(e){if(this.options.preventBadQueries)for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var e=this,t=d(e.suggestionsContainer);"function"==typeof e.options.onHide&&e.visible&&e.options.onHide.call(e.element,t),e.visible=!1,e.selectedIndex=-1,clearInterval(e.onChangeInterval),d(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){var e,t,n,o,s,i,a,l,r,u,c,g;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(t=(e=this).options,n=t.groupBy,o=t.formatResult,s=e.getQuery(e.currentValue),i=e.classes.suggestion,a=e.classes.selected,l=d(e.suggestionsContainer),r=d(e.noSuggestionsContainer),u=t.beforeRender,c="",t.triggerSelectOnValidInput&&e.isExactMatch(s)?e.select(0):(d.each(e.suggestions,function(e,t){n&&(c+=function(e){e=e.data[n];return g===e?"":'
    '+(g=e)+"
    "}(t)),c+='
    '+o(t,s)+"
    "}),this.adjustContainerWidth(),r.detach(),l.html(c),"function"==typeof u&&u.call(e.element,l),e.fixPosition(),l.show(),t.autoSelectFirst&&(e.selectedIndex=0,l.scrollTop(0),l.children("."+i).first().addClass(a)),e.visible=!0,e.findBestHint()))},noSuggestions:function(){var e=d(this.suggestionsContainer),t=d(this.noSuggestionsContainer);this.adjustContainerWidth(),t.detach(),e.empty(),e.append(t),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var e=this.options,t=d(this.suggestionsContainer);"auto"===e.width&&(e=this.el.outerWidth()-2,t.width(0t.selectedIndex?(o=s.get(t.selectedIndex),d(o).addClass(n),o):null},selectHint:function(){var e=d.inArray(this.hint,this.suggestions);this.select(e)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var e=this;-1!==e.selectedIndex&&(0===e.selectedIndex?(d(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.val(e.currentValue),e.findBestHint()):e.adjustScroll(e.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t,n,o,s=this,i=s.activate(e);i&&(t=d(i).outerHeight(),i=i.offsetTop,o=(n=d(s.suggestionsContainer).scrollTop())+s.options.maxHeight-t,i .wd-scroll-content"),l=o.data("post_type"),c=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search",u=parseInt(o.data("price")),p=o.data("sku"),m=o.parents(".wd-search-full-screen-2").length,h=e.find(".wd-dropdown-results");0'+woodmart_settings.all_results+"
    "),w(e).removeAttr("style")},onSearchComplete:function(){o.removeClass("search-loading"),woodmartThemeModule.$document.trigger("wood-images-loaded")},formatResult:function(e,t){var t="("+(t="&"===t?"&":t).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")",a="";return e.divider&&(a+='
    '+e.divider+"
    "),n&&e.thumbnail&&(a+='
    '+e.thumbnail+"
    "),e.value&&(a=(a+='
    ')+'

    '+e.value.replace(new RegExp(t,"gi"),"$1").replace(/<(\/?strong)>/g,"<$1>")+"

    "),p&&e.sku&&(a+='

    '+e.sku+"

    "),u&&e.price&&(a+='

    '+e.price+"

    "),e.value&&(a+="
    "),e.products_not_found&&(a=''+e.value+""),m&&(e.no_results?h.addClass("wd-no-results"):h.removeClass("wd-no-results")),h.addClass("wd-opened"),o.parents("div[class*='wd-search-full-']").addClass("wd-searched"),a}}),t.addClass("wd-search-inited")),r.length&&"cat_selected"===e.type&&(""!==r.val()&&(a.product_cat=r.val()),t=o.find('[type="text"]').devbridgeAutocomplete(),e=woodmart_settings.ajaxurl+"?"+new URLSearchParams(a).toString(),t.setOptions({serviceUrl:e}),t.hide(),t.onValueChange())}),woodmartThemeModule.$document.on("click",function(e){e=e.target;w(e).is(".wd-search-form")||w(e).parents().is(".wd-search-form")||w(e).is(".wd-search-full-screen")||w(e).parents().is(".wd-search-full-screen")||o.find('[type="text"]').devbridgeAutocomplete("hide")}),w(".wd-dropdown-results > .wd-scroll-content").on("click",function(e){e.stopPropagation()})}),w(".wd-header-search.wd-display-dropdown > a").on("click",function(e){e.preventDefault()}))},w(document).ready(function(){woodmartThemeModule.ajaxSearch()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.ajaxSearch()})}(jQuery);; woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.clearSearch()}),jQuery.each(["frontend/element_ready/wd_search.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.clearSearch()})}),woodmartThemeModule.clearSearch=function(){function n(e,t){e.value.length?t.classList.remove("wd-hide"):(t.classList.add("wd-hide"),e.classList.remove("wd-search-inited"))}document.querySelectorAll("form .wd-clear-search").forEach(function(t){var e=t.closest("form").querySelector("input");e&&(n(e,t),e.addEventListener("keyup",function(){n(e,t)})),t.addEventListener("click",function(e){e.preventDefault();e=t.parentNode.querySelector("input");e.value="",e.dispatchEvent(new Event("keyup")),e.dispatchEvent(new Event("focus"))})})},window.addEventListener("wdEventStarted",function(){woodmartThemeModule.clearSearch()});; !function(i){woodmartThemeModule.loginDropdown=function(){woodmartThemeModule.windowWidth<=1024||i(".wd-dropdown-register").each(function(){var n=i(this),e=n.find(".login-dropdown-inner");e.find('input[id="username"]').on("click",function(){n.addClass("wd-active-login").removeClass("wd-active-link")}),e.find('input[id="username"]').on("input",function(){n.hasClass("wd-active-login")&&n.removeClass("wd-active-login").addClass("wd-active-link")}),e.find("input").not('[id="username"]').on("click",function(){n.removeClass("wd-active-login").removeClass("wd-active-link")}),woodmartThemeModule.$document.click(function(e){void 0!==e.target.className.length&&-1===e.target.className.indexOf("wd-dropdown-register")&&-1===e.target.className.indexOf("input-text")&&n.removeClass("wd-active-login").removeClass("wd-active-link")}),i(".wd-dropdown-register").on("mouseout",function(){n.hasClass("wd-active-link")&&n.removeClass("wd-active-link")}).on("mouseleave",function(){n.hasClass("wd-active-link")&&n.removeClass("wd-active-link")})})},i(document).ready(function(){woodmartThemeModule.loginDropdown()})}(jQuery);; !function(c){woodmartThemeModule.$document.on("wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdBackHistory wdRecentlyViewedProductLoaded",function(){woodmartThemeModule.updateWishlistButtonState()}),woodmartThemeModule.wishlist=function(){var d="woodmart_wishlist_count",i="woodmart_wishlist_products";if(woodmart_settings.is_multisite&&(d+="_"+woodmart_settings.current_blog_id,i+="_"+woodmart_settings.current_blog_id),"undefined"!=typeof Cookies){var t=Cookies.get(d),e=0;if(void 0!==t)try{e=JSON.parse(t)}catch(t){console.log("cant parse cookies json")}void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded||n(e),woodmartThemeModule.$body.on("click",".wd-wishlist-btn a",function(t){var e=c(this);if(e.hasClass("added"))return!0;t.preventDefault();var o,t=e.data("product-id"),s=e.data("key");woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies?(e.addClass("loading"),void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded&&"disable"!==woodmart_settings.wishlist_show_popup&&woodmartThemeModule.$body.hasClass("logged-in")?woodmartThemeModule.$document.trigger("wdShowWishlistGroupPopup",[t,s]):a(t,"",s)):(s={},(s=void 0!==(o=Cookies.get(i))&&o&&(o=JSON.parse(o),Object.keys(o).length)?o:s)[t]={product_id:t},n(o=Object.keys(s).length),Cookies.set(i,JSON.stringify(s),{expires:7,path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),Cookies.set(d,o,{expires:7,path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),l(e))}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove",function(t){t.preventDefault();var e,o=c(this),t="";o.parents(".wd-wishlist-group").length&&(t=o.parents(".wd-wishlist-group").data("group-id")),o.addClass("loading"),woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies||1===o.parents(".wd-products").find(".wd-product").length?r(o.data("product-id"),t,o.parents(".wd-products"),function(){o.removeClass("loading")}):(o.parents(".wd-product").remove(),t={},void 0!==(e=Cookies.get(i))&&e&&(t=JSON.parse(e),Object.keys(t).length)&&delete t[o.data("product-id")],n(e=Object.keys(t).length),Cookies.set(i,JSON.stringify(t),{expires:7,path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),Cookies.set(d,e,{expires:7,path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-checkbox",function(t){var e=c(this),o=e.parents(".wd-product"),e=e.parents(".wd-products-element").siblings(".wd-wishlist-bulk-action"),s=e.find(".wd-wishlist-select-all");o.toggleClass("wd-current-product"),s.hasClass("wd-selected")&&e.hasClass("wd-visible")&&!o.hasClass("wd-current-product")&&s.removeClass("wd-selected"),o.siblings(".product").length===o.siblings(".wd-current-product").length&&o.hasClass("wd-current-product")&&s.addClass("wd-selected"),o.siblings(".wd-current-product").length||!e.hasClass("wd-visible")||o.hasClass("wd-current-product")?e.addClass("wd-visible"):e.removeClass("wd-visible")}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove-action > a",function(t){t.preventDefault();var e=c(this),t=e.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products"),o=t.find(".wd-current-product"),s=[],d="";o.length&&confirm(woodmart_settings.wishlist_remove_notice)&&(e.addClass("loading"),e.parents(".wd-wishlist-group").length&&(d=e.parents(".wd-wishlist-group").data("group-id")),o.each(function(){s.push(c(this).data("id"))}),r(s,d,t,function(){e.parents(".wd-wishlist-bulk-action").removeClass("wd-visible"),e.removeClass("loading")}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-select-all > a",function(t){t.preventDefault();var t=c(this).parent(),e=t.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products");t.hasClass("wd-selected")?(e.find(".product").removeClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!1),t.removeClass("wd-selected"),t.parents(".wd-wishlist-bulk-action").removeClass("wd-visible")):(e.find(".product").addClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!0),t.addClass("wd-selected"))}),woodmartThemeModule.$document.on("wdAddProductToWishlist",function(t,e,o,s,d){a(e,o,s,d)}),woodmartThemeModule.$document.on("wdRemoveProductToWishlist",function(t,e,o,s,d){r(e,o,s,d)}),woodmartThemeModule.$document.on("wdUpdateWishlistContent",function(t,e){var o;e=e,o=c(".wd-wishlist-content"),n(e.count),0parseInt(a)&&(e=a),i=setTimeout(function(){t.parents(".mini_cart_item").addClass("wd-loading"),m.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_cart_item",item_id:n,qty:e},success:function(i){i&&i.fragments&&(m.each(i.fragments,function(t,e){var a,o,r;m(t).hasClass("widget_shopping_cart_content")&&(a=m(e).find('.woocommerce-mini-cart-item[data-key="'+n+'"]'),o=m(e).find(".shopping-cart-widget-footer"),r=m(t).find('.woocommerce-mini-cart-item[data-key="'+n+'"]'),i.cart_hash)?(r.replaceWith(a),m(".shopping-cart-widget-footer").replaceWith(o)):m(t).replaceWith(e)}),woodmartThemeModule.supports_html5_storage&&(sessionStorage.setItem(r,JSON.stringify(i.fragments)),localStorage.setItem(o,i.cart_hash),sessionStorage.setItem(o,i.cart_hash),i.cart_hash)&&sessionStorage.setItem("wc_cart_created",(new Date).getTime()),woodmartThemeModule.$body.trigger("wc_fragments_refreshed"))},dataType:"json",method:"GET"})},500)})},m(document).ready(function(){woodmartThemeModule.miniCartQuantity()})}(jQuery);; !function(l){woodmartThemeModule.woocommerceQuantity=function(){String.prototype.getDecimals||Object.defineProperty(String.prototype,"getDecimals",{value:function(){var e=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},enumerable:!1}),woodmartThemeModule.$document.on("click",".plus, .minus",function(){var e=l(this),t=e.closest(".quantity").find(".qty"),a=parseFloat(t.val()),o=parseFloat(t.attr("max")),r=parseFloat(t.attr("min")),i=t.attr("step");a&&""!==a&&"NaN"!==a||(a=0),""!==o&&"NaN"!==o||(o=""),""!==r&&"NaN"!==r||(r=0),"any"!==i&&""!==i&&void 0!==i&&"NaN"!=parseFloat(i)||(i="1"),e.is(".plus")?o&&(a+parseFloat(i)).toFixed(i.getDecimals())>=o?t.val(o):t.val((a+parseFloat(i)).toFixed(i.getDecimals())):r&&(a-parseFloat(i)).toFixed(i.getDecimals())<=r?t.val(r):00?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});; !function(m){woodmartThemeModule.menuOffsets=function(){m(".wd-header-main-nav ul.menu > li, .wd-header-secondary-nav ul.menu > li, .widget_nav_mega_menu ul.menu:not(.wd-nav-vertical) > li, .wd-header-main-nav .wd-dropdown.wd-design-aside ul > li").each(function(){var e=m(this);function d(){e.hasClass("wd-offsets-calculated")||e.parents(".wd-design-aside").length||(e.find(" > .menu-item-has-children").each(function(){var e,d,s,o,n,a,t,w,i,l;e=m(this),w=e.find(" > .wd-dropdown-menu"),i=w.outerWidth(),l=w.offset(),w.attr("style",""),i&&l&&(w.hasClass("wd-design-full-width")||w.hasClass("wd-design-aside")?(s=woodmartThemeModule.$window.width(),woodmartThemeModule.$body.hasClass("rtl")?s<=(o=s-l.left-i)+i&&w.css({right:-(d=o+i-s)}):l.left+i>=s&&(d=l.left+i-s,w.css({left:-d}))):(w.hasClass("wd-design-sized")||w.hasClass("wd-design-full-height"))&&(s=woodmart_settings.site_width,o=(s=woodmartThemeModule.$window.width() .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3)})},woodmartThemeModule.menuDropdownAside=function(){m(".wd-nav .wd-design-aside, .wd-header-cats.wd-open-dropdown .wd-nav").each(function(){var e,d=m(this).find(".menu-item");d.length&&((e=d.first()).hasClass("menu-item-has-children")||e.parents(".wd-sub-menu-wrapp").addClass("wd-empty-item"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"),d.on("mouseover",function(){var e=m(this),d=e.parents(".wd-sub-menu-wrapp");e.hasClass("wd-opened")||(e.hasClass("item-level-1")&&(e.hasClass("menu-item-has-children")?d.removeClass("wd-empty-item"):d.addClass("wd-empty-item")),e.siblings().removeClass("wd-opened").find(".wd-dropdown").removeClass("wd-opened"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"))}))})},window.addEventListener("wdEventStarted",function(){setTimeout(function(){woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()},100)}),window.addEventListener("wdUpdatedHeader",function(){m(".whb-header .wd-offsets-calculated").removeClass("wd-offsets-calculated"),m(".whb-header .menu-item.wd-opened, .whb-header .wd-dropdown.wd-opened").removeClass("wd-opened"),m(".whb-header .wd-dropdown-menu").attr("style",""),woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()})}(jQuery);; !function(o){woodmartThemeModule.menuSetUp=function(){var n=o(".wd-nav, .wd-header-cats"),d="wd-opened";function e(){woodmartThemeModule.$window.width()<=1024?n.find(" > .menu-item-has-children.wd-event-hover").each(function(){o(this).data("original-event","hover").removeClass("wd-event-hover").addClass("wd-event-click")}):n.find(" > .wd-event-click").each(function(){var e=o(this);"hover"===e.data("original-event")&&e.removeClass("wd-event-click").addClass("wd-event-hover")})}o(".mobile-nav").find("ul.wd-nav-mobile").find(" > li").has(".wd-dropdown-menu").addClass("menu-item-has-children"),woodmartThemeModule.$document.on("click",".wd-nav .wd-event-click > a, .wd-header-cats.wd-event-click > span",function(e){e.preventDefault();e=o(this);e.parent().siblings().hasClass(d)&&e.parent().siblings().removeClass(d),e.parent().toggleClass(d)}),woodmartThemeModule.$document.on("click",function(e){e=e.target;!(0{window.addEventListener(e,function(){woodmartThemeModule.menuSetUp()})})}(jQuery);; !function(r){woodmartThemeModule.filtersArea=function(){var e=r(".filters-area"),o=(woodmartThemeModule.$body.on("click",".open-filters",function(e){e.preventDefault(),o()?t():(woodmartThemeModule.openFilters(200),setTimeout(function(){woodmartThemeModule.$document.trigger("wdFiltersOpened")},200))}),"no"===woodmart_settings.shop_filters_close&&woodmartThemeModule.$body.on("click",woodmart_settings.ajax_links,function(){o()&&t()}),function(){return(e=r(".filters-area")).hasClass("filters-opened")}),t=function(){(e=r(".filters-area")).removeClass("filters-opened"),e.stop().slideUp(200)}},woodmartThemeModule.openFilters=function(e){var o=r(".filters-area");o.stop().slideDown(e),setTimeout(function(){o.addClass("filters-opened"),woodmartThemeModule.$document.trigger("wdFiltersOpened"),woodmartThemeModule.$body.removeClass("body-filters-opened"),woodmartThemeModule.$document.trigger("wood-images-loaded")},e)},r(document).ready(function(){woodmartThemeModule.filtersArea()})}(jQuery);; !function(o){woodmartThemeModule.$document.on("wdHiddenSidebarsInited",function(){woodmartThemeModule.lazyLoading()}),o.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_products_brands.default","frontend/element_ready/wd_blog.default","frontend/element_ready/wd_images_gallery.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_slider.default","frontend/element_ready/wd_banner_carousel.default","frontend/element_ready/wd_banner.default","frontend/element_ready/wd_infobox_carousel.default","frontend/element_ready/wd_infobox.default","frontend/element_ready/wd_instagram.default","frontend/element_ready/wd_testimonials.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.lazyLoading()})}),woodmartThemeModule.lazyLoading=function(){var l,s,i,e;function t(){e=e||setTimeout(function(){e=null,d()},100)}function d(){(l.length||s.length)&&requestAnimationFrame(function(){var e,t,d=parseInt(woodmart_settings.lazy_loading_offset),o=window.pageYOffset,n=o+window.innerHeight+d,a=0,r=0;if(l.length){for(;a a, .wd-nav-opener, .wd-btn-show-cat",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),o(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),o(".wc-tabs > li").on("click",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),o(".wd-side-hidden").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),window.addEventListener("scroll",t,!1),window.addEventListener("resize",t,!1),MutationObserver&&new MutationObserver(function(){l.length!==i&&d()}).observe(document.body,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),d())},o(document).ready(function(){woodmartThemeModule.lazyLoading()})}(jQuery);; /*! SmartMenus jQuery Plugin - v1.2.1 - November 3, 2022 * http://www.smartmenus.org/ * Copyright Vasil Dinkov, Vadikom Web Ltd. http://vadikom.com; Licensed MIT */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(b){var i=".smartmenus_mouse";if(h||b)h&&b&&(a(document).off(i),h=!1);else{var j=!0,k=null,l={mousemove:function(b){var c={x:b.pageX,y:b.pageY,timeStamp:(new Date).getTime()};if(k){var d=Math.abs(k.x-c.x),g=Math.abs(k.y-c.y);if((d>0||g>0)&&d<=4&&g<=4&&c.timeStamp-k.timeStamp<=300&&(f=!0,j)){var h=a(b.target).closest("a");h.is("a")&&a.each(e,function(){if(a.contains(this.$root[0],h[0]))return this.itemEnter({currentTarget:h[0]}),!1}),j=!1}}k=c}};l[g?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(a){c(a.originalEvent)&&(f=!1)},a(document).on(d(l,i)),h=!0}}function c(a){return!/^(4|mouse)$/.test(a.pointerType)}function d(a,b){b||(b="");var c={};for(var d in a)c[d.split(" ").join(b+" ")+b]=a[d];return c}var e=[],f=!1,g="ontouchstart"in window,h=!1,i=window.requestAnimationFrame||function(a){return setTimeout(a,1e3/60)},j=window.cancelAnimationFrame||function(a){clearTimeout(a)},k=!!a.fn.animate;return a.SmartMenus=function(b,c){this.$root=a(b),this.opts=c,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in b.style||"webkitPerspective"in b.style,this.wasCollapsible=!1,this.init()},a.extend(a.SmartMenus,{hideAll:function(){a.each(e,function(){this.menuHideAll()})},destroy:function(){for(;e.length;)e[0].destroy();b(!0)},prototype:{init:function(c){var f=this;if(!c){e.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var g=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(d({"mouseover focusin":a.proxy(this.rootOver,this),"mouseout focusout":a.proxy(this.rootOut,this),keydown:a.proxy(this.rootKeyDown,this)},g)).on(d({mouseenter:a.proxy(this.itemEnter,this),mouseleave:a.proxy(this.itemLeave,this),mousedown:a.proxy(this.itemDown,this),focus:a.proxy(this.itemFocus,this),blur:a.proxy(this.itemBlur,this),click:a.proxy(this.itemClick,this)},g),"a"),g+=this.rootId,this.opts.hideOnClick&&a(document).on(d({touchstart:a.proxy(this.docTouchStart,this),touchmove:a.proxy(this.docTouchMove,this),touchend:a.proxy(this.docTouchEnd,this),click:a.proxy(this.docClick,this)},g)),a(window).on(d({"resize orientationchange":a.proxy(this.winResize,this)},g)),this.opts.subIndicators&&(this.$subArrow=a("").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),b()}if(this.$firstSub=this.$root.find("ul").each(function(){f.menuInit(a(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var h=/(index|default)\.[^#\?\/]*/i,i=/#.*/,j=window.location.href.replace(h,""),k=j.replace(i,"");this.$root.find("a:not(.mega-menu a)").each(function(){var b=this.href.replace(h,""),c=a(this);b!=j&&b!=k||(c.addClass("current"),f.opts.markCurrentTree&&c.parentsUntil("[data-smartmenus-id]","ul").each(function(){a(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(b){if(!b){var c=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(c),c+=this.rootId,a(document).off(c),a(window).off(c),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var d=this;this.$root.find("ul").each(function(){var b=a(this);b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.dataSM("shown-before")&&((d.opts.subMenusMinWidth||d.opts.subMenusMaxWidth)&&b.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(b.attr("id")||"").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var b=a(this);0==b.attr("id").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),b||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),e.splice(a.inArray(this,e),1))},disable:function(b){if(!this.disabled){if(this.menuHideAll(),!b&&!this.opts.isPopup&&this.$root.is(":visible")){var c=this.$root.offset();this.$disableOverlay=a('
    ').css({position:"absolute",top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(b){return this.$touchScrollingSub?void(this.$touchScrollingSub=null):void((this.visibleSubMenus.length&&!a.contains(this.$root[0],b.target)||a(b.target).closest("a").length)&&this.menuHideAll())},docTouchEnd:function(b){if(this.lastTouch){if(this.visibleSubMenus.length&&(void 0===this.lastTouch.x2||this.lastTouch.x1==this.lastTouch.x2)&&(void 0===this.lastTouch.y2||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!a.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var c=this;this.hideTimeout=setTimeout(function(){c.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(a){if(this.lastTouch){var b=a.originalEvent.touches[0];this.lastTouch.x2=b.pageX,this.lastTouch.y2=b.pageY}},docTouchStart:function(a){var b=a.originalEvent.touches[0];this.lastTouch={x1:b.pageX,y1:b.pageY,target:b.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(b){for(var c=a(b).closest("ul");c.dataSM("in-mega");)c=c.parent().closest("ul");return c[0]||null},getHeight:function(a){return this.getOffset(a,!0)},getOffset:function(a,b){var c;"none"==a.css("display")&&(c={position:a[0].style.position,visibility:a[0].style.visibility},a.css({position:"absolute",visibility:"hidden"}).show());var d=a[0].getBoundingClientRect&&a[0].getBoundingClientRect(),e=d&&(b?d.height||d.bottom-d.top:d.width||d.right-d.left);return e||0===e||(e=b?a[0].offsetHeight:a[0].offsetWidth),c&&a.hide().css(c),e},getStartZIndex:function(a){var b=parseInt(this[a?"$root":"$firstSub"].css("z-index"));return!a&&isNaN(b)&&(b=parseInt(this.$root.css("z-index"))),isNaN(b)?1:b},getTouchPoint:function(a){return a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0]||a},getViewport:function(a){var b=a?"Height":"Width",c=document.documentElement["client"+b],d=window["inner"+b];return d&&(c=Math.min(c,d)),c},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(a){return this.getOffset(a)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(a){return this.handleEvents()&&!this.isLinkInMegaMenu(a)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var b="fixed"==this.$root.css("position");return b||this.$root.parentsUntil("body").each(function(){if("fixed"==a(this).css("position"))return b=!0,!1}),b},isLinkInMegaMenu:function(b){return a(this.getClosestMenu(b[0])).hasClass("mega-menu")},isTouchMode:function(){return!f||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(b,c){var d=b.closest("ul"),e=d.dataSM("level");if(e>1&&(!this.activatedItems[e-2]||this.activatedItems[e-2][0]!=d.dataSM("parent-a")[0])){var f=this;a(d.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(d).each(function(){f.itemActivate(a(this).dataSM("parent-a"))})}if(this.isCollapsible()&&!c||this.menuHideSubMenus(this.activatedItems[e-1]&&this.activatedItems[e-1][0]==b[0]?e:e-1),this.activatedItems[e-1]=b,this.$root.triggerHandler("activate.smapi",b[0])!==!1){var g=b.dataSM("sub");g&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(g)}},itemBlur:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&this.$root.triggerHandler("blur.smapi",c[0])},itemClick:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==c.closest("ul")[0])return this.$touchScrollingSub=null,b.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",c[0])===!1)return!1;var d=c.dataSM("sub"),e=!!d&&2==d.dataSM("level");if(d){var f=a(b.target).is(".sub-arrow"),g=this.isCollapsible(),h=/toggle$/.test(this.opts.collapsibleBehavior),i=/link$/.test(this.opts.collapsibleBehavior),j=/^accordion/.test(this.opts.collapsibleBehavior);if(d.is(":visible")){if(!g&&this.opts.showOnClick&&e)return this.menuHide(d),this.clickActivated=!1,this.focusActivated=!1,!1;if(g&&(h||f))return this.itemActivate(c,j),this.menuHide(d),!1}else if((!i||!g||f)&&(!g&&this.opts.showOnClick&&e&&(this.clickActivated=!0),this.itemActivate(c,j),d.is(":visible")))return this.focusActivated=!0,!1}return!(!g&&this.opts.showOnClick&&e||c.hasClass("disabled")||this.$root.triggerHandler("select.smapi",c[0])===!1)&&void 0}},itemDown:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&c.dataSM("mousedown",!0)},itemEnter:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var d=this;this.showTimeout=setTimeout(function(){d.itemActivate(c)},this.opts.showOnClick&&1==c.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",c[0])}},itemFocus:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(!this.focusActivated||this.isTouchMode()&&c.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==c[0]||this.itemActivate(c,!0),this.$root.triggerHandler("focus.smapi",c[0]))},itemLeave:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(this.isTouchMode()||(c[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),c.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",c[0]))},menuHide:function(b){if(this.$root.triggerHandler("beforehide.smapi",b[0])!==!1&&(k&&b.stop(!0,!0),"none"!=b.css("display"))){var c=function(){b.css("z-index","")};this.isCollapsible()?k&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,b,c):b.hide(this.opts.collapsibleHideDuration,c):k&&this.opts.hideFunction?this.opts.hideFunction.call(this,b,c):b.hide(this.opts.hideDuration,c),b.dataSM("scroll")&&(this.menuScrollStop(b),b.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),b.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),b.attr({"aria-expanded":"false","aria-hidden":"true"});var d=b.dataSM("level");this.activatedItems.splice(d-1,1),this.visibleSubMenus.splice(a.inArray(b,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",b[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var a=this.opts.isPopup?1:0,b=this.visibleSubMenus.length-1;b>=a;b--)this.menuHide(this.visibleSubMenus[b]);this.opts.isPopup&&(k&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(k&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(a){for(var b=this.activatedItems.length-1;b>=a;b--){var c=this.activatedItems[b].dataSM("sub");c&&this.menuHide(c)}},menuInit:function(a){if(!a.dataSM("in-mega")){a.hasClass("mega-menu")&&a.find("ul").dataSM("in-mega",!0);for(var b=2,c=a[0];(c=c.parentNode.parentNode)!=this.$root[0];)b++;var d=a.prevAll("a").eq(-1);d.length||(d=a.prevAll().find("a").eq(-1)),d.addClass("has-submenu").dataSM("sub",a),a.dataSM("parent-a",d).dataSM("level",b).parent().dataSM("sub",a);var e=d.attr("id")||this.accessIdPrefix+ ++this.idInc,f=a.attr("id")||this.accessIdPrefix+ ++this.idInc;d.attr({id:e,"aria-haspopup":"true","aria-controls":f,"aria-expanded":"false"}),a.attr({id:f,role:"group","aria-hidden":"true","aria-labelledby":e,"aria-expanded":"false"}),this.opts.subIndicators&&d[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(b){var c,e,f=b.dataSM("parent-a"),h=f.closest("li"),i=h.parent(),j=b.dataSM("level"),k=this.getWidth(b),l=this.getHeight(b),m=f.offset(),n=m.left,o=m.top,p=this.getWidth(f),q=this.getHeight(f),r=a(window),s=r.scrollLeft(),t=r.scrollTop(),u=this.getViewportWidth(),v=this.getViewportHeight(),w=i.parent().is("[data-sm-horizontal-sub]")||2==j&&!i.hasClass("sm-vertical"),x=this.opts.rightToLeftSubMenus&&!h.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&h.is("[data-sm-reverse]"),y=2==j?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,z=2==j?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(w?(c=x?p-k-y:y,e=this.opts.bottomToTopSubMenus?-l-z:q+z):(c=x?y-k:p-y,e=this.opts.bottomToTopSubMenus?q-z-l:z),this.opts.keepInViewport){var A=n+c,B=o+e;if(x&&As+u&&(c=w?s+u-k-A+c:y-k),w||(lt+v?e+=t+v-l-B:(l>=v||Bt+v+.49||Bv+.49){var C=this;b.dataSM("scroll-arrows")||b.dataSM("scroll-arrows",a([a('')[0],a('')[0]]).on({mouseenter:function(){b.dataSM("scroll").up=a(this).hasClass("scroll-up"),C.menuScroll(b)},mouseleave:function(a){C.menuScrollStop(b),C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){a.preventDefault()}}).insertAfter(b));var D=".smartmenus_scroll";if(b.dataSM("scroll",{y:this.cssTransforms3d?0:e-q,step:1,itemH:q,subH:l,arrowDownH:this.getHeight(b.dataSM("scroll-arrows").eq(1))}).on(d({mouseover:function(a){C.menuScrollOver(b,a)},mouseout:function(a){C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){C.menuScrollMousewheel(b,a)}},D)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:c+(parseInt(b.css("border-left-width"))||0),width:k-(parseInt(b.css("border-left-width"))||0)-(parseInt(b.css("border-right-width"))||0),zIndex:b.css("z-index")}).eq(w&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var E={};E[g?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(a){C.menuScrollTouch(b,a)},b.css({"touch-action":"none","-ms-touch-action":"none"}).on(d(E,D))}}}b.css({top:"auto",left:"0",marginLeft:c,marginTop:e-q})},menuScroll:function(a,b,c){var d,e=a.dataSM("scroll"),g=a.dataSM("scroll-arrows"),h=e.up?e.upEnd:e.downEnd;if(!b&&e.momentum){if(e.momentum*=.92,d=e.momentum,d<.5)return void this.menuScrollStop(a)}else d=c||(b||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(e.step));var j=a.dataSM("level");if(this.activatedItems[j-1]&&this.activatedItems[j-1].dataSM("sub")&&this.activatedItems[j-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(j-1),e.y=e.up&&h<=e.y||!e.up&&h>=e.y?e.y:Math.abs(h-e.y)>d?e.y+(e.up?d:-d):h,a.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+e.y+"px, 0)",transform:"translate3d(0, "+e.y+"px, 0)"}:{marginTop:e.y}),f&&(e.up&&e.y>e.downEnd||!e.up&&e.y0;a.dataSM("scroll-arrows").eq(c?0:1).is(":visible")&&(a.dataSM("scroll").up=c,this.menuScroll(a,!0))}b.preventDefault()},menuScrollOut:function(b,c){f&&(/^scroll-(up|down)/.test((c.relatedTarget||"").className)||(b[0]==c.relatedTarget||a.contains(b[0],c.relatedTarget))&&this.getClosestMenu(c.relatedTarget)==b[0]||b.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(b,c){if(f&&!/^scroll-(up|down)/.test(c.target.className)&&this.getClosestMenu(c.target)==b[0]){this.menuScrollRefreshData(b);var d=b.dataSM("scroll"),e=a(window).scrollTop()-b.dataSM("parent-a").offset().top-d.itemH;b.dataSM("scroll-arrows").eq(0).css("margin-top",e).end().eq(1).css("margin-top",e+this.getViewportHeight()-d.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(b){var c=b.dataSM("scroll"),d=a(window).scrollTop()-b.dataSM("parent-a").offset().top-c.itemH;this.cssTransforms3d&&(d=-(parseFloat(b.css("margin-top"))-d)),a.extend(c,{upEnd:d,downEnd:d+this.getViewportHeight()-c.subH})},menuScrollStop:function(a){if(this.scrollTimeout)return j(this.scrollTimeout),this.scrollTimeout=0,a.dataSM("scroll").step=1,!0},menuScrollTouch:function(b,d){if(d=d.originalEvent,c(d)){var e=this.getTouchPoint(d);if(this.getClosestMenu(e.target)==b[0]){var f=b.dataSM("scroll");if(/(start|down)$/i.test(d.type))this.menuScrollStop(b)?(d.preventDefault(),this.$touchScrollingSub=b):this.$touchScrollingSub=null,this.menuScrollRefreshData(b),a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp});else if(/move$/i.test(d.type)){var g=void 0!==f.touchY?f.touchY:f.touchStartY;if(void 0!==g&&g!=e.pageY){this.$touchScrollingSub=b;var h=gthis.getWidth(a)&&a.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(a)}var e=function(){a.css("overflow","")};c?k&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,a,e):a.show(this.opts.collapsibleShowDuration,e):k&&this.opts.showFunction?this.opts.showFunction.call(this,a,e):a.show(this.opts.showDuration,e),b.attr("aria-expanded","true"),a.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(a),this.$root.triggerHandler("show.smapi",a[0])}},popupHide:function(a){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},a?1:this.opts.hideTimeout)},popupShow:function(a,b){if(!this.opts.isPopup)return void alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),k&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:a,top:b});var c=this,d=function(){c.$root.css("overflow","")};k&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,d):this.$root.show(this.opts.showDuration,d),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(b){if(this.handleEvents())switch(b.keyCode){case 27:var c=this.activatedItems[0];if(c){this.menuHideAll(),c[0].focus();var d=c.dataSM("sub");d&&this.menuHide(d)}break;case 32:var e=a(b.target);if(e.is("a")&&this.handleItemEvents(e)){var d=e.dataSM("sub");d&&!d.is(":visible")&&(this.itemClick({currentTarget:b.target}),b.preventDefault())}}},rootOut:function(a){if(this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(a){this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(a){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==a.type){var b=this.isCollapsible();this.wasCollapsible&&b||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=b}}else if(this.$disableOverlay){var c=this.$root.offset();this.$disableOverlay.css({top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),a.fn.dataSM=function(a,b){return b?this.data(a+"_smartmenus",b):this.data(a+"_smartmenus")},a.fn.removeDataSM=function(a){return this.removeData(a+"_smartmenus")},a.fn.smartmenus=function(b){if("string"==typeof b){var c=arguments,d=b;return Array.prototype.shift.call(c),this.each(function(){var b=a(this).data("smartmenus");b&&b[d]&&b[d].apply(b,c)})}return this.each(function(){var c=a(this).data("sm-options")||null;c&&"object"!=typeof c&&(c=null,alert('ERROR\n\nSmartMenus jQuery init:\nThe value of the "data-sm-options" attribute must be valid JSON.')),c&&a.each(["showFunction","hideFunction","collapsibleShowFunction","collapsibleHideFunction"],function(){this in c&&delete c[this]}),new a.SmartMenus(this,a.extend({},a.fn.smartmenus.defaults,b,c))})},a.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(a,b){a.fadeOut(200,b)},collapsibleShowDuration:0,collapsibleShowFunction:function(a,b){a.slideDown(200,b)},collapsibleHideDuration:0,collapsibleHideFunction:function(a,b){a.slideUp(200,b)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},a}); ; !function(l){woodmartThemeModule.scrollTop=function(){var o=l(".scrollToTop");woodmartThemeModule.$window.on("scroll",function(){100 a"),c=e.target.closest(".menu-item-has-children > .wd-nav-opener"),u=e.target.closest(".mobile-nav"),m="arrow";if(this.classList.contains("wd-opener-item")&&(m="item"),woodmartThemeModule.$document.trigger("wood-images-loaded"),s){if(e.preventDefault(),s.classList.contains("wd-active"))return;var w=s.dataset.menu,v=null!==u&&u.querySelector(".wd-active");v&&v.classList.remove("wd-active"),s.classList.add("wd-active"),null!==u&&(u.querySelectorAll(".wd-nav-mobile").forEach(function(e){e.classList.remove("wd-active")}),void 0!==w)&&u.querySelectorAll(`.mobile-${w}-menu`).forEach(function(e){e.classList.add("wd-active")})}a?("item"===m&&(r||c)||"arrow"===m&&c)&&(e.preventDefault(),o=("item"===m&&r||c).parentNode,v=(n=Array.from(o.children)).find(function(e){return e.classList.contains("wd-nav-opener")}),s=n.filter(function(e){return"UL"===e.tagName||e.classList.contains("wd-sub-menu")}),o.classList.contains("opener-page")?(o.classList.remove("opener-page"),0!==s.length&&s.forEach(function(e){woodmartThemeModule.slideUp(e,200)}),[".wd-dropdown-menu .container > ul",".wd-dropdown-menu > ul"].forEach(function(e){e=o.querySelectorAll(e);0!==e.length&&e.forEach(function(e){woodmartThemeModule.slideUp(e,200)})}),void 0!==v&&v.classList.remove("wd-active")):(o.classList.add("opener-page"),0!==s.length&&s.forEach(function(e){woodmartThemeModule.slideDown(e,200)}),[".wd-dropdown-menu .container > ul",".wd-dropdown-menu > ul"].forEach(function(e){e=o.querySelectorAll(e);0!==e.length&&e.forEach(function(e){woodmartThemeModule.slideDown(e,200)})}),void 0!==v&&v.classList.add("wd-active"))):l&&(w=e.target.closest(".menu-item-has-children .wd-drilldown-back a"),a=e.target.closest(".menu-item-has-children .wd-drilldown-back .wd-nav-opener"),("item"===m&&(r||c)||"arrow"===m&&c)&&(d=(o=("item"===m&&r||c).parentNode).closest("ul"),void 0!==(i=(n=Array.from(o.children)).find(function(e){return e.classList.contains("wd-sub-menu")||e.classList.contains("sub-sub-menu")})))&&(e.preventDefault(),o.setAttribute("aria-expanded",!0),d.classList.add("wd-drilldown-hide"),d.classList.remove("wd-drilldown-show"),i.classList.add("wd-drilldown-show"),i.setAttribute("aria-expanded",!1),v=(v=(v=(s=i.querySelector(".wd-drilldown-back a")).textContent).replaceAll("\t","")).replaceAll("\n",""),o.classList.contains("item-level-0")?(l=null)!==(l=null!==u?u.querySelector(".wd-nav-mob-tab li.wd-active .nav-link-text"):l)?(m=(m=(m=l.textContent).replaceAll("\t","")).replaceAll("\n",""),!v.includes(m)&&0 .wd-nav-opener")||e.closest(".widget_nav_mega_menu")||((t=document.createElement("span")).classList.add("wd-nav-opener"),e.appendChild(t))})},woodmartThemeModule.mobileNavigationCloseSideWidgets=function(e){e&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()})})},woodmartThemeModule.openMobileNavigation=function(e){var t=document.querySelector(".wd-close-side");e&&e.classList.add("wd-opened"),t&&t.classList.add("wd-close-side-opened"),woodmartThemeModule.$document.trigger("wood-images-loaded")},woodmartThemeModule.closeMobileNavigation=function(){var e=document.querySelector(".wd-header-mobile-nav.wd-opened"),t=document.querySelector(".mobile-nav.wd-opened"),o=document.querySelector(".wd-close-side.wd-close-side-opened"),n=document.querySelector(".mobile-nav .searchform input[type=text]");e&&e.classList.remove("wd-opened"),t&&t.classList.remove("wd-opened"),t&&o&&o.classList.remove("wd-close-side-opened"),n&&n.blur()},woodmartThemeModule.mobileNavigation=function(){var e=document.querySelectorAll(".wd-side-hidden-nav .wd-nav-mobile .menu-item-has-children"),t=document.querySelectorAll(".wd-side-hidden-nav"),o=document.querySelector(".wd-close-side"),n=document.querySelectorAll(".mobile-nav .login-side-opener, .mobile-nav .close-side-widget");woodmartThemeModule.mobileNavigationAddOpeners(e),t.forEach(function(e){woodmartThemeModule.mobileNavigationClickAction(e)}),document.querySelectorAll(".wd-header-mobile-nav > a").forEach(function(e){e.addEventListener("click",openMobileNavEvent)}),o&&(o.addEventListener("click",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()}),o.addEventListener("touchstart",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()},{passive:!1})),woodmartThemeModule.mobileNavigationCloseSideWidgets(n)},window.addEventListener("load",function(){woodmartThemeModule.mobileNavigation()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.mobileNavigation()}),window.addEventListener("wdHeaderBuilderCloneCreated",function(){var e=document.querySelector(".whb-clone .wd-header-mobile-nav > a");e&&e.addEventListener("click",openMobileNavEvent)});; !function(a){woodmartThemeModule.cartWidget=function(){var e=woodmartThemeModule.$body,o=a(".cart-widget-side"),d=a(".wd-close-side"),t=(e.on("click",".cart-widget-opener",function(e){r()||u()||e.preventDefault(),c()?t():setTimeout(function(){n()},10)}),e.on("click touchstart",".wd-close-side",function(){c()&&t()}),e.on("click",".close-side-widget",function(e){e.preventDefault(),c()&&t()}),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&c()&&t()}),function(){o.removeClass("wd-opened"),d.removeClass("wd-close-side-opened")}),n=function(){if(r()||u())return!1;o.addClass("wd-opened"),d.addClass("wd-close-side-opened")},c=function(){return o.hasClass("wd-opened")},r=function(){return woodmartThemeModule.$body.hasClass("woocommerce-cart")},u=function(){return woodmartThemeModule.$body.hasClass("woocommerce-checkout")}},a(document).ready(function(){woodmartThemeModule.cartWidget()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.cartWidget()})}(jQuery);;