You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

5 lines
132 KiB

var woodmartThemeModule={};!function(a){woodmartThemeModule.supports_html5_storage=!1;try{woodmartThemeModule.supports_html5_storage="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("xts","test"),window.sessionStorage.removeItem("xts")}catch(b){woodmartThemeModule.supports_html5_storage=!1}woodmartThemeModule.$window=a(window),woodmartThemeModule.$document=a(document),woodmartThemeModule.$body=a("body"),woodmartThemeModule.windowWidth=woodmartThemeModule.$window.width(),woodmartThemeModule.removeURLParameter=function(a,b){var c=a.split("?");if(c.length>=2){for(var d=encodeURIComponent(b)+"=",e=c[1].split(/[&;]/g),f=e.length;f-- >0;)-1!==e[f].lastIndexOf(d,0)&&e.splice(f,1);return c[0]+(e.length>0?"?"+e.join("&"):"")}return a},woodmartThemeModule.removeDuplicatedStylesFromHTML=function(b,c){var d=a('<div class="temp-wrapper"></div>').append(b),e=d.find("link"),f=0,g=!1;if(0===e.length||"yes"===woodmart_settings.combined_css)return void c(b);setTimeout(function(){f<=e.length&&!g&&(c(a(d.html())),g=!0)},500),e.each(function(){var b=a(this),h=b.attr("id"),i=b.attr("href");b.remove(),void 0===woodmart_page_css[h]?a("head").append(b.on("load",function(){f++,woodmart_page_css[h]=i,f>=e.length&&!g&&(c(a(d.html())),g=!0)})):++f>=e.length&&!g&&(c(a(d.html())),g=!0)})},woodmartThemeModule.debounce=function(a,b,c){var d;return function(){var e=this,f=arguments,g=function(){d=null,c||a.apply(e,f)},h=c&&!d;clearTimeout(d),d=setTimeout(g,b),h&&a.apply(e,f)}},woodmartThemeModule.wdElementorAddAction=function(a,b){woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&elementorFrontend.hooks.addAction(a,b)})},woodmartThemeModule.wdElementorAddAction("frontend/element_ready/global",function(a){a.attr("style")&&0===a.attr("style").indexOf("transform:translate3d")&&!a.hasClass("wd-parallax-on-scroll")&&a.attr("style","")}),woodmartThemeModule.wdElementorAddAction("frontend/element_ready/column",function(a){a.attr("style")&&0===a.attr("style").indexOf("transform:translate3d")&&!a.hasClass("wd-parallax-on-scroll")&&a.attr("style",""),setTimeout(function(){woodmartThemeModule.stickyColumn()},100)}),woodmartThemeModule.ajaxLinks=".wd-nav-product-cat a, .widget_product_categories a, .widget_layered_nav_filters a, .woocommerce-widget-layered-nav a, .filters-area:not(.custom-content) a, body.post-type-archive-product:not(.woocommerce-account) .woocommerce-pagination a, body.tax-product_cat:not(.woocommerce-account) .woocommerce-pagination a, .wd-shop-tools a, .woodmart-woocommerce-layered-nav a, .woodmart-price-filter a, .wd-clear-filters a, .woodmart-woocommerce-sort-by a, .woocommerce-widget-layered-nav-list a, .wd-widget-stock-status a",woodmartThemeModule.shopLoadMoreBtn=".wd-products-load-more.load-on-scroll",woodmartThemeModule.mainCarouselArg={rtl:woodmartThemeModule.$body.hasClass("rtl"),items:"centered"===woodmart_settings.product_gallery.thumbs_slider.position?2:1,autoplay:woodmart_settings.product_slider_autoplay,autoplayTimeout:3e3,loop:woodmart_settings.product_slider_autoplay,center:"centered"===woodmart_settings.product_gallery.thumbs_slider.position,startPosition:"centered"===woodmart_settings.product_gallery.thumbs_slider.position?woodmart_settings.centered_gallery_start:0,dots:!1,nav:!0,autoHeight:"yes"===woodmart_settings.product_slider_auto_height,navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"]},woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&"enabled"===woodmart_settings.elementor_no_gap&&(elementorFrontend.hooks.addAction("frontend/element_ready/section",function(a){var b=a.data("model-cid");if(void 0!==elementorFrontend.config.elements.data[b]){elementorFrontend.config.elements.data[b].attributes.content_width.size||a.addClass("wd-negative-gap")}}),elementor.channels.editor.on("change:section",function(b){var c=b.elementSettingsModel.changed;if(void 0!==c.content_width){var d=b._parent.model.id,e=a(".elementor-element-"+d);c.content_width.size?e.removeClass("wd-negative-gap"):e.addClass("wd-negative-gap")}}))}),woodmartThemeModule.$window.on("load",function(){a(".wd-preloader").delay(parseInt(woodmart_settings.preloader_delay)).addClass("preloader-hide"),a(".wd-preloader-style").remove(),setTimeout(function(){a(".wd-preloader").remove()},200)})}(jQuery),window.onload=function(){var a=["keydown","scroll","mouseover","touchmove","touchstart","mousedown","mousemove"],b=function(a){jQuery(window).trigger("wdEventStarted"),c()},c=function(){a.forEach(function(a){window.removeEventListener(a,b)})},d=function(a){window.addEventListener(a,b)};a.forEach(function(a){d(a)})},function(a){a.each(["frontend/element_ready/wd_blog.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.blogLoadMore()})}),woodmartThemeModule.blogLoadMore=function(){var b=".wd-blog-load-more.load-on-scroll",c=!1;woodmartThemeModule.clickOnScrollButton(b,!1,!1),a(".wd-blog-load-more").on("click",function(d){d.preventDefault();var e=a(this);if(!c&&!e.hasClass("no-more-posts")){c=!0;var f=e.parent().siblings(".wd-blog-holder"),g=f.data("source"),h="woodmart_get_blog_"+g,i=woodmart_settings.ajaxurl,j="json",k="POST",l=f.data("atts"),m=f.data("paged");e.addClass("loading");var n={atts:l,paged:m,action:h};"main_loop"===g&&(i=e.attr("href"),k="GET",n={}),a.ajax({url:i,data:n,dataType:j,method:k,success:function(c){woodmartThemeModule.removeDuplicatedStylesFromHTML(c.items,function(d){var h=a(d);h&&(f.hasClass("masonry-container")?(f.append(h).isotope("appended",h),f.imagesLoaded().progress(function(){f.isotope("layout"),woodmartThemeModule.clickOnScrollButton(b,!0,!1)})):(f.append(h),f.imagesLoaded().progress(function(){woodmartThemeModule.clickOnScrollButton(b,!0,!1)})),"yes"===woodmart_settings.load_more_button_page_url&&window.history.pushState("","",c.currentPage),f.data("paged",m+1),"main_loop"===g&&(e.attr("href",c.nextPage),"no-more-posts"===c.status&&e.hide().remove())),"no-more-posts"===c.status&&(e.addClass("no-more-posts"),e.hide())})},error:function(){console.log("ajax error")},complete:function(){e.removeClass("loading"),c=!1}})}})},a(document).ready(function(){woodmartThemeModule.blogLoadMore()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_banner_carousel.default","frontend/element_ready/wd_banner.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.bannersHover()})}),woodmartThemeModule.bannersHover=function(){void 0!==a.fn.panr&&a(".promo-banner.banner-hover-parallax").panr({sensitivity:20,scale:!1,scaleOnHover:!0,scaleTo:1.15,scaleDuration:.34,panY:!0,panX:!0,panDuration:.5,resetPanOnMouseLeave:!0})},a(document).ready(function(){woodmartThemeModule.bannersHover()})}(jQuery),function(a){woodmartThemeModule.buttonSmoothScroll=function(){a(".wd-button-wrapper.wd-smooth-scroll a").on("click",function(b){b.stopPropagation(),b.preventDefault();var c=a(this),d=c.parent().data("smooth-time"),e=c.parent().data("smooth-offset"),f=c.attr("href").split("#")[1],g=a("#"+f);if(!(g.length<1)){var h=g.offset().top;a("html, body").animate({scrollTop:h-e},d)}})},a(document).ready(function(){woodmartThemeModule.buttonSmoothScroll()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_popup.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.contentPopup()})}),woodmartThemeModule.contentPopup=function(){void 0!==a.fn.magnificPopup&&a(".wd-open-popup").magnificPopup({type:"inline",removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal content-popup-wrapper"},open:function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}}})},a(document).ready(function(){woodmartThemeModule.contentPopup()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdProductsTabsLoaded wdUpdateWishlist wdShopPageInit",function(){woodmartThemeModule.countDownTimer()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_countdown_timer.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.countDownTimer()})}),woodmartThemeModule.countDownTimer=function(){a(".wd-timer").each(function(){var b=a(this);dayjs.extend(window.dayjs_plugin_utc),dayjs.extend(window.dayjs_plugin_timezone);var c=dayjs.tz(b.data("end-date"),b.data("timezone"));b.countdown(c.toDate(),function(a){b.html(a.strftime('<span class="countdown-days">%-D <span>'+woodmart_settings.countdown_days+'</span></span> <span class="countdown-hours">%H <span>'+woodmart_settings.countdown_hours+'</span></span> <span class="countdown-min">%M <span>'+woodmart_settings.countdown_mins+'</span></span> <span class="countdown-sec">%S <span>'+woodmart_settings.countdown_sec+"</span></span>"))})})},a(document).ready(function(){woodmartThemeModule.countDownTimer()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_counter.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.visibleElements()})}),woodmartThemeModule.counterShortcode=function(a){"done"!==a.attr("data-state")&&parseInt(a.text())===a.data("final")&&a.prop("Counter",0).animate({Counter:a.text()},{duration:3e3,easing:"swing",step:function(b){b>=a.data("final")&&a.attr("data-state","done"),a.text(Math.ceil(b))}})},woodmartThemeModule.visibleElements=function(){a(".woodmart-counter .counter-value").each(function(){var b=a(this);b.waypoint(function(){woodmartThemeModule.counterShortcode(b)},{offset:"100%"})})},a(document).ready(function(){woodmartThemeModule.visibleElements()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_google_map.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.googleMapInit()})}),woodmartThemeModule.googleMapInit=function(){a(".google-map-container").each(function(){var b=a(this),c=b.data("map-args"),d={locations:[{lat:c.latitude,lon:c.longitude,icon:c.marker_icon,animation:google.maps.Animation.DROP}],controls_on_map:!1,map_div:"#"+c.selector,start:1,map_options:{zoom:parseInt(c.zoom),scrollwheel:"yes"===c.mouse_zoom}};c.json_style&&!c.elementor?(d.styles={},d.styles[woodmart_settings.google_map_style_text]=a.parseJSON(c.json_style)):c.json_style&&c.elementor&&(d.styles={},d.styles[woodmart_settings.google_map_style_text]=a.parseJSON(atob(c.json_style))),"yes"===c.marker_text_needed&&(d.locations[0].html=c.marker_text),"button"===c.init_type?b.find(".wd-init-map").on("click",function(a){a.preventDefault(),b.hasClass("wd-map-inited")||(b.addClass("wd-map-inited"),new Maplace(d).Load())}):"scroll"===c.init_type?woodmartThemeModule.$window.on("scroll",function(){if(window.innerHeight+woodmartThemeModule.$window.scrollTop()+parseInt(c.init_offset)>b.offset().top){if(b.hasClass("wd-map-inited"))return;b.addClass("wd-map-inited"),new Maplace(d).Load()}}):"interaction"===c.init_type?woodmartThemeModule.$window.on("wdEventStarted",function(){new Maplace(d).Load()}):new Maplace(d).Load()});var b=a(".google-map-container-with-content");woodmartThemeModule.$window.on("resize",function(){b.css({height:b.find(".wd-google-map.with-content").outerHeight()})})},a(document).ready(function(){woodmartThemeModule.googleMapInit()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_image_hotspot.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.imageHotspot()})}),woodmartThemeModule.imageHotspot=function(){a(".wd-image-hotspot").each(function(){var b=a(this),c=b.find(".hotspot-btn");!b.parents(".wd-image-hotspot-wrapper").hasClass("hotspot-action-click")&&woodmartThemeModule.$window.width()>1024||(c.on("click",function(){return b.hasClass("hotspot-opened")?b.removeClass("hotspot-opened"):(b.addClass("hotspot-opened"),b.siblings().removeClass("hotspot-opened")),woodmartThemeModule.$document.trigger("wood-images-loaded"),!1}),woodmartThemeModule.$document.on("click",function(c){var d=c.target;if(b.hasClass("hotspot-opened")&&!a(d).is(".wd-image-hotspot")&&!a(d).parents().is(".wd-image-hotspot"))return b.removeClass("hotspot-opened"),!1}))}),a(".wd-image-hotspot-wrapper").each(function(){var b=a(this);b.imagesLoaded(function(){b.addClass("loaded")})}),a(".wd-image-hotspot .hotspot-content").each(function(){var b=a(this),c=b.offset().left,d=woodmartThemeModule.$window.width()-(c+b.outerWidth());woodmartThemeModule.$window.width()>768&&(c<=0&&b.addClass("hotspot-overflow-right"),d<=0&&b.addClass("hotspot-overflow-left")),woodmartThemeModule.$window.width()<=768&&(c<=0&&b.css("marginLeft",Math.abs(c-15)+"px"),d<=0&&b.css("marginLeft",d-15+"px"))})},a(document).ready(function(){woodmartThemeModule.imageHotspot()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_images_gallery.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.imagesGalleryMasonry(),woodmartThemeModule.imagesGalleryJustified()})}),woodmartThemeModule.imagesGalleryMasonry=function(){if(void 0!==a.fn.isotope&&void 0!==a.fn.imagesLoaded){var b=a(".view-masonry .gallery-images");b.imagesLoaded(function(){b.isotope({gutter:0,isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),itemSelector:".wd-gallery-item"})})}},woodmartThemeModule.imagesGalleryJustified=function(){a(".view-justified").each(function(){a(this).find(".gallery-images").justifiedGallery({margins:1,cssAnimation:!0})})},a(document).ready(function(){woodmartThemeModule.imagesGalleryMasonry(),woodmartThemeModule.imagesGalleryJustified()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_infobox_carousel.default","frontend/element_ready/wd_infobox.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.infoboxSvg()})}),woodmartThemeModule.infoboxSvg=function(){a(".wd-info-box.with-animation").each(function(){var b=a(this);b.find(".info-svg-wrapper > svg").length>0&&new Vivus(b.find(".info-svg-wrapper > svg")[0],{type:"delayed",duration:200,start:"inViewport",animTimingFunction:Vivus.EASE_OUT},function(){})})},a(document).ready(function(){woodmartThemeModule.infoboxSvg()})}(jQuery),function(a){woodmartThemeModule.instagramAjaxQuery=function(){a(".instagram-widget").each(function(){var b=a(this);if(b.hasClass("instagram-with-error")){var c=b.data("username"),d=b.data("atts"),e=c.indexOf("#")>-1?"explore/tags/"+c.substr(1):c,f="https://www.instagram.com/"+e+"/";b.addClass("loading"),a.ajax({url:f,success:function(c){a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_instagram_ajax_query",body:c,atts:d},dataType:"json",method:"POST",success:function(a){b.parent().html(a),woodmartThemeModule.$document.trigger("wdInstagramAjaxSuccess")},error:function(){console.log("instagram ajax error")}})},error:function(){console.log("instagram ajax error")}})}})},a(document).ready(function(){woodmartThemeModule.instagramAjaxQuery()})}(jQuery),function(a){woodmartThemeModule.woodSliderLazyLoad=function(){woodmartThemeModule.$window.on("wdEventStarted",function(){var b=a(".wd-slider");b.on("changed.owl.carousel",function(b){var c=a(this),d=c.find(".owl-item").eq(b.item.index+1),e=d.find(".wd-slide").attr("id"),f=c.find('[id="'+e+'"]');d.find(".wd-slide").addClass("woodmart-loaded"),c.find(".owl-item").eq(b.item.index).find(".wd-slide").addClass("woodmart-loaded"),f.each(function(){a(this).addClass("woodmart-loaded")})}),b.trigger("refresh.owl.carousel")})},a(document).ready(function(){woodmartThemeModule.woodSliderLazyLoad()})}(jQuery),function(a){woodmartThemeModule.videoPoster=function(){a(".wd-video-poster-wrapper").on("click",function(){var b=a(this),c=b.parent().find("iframe"),d=c.attr("src"),e=d+"&autoplay=1";d.indexOf("vimeo.com")+1&&(e=d+"?autoplay=1"),c.attr("src",e),b.addClass("hidden-poster")})},a(document).ready(function(){woodmartThemeModule.videoPoster()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_3d_view.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.view3d()})}),woodmartThemeModule.view3d=function(){function b(a){var b=a.data("args");if(!b||a.hasClass("wd-threed-view-inited"))return!1;a.ThreeSixty({totalFrames:b.frames_count,endFrame:b.frames_count,currentFrame:1,imgList:".threed-view-images",progress:".spinner",imgArray:b.images,height:b.height,width:b.width,responsive:!0,navigation:!0,framerate:woodmart_settings.three_sixty_framerate}),a.addClass("wd-threed-view-inited")}a(".wd-threed-view:not(.wd-product-threed)").each(function(){b(a(this))}),a(".product-360-button a").on("click",function(c){c.preventDefault(),b(a(".wd-threed-view.wd-product-threed"))})},a(document).ready(function(){woodmartThemeModule.view3d()})}(jQuery),function(a){woodmartThemeModule.ageVerify=function(){"yes"===woodmart_settings.age_verify&&"confirmed"!==Cookies.get("woodmart_age_verify")&&(a.magnificPopup.open({items:{src:".wd-age-verify"},type:"inline",closeOnBgClick:!1,closeBtnInside:!1,showCloseBtn:!1,enableEscapeKey:!1,removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal wd-promo-popup-wrapper"}}}),a(".wd-age-verify-allowed").on("click",function(){Cookies.set("woodmart_age_verify","confirmed",{expires:parseInt(woodmart_settings.age_verify_expires),path:"/"}),a.magnificPopup.close()}),a(".wd-age-verify-forbidden").on("click",function(){a(".wd-age-verify").addClass("wd-forbidden")}))},a(document).ready(function(){woodmartThemeModule.ageVerify()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.ajaxSearch()}),a.each(["frontend/element_ready/wd_search.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.ajaxSearch()})}),woodmartThemeModule.ajaxSearch=function(){if(void 0!==a.fn.devbridgeAutocomplete){var b=function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")};a("form.woodmart-ajax-search").each(function(){var c=a(this),d=parseInt(c.data("count")),e=parseInt(c.data("thumbnail")),f=parseInt(c.data("symbols_count")),g=c.find('[name="product_cat"]'),h=c.parent().find(".wd-dropdown-results > .wd-scroll-content"),i=c.data("post_type"),j=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search",k=parseInt(c.data("price")),l=c.data("sku");d>0&&(j+="&number="+d),j+="&post_type="+i,h.on("click",".view-all-results",function(){c.submit()}),g.length&&""!==g.val()&&(j+="&product_cat="+g.val()),c.find('[type="text"]').on("focus",function(){var m=a(this);if(!m.hasClass("wd-search-inited")){if(m.devbridgeAutocomplete({serviceUrl:j,appendTo:h,minChars:f,onSelect:function(a){a.permalink.length>0&&(window.location.href=a.permalink)},onHide:function(){h.parent().removeClass("wd-opened")},onSearchStart:function(){c.addClass("search-loading")},beforeRender:function(b){a(b).find(".suggestion-divider-title").parent().addClass("suggestion-divider"),b[0].childElementCount>2&&a(b).append('<div class="view-all-results"><span>'+woodmart_settings.all_results+"</span></div>"),a(b).removeAttr("style")},onSearchComplete:function(){c.removeClass("search-loading"),woodmartThemeModule.$document.trigger("wood-images-loaded")},formatResult:function(a,c){"&"===c&&(c="&#038;");var d="("+b(c)+")",f="";return a.divider&&(f+=' <h5 class="suggestion-divider-title">'+a.divider+"</h5>"),e&&a.thumbnail&&(f+=' <div class="suggestion-thumb">'+a.thumbnail+"</div>"),a.value&&(f+=' <div class="suggestion-content set-cont-mb-s reset-last-child">',f+='<h4 class="wd-entities-title">'+a.value.replace(new RegExp(d,"gi"),"<strong>$1</strong>").replace(/&lt;(\/?strong)&gt;/g,"<$1>")+"</h4>"),l&&a.sku&&(f+=' <p class="suggestion-sku">'+a.sku+"</p>"),k&&a.price&&(f+=' <p class="price">'+a.price+"</p>"),a.value&&(f+=" </div>"),a.no_found&&(f='<span class="no-found-msg">'+a.value+"</span>"),h.parent().addClass("wd-opened"),f}}),g.length){var n=c.find('[type="text"]').devbridgeAutocomplete(),o=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search";d>0&&(o+="&number="+d),o+="&post_type="+i,g.on("cat_selected",function(){""!==g.val()?n.setOptions({serviceUrl:o+"&product_cat="+g.val()}):n.setOptions({serviceUrl:o}),n.hide(),n.onValueChange()})}m.addClass("wd-search-inited")}}),woodmartThemeModule.$document.on("click",function(b){var d=b.target;a(d).is(".wd-search-form")||a(d).parents().is(".wd-search-form")||c.find('[type="text"]').devbridgeAutocomplete("hide")}),a(".wd-dropdown-results > .wd-scroll-content").on("click",function(a){a.stopPropagation()})})}},a(document).ready(function(){woodmartThemeModule.ajaxSearch()})}(jQuery),function(a){woodmartThemeModule.animationsOffset=function(){void 0!==a.fn.waypoint&&a(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").waypoint(function(){a(a(this)[0].element).addClass("wpb_start_animation animated")},{offset:"100%"})},a(document).ready(function(){woodmartThemeModule.animationsOffset()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdBackHistory",function(){woodmartThemeModule.backHistory()}),woodmartThemeModule.backHistory=function(){a(".wd-back-btn > a").on("click",function(b){b.preventDefault(),history.go(-1),setTimeout(function(){a(".filters-area").removeClass("filters-opened").stop().hide(),woodmartThemeModule.$window.width()<=1024&&(a(".wd-nav-product-cat").removeClass("categories-opened").stop().hide(),a(".wd-btn-show-cat").removeClass("button-open")),woodmartThemeModule.$document.trigger("wdBackHistory")},20)})},a(document).ready(function(){woodmartThemeModule.backHistory()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdBackHistory wdProductsTabsLoaded wdActionAfterAddToCart wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist wdQuickViewOpen wdQuickShopSuccess wdProductBaseHoverIconsResize",function(){woodmartThemeModule.btnsToolTips()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.btnsToolTips()})}),woodmartThemeModule.btnsToolTips=function(){a('.woodmart-css-tooltip, .wd-buttons[class*="wd-pos-r"] div > a').on("mouseenter touchstart",function(){var b=a(this);if(!(!b.hasClass("wd-add-img-msg")&&a(window).width()<=1024||b.hasClass("wd-tooltip-inited"))){b.find(".wd-tooltip-label").remove(),b.addClass("wd-tltp").prepend('<span class="wd-tooltip-label">'+b.text()+"</span>");var c=b.find(".wd-tooltip-label");if(b.hasClass("wd-tltp-top")){var d=c.outerWidth();c.css({marginLeft:-parseInt(d/2)})}b.addClass("wd-tooltip-inited")}}),woodmartThemeModule.windowWidth<=1024||a(".wd-tooltip, .wd-hover-icons .wd-buttons .wd-action-btn:not(.wd-add-btn) > a, .wd-hover-icons .wd-buttons .wd-add-btn, body:not(.catalog-mode-on):not(.login-see-prices) .wd-hover-base .wd-bottom-actions .wd-action-btn.wd-style-icon:not(.wd-add-btn) > a, body:not(.catalog-mode-on):not(.login-see-prices) .wd-hover-base .wd-bottom-actions .wd-action-btn.wd-style-icon.wd-add-btn, .wd-hover-base .wd-compare-btn > a, .wd-products-nav .wd-back-btn").on("mouseenter touchstart",function(){var b=a(this);b.hasClass("wd-tooltip-inited")||(b.tooltip({animation:!1,container:"body",trigger:"hover",boundary:"window",title:function(){var b=a(this);return b.find(".added_to_cart").length>0?b.find(".add_to_cart_button").text():b.text()}}),b.tooltip("show"),b.addClass("wd-tooltip-inited"))})},a(document).ready(function(){woodmartThemeModule.btnsToolTips()})}(jQuery),function(a){woodmartThemeModule.callPhotoSwipe=function(a,b){woodmartThemeModule.$body.hasClass("rtl")&&(a=b.length-a-1,b=b.reverse());var c={index:a,shareButtons:[{id:"facebook",label:woodmart_settings.share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:woodmart_settings.tweet,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:woodmart_settings.pin_it,url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:woodmart_settings.download_image,url:"{{raw_image_url}}",download:!0}],closeOnScroll:woodmart_settings.photoswipe_close_on_scroll};woodmartThemeModule.$body.find(".pswp").remove(),woodmartThemeModule.$body.append(woodmart_settings.photoswipe_template);var d=document.querySelectorAll(".pswp")[0];new PhotoSwipe(d,PhotoSwipeUI_Default,b,c).init()}}(jQuery),function(a){woodmartThemeModule.clickOnScrollButton=function(b,c,d){if("function"==typeof a.fn.waypoint){var e=a(b);if(0!==e.length){e.trigger("wd-waypoint-destroy"),d||(d=0);var f=new Waypoint({element:e[0],handler:function(){e.trigger("click")},offset:function(){return woodmartThemeModule.$window.outerHeight()+parseInt(d)}});e.data("waypoint-inited",!0).off("wd-waypoint-destroy").on("wd-waypoint-destroy",function(){e.data("waypoint-inited")&&(f.destroy(),e.data("waypoint-inited",!1))})}}}}(jQuery),function(a){woodmartThemeModule.cookiesPopup=function(){var b=woodmart_settings.cookies_version;if("accepted"!==Cookies.get("woodmart_cookies_"+b)){var c=a(".wd-cookies-popup");setTimeout(function(){c.addClass("popup-display"),c.on("click",".cookies-accept-btn",function(a){a.preventDefault(),d()})},2500);var d=function(){c.removeClass("popup-display").addClass("popup-hide"),Cookies.set("woodmart_cookies_"+b,"accepted",{expires:60,path:"/"})}}},a(document).ready(function(){woodmartThemeModule.cookiesPopup()})}(jQuery),function(a){woodmartThemeModule.footerWidgetsAccordion=function(){woodmartThemeModule.windowWidth>=576||a(".footer-widget-collapse .widget-title").on("click",function(){var b=a(this),c=b.parent(),d=c.find("> *:not(.widget-title)");c.hasClass("footer-widget-opened")?(c.removeClass("footer-widget-opened"),d.stop().slideUp(200)):(c.addClass("footer-widget-opened"),d.stop().slideDown(200),woodmartThemeModule.$document.trigger("wood-images-loaded"))})},a(document).ready(function(){woodmartThemeModule.footerWidgetsAccordion()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPjaxStart",function(){woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.hiddenSidebar()}),woodmartThemeModule.hiddenSidebar=function(){var b=woodmartThemeModule.$body.hasClass("rtl")?"right":"left";(woodmartThemeModule.$body.hasClass("offcanvas-sidebar-desktop")&&woodmartThemeModule.windowWidth>1024||woodmartThemeModule.$body.hasClass("offcanvas-sidebar-tablet")&&woodmartThemeModule.windowWidth<=1024)&&(a(".area-sidebar-shop").addClass("wd-side-hidden wd-"+b+" wd-inited wd-scroll"),a(".area-sidebar-shop .widget-area").addClass("wd-scroll-content")),woodmartThemeModule.$body.hasClass("offcanvas-sidebar-mobile")&&woodmartThemeModule.windowWidth<=768&&(a(".sidebar-container").addClass("wd-side-hidden wd-"+b+" wd-inited wd-scroll"),a(".sidebar-container .widget-area").addClass("wd-scroll-content")),woodmartThemeModule.$body.off("click",".wd-show-sidebar-btn, .wd-sidebar-opener").on("click",".wd-show-sidebar-btn, .wd-sidebar-opener",function(b){b.preventDefault(),a(".sidebar-container").hasClass("wd-opened")?woodmartThemeModule.hideShopSidebar():c()}),woodmartThemeModule.$body.on("click touchstart",".wd-close-side, .close-side-widget",function(){woodmartThemeModule.hideShopSidebar()});var c=function(){a(".sidebar-container").addClass("wd-opened"),a(".wd-close-side").addClass("wd-close-side-opened")};woodmartThemeModule.$document.trigger("wdHiddenSidebarsInited")},woodmartThemeModule.hideShopSidebar=function(){a(".sidebar-container").removeClass("wd-opened"),a(".wd-close-side").removeClass("wd-close-side-opened")},a(document).ready(function(){woodmartThemeModule.hiddenSidebar()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdHiddenSidebarsInited",function(){woodmartThemeModule.lazyLoading()}),a.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(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.lazyLoading()})}),woodmartThemeModule.lazyLoading=function(){function b(){f=f||setTimeout(function(){f=null,c()},100)}function c(){g.length&&requestAnimationFrame(function(){for(var a,b,c,f=parseInt(woodmart_settings.lazy_loading_offset),h=window.pageYOffset,i=h+window.innerHeight+f,j=0;j<g.length;)a=g[j].getBoundingClientRect(),b=h+a.top,c=b+a.height,h<c&&i>b&&!g[j].loaded?d(g[j],j):j++;e=g.length})}function d(a){function b(){requestAnimationFrame(function(){a.classList.add("wd-loaded");var b=jQuery(a).parents(".view-masonry .gallery-images, .grid-masonry, .masonry-container");b.length>0&&b.isotope("layout");var c=jQuery(a).parents(".categories-masonry");c.length>0&&c.packery()})}a.onload=b,null!==a.querySelector("img")&&(a.querySelector("img").onload=b,a.querySelector("img").src=a.dataset.woodSrc,a.querySelector("source").srcset=a.dataset.woodSrc,void 0!==a.dataset.srcset&&(a.querySelector("img").srcset=a.dataset.srcset)),a.src=a.dataset.woodSrc,void 0!==a.dataset.srcset&&(a.srcset=a.dataset.srcset),a.loaded=!0}if(window.addEventListener&&window.requestAnimationFrame&&document.getElementsByClassName){var e,f,g=document.getElementsByClassName("wd-lazy-load");if(woodmartThemeModule.$document.on("wood-images-loaded added_to_cart",function(){c()}),a(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),a(".wc-tabs > li").on("click",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),window.addEventListener("scroll",b,!1),window.addEventListener("resize",b,!1),MutationObserver){new MutationObserver(function(){g.length!==e&&c()}).observe(document.body,{subtree:!0,childList:!0,attributes:!0,characterData:!0})}c()}},a(document).ready(function(){woodmartThemeModule.lazyLoading()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_blog.default","frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.masonryLayout()})}),woodmartThemeModule.masonryLayout=function(){if(void 0!==a.fn.isotope&&void 0!==a.fn.imagesLoaded){var b=a(".masonry-container");b.imagesLoaded(function(){b.isotope({gutter:0,isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),itemSelector:".blog-design-masonry, .blog-design-mask, .masonry-item"})})}},a(document).ready(function(){woodmartThemeModule.masonryLayout()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioLoadMoreLoaded",function(){woodmartThemeModule.mfpPopup()}),woodmartThemeModule.mfpPopup=function(){void 0!==a.fn.magnificPopup&&a(".gallery").magnificPopup({delegate:" > a",type:"image",removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim"),this.st.mainClass="mfp-move-horizontal"}},image:{verticalFit:!0},gallery:{enabled:!0,navigateByImgClick:!0}})},a(document).ready(function(){woodmartThemeModule.mfpPopup()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdInstagramAjaxSuccess wdLoadDropdownsSuccess",function(){woodmartThemeModule.owlCarouselInit()}),
a.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_infobox_carousel.default","frontend/element_ready/wd_instagram.default","frontend/element_ready/wd_testimonials.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.owlCarouselInit()})}),woodmartThemeModule.owlCarouselInit=function(){function b(b){function c(){var b=d.find(".owl-item.active").find(".wd-slide").attr("id"),c=d.find('[id="'+b+'"]');d.find(".owl-item.pseudo-active").removeClass("pseudo-active"),c.each(function(){var b=a(this);b.parent().hasClass("active")||b.parent().addClass("pseudo-active")})}var d=b.find(".owl-carousel");if(!(woodmartThemeModule.windowWidth<=1024&&b.hasClass("disable-owl-mobile")||d.hasClass("owl-loaded"))){var e={rtl:woodmartThemeModule.$body.hasClass("rtl"),items:b.data("desktop")?b.data("desktop"):1,responsive:{1025:{items:b.data("desktop")?b.data("desktop"):1},769:{items:b.data("tablet_landscape")?b.data("tablet_landscape"):1},577:{items:b.data("tablet")?b.data("tablet"):1},0:{items:b.data("mobile")?b.data("mobile"):1}},autoplay:"yes"===b.data("autoplay"),autoplayHoverPause:"yes"===b.data("autoplay"),autoplayTimeout:b.data("speed")?b.data("speed"):5e3,dots:"yes"!==b.data("hide_pagination_control"),nav:"yes"!==b.data("hide_prev_next_buttons"),autoHeight:"yes"===b.data("autoheight"),slideBy:void 0!==b.data("scroll_per_page")?1:"page",navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"],center:"yes"===b.data("center_mode"),loop:"yes"===b.data("wrap"),dragEndSpeed:b.data("dragendspeed")?b.data("dragendspeed"):200};b.data("sliding_speed")&&(e.smartSpeed=b.data("sliding_speed"),e.dragEndSpeed=b.data("sliding_speed")),b.data("animation")&&(e.animateOut=b.data("animation"),e.mouseDrag=!1),b.data("content_animation")&&(c(),e.onTranslated=function(){c()}),woodmartThemeModule.$window.on("vc_js",function(){d.trigger("refresh.owl.carousel")}),d.find("link").appendTo("head"),d.owlCarousel(e),"yes"===b.data("autoheight")&&d.imagesLoaded(function(){d.trigger("refresh.owl.carousel")})}}a("div[data-owl-carousel]:not(.scroll-init):not(.wd-slider-wrapper)").each(function(){b(a(this))}),a("div[data-owl-carousel].wd-slider-wrapper:not(.scroll-init)").each(function(){b(a(this))}),void 0!==a.fn.waypoint&&a("div[data-owl-carousel].scroll-init").waypoint(function(){b(a(a(this)[0].element))},{offset:"100%"})},a(document).ready(function(){woodmartThemeModule.owlCarouselInit()})}(jQuery),function(a){woodmartThemeModule.parallax=function(){woodmartThemeModule.windowWidth<=1024||a(".wd-parallax").each(function(){var b=a(this);b.hasClass("wpb_column")?b.find("> .vc_column-inner").parallax("50%",.3):b.parallax("50%",.3)})},a(document).ready(function(){woodmartThemeModule.parallax()})}(jQuery),function(a){woodmartThemeModule.photoswipeImages=function(){a(".photoswipe-images").each(function(){var c=a(this);c.on("click","a",function(d){d.preventDefault();var e=a(d.currentTarget).data("index")-1,f=b(c,[]);woodmartThemeModule.callPhotoSwipe(e,f)})});var b=function(b,d){var e,f,g,h;return b.find("a").each(function(){var b=a(this);e=b.attr("href"),f=b.data("width"),g=b.data("height"),h=b.attr("title"),c(d,e)||d.push({src:e,w:f,h:g,title:h})}),d},c=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c].src===b)return!0;return!1}},a(document).ready(function(){woodmartThemeModule.photoswipeImages()})}(jQuery),function(a){woodmartThemeModule.promoPopup=function(){var b=woodmart_settings.promo_version;if(!(woodmartThemeModule.$body.hasClass("page-template-maintenance")||"yes"!==woodmart_settings.enable_popup||"yes"===woodmart_settings.promo_popup_hide_mobile&&woodmartThemeModule.windowWidth<768||"confirmed"!==Cookies.get("woodmart_age_verify")&&"yes"===woodmart_settings.age_verify)){var c=!1,d=Cookies.get("woodmart_shown_pages"),e=function(){a.magnificPopup.open({items:{src:".wd-promo-popup"},type:"inline",removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal wd-promo-popup-wrapper"},close:function(){Cookies.set("woodmart_popup_"+b,"shown",{expires:7,path:"/"})}}}),woodmartThemeModule.$document.trigger("wood-images-loaded")};if(a(".woodmart-open-newsletter").on("click",function(a){a.preventDefault(),e()}),d||(d=0),d<woodmart_settings.popup_pages)return d++,Cookies.set("woodmart_shown_pages",d,{expires:7,path:"/"}),!1;"shown"!==Cookies.get("woodmart_popup_"+b)&&("scroll"===woodmart_settings.popup_event?woodmartThemeModule.$window.on("scroll",function(){if(c)return!1;woodmartThemeModule.$document.scrollTop()>=woodmart_settings.popup_scroll&&(e(),c=!0)}):setTimeout(function(){e()},woodmart_settings.popup_delay))}},a(document).ready(function(){woodmartThemeModule.promoPopup()})}(jQuery),function(a){woodmartThemeModule.scrollTop=function(){var b=a(".scrollToTop");woodmartThemeModule.$window.on("scroll",function(){a(this).scrollTop()>100?b.addClass("button-show"):b.removeClass("button-show")}),b.on("click",function(){return a("html, body").animate({scrollTop:0},800),!1})},a(document).ready(function(){woodmartThemeModule.scrollTop()})}(jQuery),function(a){woodmartThemeModule.searchFullScreen=function(){var b=a(".wd-search-full-screen");woodmartThemeModule.$body.on("click",".wd-header-search:not(.wd-header-search-mobile) > a",function(b){b.preventDefault(),a(this).parent().find(".wd-search-dropdown").length>0||woodmartThemeModule.$body.hasClass("global-search-dropdown")||woodmartThemeModule.$window.width()<1024||(f()?d():setTimeout(function(){e()},10))}),woodmartThemeModule.$body.on("click",".wd-close-search a, .main-page-wrapper, .header-banner",function(b){!a(b.target).is(".wd-close-search a")&&a(b.target).closest(".wd-search-full-screen").length||f()&&d()});var c=function(a){27===a.keyCode&&(d(),woodmartThemeModule.$body.unbind("keyup",c))},d=function(){woodmartThemeModule.$body.removeClass("wd-search-opened"),b.removeClass("wd-opened")},e=function(){var e,g=a("#wpadminbar"),h=g.length>0?g.outerHeight():0,i=a(".whb-sticked"),j=a(".whb-main-header");i.length>0?e=a(".whb-clone").length>0?i.outerHeight()+h:j.outerHeight()+h:(e=j.outerHeight()+h,woodmartThemeModule.$body.hasClass("header-banner-display")&&(e+=a(".header-banner").outerHeight())),b.css("top",e),woodmartThemeModule.$body.on("keyup",c),woodmartThemeModule.$body.addClass("wd-search-opened"),b.addClass("wd-opened"),setTimeout(function(){b.find('input[type="text"]').focus(),woodmartThemeModule.$window.one("scroll",function(){f()&&d()})},300)},f=function(){return woodmartThemeModule.$body.hasClass("wd-search-opened")}},a(document).ready(function(){woodmartThemeModule.searchFullScreen()})}(jQuery),function(a){woodmartThemeModule.stickyColumn=function(){a(".woodmart-sticky-column").each(function(){var b=a(this),c=0;(woodmartThemeModule.$body.hasClass("enable-sticky-header")||a(".whb-sticky-row").length>0||a(".whb-sticky-header").length>0)&&(c=150),b.find(" > .vc_column-inner > .wpb_wrapper").stick_in_parent({offset_top:c})}),a(".wd-elementor-sticky-column").each(function(){for(var b=a(this),c=150,d=b.attr("class").split(" "),e=0;e<d.length;e++)if(d[e].indexOf("wd_sticky_offset_")>=0){var f=d[e].split("_");c=parseInt(f[3])}var g=b.find("> .elementor-column-wrap > .elementor-widget-wrap");g.length<=0&&(g=b.find("> .elementor-widget-wrap")),g.stick_in_parent({offset_top:c})})},a(document).ready(function(){woodmartThemeModule.stickyColumn()})}(jQuery),function(a){woodmartThemeModule.stickyFooter=function(){if(woodmartThemeModule.$body.hasClass("sticky-footer-on")&&!(woodmartThemeModule.$window.width()<=1024)){var b=a(".footer-container"),c=a(".main-page-wrapper"),d=a(".wd-prefooter"),e=woodmartThemeModule.$window;d.length>0&&(c=d);var f=function(){c.css({marginBottom:b.outerHeight()})};e.on("resize",f),b.imagesLoaded(function(){f()});var g=function(){if(a("html").hasClass("browser-Safari")){var c=e.scrollTop();woodmartThemeModule.$document.outerHeight()-b.outerHeight()<c+b.outerHeight()+e.outerHeight()?b.addClass("visible-footer"):b.removeClass("visible-footer")}};g(),e.on("scroll",g)}},a(document).ready(function(){woodmartThemeModule.stickyFooter()})}(jQuery),function(a){woodmartThemeModule.stickySocialButtons=function(){a(".wd-sticky-social").addClass("buttons-loaded")},a(document).ready(function(){woodmartThemeModule.stickySocialButtons()})}(jQuery),function(a){woodmartThemeModule.widgetsHidable=function(){woodmartThemeModule.$document.on("click",".widget-hidable .widget-title",function(){var b=a(this),c=b.siblings("ul, div, form, label, select");b.parent().toggleClass("widget-hidden"),c.stop().slideToggle(200)})},a(document).ready(function(){woodmartThemeModule.widgetsHidable()})}(jQuery),function(a){woodmartThemeModule.headerBanner=function(){var b=woodmart_settings.header_banner_version;if("closed"!==Cookies.get("woodmart_tb_banner_"+b)&&"no"!==woodmart_settings.header_banner_close_btn&&"no"!==woodmart_settings.header_banner_enabled){woodmartThemeModule.$body.hasClass("page-template-maintenance")||woodmartThemeModule.$body.addClass("header-banner-display"),a(".header-banner").on("click",".close-header-banner",function(a){a.preventDefault(),c()});var c=function(){woodmartThemeModule.$body.removeClass("header-banner-display").addClass("header-banner-hide"),Cookies.set("woodmart_tb_banner_"+b,"closed",{expires:60,path:"/"})}}},a(document).ready(function(){woodmartThemeModule.headerBanner()})}(jQuery),function(a){woodmartThemeModule.headerBuilder=function(){function b(){j||(j=!0,e.addClass("whb-sticked"))}function c(){j&&(j=!1,e.removeClass("whb-sticked"))}var d,e=a(".whb-header"),f=a(".header-banner"),g=a(".whb-sticky-row"),h="",i=woodmartThemeModule.$window,j=!1,k=300,l="",m=e.hasClass("whb-hide-on-scroll");if(g.each(function(){var b=a(this);if(b[0].offsetHeight>10)return h=b,!1}),e.hasClass("whb-sticky-real")||e.hasClass("whb-scroll-slide")){var n=a("#wpadminbar"),o=e.find(".whb-main-header")[0].offsetHeight,p=n.length>0?n[0].offsetHeight:0;if(e.hasClass("whb-sticky-real")){if(0===h.length||h[0].offsetHeight<10)return;e.addClass("whb-sticky-prepared").css({paddingTop:o}),k=h.offset().top-p}e.hasClass("whb-scroll-slide")&&(k=o+p)}if(e.hasClass("whb-sticky-clone")){var q=[];q.cloneClass=e.find(".whb-general-header").attr("class"),m&&(q.wrapperClasses="whb-hide-on-scroll"),l=woodmart_settings.whb_header_clone,l=l.replace(/<%([^%>]+)?%>/g,function(b){var c=b.slice(2,-2);return e.find(c).length?a("<div>").append(e.find(c).first().clone()).html():void 0!==q[c]?q[c]:""}),l=l.replace(/<link[^>]*>/g,""),e.after(l),e=e.parent().find(".whb-clone"),e.find(".whb-row").removeClass("whb-flex-equal-sides").addClass("whb-flex-flex-middle")}i.on("scroll",function(){var g=k,h=woodmartThemeModule.$window.scrollTop(),i=woodmartThemeModule.$window.height(),j=woodmartThemeModule.$document.height();f.length>0&&woodmartThemeModule.$body.hasClass("header-banner-display")&&(g+=f[0].offsetHeight),!a(".close-header-banner").length&&e.hasClass("whb-scroll-stick")&&(g=k),h>g?b():c();var l=100;e.hasClass("whb-scroll-stick")&&(l=500),m&&(d-h>0&&h>g?(e.addClass("whb-scroll-up"),e.removeClass("whb-scroll-down")):h-d>0&&h+i!==j&&h>g+l?(e.addClass("whb-scroll-down"),e.removeClass("whb-scroll-up")):h<=g?(e.removeClass("whb-scroll-down"),e.removeClass("whb-scroll-up")):h+i>=j-5&&(e.addClass("whb-scroll-up"),e.removeClass("whb-scroll-down"))),d=h}),woodmartThemeModule.$document.trigger("wdHeaderBuilderInited")},woodmartThemeModule.$window.on("wdEventStarted",function(){woodmartThemeModule.headerBuilder()})}(jQuery),function(a){woodmartThemeModule.mobileSearchIcon=function(){a(".wd-header-search-mobile").on("click",function(b){b.preventDefault();var c=a(".mobile-nav");c.hasClass("wd-opened")||(c.addClass("wd-opened"),a(".wd-close-side").addClass("wd-close-side-opened"),a(".mobile-nav .searchform").find('input[type="text"]').focus())})},a(document).ready(function(){woodmartThemeModule.mobileSearchIcon()})}(jQuery),function(a){woodmartThemeModule.fullScreenMenu=function(){a(".wd-header-fs-nav > a").on("click",function(b){b.preventDefault(),a(".wd-fs-menu").addClass("wd-opened")}),woodmartThemeModule.$document.on("keyup",function(b){27===b.keyCode&&a(".wd-fs-close").click()}),a(".wd-fs-close").on("click",function(){a(".wd-fs-menu").removeClass("wd-opened"),setTimeout(function(){a(".wd-nav-fs .menu-item-has-children").removeClass("sub-menu-open"),a(".wd-nav-fs .menu-item-has-children .wd-nav-opener").removeClass("wd-active")},200)}),a(".wd-nav-fs > .menu-item-has-children > a, .wd-nav-fs .wd-dropdown-fs-menu.wd-design-default .menu-item-has-children > a").append('<span class="wd-nav-opener"></span>'),a(".wd-nav-fs").on("click",".wd-nav-opener",function(b){b.preventDefault();var c=a(this),d=c.parent().parent();d.hasClass("sub-menu-open")?(d.removeClass("sub-menu-open"),c.removeClass("wd-active")):(d.siblings(".sub-menu-open").find(".wd-nav-opener").removeClass("wd-active"),d.siblings(".sub-menu-open").removeClass("sub-menu-open"),d.addClass("sub-menu-open"),c.addClass("wd-active"))})},a(document).ready(function(){woodmartThemeModule.fullScreenMenu()})}(jQuery),function(a){woodmartThemeModule.menuDropdownsAJAX=function(){function b(b){a(".menu").has(".dropdown-load-ajax").each(function(){var e=a(this);e.hasClass("dropdowns-loading")||e.hasClass("dropdowns-loaded")||d(e,50,b)&&c(e)})}function c(b){function c(a){Object.keys(a).forEach(function(c){woodmartThemeModule.removeDuplicatedStylesFromHTML(a[c],function(a){b.find('[data-id="'+c+'"]').replaceWith(a),b.addClass("dropdowns-loaded"),setTimeout(function(){b.removeClass("dropdowns-loading")},1e3)})}),woodmartThemeModule.$document.trigger("wdLoadDropdownsSuccess")}b.addClass("dropdowns-loading");var d=woodmart_settings.menu_storage_key+"_"+b.attr("id"),e=!1,f=b.find(".dropdown-load-ajax"),g=[];if(f.each(function(){g.push(a(this).find(".dropdown-html-placeholder").data("id"))}),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage){var h=localStorage.getItem(d);try{e=JSON.parse(h)}catch(i){console.log("cant parse Json",i)}}e?c(e):a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_load_html_dropdowns",ids:g},dataType:"json",method:"POST",success:function(a){"success"===a.status?(c(a.data),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage&&localStorage.setItem(d,JSON.stringify(a.data))):console.log("loading html dropdowns returns wrong data - ",a.message)},error:function(){console.log("loading html dropdowns ajax error")}})}function d(a,b,c){var d=a.offset().left-b,e=a.offset().top-b,f=d+a.width()+2*b,g=e+a.height()+2*b,h=c.pageX,i=c.pageY;return h>d&&h<f&&i>e&&i<g}woodmartThemeModule.$body.on("mousemove",b)},a(document).ready(function(){woodmartThemeModule.menuDropdownsAJAX()})}(jQuery),function(a){woodmartThemeModule.menuOffsets=function(){var b=function(a){var b,c,d,e=a.find(" > .wd-dropdown-menu"),f=e.outerWidth(),g=e.offset();if(e.attr("style",""),f&&g)if(e.hasClass("wd-design-full-width"))c=woodmartThemeModule.$window.width(),woodmartThemeModule.$body.hasClass("rtl")?(d=c-g.left-f)+f>=c&&(b=d+f-c,e.css({right:-b})):g.left+f>=c&&(b=g.left+f-c,e.css({left:-b}));else if(e.hasClass("wd-design-sized")||e.hasClass("wd-design-default")){c=woodmart_settings.site_width,(woodmartThemeModule.$window.width()<c||!c)&&(c=woodmartThemeModule.$window.width()),d=c-g.left-f;var h,i=15,j=(woodmartThemeModule.$window.width()-c)/2;woodmartThemeModule.$body.hasClass("rtl")?(h=j+d)+f>=c&&(b=h+f-c,e.css({right:-b-i})):(h=g.left-j)+f>=c&&(b=h+f-c,e.css({left:-b-i}))}};a(".wd-header-main-nav ul.menu > li, .wd-header-secondary-nav ul.menu > li").each(function(){var c=a(this);c.hasClass("menu-item")&&(c=a(this).parent()),c.on("mouseenter mousemove",function(){c.hasClass("wd-offsets-calculated")||(c.find(" > .menu-item-has-children").each(function(){b(a(this))}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour"),c.addClass("wd-offsets-calculated"))}),"yes"===woodmart_settings.clear_menu_offsets_on_resize&&setTimeout(function(){woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){c.removeClass("wd-offsets-calculated"),c.find(" > .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3)})},woodmartThemeModule.$window.on("wdEventStarted",function(){woodmartThemeModule.menuOffsets()})}(jQuery),function(a){woodmartThemeModule.menuSetUp=function(){function b(){woodmartThemeModule.$window.width()<=1024?c.find(" > .menu-item-has-children.wd-event-hover").each(function(){a(this).data("original-event","hover").removeClass("wd-event-hover").addClass("wd-event-click")}):c.find(" > .wd-event-click").each(function(){var b=a(this);"hover"===b.data("original-event")&&b.removeClass("wd-event-click").addClass("wd-event-hover")})}var c=a(".wd-nav"),d="wd-opened";a(".mobile-nav").find("ul.wd-nav-mobile").find(" > li").has(".wd-dropdown-menu").addClass("menu-item-has-children"),c.on("click"," > .wd-event-click > a",function(b){b.preventDefault();var c=a(this);c.parent().hasClass(d)||a("."+d).removeClass(d),c.parent().toggleClass(d)}),woodmartThemeModule.$document.on("click",function(b){var e=b.target;a("."+d).length>0&&!a(e).is(".wd-event-hover")&&!a(e).parents().is(".wd-event-hover")&&!a(e).parents().is("."+d)&&c.find("."+d).removeClass(d)}),"yes"===woodmart_settings.menu_item_hover_to_click_on_responsive&&(b(),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){b()},300)))},a(document).ready(function(){woodmartThemeModule.menuSetUp()})}(jQuery),function(a){woodmartThemeModule.mobileNavigation=function(){function b(){e.addClass("wd-opened"),g.addClass("wd-close-side-opened")}function c(){e.removeClass("wd-opened"),g.removeClass("wd-close-side-opened"),a(".mobile-nav .searchform input[type=text]").blur()}var d=woodmartThemeModule.$body,e=a(".mobile-nav"),f=a(".mobile-nav .wd-nav-mobile .menu-item-has-children"),g=a(".wd-close-side");f.append('<span class="wd-nav-opener"></span>'),e.on("click",".wd-nav-opener",function(b){b.preventDefault();var c=a(this),d=c.parent();d.hasClass("opener-page")?(d.removeClass("opener-page").find("> ul").slideUp(200),d.removeClass("opener-page").find(".wd-dropdown-menu .container > ul, .wd-dropdown-menu > ul").slideUp(200),d.find("> .wd-nav-opener").removeClass("wd-active")):(d.addClass("opener-page").find("> ul").slideDown(200),d.addClass("opener-page").find(".wd-dropdown-menu .container > ul, .wd-dropdown-menu > ul").slideDown(200),d.find("> .wd-nav-opener").addClass("wd-active"))}),e.on("click",".wd-nav-mob-tab li",function(b){b.preventDefault();var c=a(this),d=c.data("menu");c.hasClass("wd-active")||(c.parent().find(".wd-active").removeClass("wd-active"),c.addClass("wd-active"),a(".wd-nav-mobile").removeClass("wd-active"),a(".mobile-"+d+"-menu").addClass("wd-active"))}),d.on("click",".wd-header-mobile-nav > a",function(a){a.preventDefault(),e.hasClass("wd-opened")?c():b()}),d.on("click touchstart",".wd-close-side",function(){c()}),d.on("click",".mobile-nav .login-side-opener",function(){c()})},a(document).ready(function(){woodmartThemeModule.mobileNavigation()})}(jQuery),function(a){woodmartThemeModule.moreCategoriesButton=function(){a(".wd-more-cat").each(function(){var b=a(this);b.find(".wd-more-cat-btn a").on("click",function(a){a.preventDefault(),b.toggleClass("wd-show-cat")})})},a(document).ready(function(){woodmartThemeModule.moreCategoriesButton()})}(jQuery),function(a){woodmartThemeModule.onePageMenu=function(){var b=function(b){var d=a("#"+b+', .wd-menu-anchor[data-id="'+b+'"]');if(!(d.length<1)){var e=d.offset().top;a("html, body").animate({scrollTop:e-woodmart_settings.one_page_menu_offset},800),setTimeout(function(){c(b)},800)}},c=function(b){var c;a(".onepage-link").each(function(){var d=a(this);(c=d.find("> a").attr("href").split("#")[1])===b&&(a(".onepage-link").removeClass("current-menu-item"),d.addClass("current-menu-item"))})};if(woodmartThemeModule.$body.on("click",".onepage-link > a",function(c){var d=a(this),e=d.attr("href").split("#")[1];a("#"+e).length<1&&a('.wd-menu-anchor[data-id="'+e+'"]').length<1||(c.preventDefault(),b(e),a(".wd-close-side").trigger("click"),a(".wd-fs-close").trigger("click"))}),a(".onepage-link").length>0){a(".entry-content > .vc_section, .entry-content > .vc_row").waypoint(function(){var b=a(a(this)[0].element),d=b.attr("id");c(d)},{offset:150}),a(".wd-menu-anchor").waypoint(function(){c(a(a(this)[0].element).data("id"))},{offset:function(){return a(a(this)[0].element).data("offset")}});var d=window.location.hash.split("#")[1];window.location.hash.length>1&&setTimeout(function(){b(d)},500)}},a(document).ready(function(){woodmartThemeModule.onePageMenu()})}(jQuery),function(a){woodmartThemeModule.simpleDropdown=function(){a(".wd-search-cat").each(function(){function b(){h.addClass("wd-opened"),void 0!==a.fn.devbridgeAutocomplete&&e.parent().siblings('[type="text"]').devbridgeAutocomplete("hide"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdSimpleDropdownOpened")},300)}function c(){h.removeClass("wd-opened")}function d(){if(!(woodmartThemeModule.$window.width()<=768||i.hasClass("wd-padding-inited")||"yes"!==woodmart_settings.search_input_padding)){var a=e.innerWidth()+e.parent().siblings(".searchsubmit").innerWidth()+17,b="padding-right";woodmartThemeModule.$body.hasClass("rtl")&&(b="padding-left"),i.css(b,a),i.addClass("wd-padding-inited")}}var e=a(this),f=e.find("> a"),g=e.find("> input"),h=e.find("> .wd-dropdown"),i=e.parent().parent().find(".s");i.on("focus",function(){d()}),woodmartThemeModule.$document.on("click",function(b){var d=b.target;if(h.hasClass("wd-opened")&&!a(d).is(".wd-search-cat")&&!a(d).parents().is(".wd-search-cat"))return c(),!1}),f.on("click",function(a){return a.preventDefault(),h.hasClass("wd-opened")?c():b(),!1}),h.on("click","a",function(b){b.preventDefault();var e=a(this),i=e.data("val"),j=e.text();h.find(".current-item").removeClass("current-item"),e.parent().addClass("current-item"),0!==i?h.find("ul:not(.children) > li:first-child").show():0===i&&h.find("ul:not(.children) > li:first-child").hide(),f.find("span").text(j),g.val(i).trigger("cat_selected"),c(),d()})})},a(document).ready(function(){woodmartThemeModule.simpleDropdown()})}(jQuery),function(a){woodmartThemeModule.ajaxPortfolio=function(){if("no"!==woodmart_settings.ajax_portfolio&&void 0!==a.fn.pjax){woodmartThemeModule.$body.on("click",".tax-project-cat .wd-pagination a, .post-type-archive-portfolio .wd-pagination a",function(){b(!0)}),woodmartThemeModule.$document.pjax(".wd-type-links .wd-nav-portfolio a, .tax-project-cat .wd-pagination a, .post-type-archive-portfolio .wd-pagination a",".main-page-wrapper",{timeout:woodmart_settings.pjax_timeout,scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c()})}}),woodmartThemeModule.$document.on("pjax:start",function(){var b=a(".site-content");b.removeClass("ajax-loaded"),b.addClass("ajax-loading"),woodmartThemeModule.$document.trigger("wdPortfolioPjaxStart"),woodmartThemeModule.$window.trigger("scroll.loaderVerticalPosition")}),woodmartThemeModule.$document.on("pjax:end",function(){a(".site-content").removeClass("ajax-loading")}),woodmartThemeModule.$document.on("pjax:complete",function(){(woodmartThemeModule.$body.hasClass("tax-project-cat")||woodmartThemeModule.$body.hasClass("post-type-archive-portfolio"))&&(woodmartThemeModule.$document.trigger("wdPortfolioPjaxComplete"),woodmartThemeModule.$document.trigger("wood-images-loaded"),b(!1),a(".wd-ajax-content").removeClass("wd-loading"))});var b=function(b){if("no"===woodmart_settings.ajax_scroll&&!1===b)return!1;var c=a(woodmart_settings.ajax_scroll_class),d=c.offset().top-woodmart_settings.ajax_scroll_offset;a("html, body").stop().animate({scrollTop:d},400)}}},a(document).ready(function(){woodmartThemeModule.ajaxPortfolio()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioLoadMoreLoaded wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioEffects()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioEffects()})}),woodmartThemeModule.portfolioEffects=function(){void 0!==a.fn.panr&&a(".wd-portfolio-holder .portfolio-parallax").panr({sensitivity:15,scale:!1,scaleOnHover:!0,scaleTo:1.12,scaleDuration:.45,panY:!0,panX:!0,panDuration:1.5,resetPanOnMouseLeave:!0})},a(document).ready(function(){woodmartThemeModule.portfolioEffects()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioLoadMore()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioLoadMore()})}),woodmartThemeModule.portfolioLoadMore=function(){if("function"==typeof a.fn.waypoint){var b=a(".wd-portfolio-load-more.load-on-scroll").waypoint(function(){a(".wd-portfolio-load-more.load-on-scroll").trigger("click")},{offset:"100%"}),c=!1;a(".wd-portfolio-load-more").on("click",function(d){d.preventDefault();var e=a(this);if(!c&&!e.hasClass("no-more-posts")){c=!0;var f,g=e.parent().parent().find(".wd-portfolio-holder"),h=g.data("source"),i="woodmart_get_portfolio_"+h,j=woodmart_settings.ajaxurl,k="json",l="POST",m=g.data("atts"),n=g.data("paged");e.addClass("loading");var o={atts:m,paged:n,action:i};"main_loop"===h&&(j=e.attr("href"),l="GET",o={}),a.ajax({url:j,data:o,dataType:k,method:l,success:function(c){woodmartThemeModule.removeDuplicatedStylesFromHTML(c.items,function(d){var h=a(d);h&&(g.hasClass("masonry-container")?(g.append(h).isotope("appended",h),g.imagesLoaded().progress(function(){g.isotope("layout"),clearTimeout(f),f=setTimeout(function(){b=a(".wd-portfolio-load-more.load-on-scroll").waypoint(function(){a(".wd-portfolio-load-more.load-on-scroll").trigger("click")},{offset:"100%"})},1e3)})):g.append(h),g.data("paged",n+1),e.attr("href",c.nextPage),"yes"===woodmart_settings.load_more_button_page_url&&window.history.pushState("","",c.currentPage)),woodmartThemeModule.$document.trigger("wdPortfolioLoadMoreLoaded"),"no-more-posts"===c.status&&(e.addClass("no-more-posts"),e.hide())})},error:function(){console.log("ajax error")},complete:function(){e.removeClass("loading"),c=!1}})}})}},a(document).ready(function(){woodmartThemeModule.portfolioLoadMore()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioMasonryFilters()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioMasonryFilters()})}),woodmartThemeModule.portfolioMasonryFilters=function(){var b=a(".wd-nav-portfolio");b.on("click","li",function(c){c.preventDefault();var d=a(this),e=d.attr("data-filter");setTimeout(function(){woodmartThemeModule.$document.trigger("wood-images-loaded")},300),b.find(".wd-active").removeClass("wd-active"),d.addClass("wd-active"),d.parents(".portfolio-filter").siblings(".masonry-container.wd-portfolio-holder").isotope({filter:e})})},a(document).ready(function(){woodmartThemeModule.portfolioMasonryFilters()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdPortfolioPjaxComplete",function(){woodmartThemeModule.portfolioPhotoSwipe()}),a.each(["frontend/element_ready/wd_portfolio.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.portfolioPhotoSwipe()})}),woodmartThemeModule.portfolioPhotoSwipe=function(){woodmartThemeModule.$document.on("click",".portfolio-enlarge",function(c){c.preventDefault();var d=a(this),e=d.parents(".owl-item");0===e.length&&(e=d.parents(".portfolio-entry"));var f=e.index(),g=b();woodmartThemeModule.callPhotoSwipe(f,g)});var b=function(){var b=[];return a(".portfolio-entry").find("figure a img").each(function(){var c=a(this);b.push({src:c.attr("src"),w:c.attr("width"),h:c.attr("height")})}),b}},a(document).ready(function(){woodmartThemeModule.portfolioPhotoSwipe()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.addToCart()})}),woodmartThemeModule.addToCart=function(){var b,c=0;woodmartThemeModule.$body.on("added_to_cart",function(){if("popup"===woodmart_settings.add_to_cart_action){var b=['<div class="added-to-cart">',"<h3>"+woodmart_settings.added_to_cart+"</h3>",'<a href="#" class="btn btn-style-link btn-color-default close-popup">'+woodmart_settings.continue_shopping+"</a>",'<a href="'+woodmart_settings.cart_url+'" class="btn btn-color-primary view-cart">'+woodmart_settings.view_cart+"</a>","</div>"].join("");a.magnificPopup.open({removalDelay:500,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal cart-popup-wrapper"}},items:{src:'<div class="mfp-with-anim wd-popup white-popup popup-added_to_cart">'+b+"</div>",type:"inline"}}),a(".white-popup").on("click",".close-popup",function(b){b.preventDefault(),a.magnificPopup.close()}),d()}else if("widget"===woodmart_settings.add_to_cart_action){clearTimeout(c);var e=a(".act-scroll .wd-header-cart .wd-dropdown-cart, .whb-sticked .wd-header-cart .wd-dropdown-cart");e.length>0?e.addClass("wd-opened"):a(".whb-header .wd-header-cart .wd-dropdown-cart").addClass("wd-opened");var f=a(".cart-widget-opener");f.length>0&&f.first().trigger("click"),c=setTimeout(function(){a(".wd-dropdown-cart").removeClass("wd-opened")},3500),d()}woodmartThemeModule.$document.trigger("wdActionAfterAddToCart")});var d=function(){if("yes"!==woodmart_settings.add_to_cart_action_timeout)return!1;clearTimeout(b),b=setTimeout(function(){a(".wd-close-side").trigger("click"),a.magnificPopup.close()},1e3*parseInt(woodmart_settings.add_to_cart_action_timeout_number))}},a(document).ready(function(){woodmartThemeModule.addToCart()})}(jQuery),function(a){woodmartThemeModule.addToCartAllTypes=function(){0!=woodmart_settings.ajax_add_to_cart&&woodmartThemeModule.$body.on("submit","form.cart",function(b){var c=a(this),d=c.parents(".single-product-page");if(0===d.length&&(d=c.parents(".product-quick-view")),!(d.hasClass("product-type-external")||d.hasClass("product-type-zakeke")||d.hasClass("product-type-gift-card"))){b.preventDefault();var e=c.find(".single_add_to_cart_button"),f=c.serialize();f+="&action=woodmart_ajax_add_to_cart",e.val()&&(f+="&add-to-cart="+e.val()),e.removeClass("added not-added"),e.addClass("loading"),woodmartThemeModule.$body.trigger("adding_to_cart",[e,f]),a.ajax({url:woodmart_settings.ajaxurl,data:f,method:"POST",success:function(b){if(b){if(window.location.toString().replace("add-to-cart","added-to-cart"),b.error&&b.product_url)return void(window.location=b.product_url);if("yes"===woodmart_settings.cart_redirect_after_add)window.location=woodmart_settings.cart_url;else{e.removeClass("loading");var c=b.fragments,d=b.cart_hash;c&&a.each(c,function(b){a(b).addClass("updating")}),c&&a.each(c,function(b,c){a(b).replaceWith(c)}),b.notices.indexOf("error")>0?(woodmartThemeModule.$body.append(b.notices),e.addClass("not-added")):("widget"===woodmart_settings.add_to_cart_action&&a.magnificPopup.close(),e.addClass("added"),woodmartThemeModule.$body.trigger("added_to_cart",[c,d,e]))}}},error:function(){console.log("ajax adding to cart error")},complete:function(){}})}})},a(document).ready(function(){
woodmartThemeModule.addToCartAllTypes()})}(jQuery),function(a){woodmartThemeModule.ajaxFilters=function(){if(woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax&&!woodmartThemeModule.$body.hasClass("single-product")){var b=!1;woodmartThemeModule.$body.on("click",".post-type-archive-product .products-footer .woocommerce-pagination a",function(){c(!0)}),woodmartThemeModule.$document.pjax(woodmartThemeModule.ajaxLinks,".main-page-wrapper",{timeout:woodmart_settings.pjax_timeout,scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),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 b=a(".widget_price_filter form");return a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:b.attr("action"),data:b.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),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(b){var c=a(".main-page-wrapper");a.pjax.submit(b,c)}),woodmartThemeModule.$document.on("pjax:error",function(a,b,c){console.log("pjax error "+c)}),woodmartThemeModule.$document.on("pjax:start",function(){var b=a(".site-content");b.removeClass("ajax-loaded"),b.addClass("ajax-loading"),woodmartThemeModule.$document.trigger("wdPjaxStart"),woodmartThemeModule.$window.trigger("scroll.loaderVerticalPosition")}),woodmartThemeModule.$document.on("pjax:complete",function(){woodmartThemeModule.$window.off("scroll.loaderVerticalPosition"),c(!1),woodmartThemeModule.$document.trigger("wood-images-loaded"),a(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),a(".site-content").removeClass("ajax-loading"),"undefined"!=typeof woodmart_wpml_js_data&&woodmart_wpml_js_data.languages&&a.each(woodmart_wpml_js_data.languages,function(b,c){a(".wpml-ls-item-"+c.code+" .wpml-ls-link").attr("href",c.url)})}),woodmartThemeModule.$document.on("pjax:beforeReplace",function(){a(".filters-area").hasClass("filters-opened")&&"yes"===woodmart_settings.shop_filters_close&&(b=!0,woodmartThemeModule.$body.addClass("body-filters-opened"))}),woodmartThemeModule.$document.on("pjax:end",function(){var c=a(".site-content");b&&(a(".filters-area").css("display","block"),woodmartThemeModule.openFilters(200),b=!1),c.removeClass("ajax-loading"),c.addClass("ajax-loaded")});var c=function(b){if("no"===woodmart_settings.ajax_scroll&&!1===b)return!1;var c=a(woodmart_settings.ajax_scroll_class),d=c.offset().top-woodmart_settings.ajax_scroll_offset;a("html, body").stop().animate({scrollTop:d},400)}}},a(document).ready(function(){woodmartThemeModule.ajaxFilters()})}(jQuery),function(a){woodmartThemeModule.cartWidget=function(){var b=woodmartThemeModule.$body,c=a(".cart-widget-side"),d=a(".wd-close-side");b.on("click",".cart-widget-opener",function(a){h()||i()||a.preventDefault(),g()?e():setTimeout(function(){f()},10)}),b.on("click touchstart",".wd-close-side",function(){g()&&e()}),b.on("click",".close-side-widget",function(a){a.preventDefault(),g()&&e()}),woodmartThemeModule.$document.on("keyup",function(a){27===a.keyCode&&g()&&e()});var e=function(){c.removeClass("wd-opened"),d.removeClass("wd-close-side-opened")},f=function(){if(h()||i())return!1;c.addClass("wd-opened"),d.addClass("wd-close-side-opened")},g=function(){return c.hasClass("wd-opened")},h=function(){return woodmartThemeModule.$body.hasClass("woocommerce-cart")},i=function(){return woodmartThemeModule.$body.hasClass("woocommerce-checkout")}},a(document).ready(function(){woodmartThemeModule.cartWidget()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdBackHistory wdShopPageInit",function(){woodmartThemeModule.categoriesAccordion()}),woodmartThemeModule.categoriesAccordion=function(){if("no"!==woodmart_settings.categories_toggle){var b=a(".widget_product_categories"),c=b.find(".product-categories"),d=300;c.find(".cat-parent").each(function(){var b=a(this);b.find(" > .wd-cats-toggle").length>0||0!==b.find(" > .children").length&&0!==b.find(" > .children > *").length&&b.append('<div class="wd-cats-toggle"></div>')}),c.on("click",".wd-cats-toggle",function(){var b=a(this),c=b.prev();c.hasClass("list-shown")?(b.removeClass("toggle-active"),c.stop().slideUp(d).removeClass("list-shown")):(c.parent().parent().find("> li > .list-shown").slideUp().removeClass("list-shown"),c.parent().parent().find("> li > .toggle-active").removeClass("toggle-active"),b.addClass("toggle-active"),c.stop().slideDown(d).addClass("list-shown"))}),c.find("li.current-cat.cat-parent, li.current-cat-parent").length>0&&c.find("li.current-cat.cat-parent, li.current-cat-parent").find("> .wd-cats-toggle").click()}},a(document).ready(function(){woodmartThemeModule.categoriesAccordion()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.categoriesDropdowns()}),woodmartThemeModule.categoriesDropdowns=function(){a(".dropdown_product_cat").on("change",function(){var b=a(this);if(""!==b.val()){var c,d=woodmart_settings.home_url;c=d.indexOf("?")>0?d+"&product_cat="+b.val():d+"?product_cat="+b.val(),location.href=c}else location.href=woodmart_settings.shop_url}),a(".widget_product_categories").each(function(){var b=a(this).find("select");a().selectWoo&&b.selectWoo({minimumResultsForSearch:5,width:"100%",allowClear:!0,placeholder:woodmart_settings.product_categories_placeholder,language:{noResults:function(){return woodmart_settings.product_categories_no_results}}})})},a(document).ready(function(){woodmartThemeModule.categoriesDropdowns()})}(jQuery),function(a){woodmartThemeModule.categoriesMenu=function(){if(!(woodmartThemeModule.windowWidth>1024)){var b=a(".wd-nav-product-cat"),c=200;woodmartThemeModule.$body.on("click",".wd-nav-opener",function(b){var d=a(this);b.preventDefault(),d.closest(".has-sub").find("> ul").hasClass("child-open")?d.removeClass("wd-active").closest(".has-sub").find("> ul").slideUp(c).removeClass("child-open"):d.addClass("wd-active").closest(".has-sub").find("> ul").slideDown(c).addClass("child-open")}),woodmartThemeModule.$body.on("click",".wd-btn-show-cat > a",function(a){a.preventDefault(),d()?f():e()}),woodmartThemeModule.$body.on("click",".wd-nav-product-cat a",function(c){a(c.target).hasClass("wd-nav-opener")||(f(),b.stop().attr("style",""))});var d=function(){return a(".wd-nav-product-cat").hasClass("categories-opened")},e=function(){a(".wd-nav-product-cat").addClass("categories-opened").stop().slideDown(c),a(".wd-btn-show-cat").addClass("button-open")},f=function(){a(".wd-nav-product-cat").removeClass("categories-opened").stop().slideUp(c),a(".wd-btn-show-cat").removeClass("button-open")}}},woodmartThemeModule.categoriesMenuBtns=function(){if(!(woodmartThemeModule.windowWidth>1024)){a(".wd-nav-product-cat").find("li > ul").parent().addClass("has-sub").append('<span class="wd-nav-opener"></span>')}},a(document).ready(function(){woodmartThemeModule.categoriesMenu(),woodmartThemeModule.categoriesMenuBtns()})}(jQuery),function(a){woodmartThemeModule.commentImage=function(){function b(a){c.prepend('<ul class="woocommerce-error" role="alert"><li>'+a+"</li></ul>")}a("form.comment-form").attr("enctype","multipart/form-data");var c=a(".comment-form"),d=c.find("#wd-add-img-btn"),e=[];0!==d.length&&(a.each(woodmart_settings.comment_images_upload_mimes,function(a,b){e.push(String(b))}),c.find("#wd-add-img-btn").on("change",function(){c.find(".wd-add-img-count").text(woodmart_settings.comment_images_added_count_text.replace("%s",this.files.length))}),c.on("submit",function(f){c.find(".woocommerce-error").remove();var g=!1,h=!1;d[0].files.length>woodmart_settings.comment_images_count&&(b(woodmart_settings.comment_images_count_text),f.preventDefault()),Array.prototype.forEach.call(d[0].files,function(b){var c=b.size,d=String(b.type);c>woodmart_settings.comment_images_upload_size&&(g=!0),a.inArray(d,e)<0&&(h=!0)}),g&&(b(woodmart_settings.comment_images_upload_size_text),f.preventDefault()),h&&(b(woodmart_settings.comment_images_upload_mimes_text),f.preventDefault())}))},a(document).ready(function(){woodmartThemeModule.commentImage()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.filterDropdowns()}),woodmartThemeModule.filterDropdowns=function(){function b(b){var c=b.parent(".wd-widget-layered-nav-dropdown-form");woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax&&a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:c.attr("action"),data:c.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}})}a(".wd-widget-layered-nav-dropdown-form").each(function(){var b=a(this),c=b.find("select"),d=c.data("slug");c.change(function(){var b=a(this).val();a("input[name=filter_"+d+"]").val(b)}),a().selectWoo&&c.selectWoo({placeholder:c.data("placeholder"),minimumResultsForSearch:5,width:"100%",allowClear:!c.attr("multiple"),language:{noResults:function(){return c.data("noResults")}}}).on("select2:unselecting",function(){a(this).data("unselecting",!0)}).on("select2:opening",function(b){var c=a(this);c.data("unselecting")&&(c.removeData("unselecting"),b.preventDefault())})}),a(".wd-widget-layered-nav-dropdown__submit").on("click",function(){var c=a(this);c.siblings("select").attr("multiple")&&woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&(b(c),c.prop("disabled",!0))}),a(".wd-widget-layered-nav-dropdown-form select").on("change",function(){var c=a(this);if(!woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on"))return void c.parent().submit();c.attr("multiple")||b(c)})},a(document).ready(function(){woodmartThemeModule.filterDropdowns()})}(jQuery),function(a){woodmartThemeModule.filtersArea=function(){var b=a(".filters-area"),c=200;woodmartThemeModule.$body.on("click",".open-filters",function(a){a.preventDefault(),d()?e():(woodmartThemeModule.openFilters(c),setTimeout(function(){woodmartThemeModule.$document.trigger("wdFiltersOpened")},c))}),"no"===woodmart_settings.shop_filters_close&&woodmartThemeModule.$body.on("click",woodmartThemeModule.ajaxLinks,function(){d()&&e()});var d=function(){return b=a(".filters-area"),b.hasClass("filters-opened")},e=function(){b=a(".filters-area"),b.removeClass("filters-opened"),b.stop().slideUp(c)}},woodmartThemeModule.openFilters=function(b){var c=a(".filters-area");c.stop().slideDown(b),setTimeout(function(){c.addClass("filters-opened"),woodmartThemeModule.$document.trigger("wdFiltersOpened"),woodmartThemeModule.$body.removeClass("body-filters-opened"),woodmartThemeModule.$document.trigger("wood-images-loaded")},b)},a(document).ready(function(){woodmartThemeModule.filtersArea()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdProductsTabsLoaded wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist",function(){woodmartThemeModule.gridQuantity()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.gridQuantity()})}),woodmartThemeModule.gridQuantity=function(){a(".product-grid-item").on("change input",".quantity .qty",function(){var b=a(this),c=b.parent().parent().find(".add_to_cart_button");c.attr("data-quantity",b.val()),c.attr("href","?add-to-cart="+c.attr("data-product_id")+"&quantity="+b.val())})},a(document).ready(function(){woodmartThemeModule.gridQuantity()})}(jQuery),function(a){woodmartThemeModule.headerCategoriesMenu=function(){if(!(woodmartThemeModule.windowWidth>1024)){var b=a(".wd-header-cats"),c=b.find(".categories-menu-dropdown"),d=b.find(".menu-item-has-children"),e=b.find(".menu-opener"),f=200;d.find("> a").before('<span class="drop-category"></span>'),c.on("click",".drop-category",function(){var b=a(this),c=b.parent().find("> .wd-dropdown-menu, >.sub-sub-menu");c.hasClass("child-open")?(b.removeClass("act-icon"),c.slideUp(f).removeClass("child-open")):(b.addClass("act-icon"),c.slideDown(f).addClass("child-open"))}),b.on("click",".menu-opener",function(a){a.preventDefault(),g()?i():h()}),c.on("click","a",function(){i(),c.stop().attr("style","")});var g=function(){return c.hasClass("categories-opened")},h=function(){c.addClass("categories-opened").stop().slideDown(f),e.addClass("button-open")},i=function(){c.removeClass("categories-opened").stop().slideUp(f),e.removeClass("button-open")}}},a(document).ready(function(){woodmartThemeModule.headerCategoriesMenu()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdReplaceMainGalleryNotQuickView wdShowVariationNotQuickView",function(){woodmartThemeModule.initZoom()}),woodmartThemeModule.initZoom=function(){function b(a){a.find("img").data("large_image_width")>a.width()&&(a.trigger("zoom.destroy"),a.zoom(d))}var c=a(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)");if("yes"!==woodmart_settings.zoom_enable)return!1;var d={touch:!1};"ontouchstart"in window&&(d.on="click");var e=a(".woocommerce-product-gallery");e.hasClass("thumbs-position-bottom")||e.hasClass("thumbs-position-left")?(c.on("changed.owl.carousel",function(a){b(c.find(".product-image-wrap").eq(a.item.index).find(".woocommerce-product-gallery__image"))}),b(c.find(".product-image-wrap").eq(0).find(".woocommerce-product-gallery__image"))):c.find(".product-image-wrap").each(function(){b(a(this).find(".woocommerce-product-gallery__image"))})},a(document).ready(function(){woodmartThemeModule.initZoom()})}(jQuery),function(a){woodmartThemeModule.loginDropdown=function(){woodmartThemeModule.windowWidth<=1024||a(".wd-dropdown-register").each(function(){var b=a(this),c=b.find(".login-dropdown-inner");c.find('input[id="username"]').on("click",function(){b.addClass("wd-active-login").removeClass("wd-active-link")}),c.find('input[id="username"]').on("input",function(){b.hasClass("wd-active-login")&&b.removeClass("wd-active-login").addClass("wd-active-link")}),c.find("input").not('[id="username"]').on("click",function(){b.removeClass("wd-active-login").removeClass("wd-active-link")}),woodmartThemeModule.$document.click(function(a){void 0!==a.target.className.length&&-1===a.target.className.indexOf("wd-dropdown-register")&&-1===a.target.className.indexOf("input-text")&&b.removeClass("wd-active-login").removeClass("wd-active-link")}),a(".wd-dropdown-register").on("mouseout",function(){b.hasClass("wd-active-link")&&b.removeClass("wd-active-link")}).on("mouseleave",function(){b.hasClass("wd-active-link")&&b.removeClass("wd-active-link")})})},a(document).ready(function(){woodmartThemeModule.loginDropdown()})}(jQuery),function(a){woodmartThemeModule.loginSidebar=function(){var b=woodmartThemeModule.$body,c=a(".login-form-side"),d=a(".wd-close-side");a(".login-side-opener").on("click",function(a){a.preventDefault(),g()?e():setTimeout(function(){f()},10)}),b.on("click touchstart",".wd-close-side",function(){g()&&e()}),b.on("click",".close-side-widget",function(a){a.preventDefault(),g()&&e()}),woodmartThemeModule.$document.on("keyup",function(a){27===a.keyCode&&g()&&e()});var e=function(){c.removeClass("wd-opened"),d.removeClass("wd-close-side-opened")},f=function(){c.find("form").removeClass("hidden-form"),c.addClass("wd-opened"),d.addClass("wd-close-side-opened")};c.find(".woocommerce-notices-wrapper > ul").length>0&&f();var g=function(){return c.hasClass("wd-opened")}},a(document).ready(function(){woodmartThemeModule.loginSidebar()})}(jQuery),function(a){woodmartThemeModule.loginTabs=function(){var b=a(".wd-register-tabs"),c=b.find(".wd-switch-to-register"),d=a(".col-register-text h2"),e=b.find(".login-info"),f="active-register",g=c.data("login"),h=c.data("register"),i=c.data("login-title"),j=c.data("reg-title");c.on("click",function(c){c.preventDefault(),m()?l():k(),woodmartThemeModule.$window.width()<768&&a("html, body").stop().animate({scrollTop:b.offset().top-90},400)});var k=function(){b.addClass(f),c.text(g),e.length>0&&d.text(i)},l=function(){b.removeClass(f),c.text(h),e.length>0&&d.text(j)},m=function(){return b.hasClass(f)}},a(document).ready(function(){woodmartThemeModule.loginTabs()})}(jQuery),function(a){woodmartThemeModule.miniCartQuantity=function(){var b;woodmartThemeModule.$document.on("change input",".woocommerce-mini-cart .quantity .qty",function(){var c=a(this),d=c.val(),e=c.parents(".woocommerce-mini-cart-item").data("key"),f=woodmart_settings.cart_hash_key,g=woodmart_settings.fragment_name;clearTimeout(b),b=setTimeout(function(){c.parents(".mini_cart_item").addClass("wd-loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_cart_item",item_id:e,qty:d},success:function(b){b&&b.fragments&&(a.each(b.fragments,function(c,d){if(a(c).hasClass("widget_shopping_cart_content")){var f=a(d).find('.woocommerce-mini-cart-item[data-key="'+e+'"]'),g=a(d).find(".shopping-cart-widget-footer"),h=a(c).find('.woocommerce-mini-cart-item[data-key="'+e+'"]');b.cart_hash?(h.replaceWith(f),a(".shopping-cart-widget-footer").replaceWith(g)):a(c).replaceWith(d)}else a(c).replaceWith(d)}),woodmartThemeModule.supports_html5_storage&&(sessionStorage.setItem(g,JSON.stringify(b.fragments)),localStorage.setItem(f,b.cart_hash),sessionStorage.setItem(f,b.cart_hash),b.cart_hash&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())))},dataType:"json",method:"GET"})},500)})},a(document).ready(function(){woodmartThemeModule.miniCartQuantity()})}(jQuery),function(a){woodmartThemeModule.onRemoveFromCart=function(){"no"!==woodmart_settings.woocommerce_ajax_add_to_cart&&woodmartThemeModule.$document.on("click",".widget_shopping_cart .remove",function(b){b.preventDefault(),a(this).parent().addClass("removing-process")})},a(document).ready(function(){woodmartThemeModule.onRemoveFromCart()})}(jQuery),function(a){woodmartThemeModule.product360Button=function(){void 0!==a.fn.magnificPopup&&a(".product-360-button a").magnificPopup({type:"inline",mainClass:"mfp-fade",preloader:!1,tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,fixedContentPos:!1,callbacks:{open:function(){woodmartThemeModule.$window.trigger("resize")}}})},a(document).ready(function(){woodmartThemeModule.product360Button()})}(jQuery),function(a){woodmartThemeModule.productAccordion=function(){var b=a(".wc-tabs-wrapper"),c=300,d=window.location.hash,e=window.location.href;d.toLowerCase().indexOf("comment-")>=0||"#reviews"===d||"#tab-reviews"===d?b.find(".tab-title-reviews").addClass("active"):e.indexOf("comment-page-")>0||e.indexOf("cpage=")>0?b.find(".tab-title-reviews").addClass("active"):b.find(".wd-accordion-title").first().addClass("active"),a(".woocommerce-review-link").on("click",function(){a(".wd-accordion-title.tab-title-reviews").click()}),b.on("click",".wd-accordion-title",function(d){d.preventDefault();var e=a(this),f=e.siblings(".woocommerce-Tabs-panel"),g=e.parent().index(),h=e.parent().siblings().find(".active").parent(".wd-tab-wrapper").index();e.hasClass("active")?(h=g,e.removeClass("active"),f.stop().slideUp(c)):(b.find(".wd-accordion-title").removeClass("active"),b.find(".woocommerce-Tabs-panel").slideUp(),e.addClass("active"),f.stop().slideDown(c)),-1===g&&(h=g),woodmartThemeModule.$window.trigger("resize"),setTimeout(function(){if(woodmartThemeModule.$window.trigger("resize"),woodmartThemeModule.$window.width()<1024&&g>h){var b=a(".sticky-header"),c=b.length>0?b.outerHeight():0;a("html, body").animate({scrollTop:e.offset().top-e.outerHeight()-c-50},500)}},c),woodmartThemeModule.$document.trigger("wood-images-loaded")})},a(document).ready(function(){woodmartThemeModule.productAccordion()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.productFilters()}),a.each(["frontend/element_ready/wd_product_filters.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productFilters()})}),woodmartThemeModule.productFilters=function(){var b=function(a,b){if(0!==a.length){var c=a.val();c.indexOf(",")>0?a.val(c.replace(","+b,"").replace(b+",","")):a.val(c.replace(b,""))}};a(".wd-pf-checkboxes li > .pf-value").on("click",function(c){c.preventDefault();var d=a(this),e=d.parent(),f=d.parents(".wd-pf-checkboxes"),g=f.find(".result-input"),h=f.find(".wd-pf-results"),i=f.hasClass("multi_select"),j=g.val(),k=d.data("title"),l=d.data("val");i?e.hasClass("pf-active")?(b(g,l),h.find('li[data-title="'+l+'"]').remove(),e.removeClass("pf-active")):(""===j?g.val(l):g.val(j+","+l),h.prepend('<li class="selected-value" data-title="'+l+'">'+k+"</li>"),e.addClass("pf-active")):e.hasClass("pf-active")?(g.val(""),h.find(".selected-value").remove(),e.removeClass("pf-active")):(g.val(l),h.find(".selected-value").remove(),h.prepend('<li class="selected-value" data-title="'+l+'">'+k+"</li>"),e.parents(".wd-scroll-content").find(".pf-active").removeClass("pf-active"),e.addClass("pf-active"))});var c=a(".wd-pf-checkboxes");c.on("click",".selected-value",function(){var c=a(this),d=c.parents(".wd-pf-checkboxes"),e=d.find(".result-input"),f=c.data("title");if("price-filter"===f){var g=c.data("min"),h=c.data("max"),i=d.find(".price_slider_widget");return i.slider("values",0,g),i.slider("values",1,h),d.find(".min_price").val(""),d.find(".max_price").val(""),void woodmartThemeModule.$body.trigger("filter_price_slider_slide",[g,h,g,h,i])}b(e,f),d.find('.pf-value[data-val="'+f+'"]').parent().removeClass("pf-active"),c.remove()}),c.each(function(){var b=a(this),c=b.find(".wd-pf-title"),d=c.siblings(".wd-pf-dropdown"),e=b.hasClass("multi_select");c.on("click",function(e){var g=e.target;a(g).is(c.find(".selected-value"))||(b.hasClass("opened")?f():(b.addClass("opened"),d.slideDown(100),setTimeout(function(){woodmartThemeModule.$document.trigger("wdProductFiltersOpened")},300)))}),woodmartThemeModule.$document.on("click",function(d){var g=d.target;(b.hasClass("opened")&&e&&!a(g).is(b)&&!a(g).parents().is(b)||!e&&!a(g).is(c)&&!a(g).parents().is(c))&&f()});var f=function(){b.removeClass("opened"),d.slideUp(100)}});var d=function(b){b.find(".wd-pf-checkboxes").each(function(){var b=a(this);b.find('input[type="hidden"]').val()||b.find('input[type="hidden"]').remove()})},e=function(a){var b=a.find(".wd-pf-categories .pf-active .pf-value");b.length>0&&a.attr("action",b.attr("href"))};woodmartThemeModule.$body.on("filter_price_slider_create filter_price_slider_slide",function(a,b,c,d,e,f){var g=accounting.formatMoney(b,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format}),h=accounting.formatMoney(c,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format});f.siblings(".filter_price_slider_amount").find("span.from").html(g),f.siblings(".filter_price_slider_amount").find("span.to").html(h);var i=f.parents(".wd-pf-checkboxes").find(".wd-pf-results"),j=i.find(".selected-value");b===d&&c===e?j.remove():0===j.length?i.prepend('<li class="selected-value" data-title="price-filter" data-min="'+d+'" data-max="'+e+'">'+g+" - "+h+"</li>"):j.html(g+" - "+h),woodmartThemeModule.$body.trigger("price_slider_updated",[b,c])}),a(".wd-pf-price-range .price_slider_widget").each(function(){var b=a(this),c=b.siblings(".filter_price_slider_amount").find(".min_price"),d=b.siblings(".filter_price_slider_amount").find(".max_price"),e=parseInt(c.data("min")),f=parseInt(d.data("max")),g=parseInt(c.val()),h=parseInt(d.val());a(".price_slider_widget, .price_label").show(),b.slider({range:!0,animate:!0,min:e,max:f,values:[g,h],create:function(){g===e&&h===f&&(c.val(""),d.val("")),woodmartThemeModule.$body.trigger("filter_price_slider_create",[g,h,e,f,b])},slide:function(a,g){g.values[0]===e&&g.values[1]===f?(c.val(""),d.val("")):(c.val(g.values[0]),d.val(g.values[1])),woodmartThemeModule.$body.trigger("filter_price_slider_slide",[g.values[0],g.values[1],e,f,b])},change:function(a,b){woodmartThemeModule.$body.trigger("price_slider_change",[b.values[0],b.values[1]])}})}),a(".wd-product-filters").one("click",".wd-pf-btn button",function(){var b=a(this),c=b.parents(".wd-product-filters");d(c),e(c),woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax&&c.hasClass("with-ajax")&&(a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:c.attr("action"),data:c.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),b.prop("disabled",!0))}),a(".wd-pf-checkboxes .pf-active > .pf-value").each(function(){var b=a(this);b.parents(".wd-pf-checkboxes").find(".wd-pf-results").prepend('<li class="selected-value" data-title="'+b.data("val")+'">'+b.data("title")+"</li>")})},a(document).ready(function(){woodmartThemeModule.productFilters()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdUpdateWishlist wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded wdArrowsLoadProducts",function(){woodmartThemeModule.productHover()}),woodmartThemeModule.wcTabsHoverFix=function(){a(".wc-tabs > li").on("click",function(){woodmartThemeModule.productHover()})},woodmartThemeModule.$document.on("wdProductMoreDescriptionOpen",function(a,b){woodmartThemeModule.productHoverRecalc(b)}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productHover()})}),woodmartThemeModule.productHoverRecalc=function(a){if(!a.hasClass("product-in-carousel")){var b=a.find(".fade-in-block").outerHeight();a.find(".content-product-imagin").css({marginBottom:-b}),a.addClass("hover-ready")}},woodmartThemeModule.productHover=function(){function b(a){if(!a.data("column_width")){var b=a.outerWidth(),c=a.data("columns"),d=b/c;a.data("column_width",d)}}var c=a(".wd-hover-base");woodmartThemeModule.windowWidth<=1024&&(c.on("click",function(b){var c=a(this),d="state-hover";c.hasClass(d)||"no"!==woodmart_settings.base_hover_mobile_click||(b.preventDefault(),a("."+d).removeClass(d),c.addClass(d))}),woodmartThemeModule.$document.on("click touchstart",function(b){0===a(b.target).closest(".state-hover").length&&a(".state-hover").removeClass("state-hover")})),c.on("mouseenter mousemove touchstart",function(){var b=a(this),c=b.find(".xts-more-desc");c.hasClass("wd-height-calculated")||(b.imagesLoaded(function(){woodmartThemeModule.productHoverRecalc(b)}),c.addClass("wd-height-calculated"))}),a(".wd-products-holder").on("mouseenter mousemove touchstart",function(){b(a(this))}),c.on("mouseenter mousemove touchstart",function(){if(woodmart_settings.hover_width_small){var c=a(this);b(c.parent(".wd-products-holder"));var d=c.parent(".wd-products-holder").data("column_width");d&&(255>d||woodmartThemeModule.windowWidth<=1024?(c.find(".wd-add-btn").parent().addClass("wd-add-small-btn"),c.find(".wd-add-btn").removeClass("wd-add-btn-replace").addClass("wd-action-btn wd-style-icon wd-add-cart-icon")):(woodmartThemeModule.$body.hasClass("catalog-mode-on")||woodmartThemeModule.$body.hasClass("login-see-prices"))&&c.find(".wd-bottom-actions .wd-action-btn").removeClass("wd-style-icon").addClass("wd-style-text"),woodmartThemeModule.$document.trigger("wdProductBaseHoverIconsResize"))}})},a(document).ready(function(){woodmartThemeModule.productHover(),woodmartThemeModule.wcTabsHoverFix()})}(jQuery),function(a){woodmartThemeModule.productImages=function(){var b,c=a(".woocommerce-product-gallery"),d=a(".woocommerce-product-gallery__wrapper"),e=c.find(".thumbnails"),f=".woodmart-show-product-gallery";e.addClass("thumbnails-ready"),c.hasClass("image-action-popup")&&(f+=", .woocommerce-product-gallery__image a"),c.on("click",".woocommerce-product-gallery__image a",function(a){a.preventDefault()}),c.on("click",f,function(c){c.preventDefault(),b=a(this).attr("href");var d=h();woodmartThemeModule.callPhotoSwipe(g(c),d)}),e.on("click",".image-link",function(a){a.preventDefault()});var g=function(b){return d.hasClass("owl-carousel")?d.find(".owl-item.active").index():a(b.currentTarget).parent().parent().index()},h=function(){var b=[];return d.find("figure a img").each(function(){var c=a(this),d=c.attr("data-large_image"),e=c.attr("data-large_image_width"),f=c.attr("data-large_image_height"),g=c.data("caption");b.push({src:d,w:e,h:f,title:"yes"===woodmart_settings.product_images_captions&&g})}),b}},a(document).ready(function(){woodmartThemeModule.productImages()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdReplaceMainGallery",function(){woodmartThemeModule.productImagesGallery()}),woodmartThemeModule.productImagesGallery=function(){function b(){void 0!==a.fn.owlCarousel&&(f.trigger("destroy.owl.carousel"),f.addClass("owl-carousel").owlCarousel(woodmartThemeModule.mainCarouselArg),woodmartThemeModule.$document.trigger("wood-images-loaded"))}function c(){var b="";f.find(".woocommerce-product-gallery__image").each(function(){var c=a(this),d=c.data("thumb"),e=c.find("a img").attr("alt"),f=c.find("a img").attr("title");f||(f=c.find("a picture").attr("title")),b+='<div class="product-image-thumbnail"><img alt="'+e+'" title="'+f+'" src="'+d+'" /></div>'}),g.hasClass("slick-slider")?g.slick("unslick"):g.hasClass("owl-carousel")&&g.trigger("destroy.owl.carousel"),g.empty(),g.append(b)}function d(){g.slick({slidesToShow:woodmart_settings.product_gallery.thumbs_slider.items.vertical_items,slidesToScroll:woodmart_settings.product_gallery.thumbs_slider.items.vertical_items,vertical:!0,verticalSwiping:!0,infinite:!1}),g.on("click",".product-image-thumbnail",function(){h.trigger("to.owl.carousel",a(this).index())}),h.on("changed.owl.carousel",function(a){var b=a.item.index;g.slick("slickGoTo",b),g.find(".active-thumb").removeClass("active-thumb"),g.find(".product-image-thumbnail").eq(b).addClass("active-thumb")}),g.find(".product-image-thumbnail").eq(0).addClass("active-thumb"),g.imagesLoaded(function(){g.slick("setPosition")})}function e(){if(void 0!==a.fn.owlCarousel){g.addClass("owl-carousel").owlCarousel({rtl:woodmartThemeModule.$body.hasClass("rtl"),items:woodmart_settings.product_gallery.thumbs_slider.items.desktop,responsive:{1025:{items:woodmart_settings.product_gallery.thumbs_slider.items.desktop},769:{items:woodmart_settings.product_gallery.thumbs_slider.items.tablet_landscape},577:{items:woodmart_settings.product_gallery.thumbs_slider.items.tablet},0:{items:woodmart_settings.product_gallery.thumbs_slider.items.mobile}},dots:!1,nav:!0,navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"]});var b=g.owlCarousel();g.on("mouseup",".owl-item",function(){var c=a(this).index();b.trigger("to.owl.carousel",c),h.trigger("to.owl.carousel",c)}),h.on("changed.owl.carousel",function(a){var c=a.item.index;b.trigger("to.owl.carousel",c),
g.find(".active-thumb").removeClass("active-thumb"),g.find(".product-image-thumbnail").eq(c).addClass("active-thumb")}),g.find(".product-image-thumbnail").eq(0).addClass("active-thumb")}}var f=a(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)"),g=a(".images .thumbnails"),h=a(".woocommerce-product-gallery__wrapper"),i=woodmart_settings.product_gallery.thumbs_slider.position;g.addClass("thumbnails-ready"),woodmart_settings.product_gallery.images_slider?"yes"===woodmart_settings.product_slider_auto_height?a(".product-images").imagesLoaded(function(){b()}):b():woodmartThemeModule.$window.width()<=1024&&("bottom_combined"===i||"bottom_column"===i||"bottom_grid"===i)&&b(),woodmart_settings.product_gallery.thumbs_slider.enabled&&woodmart_settings.product_gallery.images_slider&&(c(),"left"===woodmart_settings.product_gallery.thumbs_slider.position&&woodmartThemeModule.$body.width()>1024&&void 0!==a.fn.slick?d():e())},a(document).ready(function(){woodmartThemeModule.productImagesGallery()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdLoadMoreLoadProducts wdArrowsLoadProducts wdProductsTabsLoaded wdUpdateWishlist",function(){woodmartThemeModule.productMoreDescription()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productMoreDescription()})}),woodmartThemeModule.productMoreDescription=function(){a(".wd-hover-base").on("mouseenter touchstart",function(){var b=a(this).find(".wd-more-desc"),c=b.find(".wd-more-desc-inner"),d=b.find(".wd-more-desc-btn");if(!b.hasClass("wd-more-desc-calculated")){var e=b.outerHeight(),f=c.outerHeight(),g=f-e;g>30?d.addClass("wd-shown"):g>0&&b.css("height",e+g),b.addClass("wd-more-desc-calculated")}}),woodmartThemeModule.$body.on("click",".wd-more-desc-btn",function(b){b.preventDefault();var c=a(this);c.parent().addClass("wd-more-desc-full"),woodmartThemeModule.$document.trigger("wdProductMoreDescriptionOpen",[c.parents(".wd-hover-base")])})},a(document).ready(function(){woodmartThemeModule.productMoreDescription()})}(jQuery),function(a){woodmartThemeModule.productVideo=function(){void 0!==a.fn.magnificPopup&&a(".product-video-button a").magnificPopup({tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,type:"iframe",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?rel=0&autoplay=1"}}},preloader:!1,fixedContentPos:!1})},a(document).ready(function(){woodmartThemeModule.productVideo()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdProductsTabsLoaded",function(){woodmartThemeModule.productsLoadMore()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productsLoadMore()})}),woodmartThemeModule.productsLoadMore=function(){var b,c=!1;a(".wd-products-element").each(function(){function e(){q=woodmartThemeModule.$window.height()/2,r=woodmartThemeModule.$window.outerWidth(!0),o=f.outerWidth(!0),i=woodmartThemeModule.$window.scrollTop(),j=f.offset().top-q,k=f.offset().left-x,l=o+f.offset().left+x-v.outerWidth(),p=u.outerHeight(),n=f.height()-p,m=j+n,woodmartThemeModule.$window.width()<=1024&&(k+=35,l-=35),u.css({left:k+"px"}),v.css({left:l+"px"}),i<j||i>m?(t.removeClass("show-arrow"),w.addClass("hidden-loader")):(t.addClass("show-arrow"),w.removeClass("hidden-loader"))}var f=a(this),g=[],h=f.find(".wd-products-holder");if(h.hasClass("pagination-arrows")){g[1]={items:h.html(),status:"have-posts"};var i,j,k,l,m,n,o,p,q,r,s=woodmartThemeModule.$body,t=f.find(".products-footer"),u=t.find(".wd-products-load-prev"),v=t.find(".wd-products-load-next"),w=f.find(".wd-products-loader"),x=50;s.hasClass("rtl")&&(u=v,v=t.find(".wd-products-load-prev")),woodmartThemeModule.$window.on("scroll",function(){e()}),setTimeout(function(){e()},500),f.find(".wd-products-load-prev, .wd-products-load-next").on("click",function(e){e.preventDefault();var f=a(this);if(!c&&!f.hasClass("disabled")){c=!0,clearInterval(b);var h=f.parent().parent().prev(),i=f.parent().find(".wd-products-load-next"),j=f.parent().find(".wd-products-load-prev"),k=h.data("atts"),l="woodmart_get_products_shortcode",m=woodmart_settings.ajaxurl,n="json",o="POST",p=h.attr("data-paged");if(p++,f.hasClass("wd-products-load-prev")){if(p<2)return;p-=2}d("arrows",k,m,l,n,o,p,h,f,g,function(c){var d=h.hasClass("products-bordered-grid");if(d||h.addClass("wd-animated-products"),c.items.length&&(h.html(c.items).attr("data-paged",p),h.imagesLoaded().progress(function(){h.parent().trigger("recalc")}),woodmartThemeModule.$document.trigger("wood-images-loaded"),woodmartThemeModule.$document.trigger("wdArrowsLoadProducts")),woodmartThemeModule.$window.width()<768&&a("html, body").stop().animate({scrollTop:h.offset().top-150},400),!d){var e=0;b=setInterval(function(){h.find(".product-grid-item").eq(e).addClass("wd-animated"),e++},100)}p>1?j.removeClass("disabled"):j.addClass("disabled"),"no-more-posts"===c.status?i.addClass("disabled"):i.removeClass("disabled")})}})}}),woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!1,woodmart_settings.infinit_scroll_offset),woodmartThemeModule.$document.off("click",".wd-products-load-more").on("click",".wd-products-load-more",function(b){if(b.preventDefault(),!c){c=!0;var f=a(this),g=f.parent().siblings(".wd-products-holder"),h=g.data("source"),i="woodmart_get_products_"+h,j=woodmart_settings.ajaxurl,k="POST",l=g.data("atts"),m=g.data("paged");m++,"main_loop"===h&&(j=a(this).attr("href"),k="GET"),d("load-more",l,j,i,"json",k,m,g,f,[],function(a){a.items.length&&(g.hasClass("grid-masonry")?e(g,a.items):g.append(a.items),"no-more-posts"!==a.status&&g.imagesLoaded().progress(function(){woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!0,woodmart_settings.infinit_scroll_offset)}),woodmartThemeModule.$document.trigger("wood-images-loaded"),woodmartThemeModule.$document.trigger("wdLoadMoreLoadProducts"),g.data("paged",m)),"main_loop"===h&&(f.attr("href",a.nextPage),"no-more-posts"===a.status&&f.hide().remove()),"no-more-posts"===a.status&&f.hide()})}});var d=function(b,d,e,f,g,h,i,j,k,l,m){var n={atts:d,paged:i,action:f,woo_ajax:1};if("GET"===h&&(e=woodmartThemeModule.removeURLParameter(e,"loop"),e=woodmartThemeModule.removeURLParameter(e,"woo_ajax")),l[i])return j.addClass("loading"),void setTimeout(function(){m(l[i]),j.removeClass("loading"),c=!1},300);if("arrows"===b&&j.addClass("loading").parent().addClass("element-loading"),k.addClass("loading"),"woodmart_get_products_main_loop"===f){n={loop:j.find(".product").last().data("loop"),woo_ajax:1}}a.ajax({url:e,data:n,dataType:g,method:h,success:function(a){woodmartThemeModule.removeDuplicatedStylesFromHTML(a.items,function(b){a.items=b,l[i]=a,m(a),"yes"===woodmart_settings.load_more_button_page_url&&window.history.pushState("","",a.currentPage)})},error:function(){console.log("ajax error")},complete:function(){"arrows"===b&&j.removeClass("loading").parent().removeClass("element-loading"),k.removeClass("loading"),c=!1}})},e=function(b,c){var d=a(c);b.append(d).isotope("appended",d),b.imagesLoaded().progress(function(){b.isotope("layout")})}},a(document).ready(function(){woodmartThemeModule.productsLoadMore()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.productsTabs()})}),woodmartThemeModule.productsTabs=function(){var b=!1;a(".wd-products-tabs").each(function(){var d=a(this),e=d.find(".wd-tab-content"),f=[];e.find(".owl-carousel").length<1&&(f[0]={html:e.html()}),d.find(".products-tabs-title li").on("click",function(d){d.preventDefault();var g=a(this),h=g.data("atts"),i=g.index();b||g.hasClass("active-tab-title")||(b=!0,c(h,i,e,g,f,function(a){a.html&&woodmartThemeModule.removeDuplicatedStylesFromHTML(a.html,function(a){e.html(a),e.removeClass("loading").parent().removeClass("element-loading"),g.removeClass("loading"),woodmartThemeModule.$document.trigger("wdProductsTabsLoaded"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}))});var g=d.find(".tabs-navigation-wrapper"),h=g.find("ul");g.on("click",".open-title-menu",function(){var b=a(this);h.hasClass("list-shown")?(b.removeClass("toggle-active"),h.stop().slideUp(300).removeClass("list-shown")):(b.addClass("toggle-active"),h.addClass("list-shown"),setTimeout(function(){woodmartThemeModule.$body.one("click",function(c){var d=c.target;if(!a(d).is(".tabs-navigation-wrapper")&&!a(d).parents().is(".tabs-navigation-wrapper"))return b.removeClass("toggle-active"),h.removeClass("list-shown"),!1})},10))}).on("click","li",function(){var b=g.find(".open-title-menu"),c=a(this).text();h.hasClass("list-shown")&&(b.removeClass("toggle-active").text(c),h.removeClass("list-shown"))})});var c=function(c,d,e,f,g,h){if(f.parent().find(".active-tab-title").removeClass("active-tab-title"),f.addClass("active-tab-title"),g[d])return e.addClass("loading").parent().addClass("element-loading"),void setTimeout(function(){h(g[d]),b=!1},300);e.addClass("loading").parent().addClass("element-loading"),f.addClass("loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{atts:c,action:"woodmart_get_products_tab_shortcode"},dataType:"json",method:"POST",success:function(a){g[d]=a,h(a)},error:function(){console.log("ajax error")},complete:function(){b=!1}})}},a(document).ready(function(){woodmartThemeModule.productsTabs()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.quickShop()})}),woodmartThemeModule.quickShop=function(){function b(a){a.find(".variations_form").wc_variation_form().find(".variations select:eq(0)").change(),a.find(".variations_form").trigger("wc_variation_form")}if("no"!==woodmart_settings.quick_shop){woodmartThemeModule.$document.on("click",".product-grid-item.product-type-variable .add_to_cart_button",function(c){c.preventDefault();var d=a(this),e=d.parents(".product").first(),f=e.find(".quick-shop-form"),g=e.data("id"),h="btn-loading";if(!d.hasClass(h)){if(e.hasClass("quick-shop-loaded"))return e.addClass("quick-shop-shown"),void woodmartThemeModule.$body.trigger("woodmart-quick-view-displayed");d.addClass(h),e.addClass("wd-loading-quick-shop"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_quick_shop",id:g},method:"get",success:function(a){f.append(a),b(e),woodmartThemeModule.$document.trigger("wdQuickShopSuccess")},complete:function(){setTimeout(function(){d.removeClass(h),e.removeClass("wd-loading-quick-shop"),e.addClass("quick-shop-shown quick-shop-loaded"),woodmartThemeModule.$body.trigger("woodmart-quick-view-displayed")},100)}})}}).on("click",".quick-shop-close",function(b){b.preventDefault(),a(this).parents(".product").removeClass("quick-shop-shown")}),woodmartThemeModule.$body.on("added_to_cart",function(){a(".product").removeClass("quick-shop-shown")})}},a(document).ready(function(){woodmartThemeModule.quickShop()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.quickViewInit()})}),woodmartThemeModule.quickViewInit=function(){woodmartThemeModule.$document.on("click",".open-quick-view",function(b){if(b.preventDefault(),a(".open-quick-view").hasClass("loading"))return!0;var c=a(this),d=c.data("id"),e=c.data("loop-name"),f=c.data("loop"),g="",h="",i=a(".quick-view").find('[data-loop-name="'+e+'"]');c.addClass("loading"),void 0!==i[f-1]&&(g=i.eq(f-1).addClass("quick-view-prev"),g=a("<div>").append(g.clone()).html()),void 0!==i[f+1]&&(h=i.eq(f+1).addClass("quick-view-next"),h=a("<div>").append(h.clone()).html()),woodmartThemeModule.quickViewLoad(d,c,g,h)})},woodmartThemeModule.quickViewCarousel=function(){if(void 0!==a.fn.owlCarousel){var b=a(".product-quick-view .woocommerce-product-gallery__wrapper");b.trigger("destroy.owl.carousel"),b.addClass("owl-carousel").owlCarousel({rtl:woodmartThemeModule.$body.hasClass("rtl"),items:1,dots:!1,nav:!0,navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"]})}},woodmartThemeModule.quickViewLoad=function(b,c){var d={id:b,action:"woodmart_quick_view"},e=function(b){var c=a(b);a.magnificPopup.open({items:{src:c,type:"inline"},tClose:woodmart_settings.close,tLoading:woodmart_settings.loading,removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal quick-view-wrapper"},open:function(){var b=a(".variations_form");b.each(function(){a(this).wc_variation_form().find(".variations select:eq(0)").change()}),b.trigger("wc_variation_form"),woodmartThemeModule.$body.trigger("woodmart-quick-view-displayed"),woodmartThemeModule.$document.trigger("wdQuickViewOpen"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdQuickViewOpen300")},300),woodmartThemeModule.quickViewCarousel()}}})};a.ajax({url:woodmart_settings.ajaxurl,data:d,method:"get",success:function(b){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){woodmart_settings.quickview_in_popup_fix?(a.magnificPopup.close(),setTimeout(function(){e(b)},500)):e(b)})},complete:function(){c.removeClass("loading")}})},a(document).ready(function(){woodmartThemeModule.quickViewInit(),woodmartThemeModule.quickViewCarousel()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdFiltersOpened wdShopPageInit wdPjaxStart",function(){woodmartThemeModule.shopLoader()}),woodmartThemeModule.shopLoader=function(){var b=function(){var b=a('.products[data-source="main_loop"], .wd-portfolio-holder[data-source="main_loop"]'),c=b.parent().find(".wd-sticky-loader");if(!(b.length<1)){var d=woodmartThemeModule.$window.height()/2,e=woodmartThemeModule.$window.scrollTop(),f=b.offset().top-d+45,g=b.height(),h=f+g-170;e<f?(c.addClass("wd-position-top"),c.removeClass("wd-position-stick")):e>h?(c.addClass("wd-position-bottom"),c.removeClass("wd-position-stick")):(c.addClass("wd-position-stick"),c.removeClass("wd-position-top wd-position-bottom"))}};woodmartThemeModule.$window.off("scroll.loaderVerticalPosition"),woodmartThemeModule.$window.on("scroll.loaderVerticalPosition",b)},a(document).ready(function(){woodmartThemeModule.shopLoader()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdProductsTabsLoaded wdShopPageInit",function(){woodmartThemeModule.shopMasonry()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_products_brands.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.shopMasonry()})}),woodmartThemeModule.shopMasonry=function(){function b(){var b=a(".categories-masonry"),c=b.hasClass("categories-style-masonry")?".category-grid-item":".col-lg-3.category-grid-item";b.imagesLoaded(function(){b.packery({resizable:!1,isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),packery:{gutter:0,columnWidth:c},itemSelector:".category-grid-item"})})}if(void 0!==a.fn.isotope&&void 0!==a.fn.packery&&void 0!==a.fn.imagesLoaded){var c=a(".elements-grid.grid-masonry");c.imagesLoaded(function(){c.isotope({isOriginLeft:!woodmartThemeModule.$body.hasClass("rtl"),itemSelector:".category-grid-item, .product-grid-item"})}),woodmartThemeModule.$window.on("resize",function(){b()}),b()}},a(document).ready(function(){woodmartThemeModule.shopMasonry()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.shopPageInit()}),woodmartThemeModule.shopPageInit=function(){woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!1,woodmart_settings.infinit_scroll_offset),a("body > .tooltip").remove(),woodmartThemeModule.$body.on("updated_wc_div",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour")}}(jQuery),function(a){a(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&a(window).on("resize",function(){woodmartThemeModule.singleProductTabsAccordion()})}),woodmartThemeModule.singleProductTabsAccordion=function(){var b=a(".woocommerce-tabs");woodmartThemeModule.windowWidth>1024||b.length<=0||(b.removeClass("tabs-layout-tabs").addClass("tabs-layout-accordion"),a(".single-product-page").removeClass("tabs-type-tabs").addClass("tabs-type-accordion"))},a(document).ready(function(){woodmartThemeModule.singleProductTabsAccordion()})}(jQuery),function(a){woodmartThemeModule.singleProductTabsCommentsFix=function(){var b=window.location.href,c=window.location.hash,d=woodmartThemeModule.$body.find(".wc-tabs, ul.tabs").first();a(".single-product-page").hasClass("reviews-location-separate")&&(c.toLowerCase().indexOf("comment-")>=0||"#reviews"===c||"#tab-reviews"===c?d.find("li:first a").click():(b.indexOf("comment-page-")>0||b.indexOf("cpage=")>0)&&d.find("li:first a").click())},a(document).ready(function(){woodmartThemeModule.singleProductTabsCommentsFix()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.sortByWidget()}),woodmartThemeModule.sortByWidget=function(){if(woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==a.fn.pjax){var b=a(".woocommerce-ordering");b.on("change","select.orderby",function(){var b=a(this).closest("form");b.find('[name="_pjax"]').remove(),a.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:"?"+b.serialize(),scrollTo:!1,renderCallback:function(a,b,c){woodmartThemeModule.removeDuplicatedStylesFromHTML(b,function(b){a.html(b),c(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}})}),b.on("submit",function(a){a.preventDefault(a)})}},a(document).ready(function(){woodmartThemeModule.sortByWidget()})}(jQuery),function(a){woodmartThemeModule.stickyAddToCart=function(){var b=a("form.cart"),c=a(".wd-sticky-btn");if(!(c.length<=0||b.length<=0||woodmartThemeModule.$window.width()<=768&&c.hasClass("mobile-off"))){var d=b.offset().top+b.outerHeight(),e=a(".scrollToTop"),f=function(){var a=woodmartThemeModule.$window.scrollTop(),b=woodmartThemeModule.$window.height(),f=woodmartThemeModule.$document.height();d<a&&a+b!==f?(c.addClass("wd-sticky-btn-shown"),e.addClass("wd-sticky-btn-shown")):(a+b===f||d>a)&&(c.removeClass("wd-sticky-btn-shown"),e.removeClass("wd-sticky-btn-shown"))};f(),woodmartThemeModule.$window.on("scroll",f),a(".wd-sticky-add-to-cart").on("click",function(b){b.preventDefault(),a("html, body").animate({scrollTop:a(".elementor-widget-woocommerce-product-title,.summary-inner .product_title").offset().top},800)}),a(".wd-sticky-btn .wd-wishlist-btn a").on("click",function(b){a(this).hasClass("added")||b.preventDefault(),a(".summary-inner > .wd-wishlist-btn a").trigger("click")}),woodmartThemeModule.$document.on("added_to_wishlist",function(){a(".wd-sticky-btn .wd-wishlist-btn a").addClass("added")}),a(".wd-sticky-btn .wd-compare-btn a").on("click",function(b){a(this).hasClass("added")||b.preventDefault(),a(".summary-inner > .wd-compare-btn a").trigger("click")}),woodmartThemeModule.$document.on("added_to_compare",function(){a(".wd-sticky-btn .wd-compare-btn a").addClass("added")}),a(".wd-sticky-btn-cart .qty").on("change",function(){a(".summary-inner .qty").val(a(this).val())}),a(".summary-inner .qty").on("change",function(){a(".wd-sticky-btn-cart .qty").val(a(this).val())})}},a(document).ready(function(){woodmartThemeModule.stickyAddToCart()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdHeaderBuilderInited",function(){woodmartThemeModule.stickyDetails()}),woodmartThemeModule.stickyDetails=function(){if(woodmartThemeModule.$body.hasClass("woodmart-product-sticky-on")&&!(woodmartThemeModule.$window.width()<=1024)){a(".entry-summary").each(function(){var b=a(this),c=40,d=b.find(".summary-inner"),e=b.parent().find(".product-images-inner");d.trigger("sticky_kit:detach"),e.trigger("sticky_kit:detach"),(woodmartThemeModule.$body.hasClass("enable-sticky-header")||a(".whb-sticky-row").length>0||a(".whb-sticky-header").length>0)&&(c=parseInt(woodmart_settings.sticky_product_details_offset)),e.imagesLoaded(function(){var a=d.outerHeight()-e.outerHeight();a<-100?d.stick_in_parent({offset_top:c}):a>100&&e.stick_in_parent({offset_top:c}),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.$window.width()<=1024?(d.trigger("sticky_kit:detach"),e.trigger("sticky_kit:detach")):d.outerHeight()<e.outerHeight()?d.stick_in_parent({offset_top:c}):e.stick_in_parent({offset_top:c})},300))})})}},a(document).ready(function(){woodmartThemeModule.stickyDetails()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.stickySidebarBtn()}),woodmartThemeModule.stickySidebarBtn=function(){var b=a(".wd-show-sidebar-btn"),c=a(".wd-sidebar-opener.wd-on-shop:not(.toolbar)");if(!(c.length<=0||b.length<=0||woodmartThemeModule.$window.width()>=1024)){var d=function(){b.offset().top+b.outerHeight()<woodmartThemeModule.$window.scrollTop()?c.addClass("wd-sticky"):c.removeClass("wd-sticky")};d(),woodmartThemeModule.$window.on("scroll",d),woodmartThemeModule.$window.on("resize",d)}},a(document).ready(function(){woodmartThemeModule.stickySidebarBtn()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded",function(){woodmartThemeModule.swatchesLimit()}),woodmartThemeModule.swatchesLimit=function(){a(".wd-swatches-divider").on("click",function(){var b=a(this).parent();b.find(".wd-swatch").removeClass("wd-hidden"),b.addClass("wd-all-shown")})},a(document).ready(function(){woodmartThemeModule.swatchesLimit()})}(jQuery),function(a){a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.swatchesOnGrid()})}),woodmartThemeModule.swatchesOnGrid=function(){woodmartThemeModule.$body.on("click",".swatch-on-grid",function(){var b,c,d,e=a(this),f=e.data("image-src"),g=e.data("image-srcset"),h=e.data("image-sizes");if(void 0!==f&&""!==f){var i=e.parents(".product-grid-item"),j=i.find(".product-image-link img"),k=i.find(".product-image-link picture source"),l=j.data("original-src"),m=j.data("original-srcset"),n=j.data("original-sizes");void 0===l&&j.data("original-src",j.attr("src")),void 0===m&&j.data("original-srcset",j.attr("srcset")),void 0===n&&j.data("original-sizes",j.attr("sizes")),e.hasClass("active-swatch")?(b=l,c=m,d=n,e.removeClass("active-swatch"),i.removeClass("product-swatched")):(e.parent().find(".active-swatch").removeClass("active-swatch"),e.addClass("active-swatch"),i.addClass("product-swatched"),b=f,c=g,d=h),j.attr("src")!==b&&(i.addClass("wd-loading-image"),j.attr("src",b).attr("srcset",c).attr("image_sizes",d).one("load",function(){i.removeClass("wd-loading-image")}),k.length>0&&k.attr("srcset",c).attr("image_sizes",d))}})},a(document).ready(function(){woodmartThemeModule.swatchesOnGrid()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdQuickShopSuccess wdQuickViewOpen wdUpdateWishlist",function(){woodmartThemeModule.swatchesVariations()}),woodmartThemeModule.swatchesVariations=function(){var b=a(".variations_form"),c=!1,d=!1;a(".variations_form .label").on("click",function(b){a(this).siblings(".value").hasClass("with-swatches")&&b.preventDefault()}),b.each(function(){var b=a(this);b.data("swatches")||(b.data("swatches",!0),b.data("product_variations")||b.find(".swatches-select").find("> div").addClass("swatch-enabled"),a(".swatches-select > div").hasClass("active-swatch")&&b.addClass("variation-swatch-selected"),b.on("click",".swatches-select > div",function(){var c=a(this),d=c.data("value"),f=c.parent().data("id"),g=c.data("title");e(b),c.hasClass("active-swatch")||c.hasClass("swatch-disabled")||(b.find("select#"+f).val(d).trigger("change"),c.parent().find(".active-swatch").removeClass("active-swatch"),c.addClass("active-swatch"),e(b),("yes"===woodmart_settings.swatches_labels_name&&woodmartThemeModule.$window.width()>=769||woodmartThemeModule.$window.width()<=768)&&c.parents("tr").find(".wd-attr-selected").html(g))}).on("woocommerce_update_variation_values",function(){e(b)}).on("click",".reset_variations",function(){b.find(".active-swatch").removeClass("active-swatch"),("yes"===woodmart_settings.swatches_labels_name&&woodmartThemeModule.$window.width()>=769||woodmartThemeModule.$window.width()<=768)&&b.find(".wd-attr-selected").html("")}).on("reset_data",function(){var d=a(this),g=!0,i=!1;b.find(".variations select").each(function(){0===(d.val()||"").length?g=!1:i=!0}),g&&d.parent().find(".active-swatch").removeClass("active-swatch"),b.removeClass("variation-swatch-selected");var j=a(".woocommerce-product-gallery__wrapper.owl-carousel");if(e(b),m("default",b),j.hasClass("owl-carousel")){"yes"===woodmart_settings.product_slider_auto_height?(!f()&&h("default",b)&&c&&j.trigger("destroy.owl.carousel"),a(".product-images").imagesLoaded(function(){j=j.owlCarousel(woodmartThemeModule.mainCarouselArg),j.trigger("refresh.owl.carousel")})):(j=j.owlCarousel(woodmartThemeModule.mainCarouselArg),j.trigger("refresh.owl.carousel"));var k="centered"===woodmart_settings.product_gallery.thumbs_slider.position?woodmart_settings.centered_gallery_start:0;f()&&(k=0),j.trigger("to.owl.carousel",k)}}).on("reset_image",function(){var c=a(".thumbnails .product-image-thumbnail img").first();f()||g(b)||c.wc_reset_variation_attr("src")}).on("show_variation",function(e,i){if(("yes"===woodmart_settings.swatches_labels_name&&woodmartThemeModule.$window.width()>=769||woodmartThemeModule.$window.width()<=768)&&!d&&(b.find(".active-swatch").each(function(){var b=a(this),c=b.data("title");b.parents("tr").find(".wd-attr-selected").html(c)}),d=!0),i.image.src){var j=b.parents(".single-product-content").find('.thumbnails .product-image-thumbnail img[data-o_src="'+i.image.thumb_src+'"]').length>0,l=b.parents(".single-product-content").find(".thumbnails .product-image-thumbnail img").first(),n=b.parents(".single-product-content").find(".woocommerce-product-gallery .woocommerce-product-gallery__image > a").first().data("o_href");j&&l.wc_reset_variation_attr("src"),g(b)||m(i.variation_id,b)||(l.attr("src")!==i.image.thumb_src&&l.wc_set_variation_attr("src",i.image.src),woodmartThemeModule.$document.trigger("wdShowVariationNotQuickView")),b.addClass("variation-swatch-selected"),g(b)||f()||n===i.image.full_src||k();var o=a(".woocommerce-product-gallery__wrapper.owl-carousel");if(o.hasClass("owl-carousel")){"yes"===woodmart_settings.product_slider_auto_height?(!f()&&h(i.variation_id,b)&&c&&o.trigger("destroy.owl.carousel"),a(".product-images").imagesLoaded(function(){o=o.owlCarousel(woodmartThemeModule.mainCarouselArg),o.trigger("refresh.owl.carousel")})):(o=o.owlCarousel(woodmartThemeModule.mainCarouselArg),o.trigger("refresh.owl.carousel"));var p=a(".images .thumbnails");o.trigger("to.owl.carousel",0),p.hasClass("owl-carousel")?(p.owlCarousel().trigger("to.owl.carousel",0),p.find(".active-thumb").removeClass("active-thumb"),p.find(".product-image-thumbnail").eq(0).addClass("active-thumb")):p.hasClass("slick-slider")&&(p.slick("slickGoTo",0),p.find(".product-image-thumbnail").eq(0).hasClass("active-thumb")||(p.find(".active-thumb").removeClass("active-thumb"),p.find(".product-image-thumbnail").eq(0).addClass("active-thumb")))}}}))});var e=function(b){b.data("product_variations")&&b.find(".variations select").each(function(){var b=a(this),c=b.parent().find(".swatches-select"),d=b.html();d=a(d),c.find("> div").removeClass("swatch-enabled").addClass("swatch-disabled"),d.each(function(){var b=a(this).val();a(this).hasClass("enabled")?c.find('div[data-value="'+b+'"]').removeClass("swatch-disabled").addClass("swatch-enabled"):c.find('div[data-value="'+b+'"]').addClass("swatch-disabled").removeClass("swatch-enabled")})})},f=function(){return a(".single-product-content").hasClass("product-quick-view")},g=function(a){return a.parent().hasClass("quick-shop-form")},h=function(a,b){return"old"===woodmart_settings.variation_gallery_storage_method?i(a):j(a,b)},i=function(a){if("undefined"!=typeof woodmart_variation_gallery_data||"undefined"!=typeof woodmart_qv_variation_gallery_data){var b=f()?woodmart_qv_variation_gallery_data:woodmart_variation_gallery_data;return void 0!==b&&b&&b[a]}},j=function(a,b){var c=l(b);return void 0!==c&&c&&c[a]&&c[a].length>1},k=function(){if("yes"===woodmart_settings.swatches_scroll_top_desktop&&woodmartThemeModule.$window.width()>=1024||"yes"===woodmart_settings.swatches_scroll_top_mobile&&woodmartThemeModule.$window.width()<=1024){var b=a("html, body");b.stop(!0),woodmartThemeModule.$window.on("mousedown wheel DOMMouseScroll mousewheel keyup touchmove",function(){b.stop(!0)}),b.animate({scrollTop:a(".product-image-summary").offset().top-150},800),a(".wd-swatch").tooltip("hide")}},l=function(a){var b=a.data("product_variations"),c=[];return b?(b.forEach(function(a){c[a.variation_id]=a.additional_variation_images,c.default=a.additional_variation_images_default}),c):c},m=function(b,d){if("old"===woodmart_settings.variation_gallery_storage_method){if(!h(b,d)||g(d)||"default"===b&&!c)return!1;n(b,d)}else{if(!h(b,d)||g(d)||"default"===b&&!c)return!1;var e=l(d);o(e[b],d)}return woodmartThemeModule.quickViewCarousel(),a(".woocommerce-product-gallery__image").trigger("zoom.destroy"),woodmartThemeModule.$document.trigger("wdReplaceMainGallery"),f()||woodmartThemeModule.$document.trigger("wdReplaceMainGalleryNotQuickView"),c="default"!==b,woodmartThemeModule.$window.trigger("resize"),!0},n=function(a,b){var c=f()?woodmart_qv_variation_gallery_data:woodmart_variation_gallery_data,d=c[a],e=b.parents(".single-product-content").find(".woocommerce-product-gallery__wrapper");e.empty();for(var g=0;g<d.length;g++){var h='<div class="product-image-wrap"><figure data-thumb="'+d[g].data_thumb+'" class="woocommerce-product-gallery__image">';f()||(h+='<a href="'+d[g].href+'">'),h+=d[g].image,f()||(h+="</a>"),h+="</figure></div>",e.append(h)}},o=function(a,b){var c=b.parents(".single-product-content").find(".woocommerce-product-gallery__wrapper");c.empty();for(var d in a)if(a.hasOwnProperty(d)){var e='<div class="product-image-wrap"><figure class="woocommerce-product-gallery__image" data-thumb="'+a[d].thumbnail_src+'">';f()||(e+='<a href="'+a[d].full_src+'" data-elementor-open-lightbox="no">');var g=a[d].srcset?'srcset="'+a[d].srcset+'"':"";e+='<img width="'+a[d].width+'" height="'+a[d].height+'" src="'+a[d].src+'" class="'+a[d].class+'" alt="'+a[d].alt+'" title="'+a[d].title+'" data-caption="'+a[d].data_caption+'" data-src="'+a[d].data_src+'" data-large_image="'+a[d].data_large_image+'" data-large_image_width="'+a[d].data_large_image_width+'" data-large_image_height="'+a[d].data_large_image_height+'" '+g+' sizes="'+a[d].sizes+'" />',f()||(e+="</a>"),e+="</figure></div>",c.append(e)}}},a(document).ready(function(){woodmartThemeModule.swatchesVariations()})}(jQuery),function(a){woodmartThemeModule.variationsPrice=function(){"no"!==woodmart_settings.single_product_variations_price&&a(".variations_form").each(function(){var b=a(this),c=b.parent().find("> .price").first(),d=c.html();b.on("show_variation",function(a,b){b.price_html.length>1&&c.html(b.price_html)}),b.on("hide_variation",function(){c.html(d)})})},a(document).ready(function(){woodmartThemeModule.variationsPrice()})}(jQuery),function(a){woodmartThemeModule.wishlist=function(){function b(b){var c=a(".wd-wishlist-content"),d=a(".wd-header-wishlist");d.length>0&&d.find(".wd-tools-count").text(b.count),
c.length>0&&!c.hasClass("wd-wishlist-preview")&&woodmartThemeModule.removeDuplicatedStylesFromHTML(b.wishlist_content,function(a){c.replaceWith(a)}),woodmartThemeModule.$document.trigger("wdUpdateWishlist")}var c="woodmart_wishlist_count";woodmartThemeModule.$body.hasClass("logged-in")&&(c+="_logged"),woodmart_settings.is_multisite&&(c+="_"+woodmart_settings.current_blog_id);var d=a(".wd-header-wishlist"),e=Cookies.get(c);if(d.length>0&&void 0!==e)try{var f=JSON.parse(e);d.find(".wd-tools-count").text(f)}catch(g){console.log("cant parse cookies json")}woodmartThemeModule.$body.on("click",".wd-wishlist-btn a",function(c){var d=a(this);d.hasClass("added")||c.preventDefault();var e=d.data("product-id"),f=d.data("added-text"),g=d.data("key");if(d.hasClass("added"))return!0;d.addClass("loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_to_wishlist",product_id:e,key:g},dataType:"json",method:"GET",success:function(a){a?(d.addClass("added"),woodmartThemeModule.$document.trigger("added_to_wishlist"),a.wishlist_content&&b(a),d.find("span").length>0?d.find("span").text(f):d.text(f)):console.log("something wrong loading wishlist data ",a)},error:function(){console.log("We cant add to wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading")}})}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove",function(c){c.preventDefault();var d=a(this),e=d.data("product-id"),f=d.data("key");if(d.hasClass("added"))return!0;d.addClass("loading"),a.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_wishlist",product_id:e,key:f},dataType:"json",method:"GET",success:function(a){a.wishlist_content?b(a):console.log("something wrong loading wishlist data ",a)},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading")}})})},a(document).ready(function(){woodmartThemeModule.wishlist()})}(jQuery),function(a){woodmartThemeModule.woocommerceComments=function(){var b=window.location.hash,c=window.location.href;(b.toLowerCase().indexOf("comment-")>=0||"#reviews"===b||"#tab-reviews"===b||c.indexOf("comment-page-")>0||c.indexOf("cpage=")>0)&&(setTimeout(function(){window.scrollTo(0,0)},1),setTimeout(function(){a(b).length>0&&a("html, body").stop().animate({scrollTop:a(b).offset().top-100},400)},10))},a(document).ready(function(){woodmartThemeModule.woocommerceComments()})}(jQuery),function(a){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(){b(a(this))});var b=function(a){a.removeClass("shown-notice").addClass("hidden-notice")}},a(document).ready(function(){woodmartThemeModule.woocommerceNotices()})}(jQuery),function(a){woodmartThemeModule.$document.on("wdBackHistory wdShopPageInit",function(){woodmartThemeModule.woocommercePriceSlider()}),woodmartThemeModule.woocommercePriceSlider=function(){var b=a(".price_slider_amount #min_price"),c=a(".price_slider_amount #max_price"),d=a(".products");if("undefined"==typeof woocommerce_price_slider_params||b.length<1||!a.fn.slider)return!1;var e=a(".price_slider");if(void 0===e.slider("instance")){a("input#min_price, input#max_price").hide(),a(".price_slider, .price_label").show();var f=b.data("min"),g=c.data("max"),h=parseInt(f,10),i=parseInt(g,10);d.attr("data-min_price")&&d.attr("data-min_price").length>0&&(h=parseInt(d.attr("data-min_price"),10)),d.attr("data-max_price")&&d.attr("data-max_price").length>0&&(i=parseInt(d.attr("data-max_price"),10)),e.slider({range:!0,animate:!0,min:f,max:g,values:[h,i],create:function(){b.val(h),c.val(i),woodmartThemeModule.$body.trigger("price_slider_create",[h,i])},slide:function(b,c){a("input#min_price").val(c.values[0]),a("input#max_price").val(c.values[1]),woodmartThemeModule.$body.trigger("price_slider_slide",[c.values[0],c.values[1]])},change:function(a,b){woodmartThemeModule.$body.trigger("price_slider_change",[b.values[0],b.values[1]])}}),setTimeout(function(){woodmartThemeModule.$body.trigger("price_slider_create",[h,i]),e.find(".ui-slider-range").length>1&&e.find(".ui-slider-range").first().remove()},10)}},a(document).ready(function(){woodmartThemeModule.woocommercePriceSlider()})}(jQuery),function(a){woodmartThemeModule.woocommerceQuantity=function(){String.prototype.getDecimals||(String.prototype.getDecimals=function(){var a=this,b=(""+a).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return b?Math.max(0,(b[1]?b[1].length:0)-(b[2]?+b[2]:0)):0}),woodmartThemeModule.$document.on("click",".plus, .minus",function(){var b=a(this),c=b.closest(".quantity").find(".qty"),d=parseFloat(c.val()),e=parseFloat(c.attr("max")),f=parseFloat(c.attr("min")),g=c.attr("step");d&&""!==d&&"NaN"!==d||(d=0),""!==e&&"NaN"!==e||(e=""),""!==f&&"NaN"!==f||(f=0),"any"!==g&&""!==g&&void 0!==g&&"NaN"!=parseFloat(g)||(g="1"),b.is(".plus")?e&&d>=e?c.val(e):c.val((d+parseFloat(g)).toFixed(g.getDecimals())):f&&d<=f?c.val(f):d>0&&c.val((d-parseFloat(g)).toFixed(g.getDecimals())),c.trigger("change")})},a(document).ready(function(){woodmartThemeModule.woocommerceQuantity()})}(jQuery),function(a){woodmartThemeModule.woocommerceWrappTable=function(){a(".shop_table:not(.shop_table_responsive):not(.woocommerce-checkout-review-order-table)").wrap("<div class='responsive-table'></div>")},a(document).ready(function(){woodmartThemeModule.woocommerceWrappTable()})}(jQuery),function(a){woodmartThemeModule.woodmartCompare=function(){function b(b){var c=a(".wd-header-compare");c.length>0&&c.find(".wd-tools-count").text(b.count);var d=a(".wd-compare-table");d.length>0&&d.replaceWith(b.table)}var c="woodmart_compare_list";woodmart_settings.is_multisite&&(c+="_"+woodmart_settings.current_blog_id);var d=woodmartThemeModule.$body,e=a(".wd-header-compare"),f=Cookies.get(c);if(e.length>0&&void 0!==f)try{var g=JSON.parse(f);e.find(".wd-tools-count").text(g.length)}catch(h){console.log("cant parse cookies json")}d.on("click",".wd-compare-btn a",function(c){var d=a(this),e=d.data("id"),f=d.data("added-text");if(d.hasClass("added"))return!0;c.preventDefault(),d.addClass("loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_to_compare",id:e},dataType:"json",method:"GET",success:function(a){a.table?(b(a),woodmartThemeModule.$document.trigger("added_to_compare")):console.log("something wrong loading compare data ",a)},error:function(){console.log("We cant add to compare. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.removeClass("loading").addClass("added"),d.find("span").length>0?d.find("span").text(f):d.text(f)}})}),d.on("click",".wd-compare-remove",function(c){c.preventDefault();var d=a(this),e=d.data("id");d.addClass("loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_compare",id:e},dataType:"json",method:"GET",success:function(a){a.table?b(a):console.log("something wrong loading compare data ",a)},error:function(){console.log("We cant remove product compare. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){d.addClass("loading")}})})},a(document).ready(function(){woodmartThemeModule.woodmartCompare()})}(jQuery);