!function(l){woodmartThemeModule.callPhotoSwipe=function(e,t){woodmartThemeModule.$body.hasClass("rtl")&&(e=t.length-e-1,t=t.reverse());var e={index:e,shareButtons:[{id:"facebook",label:woodmart_settings.share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:woodmart_settings.tweet,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:woodmart_settings.pin_it,url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:woodmart_settings.download_image,url:"{{raw_image_url}}",download:!0}],closeOnScroll:woodmart_settings.photoswipe_close_on_scroll,isClickableElement:function(e){return"A"===e.tagName||l(e).hasClass("wd-play-video")||l(e).hasClass("wd-product-video")},getDoubleTapZoom:function(e,t){return e||void 0!==t.html||t.initialZoomLevel<.7?1:1.33}},o=(woodmartThemeModule.$body.find(".pswp").remove(),woodmartThemeModule.$body.append(woodmart_settings.photoswipe_template),document.querySelectorAll(".pswp")[0]),o=new PhotoSwipe(o,PhotoSwipeUI_Default,t,e);woodmartThemeModule.$document.trigger("wdPhotoSwipeBeforeInited",o),o.init()}}(jQuery);