jQuery(document).ready((function(t){t(".align-last-module").each((function(){var e=t(this);e.find(".slick-list").length?e.find(".slick-slide:nth-child(1) .et_pb_section .et_pb_row:nth-child(2)").length>0?e.addClass("align-multiple_rows"):e.addClass("align-single_row"):e.find(".divi-filter-archive-loop .et_pb_row:nth-child(2)").length>0?e.addClass("align-multiple_rows"):e.find(".divi-filter-archive-loop .et_section_specialty").length>0?(e.find(".divi-filter-archive-loop .et_section_specialty .et_pb_column:nth-child(2)").length>0&&e.addClass("align-speciality_rows"),e.addClass("align-multiple_rows")):e.find(".bc_product_grid .et_pb_row:nth-child(2)").length>0?e.addClass("align-multiple_rows"):e.addClass("align-single_row")})),t(".et_pb_db_shop_comparetable .table_row").removeClass("hidethis"),t(document).on("touchstart click",".expand-readmore",(function(e){e.preventDefault(),t(this).closest(".et_pb_module").addClass("visible-readmore")})),t(document).on("touchstart click",".reset_variations",(function(e){t(".variable-items-wrapper").each((function(e,i){t(this).find("li").removeClass("active"),t(this).find("li").removeClass("active-variation")}))})),t(document.body).on("click",".bc-link-whole-grid-card",(function(e){if(!t(e.target).hasClass("ajax_add_to_cart")){var i=t(this).data("link-url");window.location.href=i}})),t(document.body).on("removed_from_cart",(function(){t("[name='update_cart']").removeAttr("disabled"),t("[name='update_cart']").trigger("click")})),t(document.body).on("removed_from_cart",(function(){t("body").removeClass("slidein-minicart-active")})),t(".menu-item .shop-cart").length&&(t(".menu-item .shop-cart").closest(".menu-item").addClass("opacityfull"),t(".menu-item .shop-cart").closest(".et_pb_section").addClass("section_with_cart")),t(document).on("divi_filter_completed",(function(){t(".remove-cat-link .categories a").contents().unwrap(),t(".remove-tags-link .tags a").contents().unwrap(),t("body").hasClass("archive")&&t("li.product").each((function(e,i){if(t(this).find(".et_pb_db_price.change_to_variation_price").length>0){t(".cart").addClass("hide-price");var o=t(this).find(".et_pb_db_price.change_to_variation_price .price"),a=t(this).find(".et_pb_db_price.change_to_variation_price .bodycommerce-changes-variation-price");(c=t(this).find(".et_pb_db_atc .variations_form")).on("show_variation",(function(t,e){var i=jQuery("<div>").append(o.find(".bc-price-before").clone()).html(),c=jQuery("<div>").append(o.find(".bc-price-after").clone()).html();void 0!==e&&!0===e.is_purchasable&&""!==e.price_html?(o.hide(),a.html(i+e.price_html+c),a.show()):(o.show(),a.hide())})),c.on("reset_data",(function(){o.show(),a.hide()}))}if(t(this).find(".et_pb_db_shop_thumbnail.change_on_variation").length>0){var c,n=t(this).find(".et_pb_db_shop_thumbnail.change_on_variation");(c=t(this).find(".et_pb_db_atc .variations_form")).on("show_variation",(function(t,e){n.find("img").each((function(){if(0!==e&&0!==e.is_purchasable&&""!==e.image.src){var t=jQuery(this).attr("src");jQuery(this).attr("data-orig_src",t),jQuery(this).attr("src",e.image.src)}}))})),c.on("reset_data",(function(){n.find("img").each((function(){var t=jQuery(this).attr("data-orig_src");jQuery(this).attr("src",t),jQuery(this).removeAttr("data-orig_src")}))}))}})),t(".et_pb_db_price.change_to_variation_price").length>0&&(t(".cart").addClass("hide-price"),t(".variations_form").each((function(){var e=t(this).closest(".et_pb_section"),i=e.find(".et_pb_db_price.change_to_variation_price .price"),o=e.find(".et_pb_db_price.change_to_variation_price .bodycommerce-changes-variation-price"),a=e.find(".et_pb_db_atc .variations_form");t(this).on("show_variation",(function(t,e){var a=jQuery("<div>").append(i.find(".bc-price-before").clone()).html(),c=jQuery("<div>").append(i.find(".bc-price-after").clone()).html();void 0!==e&&!0===e.is_purchasable&&""!==e.price_html?(i.hide(),o.html(a+e.price_html+c),o.show()):(i.show(),o.hide())})),a.on("reset_data",(function(){i.show(),o.hide()}))})))})),t(document).on("touchstart click",".bodycommerce-minicart .close",(function(e){t("body").removeClass("slidein-minicart-active"),t(".bodycommerce-minicart").removeClass("active"),t("body").removeClass("minicart-active")})),t(".et_pb_db_checkout_coupon").length&&t(".woocommerce-form-coupon-toggle").hide(),jQuery(document.body).on("checkout_error",(function(){if(t(".bc-checkout-notices").length){var e=jQuery(".woocommerce-NoticeGroup").html();t(".bc-checkout-notices").append(e),setTimeout((function(){jQuery(".woocommerce-NoticeGroup").remove()}),250)}})),jQuery(document.body).on("update_checkout",(function(){if(t(".et_pb_db_checkout_coupon").length)if(t(".bc-coupon-message").remove(),t(".woocommerce-error").length){t(".woocommerce-error").hide();var e=jQuery(".woocommerce-error").html();t(".et_pb_db_checkout_coupon").append("<div class='bc-coupon-message'>"+e+"</div>")}else if(t(".woocommerce-message").length){t(".woocommerce-message").hide();var i=jQuery(".woocommerce-message").html();t(".et_pb_db_checkout_coupon").append("<div class='bc-coupon-message'>"+i+"</div>")}})),t("body").hasClass("archive"),t("li.product, .et_pb_db_product_carousel .product").each((function(e,i){if(t(this).find(".et_pb_db_price.change_to_variation_price").length>0){t(".cart").addClass("hide-price");var o=t(this).find(".et_pb_db_price.change_to_variation_price .price"),a=t(this).find(".et_pb_db_price.change_to_variation_price .bodycommerce-changes-variation-price");(c=t(this).find(".et_pb_db_atc .variations_form")).on("show_variation",(function(t,e){var i=jQuery("<div>").append(o.find(".bc-price-before").clone()).html(),c=jQuery("<div>").append(o.find(".bc-price-after").clone()).html();void 0!==e&&!0===e.is_purchasable&&""!==e.price_html?(o.hide(),a.html(i+e.price_html+c),a.show()):(o.show(),a.hide())})),c.on("reset_data",(function(){o.show(),a.hide()}))}if(t(this).find(".et_pb_db_shop_thumbnail.change_on_variation").length>0){var c,n=t(this).find(".et_pb_db_shop_thumbnail.change_on_variation");(c=t(this).find(".et_pb_db_atc .variations_form")).on("show_variation",(function(t,e){n.find("img").each((function(){if(0!==e&&0!==e.is_purchasable&&""!==e.image.src){var t=jQuery(this).attr("src");jQuery(this).attr("data-orig_src",t),jQuery(this).attr("src",e.image.src)}}))})),c.on("reset_data",(function(){n.find("img").each((function(){var t=jQuery(this).attr("data-orig_src");jQuery(this).attr("src",t),jQuery(this).removeAttr("data-orig_src")}))}))}})),t(".et_pb_db_price.change_to_variation_price").length>0&&(t(".cart").addClass("hide-price"),t(".variations_form").each((function(){var e=t(this).closest(".et_pb_section"),i=e.find(".et_pb_db_price.change_to_variation_price .price"),o=e.find(".et_pb_db_price.change_to_variation_price .bodycommerce-changes-variation-price"),a=e.find(".et_pb_db_atc .variations_form");t(this).on("show_variation",(function(t,e){var a=jQuery("<div>").append(i.find(".bc-price-before").clone()).html(),c=jQuery("<div>").append(i.find(".bc-price-after").clone()).html();void 0!==e&&!0===e.is_purchasable&&""!==e.price_html?(i.hide(),o.html(a+e.price_html+c),o.show()):(i.show(),o.hide())})),a.on("reset_data",(function(){i.show(),o.hide()}))}))),t(".bodycommerce-minicart-container::after").click((function(e){e.preventDefault(),t(".bodycommerce-minicart").toggleClass("active"),t(".CartClick").toggleClass("active")}))})),jQuery(document).ready((function(t){function e(){t(".cart-link-span").each((function(e,i){var o=t(this).attr("data-url");t(this).wrapAll('<a href="'+o+'" class="added-url"></a>')}))}if(t(".et-cart-info").closest(".et_pb_column").length&&(t(".et-cart-info").closest(".et_pb_column").css("z-index","20"),t(".et-cart-info").closest(".et_pb_column").addClass("column-cart")),t(".cart-link .CartClick").each((function(e,i){t(this).closest(".et_pb_section").addClass("bc_minicart_section")})),t(".bc_checkout_field input, .bc_checkout_field select, .bc_checkout_field textarea").change((function(){var e=t(this),i=e.attr("name"),o=e.val();t(".et_pb_wc_checkout_payment_info input[type=hidden][name=".concat(i,"]")).remove(),t("<input>").attr({type:"hidden",value:o,name:i}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")})),jQuery(document.body).on("updated_wc_div",e),jQuery(document.body).on("updated_cart_totals",e),jQuery(document.body).on("added_to_cart",e),jQuery(document.body).on("updated_mini_cart",e),jQuery(document.body).on("removed_from_cart",e),t(".change_to_variation_stock").length){t("body").addClass("bodycommerce-changes-stock");var i=t(".change_to_variation_stock").closest(".product");setTimeout((function(){var e=i.find(".et_pb_db_atc .woocommerce-variation-availability").html();t(".change_variation_our_text").length?(i.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("in-stock")?(stocktext_val=t("#change_stock_instock").val(),e='<p class="stock in-stock">'+stocktext_val+"</p>"):i.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("out-of-stock")?(stocktext_val=t("#change_stock_outofstock").val(),e='<p class="stock out-of-stock">'+stocktext_val+"</p>"):i.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("available-on-backorder")&&(stocktext_val=t("#change_stock_backorder").val(),e='<p class="stock available-on-backorder">'+stocktext_val+"</p>"),i.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove()):i.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove(),""!==e&&(i.find(".et_pb_db_atc .woocommerce-variation-availability").hide(),i.find(".et_db_stock_status .stock").hide(),i.find(".et_db_stock_status .bodycommerce-changes-variation-stock").append(e))}),200),t(i.find(".et_pb_db_atc select")).on("change",(function(e){setTimeout((function(){t(i.find(".et_pb_db_atc select option[data-disabled='disabled']")).each((function(e,i){t(this).prop("disabled",!0),t(this).attr("disabled","disabled"),t(this).removeAttr("data-disabled")}));var e=i.find(".et_pb_db_atc .woocommerce-variation-availability").html();t(".change_variation_our_text").length?(i.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("in-stock")?(stocktext_val=t("#change_stock_instock").val(),e='<p class="stock in-stock">'+stocktext_val+"</p>"):i.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("out-of-stock")?(stocktext_val=t("#change_stock_outofstock").val(),e='<p class="stock out-of-stock">'+stocktext_val+"</p>"):i.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("available-on-backorder")&&(stocktext_val=t("#change_stock_backorder").val(),e='<p class="stock available-on-backorder">'+stocktext_val+"</p>"),i.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove()):i.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove(),void 0===e||""==e?(i.find(".et_db_stock_status .bodycommerce-changes-variation-stock .out-of-stock").remove(),i.find(".et_db_stock_status .stock").show(),i.find(".et_db_stock_status .bodycommerce-changes-variation-stock .available-on-backorder").remove()):(i.find(".et_pb_db_atc select").closest(".et_pb_db_atc").find(".woocommerce-variation-availability").hide(),i.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove(),i.find(".et_db_stock_status .stock").hide(),i.find(".et_db_stock_status .bodycommerce-changes-variation-stock").append(e))}),500)}))}t(".remove-cat-link .categories a").contents().unwrap(),t(".remove-tags-link .tags a").contents().unwrap(),t(".debodycommerce img").removeAttr("srcset"),t(".venobox").length&&t(".venobox").venobox({framewidth:"800px",titleattr:"data-title",numerationPosition:"bottom",numeratio:"true",titlePosition:"bottom"}),t("form.variations_form").on("show_variation",(function(e,i){t(this).closest(".product").find(".woocommerce-product-gallery__image img");t(".woocommerce-product-gallery__image").hasClass("slick-slide")&&(t(".woocommerce-product-gallery__image").parent().find(".slick-slide").removeClass("slick-current slick-active").css("opacity","0"),t(".woocommerce-product-gallery__image").addClass("slick-current slick-active"),t(".woocommerce-product-gallery__image").css("opacity","1"))})),t(window).on("load",(function(){t(".woocommerce-product-gallery__image img.wp-post-image").on("load",(function(){var e=t(this).attr("data-large_image"),i=t(this).attr("src");""!=e?t(".woocommerce-product-gallery__image .large").css("background-image","url('"+e+"')"):t(".woocommerce-product-gallery__image .large").css("background-image","url('"+i+"')")}))}));var o=0,a=0;t(".magnify").mousemove((function(e){if(o||a){var i=t(this).offset(),c=e.pageX-i.left,n=e.pageY-i.top;if(c<t(this).width()&&n<t(this).height()&&c>0&&n>0?t(this).find(".large").fadeIn(100):t(this).find(".large").fadeOut(100),t(this).find(".large").is(":visible")){var r=-1*Math.round(c/t(this).find(".imagezoom").width()*o-t(this).find(".large").width()/2)+"px "+-1*Math.round(n/t(this).find(".imagezoom").height()*a-t(this).find(".large").height()/2)+"px",s=c-t(this).find(".large").width()/2,d=n-t(this).find(".large").height()/2;t(this).find(".large").css({left:s,top:d,backgroundPosition:r})}}else{var _=new Image;_.src=t(this).find(".imagezoom").attr("src"),o=_.width,a=_.height}})),t(".magnify").mouseleave((function(){t(this).find(".large").fadeOut(100)}))}));