text: var App=function(t){"use strict";var o={};return{init:function(){this,this.FlipProductImage(),this.AddToWishList(),this.IsoTopCall(),this.FilterPortfolio(),this.MobileNavToggle(),this.ToggleAccountForm(),this.FilterToggle(),this.LogoCarouselCountFour(),this.TestimonialCarousel(),this.FashionTopCat(),this.ScrollToTOp(),this.HeaderFixOnScroll(),this.CounterNumber(),this.FaqToggle(),this.SearchToggle(),this.RelatedProducts(),this.BlogCarousel(),this.ProductCarousel(),this.FeatureCatCarouselDark(),this.ProductSlider(),this.ProductPopSlider(),this.MiniCartToggle(),this.singleProductSlide(),this.SingleProductCarousel(),this.SingleProductBottomCarousel(),this.ProductZoom(),this.LightCaseInit(),this.customScollBar(),this.stickyProductDetail(),this.wowInit(),this.ProductQuantityCount()},getObject:function(t){return void 0===o[t]&&(o[t]=$(t)),o[t]},FlipProductImage:function(){$(".img-switch").length>0&&$(".b-product_grid  .b-product_grid_single .b-product_grid_header > a").each(function(){$(this).html();if(t=$(this).find("img").attr("data-src")){var t,o=(t=t.split(","))[1],i=$(this).attr("href");$("<div class='b-hover_img'><a href='"+i+"'><img src='"+o+"' class='img-fluid img-switch d-block' alt='' ></a></div>").insertAfter($(this))}}),$(".img-switch-list").length>0&&$(".b-product_list_listing  .b-product_list_single .b-product_list_img > a").each(function(){$(this).html();if(t=$(this).find("img").attr("data-src")){var t,o=(t=t.split(","))[1],i=$(this).attr("href");$("<div class='b-hover_img'><a href='"+i+"'><img src='"+o+"' class='img-fluid img-switch d-block' alt='' ></a></div>").insertAfter($(this))}})},AddToWishList:function(){$(".b-add_to_whish").on("click",function(){$(this).hasClass("b-wish_added")||$(this).addClass("b-show_loader").delay(2500).queue(function(){$(this).removeClass("b-show_loader").dequeue(),$(this).addClass("b-wish_added"),$(this).parent("a").attr("data-original-title","Browse Wishlist");var t=$(this).parent("a").attr("data-whishurl");$(this).parent("a").attr("href",t)})})},IsoTopCall:function(){$("#b-portfolio_isotop").length>0&&$("#b-portfolio_isotop").isotope({itemSelector:".col-xs-12",percentPosition:!0})},FilterPortfolio:function(){$(".b-masonry_filter").on("click","a",function(){$(".b-masonry_filter li a").removeClass("b-filter_active"),$(this).addClass("b-filter_active");var t=$(this).attr("data-filter");$("#b-portfolio_isotop").isotope({filter:t})})},MobileNavToggle:function(){$("#b-nav_icon").on("click",function(t){return $("body").toggleClass("mobile-menu-open"),!1}),$(document).on("click",function(t){$(t.target).is(".b-main_menu-wrapper, .b-main_menu-wrapper *")||$("body").removeClass("mobile-menu-open")}),$(document).on("click",".b-main_menu-wrapper ul li.has-sub > a",function(t){return $(this).parent().find(".dropdown-inner").slideToggle("slow"),!1})},ToggleAccountForm:function(){$(document).find("#b-register_but").on("click",function(){$(".b-auth_text_register").fadeOut(""),$(".b-auth_login").fadeOut(""),$(".b-auth_register").fadeOut(),$(".b-auth_text_login").fadeOut(),$(".b-auth_register").fadeIn("slow"),$(".b-auth_text_login").fadeIn("slow")}),$(document).find("#b-login_but").on("click",function(){$(".b-auth_register").fadeOut(""),$(".b-auth_text_login").fadeOut(""),$(".b-auth_text_register").fadeOut(),$(".b-auth_login").fadeOut(),$(".b-auth_text_register").fadeIn("slow"),$(".b-auth_login").fadeIn("slow")})},FilterToggle:function(){$(".b-open_filters").on("click",function(){$(this).toggleClass("b-btn_open"),$(".b-filters_area").slideToggle("")})},LogoCarouselCountFour:function(){$("#b-gallery_logo.b-count_04").length>0&&$("#b-gallery_logo.b-count_04.owl-carousel").owlCarousel({loop:!0,margin:10,nav:!1,dots:!1,responsive:{0:{items:2},600:{items:3},1000:{items:4}}}),$("#b-gallery_logo.b-count_05").length>0&&$("#b-gallery_logo.b-count_05.owl-carousel").owlCarousel({loop:!0,margin:10,nav:!1,dots:!1,responsive:{0:{items:2},600:{items:4},1000:{items:5}}})},TestimonialCarousel:function(){$("#b-testimonial_list").length>0&&$("#b-testimonial_list").owlCarousel({loop:!0,margin:0,nav:!1,dots:!0,responsive:{0:{items:1},600:{items:1},1000:{items:1}}})},FashionTopCat:function(){$("#b-fashion_top_cat").length>0&&$("#b-fashion_top_cat").owlCarousel({loop:!0,margin:15,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:2},1000:{items:4}}})},ProductPopSlider:function(){$("#b-product_pop_slider").length>0&&$("#b-product_pop_slider").owlCarousel({loop:!0,margin:0,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:1},1000:{items:1}}})},ScrollToTOp:function(){$(t).scroll(function(){scroll=$(t).scrollTop(),scroll>=800?$("#b-scrollToTop").addClass("b-show_scrollBut"):$("#b-scrollToTop").removeClass("b-show_scrollBut")}),$("#b-scrollToTop").on("click",function(){$("body,html").animate({scrollTop:0},1e3)})},HeaderFixOnScroll:function(){$(t).scroll(function(){var o=$("body");$(t).scrollTop()>=250?o.addClass("b-header_fixed"):o.removeClass("b-header_fixed")})},CounterNumber:function(){$(".b-count_down").length>0&&$(".b-count_down .b-count_down_val span").each(function(){$(this).prop("Counter",0).animate({Counter:$(this).text()},{duration:4e3,easing:"swing",step:function(t){$(this).text(Math.ceil(t))}})})},FaqToggle:function(){$(".b-faq_option li span").on("click",function(){var t=$(this).data("val");$(".b-faq_option li span").removeClass("b-active_faq"),$(this).addClass("b-active_faq"),$(".b-tab_blocks > .b-tab_block_single").removeClass("b-tab_open"),$(".b-tab_blocks > .b-tab_block_single").each(function(){$(this).data("rel")==t&&$(this).addClass("b-tab_open")})}),$(".b-faq_list > li h5").on("click",function(){$(this).find("i").toggleClass("fa-angle-up"),$(this).find("i").toggleClass("fa-angle-down"),$(this).parent().toggleClass("b-active_faq"),$(this).parent().find("div").slideToggle()})},SearchToggle:function(){$("#b-search_toggle").on("click",function(){var o=$("header").height(),i=$(t).height()-o;$(this).find("i").toggleClass("icon-magnifier"),$(this).find("i").toggleClass("icon-magnifier-remove"),$("body").hasClass("b-search_open")?($(".b-search_popup").css("top",""),$(".b-search_popup").css("height","")):($(".b-search_popup").css("top",o),$(".b-search_popup").css("height",i)),$("body").toggleClass("b-search_open")}),$("#b-close_search").on("click",function(){$("#b-search_toggle i").addClass("icon-magnifier"),$("#b-search_toggle i").removeClass("icon-magnifier-remove"),$(".b-search_popup").css("top",""),$(".b-search_popup").css("height",""),$("body").removeClass("b-search_open")})},RelatedProducts:function(){if($("#b-related_products").length>0){var t=$("#b-related_products").owlCarousel({loop:!0,margin:15,nav:!0,dots:!0,responsive:{0:{items:1},600:{items:3},1000:{items:4}}});$(".customNextBtn").click(function(){t.trigger("next.owl.carousel")}),$(".customPrevBtn").click(function(){t.trigger("prev.owl.carousel",[300])})}},BlogCarousel:function(){if($("#b-blog_carousel").length>0){var t=$("#b-blog_carousel").owlCarousel({loop:!0,margin:15,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:3},1000:{items:3}}});$(".customNextBtn").click(function(){t.trigger("next.owl.carousel")}),$(".customPrevBtn").click(function(){t.trigger("prev.owl.carousel",[300])})}},ProductCarousel:function(){if($("#b-product_carousel").length>0){var t=$("#b-product_carousel").owlCarousel({loop:!0,margin:0,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:2},1000:{items:4}}});$(".customNextBtn").click(function(){t.trigger("next.owl.carousel")}),$(".customPrevBtn").click(function(){t.trigger("prev.owl.carousel",[300])})}},FeatureCatCarouselDark:function(){if($("#b-feature_cat_carousel_dark").length>0){var t=$("#b-feature_cat_carousel_dark").owlCarousel({loop:!0,margin:15,nav:!0,dots:!0,responsive:{0:{items:1},600:{items:1},1000:{items:2}}});$(".customNextBtn").click(function(){t.trigger("next.owl.carousel")}),$(".customPrevBtn").click(function(){t.trigger("prev.owl.carousel",[300])})}},ProductSlider:function(){$("#b-lightSlider").length>0&&$("#b-lightSlider").lightSlider({gallery:!0,item:1,loop:!0,slideMargin:0,thumbItem:4})},MiniCartToggle:function(){$("#b-mini_cart").on("click",function(){$("body").addClass("b-mini_cart_toggle")}),$("#b-close_cart").on("click",function(){$("body").removeClass("b-mini_cart_toggle")})},singleProductSlide:function(){$("#bSingleProduct").length>0&&($("#bSingleProduct").slick({dots:!1,arrows:!1,speed:800,infinite:!1,autoplay:!1,slidesToShow:3,slidesToScroll:3,vertical:!0,draggable:!1}),$(document).on("click",".b-display-list-wrapper .b-slider-action .slick-prev",function(){$("#bSingleProduct").slick("slickPrev")}),$(document).on("click",".b-display-list-wrapper .b-slider-action .slick-next",function(){$("#bSingleProduct").slick("slickNext")}),$(".b-display-list-wrapper .owl-thumb-item:first-of-type").addClass("thumb-active"),$(document).on("click",".b-display-list-wrapper .owl-thumb-item",function(){$(".b-display-list-wrapper .owl-thumb-item").removeClass("thumb-active"),$(this).addClass("thumb-active")}))},SingleProductCarousel:function(){$("#bSingleProductCarousel").length>0&&$("#bSingleProductCarousel").owlCarousel({loop:!1,margin:0,nav:!1,dots:!1,items:1,mouseDrag:!1,thumbs:!0,thumbsPrerendered:!0})},SingleProductBottomCarousel:function(){$("#bSingleProductBottom").length>0&&($("#bSingleProductBottom").slick({dots:!1,arrows:!1,speed:800,infinite:!1,autoplay:!1,slidesToShow:4,slidesToScroll:1,draggable:!1}),$(document).on("click",".b-display-list-wrapper .b-slider-action .slick-prev",function(){$("#bSingleProductBottom").slick("slickPrev")}),$(document).on("click",".b-display-list-wrapper .b-slider-action .slick-next",function(){$("#bSingleProductBottom").slick("slickNext")}),$(".b-display-list-wrapper .owl-thumb-item:first-of-type").addClass("thumb-active"),$(document).on("click",".b-display-list-wrapper .owl-thumb-item",function(){$(".b-display-list-wrapper .owl-thumb-item").removeClass("thumb-active"),$(this).addClass("thumb-active")}))},ProductZoom:function(){$(".b-produt-item").each(function(){$(this).find("img").zoomIt()})},ProductQuantityCount:function(){$(".count").prop("disabled",!0),$(document).on("click",".plus",function(){$(".count").val(parseInt($(".count").val())+1)}),$(document).on("click",".minus",function(){$(".count").val(parseInt($(".count").val())-1),0==$(".count").val()&&$(".count").val(1)})},LightCaseInit:function(){$("a[data-rel^=lightcase]").length>0&&$("a[data-rel^=lightcase]").lightcase()},customScollBar:function(){$(".b-custom-scroll").length>0&&$(".b-compact-summary").mCustomScrollbar({theme:"minimal-dark"})},stickyProductDetail:function(){$(".b-sticky-product").length>0&&$(".b-sticky-product").stickyMojo({footerID:"#endSticky",contentID:".b-product-display"})},wowInit:function(){$(".wow").length>0&&(console.log("Test"),(new WOW).init())}}}(window);$(document).ready(function(t){if(App.init(),t('[data-toggle="tooltip"]').tooltip(),t(".gallery").length>0)t(".gallery a").simpleLightbox();t(".myInfiniteScroll").length>0&&t(".myInfiniteScroll").infiniteScroll({preloaderColor:"#007bff",files:["./assets/content/content1.html","./assets/content/content2.html","./assets/content/content3.html"],beforeLoadNewContent:function(){},onEnd:function(){}})}),$(window).on("load",function(){$(window).scroll(function(){if($(".b-sticky-product").length>0){var t=$(window).scrollTop(),o=$(".b-product-design-sticky");t>=o.offset().top?o.addClass("b-scroll-active"):o.removeClass("b-scroll-active"),parseInt($(".b-sticky-product").css("top"),0)<0?$(".b-sticky-product").addClass("b-hide"):$(".b-sticky-product").removeClass("b-hide")}}),$(".b-promo_popup button.btn-close").on("click",function(){$("#b-promo_popup").remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),$("body").removeAttr("style")})});
  