text: $(document).ready(function(){"use strict";var s=$(".sidebar-shop"),e=$(".shop-content-overlay"),t=$(".shop-sidebar-toggler"),o=$(".price-options"),i=$(".grid-view-btn"),a=$(".list-view-btn"),n=$("#ecommerce-products"),r=$(".cart"),l=$(".wishlist");t.on("click",function(){s.toggleClass("show"),e.toggleClass("show")}),$(".shop-content-overlay, .sidebar-close-icon").on("click",function(){s.removeClass("show"),e.removeClass("show")});var c=document.getElementById("price-slider");c&&noUiSlider.create(c,{start:[51,5e3],connect:!0,tooltips:[!0,!0],format:wNumb({decimals:0}),range:{min:51,max:5e3}}),0<o.length&&o.select2({minimumResultsForSearch:-1,dropdownAutoWidth:!0,width:"100%"}),i.on("click",function(){n.removeClass("list-view").addClass("grid-view"),a.removeClass("active"),i.addClass("active")}),a.on("click",function(){n.removeClass("grid-view").addClass("list-view"),i.removeClass("active"),a.addClass("active")}),r.on("click",function(){var s=$(this);s.find(".add-to-cart").addClass("d-none"),s.find(".view-in-cart").addClass("d-inline-block")}),l.on("click",function(){var s=$(this);s.find("i").toggleClass("fa-heart-o fa-heart"),s.toggleClass("added")});var d=$(".checkout-tab-steps"),h=d.show();0<d.length&&($(d).steps({headerTag:"h6",bodyTag:"fieldset",transitionEffect:"fade",titleTemplate:'<span class="step">#index#</span> #title#',enablePagination:!1,onStepChanging:function(s,e,t){return t<e||(e<t&&(h.find(".body:eq("+t+") label.error").remove(),h.find(".body:eq("+t+") .error").removeClass("error")),1===e&&Number($(".form-control.required").val().length)<1&&toastr.warning("Error","Please Enter Valid Details",{positionClass:"toast-bottom-right"}),h.validate().settings.ignore=":disabled,:hidden",h.valid())}}),$(".place-order, .delivery-address").on("click",function(){$(".checkout-tab-steps").steps("next",{})}),$(".btn-cvv").on("click",function(){3==$(".input-cvv").val().length?toastr.success("Success","Payment received Successfully",{positionClass:"toast-bottom-right"}):toastr.warning("Error","Please Enter Valid Details",{positionClass:"toast-bottom-right"})}));var v=$(".quantity-counter");0<v.length&&v.TouchSpin({min:1,max:10}).on("touchspin.on.startdownspin",function(){var s=$(this);$(".bootstrap-touchspin-up").removeClass("disabled-max-min"),1==s.val()&&$(this).siblings().find(".bootstrap-touchspin-down").addClass("disabled-max-min")}).on("touchspin.on.startupspin",function(){var s=$(this);$(".bootstrap-touchspin-down").removeClass("disabled-max-min"),10==s.val()&&$(this).siblings().find(".bootstrap-touchspin-up").addClass("disabled-max-min")}),$(".remove-wishlist , .move-cart").on("click",function(){$(this).closest(".ecommerce-card").remove()})}),$(window).on("resize",function(){$(window).width()<=991?($(".sidebar-shop").removeClass("show"),$(".shop-content-overlay").removeClass("show")):$(".sidebar-shop").addClass("show")});