");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(a){if(a.data&&void 0!==a.data.title)return a.data.title;var c=b.st.image.titleSrc;if(c){if("function"==typeof c)return c.call(b,a);if(a.el)return a.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){if(d.naturalWidth>0)return void b._onImageHasSize(a);c>200&&clearInterval(L),c++,3===c?e(10):40===c?e(50):100===c&&e(500)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,e<200?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),!(a=b._getItemToZoom()))return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(!(a=b._getItemToZoom()))return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return!!b.currItem.hasSize&&b.currItem.img},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){if(e.indexOf(this.index)>-1)return this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:a<0?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);if(b.direction=!0,!c||!c.enabled)return!1;f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){if(b.items.length>1)return b.next(),!1}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('
').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b="ontouchstart"in window,c=function(){v.off("touchmove"+e+" touchend"+e)},d="mfpFastClick",e="."+d;a.fn.mfpFastClick=function(d){return a(this).each(function(){var f,g=a(this);if(b){var h,i,j,k,l,m;g.on("touchstart"+e,function(a){k=!1,m=1,l=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],i=l.clientX,j=l.clientY,v.on("touchmove"+e,function(a){l=a.originalEvent?a.originalEvent.touches:a.touches,m=l.length,l=l[0],(Math.abs(l.clientX-i)>10||Math.abs(l.clientY-j)>10)&&(k=!0,c())}).on("touchend"+e,function(a){c(),k||m>1||(f=!0,a.preventDefault(),clearTimeout(h),h=setTimeout(function(){f=!1},1e3),d())})})}g.on("click"+e,function(){f||d()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+e+" click"+e),b&&v.off("touchmove"+e+" touchend"+e)}}(),A()});
!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=['
"].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:'",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.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.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);
!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){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.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("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.$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.$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){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(){function t(){}var n=this,r=n._,e=Array.prototype,o=Object.prototype,u=Function.prototype,i=e.push,c=e.slice,l=o.toString,a=o.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=Object.create,v=function(n){return n instanceof v?n:this instanceof v?void(this._wrapped=n):new v(n)};"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=v:exports)._=v:n._=v,v.VERSION="1.8.3";var y=function(u,i,n){if(void 0===i)return u;switch(null==n?3:n){case 1:return function(n){return u.call(i,n)};case 2:return function(n,t){return u.call(i,n,t)};case 3:return function(n,t,r){return u.call(i,n,t,r)};case 4:return function(n,t,r,e){return u.call(i,n,t,r,e)}}return function(){return u.apply(i,arguments)}},d=function(n,t,r){return null==n?v.identity:v.isFunction(n)?y(n,t,r):v.isObject(n)?v.matcher(n):v.property(n)};v.iteratee=function(n,t){return d(n,t,1/0)};function g(n){return v.isObject(n)?h?h(n):(t.prototype=n,n=new t,t.prototype=null,n):{}}var m=function(c,f){return function(n){var t=arguments.length;if(t<2||null==n)return n;for(var r=1;r
":">",'"':""","'":"'","`":"`"},f=v.invert(m),b=function(t){function r(n){return t[n]}var n="(?:"+v.keys(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}};v.escape=b(m),v.unescape=b(f),v.result=function(n,t,r){t=null==n?void 0:n[t];return v.isFunction(t=void 0===t?r:t)?t.call(n):t};var N=0;v.uniqueId=function(n){var t=++N+"";return n?n+t:t},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function B(n){return"\\"+R[n]}var T=/(.)^/,R={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g;v.template=function(i,n,t){n=v.defaults({},n=!n&&t?t:n,v.templateSettings);var t=RegExp([(n.escape||T).source,(n.interpolate||T).source,(n.evaluate||T).source].join("|")+"|$","g"),o=0,a="__p+='";i.replace(t,function(n,t,r,e,u){return a+=i.slice(o,u).replace(q,B),o=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+(a=!n.variable?"with(obj||{}){\n"+a+"}\n":a)+"return __p;\n";try{var r=new Function(n.variable||"obj","_",a)}catch(n){throw n.source=a,n}t=function(n){return r.call(this,n,v)},n=n.variable||"obj";return t.source="function("+n+"){\n"+a+"}",t},v.chain=function(n){n=v(n);return n._chain=!0,n};function K(n,t){return n._chain?v(t).chain():t}v.mixin=function(r){v.each(v.functions(r),function(n){var t=v[n]=r[n];v.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),K(this,t.apply(v,n))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];v.prototype[t]=function(){var n=this._wrapped;return r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],K(this,n)}}),v.each(["concat","join","slice"],function(n){var t=e[n];v.prototype[n]=function(){return K(this,t.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return v})}.call(this);