"use strict";
var n=jQuery.noConflict();
function isotopAutoSet(){
jQuery(".testimonial-carousel").each(function(){
"use strict";
n(".testimonial-carousel .elementor-widget-wrap").addClass("owl-carousel");
n(".testimonial-carousel .elementor-widget-wrap").owlCarousel({
navigation: false,
pagination: false,
autoplay:3000,
items: 3,
itemsLarge: [1200, 3],
itemsDesktop: [1200, 3],
itemsDesktopSmall: [979, 1],
itemsTablet: [600, 1],
itemsMobile: [479, 1]
})
});
jQuery(".blog-carousel").each(function(){
"use strict";
if(n(this).attr("id")){
var e=n(this).attr("id").replace("_blog_carousel", "");
n(".blog-carousel").addClass("owl-carousel");
n(".blog-carousel").owlCarousel({
navigation: true,
pagination: false,
items: e,
itemsLarge: [1400, e],
itemsDesktop: [1200, e],
itemsDesktopSmall: [979, 2],
itemsTablet: [600, 2],
itemsMobile: [479, 1]
})
}});
function singleproductcarousel(){
"use strict";
n('.product .flex-control-thumbs').addClass('owl-carousel');
n(".product .flex-control-thumbs").owlCarousel({
navigation: true,
pagination: false,
items: 4,
itemsDesktop: [1299, 3],
itemsDesktopSmall: [991, 3],
itemsTablet: [600, 2],
itemsMobile: [320, 1]
});
}
jQuery(document).ready(function(){  "use strict";  singleproductcarousel() });
jQuery(window).load(function(){  "use strict";	singleproductcarousel() });
jQuery(window).resize(function(){  "use strict";singleproductcarousel()});
}
jQuery(window).on('load',function(){  "use strict";  isotopAutoSet()});
jQuery(window).resize(function(){ "use strict"; isotopAutoSet()});
jQuery(window).on('load',function(){
jQuery(".pageloader").fadeOut("slow");
});
jQuery(window).on('load', function(){
"use strict";
var $height=0 ;
jQuery(".product-action-wrap").each(function(){
if((jQuery(this).height())>$height){
$height=jQuery(this).height();
}});
jQuery("ul.products.woo-archive-action-on-hover .woo-archive-outer").each(function(){
jQuery(this).css("margin-bottom",-$height - 6);
jQuery(this).css("padding-bottom",$height + 6);
jQuery("ul.align-buttons-bottom .product-action-wrap").css("bottom", -$height - 6);
});
jQuery('.thebase-show-sidebar-btn').on("click",function(){
jQuery(".primary-sidebar").toggleClass("active");
jQuery(this).toggleClass("active");
});
jQuery('.thebase-hide-sidebar-btn .thebase-svg-iconset').on("click",function(){
jQuery(".primary-sidebar").removeClass("active");
jQuery('.thebase-show-sidebar-btn').removeClass("active");
});
});
jQuery('.widget_block').on("click",function(){
jQuery('.product-categories').slideToggle("slow");
});
function SidebarFooterToggle(){
"use strict";
jQuery('footer .widget h3,footer .widget .widget-title ,footer .woocommerce-shipping-calculator .shipping-calculator-button').parent().addClass('toggled-off');
jQuery('footer .widget h3,footer .widget .widget-title ,footer .woocommerce-shipping-calculator .shipping-calculator-button').on("click", function(){
if(jQuery(this).parent().hasClass('toggled-on')){
jQuery(this).parent().removeClass('toggled-on');
jQuery(this).parent().addClass('toggled-off');
}else{
jQuery(this).parent().addClass('toggled-on');
jQuery(this).parent().removeClass('toggled-off');
}
return (false);
});
}
jQuery(document).ready(function(){
"use strict";
SidebarFooterToggle()
});
jQuery(".upsells ul.products").each(function(){
if(n(this).attr("class")){
var e=n(this).attr("class").replace("columns-", "");
let x=e.substr(8);
n(".upsells ul.products").addClass("owl-carousel");
n(".upsells ul.products").owlCarousel({
navigation: true,
pagination: false,
afterAction: function(el){
this
.$owlItems
.removeClass('active')
let a=1;
let z=x - a;
this
.$owlItems
.eq(this.currentItem + z)
.addClass('active')
},
items: x,
itemsLarge: [1400, 5],
itemsDesktop: [1200, 4],
itemsDesktopSmall: [979, 3],
itemsTablet: [767, 3],
itemsMobile: [640, 2]
})
}});