"undefined"!=typeof wc_single_product_params&&(wc_single_product_params.photoswipe_enabled=!1),function($,b){"use strict";var a={init:function(){var c={"clever-single-images.default":a.productImages,"clever-single-related.default":a.relatedProduct,"clever-single-recent-viewed-products.default":a.recentViewedProduct,"clever-single-add-to-cart.default":a.addToCart,"clever-single-tabs.default":a.productTabs,"clever-woo-products.default":a.widgetProducts,"clever-woo-categories.default":a.widgetCategories,"clever-single-get-order-time.default":a.productGetOrderTime,"clever-single-cart-extend.default":a.ExtendCartInfo,"clever-woo-builder-archive-quick-view.default":a.QuickView};$.each(c,function(a,c){b.hooks.addAction("frontend/element_ready/"+a,c)}),$.browser&&$.browser.safari&&document.addEventListener("click",function(a){(a.target.matches(".add_to_cart_button")||a.target.matches(".single_add_to_cart_button"))&&a.target.focus()}),$(document).on("clever-filter-content-rendered",a.reInitCarousel),$(document).on("cleverswatch_update_gallery",function(){a.productImages($(".elementor-clever-single-images.clever-woo-builder"))}),b.hooks.addFilter("clever-popup/widget-extensions/popup-data",a.prepareCleverPopup),$(window).on("clever-popup/render-content/ajax/success",a.cleverPopupLoaded),$(document).on("wc_update_cart added_to_cart",a.cleverCartPopupOpen),$(document).on("click",".clever-woo-switcher-btn",a.gridListSwitcher),$(document).on("click",".cwb-archive-quick-view",a.QuickView),$(document).on("click",".cwb-mask-close.mask-quick-view, .close-quickview",function(){$(".cwb-mask-close.mask-quick-view").removeClass("active"),$("#cwb-quickview-lb").attr("style","")})},gridListSwitcher:function(a){a.preventDefault();var b=$(document).find(".clever-woo-products-wrapper").data("layout-switcher"),d=$(a.currentTarget).hasClass("clever-woo-switcher-btn-main")?b.main:b.secondary,c=$(document).find(".clever-woo-switcher-controls-wrapper .clever-woo-switcher-btn"),f=$(document).find(".clever-woo-products-wrapper");if(window.CleverSmartFilters&&window.CleverSmartFilters.filterGroups["woocommerce-archive/default"])var e=window.CleverSmartFilters.filterGroups["woocommerce-archive/default"].query;$(a.currentTarget).hasClass("active")||(c.hasClass("active")&&c.removeClass("active"),$(a.currentTarget).addClass("active")),$.ajax({type:"POST",url:window.cleverWooBuilderData.ajax_url,data:{action:"clever_woo_builder_get_layout",query:window.cleverWooBuilderData.products,layout:d,filters:e},beforeSend:function(a){f.addClass("clever-layout-loading")},success:function(a){f.removeClass("clever-layout-loading"),f.html(a)}})},cleverPopupLoaded:function(a,b){setTimeout(function(){$(window).trigger("resize"),$(".clever-popup .woocommerce-product-gallery.images").each(function(a){$(this).wc_product_gallery()})},500)},prepareCleverPopup:function(a,c,b,e){if(c["is-clever-woo-builder"]){var d;a.isCleverWooBuilder=!0,a.templateId=c["clever-woo-builder-qv-template"],(d=b.hasClass("elementor-widget-clever-woo-products")||b.hasClass("elementor-widget-clever-woo-products-list")?$(e.target).parents(".clever-woo-builder-product"):b.parents(".clever-woo-builder-product")).length&&(a.productId=d.data("product-id"))}return a},relatedProduct:function(b){a.productsCarousel(b)},recentViewedProduct:function(b){a.productsCarousel(b)},productsCarousel:function(a){a.find(".carousel-layout.products").each(function(){let a=JSON.parse($(this).attr("data-cwb-config"));$(this).slick({slidesToShow:""!=a.slidesToShow?a.slidesToShow:1,slidesToScroll:1,rows:0,rtl:!!$("body.rtl")[0],swipe:!0,arrows:"true"==a.arrows,dots:"true"==a.dots,prevArrow:'',nextArrow:' ',responsive:[{breakpoint:768,settings:{slidesToShow:""!=a.slidesToShow_tablet?a.slidesToShow_tablet:1}},{breakpoint:556,settings:{slidesToShow:""!=a.slidesToShow_mobile?a.slidesToShow_mobile:1}}]})})},productImages:function(b){b.find(".cwb-single-images:not(.grid-layout)").each(function(){let a=JSON.parse($(this).attr("data-slider")),b=$(this);$(this).find(".wrap-main-product-gallery").slick({slidesToShow:b.hasClass("carousel-layout")?parseInt(a.slidesToShow):1,slidesToScroll:1,rows:0,rtl:!!$("body.rtl")[0],swipe:!0,arrows:"true"==a.arrows,dots:"true"==a.dots,centerMode:"true"==a.center_mod,centerPadding:a.center_padding,prevArrow:'',nextArrow:' ',asNavFor:b.hasClass("carousel-layout")?"":".cwb-single-images .wrap-list-thumbnail",responsive:[{breakpoint:768,settings:{centerPadding:a.center_padding_tablet,slidesToShow:b.hasClass("carousel-layout")?parseInt(a.slidesToShow_tablet):1}},{breakpoint:556,settings:{centerPadding:a.center_padding_mobile,slidesToShow:b.hasClass("carousel-layout")?parseInt(a.slidesToShow_mobile):1}}]}),$(this).find(".wrap-list-thumbnail")[0]&&$(this).find(".wrap-list-thumbnail").slick({slidesToShow:a.slidesToShow,slidesToScroll:1,rows:0,rtl:!!$("body.rtl")[0],swipe:!0,arrows:"true"==a.thumb_arrows,prevArrow:'',nextArrow:' ',asNavFor:".cwb-single-images .wrap-main-product-gallery",vertical:"1"==a.isVertical,verticalSwiping:"1"==a.isVertical,focusOnSelect:!0,responsive:[{breakpoint:768,settings:{slidesToShow:a.slidesToShow_tablet}},{breakpoint:556,settings:{slidesToShow:a.slidesToShow_mobile}}]})});let c="";$(window).resize(function(){c!=$(window).width()&&(void 0!==$.fn.zoom&&(b.find(".woocommerce-product-gallery__image a").trigger("zoom.destroy"),$(window).width()>768&&b.find(".woocommerce-product-gallery__image a").zoom()),$(window).width()>768?$(".cwb-single-images.grid-layout .wrap-main-product-gallery.slick-initialized")[0]&&$(".cwb-single-images.grid-layout.wrap-main-product-gallery.slick-initialized").slick("unslick"):b.find(".cwb-single-images.grid-layout").each(function(){let a=JSON.parse($(this).attr("data-slider"));$(this),$(this).find(".wrap-main-product-gallery").slick({slidesToShow:parseInt(a.slidesToShow),slidesToScroll:1,rows:0,rtl:!!$("body.rtl")[0],swipe:!0,arrows:"true"==a.arrows,dots:"true"==a.dots,prevArrow:'',nextArrow:' ',responsive:[{breakpoint:768,settings:{slidesToShow:parseInt(a.slidesToShow_tablet)}},{breakpoint:556,settings:{slidesToShow:parseInt(a.slidesToShow_mobile)}}]})}),c=$(window).width())}).resize(),a.productImgLightBox()},productImgLightBox:function(){$(document).on("click",".cwb-single-images .wrap-main-product-gallery .woocommerce-product-gallery__image a",function(c){if(c.preventDefault(),"undefined"!=typeof PhotoSwipe){let d=$(".pswp")[0],e=a.GetGalleryItems(),b=$(this).parent().index();$(this).closest(".slick-slide")[0]&&(b=$(this).closest(".slick-slide").data("slick-index"));let f={index:b,shareEl:!1,closeOnScroll:!1,history:!1,hideAnimationDuration:0,showAnimationDuration:0};new PhotoSwipe(d,PhotoSwipeUI_Default,e,f).init()}})},GetGalleryItems:function(){let a,b=[];return(a=$(".wrap-main-product-gallery").find(".woocommerce-product-gallery__image:not(.slick-cloned)")).length>0&&a.each(function(h,c){var a=$(c).find("img"),d=a.attr("data-large_image"),e=a.attr("data-large_image_width"),f=a.attr("data-large_image_height"),g={src:d,w:e,h:f,title:a.attr("title")};b.push(g)}),b},addToCart:function(a){$(".qty-nav")[0]&&$(document).on("click",".quantity .qty-nav",function(){var a=$(this).parents(".quantity").find("input.qty"),b=parseInt(a.val()?a.val():0);Number.isNaN(b)&&(b=0),$(this).hasClass("increase")?a.val(b+1):b>1&&a.val(b-1),a.trigger("change")}),$(document).on("show_variation",".variations_form:not(.cw-form-data)",function(){var b=$('.variations_form [data-countdown="countdown"]');if(b[0]){var a=b.data("date").split("-");b.lofCountDown({TargetDate:a[0]+"/"+a[1]+"/"+a[2]+" "+a[3]+":"+a[4]+":"+a[5],DisplayFormat:'