JezK
Edit File: woocommerce.min.js
!function(i){"use strict";etTheme.autoinit.contentProdImages=etTheme.contentProdImages=function(){i(".hover-effect-slider").each(function(){var t={slider:i(this),index:0,process:!1,time:300,imageLink:i(this).find(".product-content-image"),imagesWrapper:i(this).find(".images-slider-wrapper"),arrowsHTML:'<div class="sm-arrow arrow-left"></div><div class="sm-arrow arrow-right"></div>'};function a(e){t.process=!1,t.switchImg?(t.image.attr("src",t.imagesList[e]).attr("srcset",""),t.image.removeAttr("srcset")):"video"==t.videosList[e].item_type?(t.video.removeClass("hidden"),t.image.addClass("hidden"),t.video.css({height:t.video.height()}),t.slider.addClass("video-loading"),t.video.get(0).pause(),t.video.removeAttr("preload").removeAttr("poster").find("source").attr("src",t.videosList[e].src).attr("type",t.videosList[e].type),t.video.get(0).load(),t.video.get(0).addEventListener("loadeddata",e=>{3<=t.video.get(0).readyState&&(t.video.get(0).play(),t.slider.removeClass("video-loading"),t.video.css({height:""}),i(document).trigger("et_should_reinit_isotope"))})):(t.slider.addClass("video-loading"),t.video.addClass("hidden"),t.image.removeClass("hidden").attr("src",t.videosList[e].src).attr("srcset",""),t.image.removeAttr("srcset"),t.slider.imagesLoaded().progress(function(){t.slider.removeClass("video-loading"),i(document).trigger("et_should_reinit_isotope")}))}t.image=t.imageLink.find("img"),t.video=t.imageLink.find("video"),t.imagesList=t.imageLink.attr("data-images").split(";"),t.videosList=t.imageLink.attr("data-videos")?i.parseJSON(t.imageLink.attr("data-videos")).items:[],t.switchImg=t.videosList.length<=1,t.itemsList=t.switchImg?t.imagesList:t.videosList,(1<t.imagesList.length||1<t.videosList.length)&&!t.imagesWrapper.hasClass("arrows-added")&&(t.imagesWrapper.addClass("arrows-added").prepend(t.arrowsHTML),t.slider.find(".sm-arrow").mouseover(function(){t.slider.addClass("is_arrows-hovered")}),t.slider.find(".sm-arrow").on("mouseleave",function(){t.slider.removeClass("is_arrows-hovered")}),t.slider.find(".arrow-left").on("click",function(e){t.process||(t.process=!0,0<t.index?t.index--:t.index=t.itemsList.length-1,a(t.index))}),t.slider.find(".arrow-right").on("click",function(e){t.process||(t.process=!0,t.index<t.itemsList.length-1?t.index++:t.index=0,a(t.index))}))}),i(document).on("mouseover",".st-swatch-in-loop",function(){i(this).parents(".content-product").find(".product-image-wrapper").addClass("is_arrows-hovered")}).on("mouseleave",".st-swatch-in-loop",function(){i(this).parents(".content-product").find(".product-image-wrapper").removeClass("is_arrows-hovered")}),i(document).on("mouseover",".product-video-as-image[data-video-hover-state=pause]",function(){i(this).find("video").get(0).pause()}).on("mouseleave",".product-video-as-image[data-video-hover-state=pause]",function(){i(this).find("video").get(0).play()}).on("mouseover",".product-video-as-image[data-video-hover-state=play]",function(){i(this).find("video").get(0).play()}).on("mouseleave",".product-video-as-image[data-video-hover-state=play]",function(){i(this).find("video").get(0).pause()}),i(".product-video-as-image video[poster]").each(function(){this.addEventListener("loadeddata",e=>{i(this).trigger("mouseover"),i(this).attr("autoplay")||this.pause()})}),i(document).find(".content-product").on("mouseenter touchstart",function(){var e,t=i(this).find(".product-more-info"),a=t.find(".product-more-info-inner"),o=t.find(".product-more-info-btn");t.hasClass("wd-more-desc-calculated")||(e=t.outerHeight(),30<(a=a.outerHeight()-e)?o.addClass("wd-shown").removeClass("hidden"):0<a&&t.css("height",e+a),t.addClass("wd-more-desc-calculated"))}),i(document).on("click",".product-more-info-btn",function(e){e.preventDefault();e=i(this);e.parent().find(".limited-height").removeClass("limited-height"),i(document).trigger("etProductMoreDescriptionOpen",[e.parents(".content-product")]),i(this).remove()}),i(document).on("etProductMoreDescriptionOpen",function(e,t){etTheme.productHoverRecalc(t)})},etTheme.productHoverRecalc=function(e){e.find(".product-more-info-inner").outerHeight()<e.find(".product-more-info-inner table").outerHeight()&&e.find(".product-more-info-btn").removeClass("hidden");var t=e.find(".product-fadeIn-area").outerHeight();e.outerHeight();t+=e.height(),e.find(".product-spacer").css({height:t})},i(".content-product").on("mouseenter mousemove touchstart",function(){var e=i(this);e.hasClass("et-product-height-calculated")||(e.imagesLoaded(function(){etTheme.productHoverRecalc(e)}),e.addClass("et-product-height-calculated"))})}(jQuery),function(s){"use strict";etTheme.autoinit.quantityIncrements=etTheme.quantityIncrements=function(){s("body").hasClass("et_quantity-off")||(s(document).on("click",".plus, .minus",function(){var e=s(this).closest(".quantity").find(".qty"),t=parseFloat(e.val()),a=parseFloat(e.attr("max")),o=parseFloat(e.attr("min")),i=e.attr("step"),n="";if(t&&""!==t&&"NaN"!==t||(t=0),""!==a&&"NaN"!==a||(a=""),""!==o&&"NaN"!==o||(o=0),"any"!==i&&""!==i&&void 0!==i&&"NaN"!==parseFloat(i)||(i=1),s(this).is(".plus"))a&&(a==t||a<t)?e.val(a):(n=t+parseFloat(i),n=-1!==i.indexOf(".")||-1!==i.indexOf(",")?n.toFixed(3):parseFloat(n),e.val(n));else if(o&&(o==t||t<o)){if(s(this).parents(".product_list_widget"))return e.val(t),void s(this).parents(".mini_cart_item").find(".remove_from_cart_button").trigger("click");e.val(o)}else 0<t&&(n=t-parseFloat(i),n=-1!==i.indexOf(".")||-1!==i.indexOf(",")?n.toFixed(3):parseFloat(n),e.val(n));(e.hasClass("qty-duplicated")?e.parents("tr").find(".qty:not(.qty-duplicated)").val(e.val()):e).trigger("change")}),s(document).on("change",".woocommerce-cart-form .qty-duplicated",function(){var e=s(this).val(),t=s(this).attr("name").replace("qty_duplicated","qty");s('input[name="'+t+'"]').val(e)}),s(document).on("change",".content-product input.qty, .content-product select.qty",function(){var e,t=s(this).parents(".content-product").find(".button[data-quantity]");t.attr("data-quantity",this.value),etConfig.woocommerceSettings.ajax_add_to_cart_archives||(void 0!==(e=t.attr("data-origin-href"))&&!1!==e?t.attr("href",e+"&quantity="+this.value):(t.attr("data-origin-href",t.attr("href")),t.attr("href",t.attr("data-origin-href")+"&quantity="+this.value)))}),s(document).find(".content-product input.qty, .content-product select.qty").each(function(){var e=s(this),t=s(this).parents(".content-product").find(".button[data-quantity]").attr("data-quantity",e.find("input.qty").attr("value"));e.attr("min")||e.attr("min",1),t.attr("data-quantity",this.value)}),s(document).find("form.cart").each(function(){var e=s(this).find("input.qty");e.length?s(this).find("button[data-quantity]").attr("data-quantity",e.val()):s(this).find("button[data-quantity]").attr("data-quantity",s(this).find("select.qty").val())}),s(document).on("et_ajax_element_loaded",function(e,t){"etheme_products"==t.element&&"lazy"==t.args.navigation&&s(t.selector).find(".content-product input.qty, .content-product select.qty").each(function(){var e=s(this),t=s(this).parents(".content-product").find(".button[data-quantity]").attr("data-quantity",e.find("input.qty").attr("value"));e.attr("min")||e.attr("min",1),t.attr("data-quantity",this.value)})}),s(document).on("change","form.cart input.qty, form.cart select.qty",function(){s(this).parents("form").find("button[data-quantity]").attr("data-quantity",this.value)}),s(document).on("change",".popup-added-to-cart input.qty, .popup-added-to-cart select.qty",function(){s(this).parents(".popup-added-to-cart").find("button[data-quantity]").attr("data-quantity",this.value)}),s(document).on("change",".sales-booster-quantity-discounts input.qty, .sales-booster-quantity-discounts select.qty",function(){s(this).parent().parent().find("button[data-qty]").attr("data-qty",this.value)}),s(document).on("change",".etheme-product-list-item input.qty",function(){s(this).parent().parent().find(".button[data-quantity]").attr("data-quantity",this.value)}),s(document).on("change",".xstore-wishlist-items input.qty",function(){s(this).parents("tr").find(".button[data-quantity]").attr("data-quantity",this.value)}),s(document).on("change",".xstore-compare-items input.qty",function(){var e=s(this).parents("td").data("product_id"),e=s(this).parents("tbody").find('.xstore-compare-button[data-product_id="'+e+'"] .button[data-quantity]');e.length&&e.attr("data-quantity",this.value)}))}}(jQuery),function(c){"use strict";etTheme.autoinit.ajaxAddToCartInit=etTheme.ajaxAddToCartInit=function(){var d=etTheme.et_global.w_width<etTheme.et_global.mob_header_start||etConfig.layoutSettings.is_mobile?c(".mobile-header-wrapper"):c(".header-wrapper"),r=0;c("body").hasClass("elementor-editor-active")||(c(document.body).on("adding_to_cart",function(e,t,a){null==t||(t.attr("data-qty")&&(a.quantity=parseInt(t.attr("data-qty"))),t.parents(".content-product, form.cart").addClass("adding-to-cart").addClass("et-vpf"),t.prepend('<div class="et-loader"><svg class="loader-circular" width="30px" height="30px" viewBox="25 25 50 50"><circle class="loader-path" cx="50" cy="50" r="12" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg></div>'),"popup"!=etConfig.ajaxProductAddedNotify.type)||etTheme.et_woocommerce.popup_added_to_cart_css_loaded||(c.each(etConfig.popupAddedToCart.css,function(e,t){c("#etheme-"+e+"-css").length||-1<c.inArray(e,etTheme.et_global.styles_loaded)||(c("head").append(t),etTheme.et_global.styles_loaded.push(e))}),etTheme.et_woocommerce.popup_added_to_cart_css_loaded=!0)}).on("added_to_cart",function(e,t,a,n){if(etConfig.woocommerceSettings.cart_redirect_after_add)window.location.href=etConfig.woocommerceSettings.cart_url;else{etTheme.global_image_lazy(),etTheme.swiperFunc();let e=n.parents(".content-product, .type-product, form.cart"),i=(clearTimeout(r),n.find(".et-loader").remove(),setTimeout(function(){e.removeClass("adding-to-cart").removeClass("et-vpf")},400),etTheme.et_woocommerce.quick_view_opened&&etTheme.closeQuickView(),etConfig.ajaxProductAddedNotify.type);switch("popup"!=i||etTheme.et_woocommerce.popup_added_to_cart_css_loaded||(c.each(etConfig.popupAddedToCart.css,function(e,t){c("#etheme-"+e+"-css").length||-1<c.inArray(e,etTheme.et_global.styles_loaded)||(c("head").append(t),etTheme.et_global.styles_loaded.push(e))}),etTheme.et_woocommerce.popup_added_to_cart_css_loaded=!0),i=0<c(n).parents(".ajax-search-form").length?"alert":i){case"alert":etTheme.notify(etConfig.successfullyAdded);break;case"alert_advanced":c.ajax({url:etConfig.ajaxurl,data:{action:"etheme_get_added_cart_product_info"},method:"POST",success:function(e){var t=c("<a>",{class:"et-notify-image",href:e.product_link,target:"_self"}).html(e.product_image),e=c("<div>",{class:"et-notify-info"}).html(e.product_title),a=c("<a>",{class:"et-notify-button",href:etConfig.cartPageUrl}).html(etConfig.viewCart);e.append(a[0].outerHTML),etTheme.notify(t[0].outerHTML+e[0].outerHTML,"info",5e3,!0)}});break;case"popup":let e="";e+='<div class="popup-added-to-cart container mfp-with-anim" style="max-width: 640px;"><div class="popup-added-to-cart-content pos-relative '+etTheme.et_global.classes.skeleton+'"><div class="product-section-01"><div class="product-name col-md-3"></div><div class="product-details col-md-9"></div><div class="order-total col-md-12"></div></div><div class="product-section-02"></div>',"none"!=etConfig.ajaxProductAddedNotify.linked_products_type&&(e+='<div class="product-section-03"><div class="col-md-3"><div class="slide-item"></div></div><div class="col-md-3"><div class="slide-item"></div></div><div class="col-md-3"><div class="slide-item"></div></div><div class="col-md-3"><div class="slide-item"></div></div></div>'),e+="</div></div>",c.magnificPopup.open({items:{src:e},removalDelay:0,callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim"),this.st.mainClass="mfp-zoom-out",c("html").addClass(etTheme.et_global.classes.mfp),etTheme.et_woocommerce.popup_added_to_cart_opened=!0},afterClose:function(){c("html").removeClass(etTheme.et_global.classes.mfp),etTheme.et_woocommerce.popup_added_to_cart_opened=!1}}},0),c.ajax({url:etConfig.ajaxurl,method:"POST",data:{action:"etheme_added_to_cart_popup"},dataType:"json",beforeSend:function(){},complete:function(){},success:function(e){c(".popup-added-to-cart-content").removeClass(etTheme.et_global.classes.skeleton).attr("style",null),c(".popup-added-to-cart-content .product-section-01").html(e.product_section_01),c(".popup-added-to-cart-content .product-section-02").html(e.product_section_02);var t=c(".popup-added-to-cart-content .product-section-03");t.length&&t.html(e.product_section_03),etTheme.swiperFunc(),void 0!==etTheme.reinitSwatches&&etTheme.reinitSwatches(),c(".popup-added-to-cart-content .et-close-mfp").on("click",function(){c(".popup-added-to-cart").magnificPopup("close")})},error:function(){}});break;case"mini_cart":var s=d;c(document).find(".sticky-site-header.sticky-on").length&&(s=etTheme.et_global.w_width<etTheme.et_global.mob_header_start||etConfig.layoutSettings.is_mobile?c(".sticky-mobile-header-wrapper"):c(".sticky-header-wrapper"));let t=c(s).find(".et_b_header-cart.et_element-top-level"),a=c(s).find(".et_b_header-cart.et_element-top-level.et-off-canvas .et-mini-content"),o=c(s).find(".et_b_header-cart.et_element-top-level.et-off-canvas");o.length&&(etTheme.closeQuickView(),etTheme.showHideElementsOnCanvasActions(!0),etTheme.et_global.deny_link_click=!0,c(".et-mobile-panel-wrapper").addClass("outside")),t.addClass("active"),a.addClass("active"),o.addClass("et-content-shown"),r=setTimeout(function(){t.removeClass("active")},1e3)}}}).on("removed_from_cart",function(e,t,a,o){c(o).hasClass("popup-remove-from-cart")&&c("popup-added-to-cart").magnificPopup("close")}),c(document).on("click",".login-to-buy-product",function(e){e.preventDefault();var e=d,t=(c(document).find(".sticky-site-header.sticky-on").length&&(e=etTheme.et_global.w_width<etTheme.et_global.mob_header_start||etConfig.layoutSettings.is_mobile?c(".sticky-mobile-header-wrapper"):c(".sticky-header-wrapper")),c(this).attr("href"));let a=c(e).find(".et_b_header-account.et-off-canvas");0<a.length?setTimeout(function(){a.find(".et-toggle").first().trigger("click")},300):window.location=t}))}}(jQuery),function(r){"use strict";etTheme.autoinit.miniCartAjaxQuantity=etTheme.miniCartAjaxQuantity=function(){var d;function e(){let e=r(this),t=e.val(),a=e.parents(".woocommerce-mini-cart-item"),o=a.data("key"),i=e.parents(".popup-added-to-cart").length,n=e.parents(".etheme-elementor-off-canvas").length;var s=n?900:1500;i&&(a=e.parents(".product-section-01")),0==t&&""!=t&&r(this).parents(".woocommerce-mini-cart-item").find(".remove_from_cart_button").trigger("click"),clearTimeout(d),d=setTimeout(function(){""!=t&&(n||a.block({message:null,overlayCSS:{opacity:.6}}),r.ajax({url:etConfig.ajaxurl,dataType:"json",method:"GET",data:{action:"etheme_update_cart_item_quantity",item_id:o,qty:t},success:function(e){"undefined"==typeof etMiniCart?r(document.body).trigger("wc_fragment_refresh"):etMiniCart.getMiniCart(),i&&(0==t?r(".popup-added-to-cart").magnificPopup("close"):r.ajax({url:etConfig.ajaxurl,method:"POST",data:{action:"etheme_added_to_cart_popup"},dataType:"json",beforeSend:function(){},complete:function(){},success:function(e){r(document).find(".popup-added-to-cart-content .product-section-01").html(e.product_section_01),r(document).find(".popup-added-to-cart-content img").first().on("load",function(){etTheme.swiperFunc(),void 0!==etTheme.reinitSwatches&&etTheme.reinitSwatches()})}}))}}))},s)}r(document).on("change input",".woocommerce-mini-cart .quantity .qty",e),r(document).on("change input",".popup-added-to-cart .quantity .qty",e)}}(jQuery),function(r){"use strict";etTheme.autoinit.quickView=etTheme.quickView=function(){r(document).on("click",".show-quickly, .show-quickly-btn",function(){var s,e,t,d;etTheme.et_global.deny_link_click||(etTheme.et_woocommerce.popup_added_to_cart_opened&&(r(".popup-added-to-cart").magnificPopup("close"),etTheme.et_woocommerce.popup_added_to_cart_opened=!1),etTheme.et_woocommerce.quick_view_css_loaded||(r.each(etConfig.quickView.css,function(e,t){r("#etheme-"+e+"-css").length||-1<r.inArray(e,etTheme.et_global.styles_loaded)||(r("head").append(t),etTheme.et_global.styles_loaded.push(e))}),etConfig.woocommerceSettings.is_single_product_builder&&r("head").append(` <style type="text/css"> .et-quick-view-wrapper .single_add_to_cart_button.button { background-color: var(--single-add-to-cart-background-color); color: var(--single-add-to-cart-color); } .et-quick-view-wrapper .single_add_to_cart_button.button:hover { background-color: var(--single-add-to-cart-hover-background-color); color: var(--single-add-to-cart-hover-color); } </style>`),etTheme.et_woocommerce.quick_view_css_loaded=!0),s=r(this),e=r(this).parent().parent().parent(),t=s.data("prodid"),(d="off_canvas"==etConfig.quickView.type)?(r("body").prepend('<div class="'+etTheme.et_global.classes.skeleton+" et-off-canvas et-off-canvas-wide et-content-"+etConfig.quickView.position+' et-popup-wrapper et-quick-view-canvas et-quick-view-wrapper product"><div class="et-mini-content et-popup-content"></div></div>'),etTheme.et_woocommerce.quick_view_opened=!0):r.magnificPopup.open({items:{src:'<div class="quick-view-popup et-quick-view-wrapper mfp-with-anim"><div class="doubled-border '+("centered"==etConfig.quickView.layout?"has-overflow ":"")+etTheme.et_global.classes.skeleton+'"><div class="product-content quick-view-layout-'+etConfig.quickView.layout+'"><div class="row"><div class="col-lg-6 col-sm-6 product-images"></div><div class="col-lg-6 col-sm-6 product-information"></div></div></div></div></div>'},removalDelay:0,callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim"),this.st.mainClass="mfp-zoom-out",r("html").addClass("quick-view-open "+etTheme.et_global.classes.mfp),etTheme.et_woocommerce.quick_view_opened=!0},afterClose:function(){r("html").removeClass("quick-view-open "+etTheme.et_global.classes.mfp),etTheme.et_woocommerce.quick_view_opened=!1}}},0),r.ajax({url:etConfig.ajaxurl,method:"POST",data:{action:"etheme_product_quick_view",prodid:t},dataType:"json",beforeSend:function(){e.addClass("loading").addClass("et-vpf"),s.addClass("loading").prepend('<div class="et-loader"><svg class="loader-circular" viewBox="25 25 50 50"><circle class="loader-path" cx="50" cy="50" r="12" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg></div>')},complete:function(){s.find(".et-loader").remove(),s.removeClass("loading"),e.removeClass("loading").removeClass("et-vpf"),etTheme.global_image_lazy()},success:function(e){d?(r(".et-quick-view-canvas .et-mini-content").html(e.html).parent().removeClass(etTheme.et_global.classes.skeleton).addClass(e.classes),setTimeout(function(){r(".et-quick-view-canvas").addClass("done")},400)):(r(".quick-view-popup .product-content").attr("class",e.classes),e.has_first_column?r(".quick-view-popup .product-images").html(e.html_col_one).addClass(e.col_one_classes):(r(".quick-view-popup .product-images").remove(),r(".quick-view-popup .product-information").removeClass("col-lg-6 col-sm-6").addClass("col-lg-12 col-sm-12")),r(".quick-view-popup .product-information").html(e.html_col_two),e.has_first_column?r(".et-quick-view-wrapper .main-images img").first().on("load",function(){r(".quick-view-popup .doubled-border").removeClass(etTheme.et_global.classes.skeleton)}):r(".quick-view-popup .doubled-border").removeClass(etTheme.et_global.classes.skeleton)),e.quick_image_height&&r(".et-quick-view-wrapper .product-images img").css({"min-height":e.quick_image_height,"object-fit":"cover"}),r(".images").addClass("shown"),r(".et-quick-view-wrapper").find(".et_show-more-attr").first().trigger("click");var t=r(".quick-view-excerpts"),a=r(d?".et-quick-view-canvas .et-content":".product-information"),o=d?r(".et-content-inner"):a,i=!0;t.on("click",".excerpt-title",function(){i=!i||(a.stop().animate({scrollTop:o[0].scrollHeight}),!1),t.toggleClass("show-content")}),etTheme.swiperFunc(),void 0!==etTheme.reinitSwatches&&((e=s.attr("data-attributes"))&&(e=JSON.parse(e),r.each(e,function(e,t){e=e.replace("attribute_","");e=r(document).find(".et-quick-view-wrapper").find('ul[data-attribute="'+e+'"]');e.addClass("has-default-attribute").attr("data-default-attribute",t),e.find("li").removeClass("selected"),e.find('[data-value="'+t+'"]').parents("li").addClass("selected")}),r(document).find(".et-quick-view-wrapper .sten-reset-loop-variation").css("display","block")),etTheme.reinitSwatches());let n=r(".et-quick-view-wrapper .swiper-control-top").attr("id");n&&r(document).on("click",".st-swatch-preview li",function(){etTheme.swipers["swiper-"+n].slideTo(0)}),etConfig.woocommerceSettings.is_swatches&&ST_WC_FRONT_SWATCH.productLoop.variationsQuickViewQty(),r(document).trigger("etheme_quick_view_content_loaded")},error:function(){d?(r(".et-quick-view-canvas .et-mini-content").html("Error with ajax").parent().removeClass(etTheme.et_global.classes.skeleton),setTimeout(function(){r(".et-quick-view-canvas").addClass("done")},400)):r(".quick-view-popup .doubled-border").html("Error with ajax").parent().removeClass(etTheme.et_global.classes.skeleton)}}))}),r("body").on("click",".et-quick-view-wrapper .main-images a",function(e){e.preventDefault()})}}(jQuery),function(e){"use strict";etTheme.autoinit.after_cart_refreshed=etTheme.after_cart_refreshed=function(){e(document.body).on("wc_fragments_loaded wc_fragments_refreshed added_to_cart removed_from_cart",function(){void 0!==etTheme.global_image_lazy&&etTheme.global_image_lazy(),void 0!==etTheme.swiperFunc&&(etTheme.swiperFunc(),setTimeout(function(){etTheme.secondInitSwipers()},700))})}}(jQuery),function(t){"use strict";etTheme.autoinit.buyNowBtn=etTheme.buyNowBtn=function(){t(document).on("click",".et-single-buy-now",function(e){t(this).hasClass("et-buy-now-clicked")?e.preventDefault():(t(this).closest("form").append('<input type="hidden" name="et_buy_now" value="true">'),t(this).data("builder-element")&&t(this).closest("form").append('<input type="hidden" name="et_buy_now_builder_element" value="true">'),t(this).addClass("et-buy-now-clicked"))}),t("body.single-product form.variations_form").on("woocommerce_update_variation_values",function(){t(".et-single-buy-now").removeClass("et-buy-now-clicked")})}}(jQuery),function(o){"use strict";etTheme.autoinit.price_range_filter=etTheme.price_range_filter=function(){"undefined"!=typeof EthemeApplyFilters&&EthemeApplyFilters.is_loaded&&o(document).find(".etheme-price-filter .price-filter-box button").remove(),o(document).on("click",".etheme-price-filter button",function(e){e.preventDefault();var e=o(this).closest("form"),t=e.attr("action"),a=-1!==t.indexOf("?")?"&":"?",t=t+a+e.serialize().replace(/&?[^=]+=&|&[^=]+=$/g,"");"undefined"!=typeof ajaxFilters?(console.log(typeof ajaxFilters),ajaxFilters.load_data(t)):window.location.href=t})}}(jQuery),function(s){"use strict";etTheme.autoinit.widget_local_search=etTheme.widget_local_search=function(){s(document).on("keyup input",".etheme-widget_local_search",function(){var e=s(this).parent(),t=s(this).val().toLowerCase(),a=e.find(".search-button"),o=e.next(".etheme-widget_local_search-message"),i=o.next("ul").find("li"),n=o.next("ul").find("li.locally-hidden");a.addClass("loading"),t?(i.hide().addClass("locally-hidden").filter(function(){return-1!==s("> a",this).text().toLowerCase().indexOf(t)}).show().removeClass("locally-hidden"),i.length==n.length?o.removeClass("hidden"):o.addClass("hidden"),e.addClass("done")):(i.show().removeClass("locally-hidden"),e.removeClass("done"),o.addClass("hidden"),s(document).trigger("et_widget_local_search_reset",[e.parent()])),setTimeout(function(){a.removeClass("loading")},300)}),s(document).on("click",".etheme-widget_local_search-wrapper .clear",function(){var e=s(this).parent().parent(),t=e.next(".etheme-widget_local_search-message"),a=t.next("ul").find("li");e.find("input").val(""),a.show(),e.removeClass("done"),t.addClass("hidden"),s(document).trigger("et_widget_local_search_reset",[e.parent()])})}}(jQuery);