text: jQuery(function(r){var c,t,g,o,n,i,a,e,u,s,l=r(".images"),f=r(".yith_magnifier_zoom"),m=r(".yith_magnifier_zoom img").first(),v=l.find(".yith_magnifier_zoom").attr("href"),d=l.find(".yith_magnifier_zoom img").attr("src"),_=l.find(".thumbnails");if("undefined"==typeof yith_magnifier_options)return!1;l.yith_magnifier(yith_magnifier_options),r(document).on("found_variation","form.variations_form",function(i,e){var r=e.image_magnifier||v,t=d;e.image.src&&(t=e.image.src),f.attr("href",r),m.attr("src",t),m.attr("srcset",t),m.attr("src-orig",t),l.data("yith_magnifier")&&l.yith_magnifier("destroy"),l.yith_magnifier(yith_magnifier_options)}).on("reset_image",function(i){f.attr("href",v),m.attr("src",d),m.attr("srcset",d),m.attr("src-orig",d),l.find(".thumbnails").replaceWith(_),l.data("yith_magnifier")&&l.yith_magnifier("destroy"),l.yith_magnifier(yith_magnifier_options)}),r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").length&&(r("form.variations_form .variations select").trigger("change"),r(".single-product.woocommerce div.product div.images div.thumbnails").css("width",r(".single-product.woocommerce div.product div.images div.thumbnails").width()),t=r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").data("circular"),g=r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").data("columns"),o=r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").data("slider_infinite"),n=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li").width(),i=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li").css("margin-left"),c=void 0===i?0:i.split("px").shift(),e=0,(a=[]).push(e),r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery li").each(function(){r(this).css("width",n+"px"),r(this).css("margin-left",i),r(this).css("margin-right",i),r(this).show(),e+=2*c+n,a.push(e),0}),u=e,r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery").css("width",u+"px"),r("#slider-next").css("top","50%"),r("#slider-next").css("transform","translateY( -50% )"),r("#slider-prev").css("top","50%"),r("#slider-prev").css("transform","translateY( -50% )"),s=0,r("body").on("click","#slider-next",function(){if(r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").next().is("li")){s++,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").animate({marginLeft:"-"+a[s]+"px"});var i=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").next();r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").removeClass("first"),i.addClass("first"),i=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").next(),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").removeClass("last"),i.addClass("last")}else if("yes"!=t||r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").is(":animated")){if("yes"==o&&!r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").is(":animated")){for(;r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").prev().is("li");){var e=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").prev();r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").removeClass("first"),e.addClass("first"),e=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").prev(),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").removeClass("last"),e.addClass("last")}s=0,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").animate({marginLeft:"-"+a[s]+"px"})}}else{s--,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").css("margin-left","-"+a[s]+"px");i=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li").first(),i=(r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").after(i),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").removeClass("last"),i.addClass("last"),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").next());r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").removeClass("first"),i.addClass("first"),s++,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").animate({marginLeft:"-"+a[s]+"px"})}}),r("body").on("click","#slider-prev",function(){if(r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").prev().is("li")){s--,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").animate({marginLeft:"-"+a[s]+"px"});var i=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").prev();r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").removeClass("first"),i.addClass("first"),i=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").prev(),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").removeClass("last"),i.addClass("last")}else if("yes"!=t||r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").is(":animated")){if("yes"==o&&!r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").is(":animated")){for(;r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").next().is("li");){var e=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").next();r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").removeClass("first"),e.addClass("first"),e=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").next(),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").removeClass("last"),e.addClass("last")}s=a.length-1-g,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").animate({marginLeft:"-"+a[s]+"px"})}}else{s++,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").css("margin-left","-"+a[s]+"px");i=r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li").last(),i=(r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").before(i),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.first").removeClass("first"),i.addClass("first"),r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").prev());r(".single-product.woocommerce div.product div.images .yith_magnifier_gallery li.last").removeClass("last"),i.addClass("last"),s--,r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").animate({marginLeft:"-"+a[s]+"px"})}}),"yes"==r(".single-product.woocommerce div.product div.images ul.yith_magnifier_gallery").data("auto_carousel")&&setTimeout(function p(){r("#slider-next").click(),setTimeout(p,3e3)},3e3),r(document).on("mouseover",".yith_slider_arrow",function(i){r(this).find("path").css("fill",ywzm_data.slider_colors_hover_array.arrow)}),r(document).on("mouseout",".yith_slider_arrow",function(i){r(this).find("path").css("fill",ywzm_data.slider_colors_array.arrow)}))});