????
Current Path : /home/multihiv/www/store/wp-content/themes/js/scripts/wc/ |
Current File : //home/multihiv/www/store/wp-content/themes/js/scripts/wc/productImages.min.js |
!function(n){woodmartThemeModule.productImages=function(){var e=n(".woocommerce-product-gallery"),t=n(".woocommerce-product-gallery__wrapper"),a=".wd-show-product-gallery-wrap > a",o=(e.hasClass("image-action-popup")&&(a+=", .woocommerce-product-gallery__image > a"),e.on("click",".woocommerce-product-gallery__image > a",function(e){e.preventDefault()}),e.on("click",a,function(e){e.preventDefault();var t=n(this),t=(t.attr("href"),r());woodmartThemeModule.callPhotoSwipe(o(e),t)}),function(e){var t,a=0,e=n(e.currentTarget);return e.parents(".wd-carousel-item").length?a=e.parents(".wd-carousel-item").index():e.hasClass("woodmart-show-product-gallery")&&((t=e.parents(".woocommerce-product-gallery")).hasClass("thumbs-position-left")||t.hasClass("thumbs-position-bottom")||t.hasClass("thumbs-position-without"))&&(a=e.parents(".wd-gallery-images").find(".wd-carousel-item.wd-active").index()),a}),r=function(){var d=[];return t.find("figure a img").each(function(){var e,t=n(this),a=t.attr("data-large_image"),o=t.attr("data-large_image_width"),r=t.attr("data-large_image_height"),i=t.data("caption");t.parents(".wd-carousel-item.wd-with-video").length?(-1!==(e=t.parents(".wd-with-video")[0].outerHTML).indexOf("wd-inited")&&(e=e.replace("wd-inited","wd-loaded").replace("wd-video-playing","")),d.push({html:e,mainElement:t.parents(".wd-with-video")})):d.push({src:a,w:o,h:r,title:"yes"===woodmart_settings.product_images_captions&&i})}),d}},n(document).ready(function(){woodmartThemeModule.productImages()})}(jQuery);