File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/js/scripts/imageElement.min.js
(i=>{XTSThemeModule.imageElement=function(){i(".xts-photoswipe-image").each(function(){var a=i(this);a.hasClass("xts-image-global-lightbox")||a.on("click","a",function(t){var e=i(this),t=(t.preventDefault(),[{src:e.attr("href"),w:e.data("width"),h:e.data("height"),title:e.find("img").attr("title")}]);XTSThemeModule.callPhotoSwipe({index:e.data("index"),items:t,galleryItems:a,parents:".xts-image",global:!1})})});var a=[];i(".xts-image-global-lightbox").each(function(){var t=i(this),e=t.find("a");((t,e)=>{for(var a=0;a<t.length;a++)if(t[a].src===e)return!0;return!1})(a,e.attr("href"))||a.push({src:e.attr("href"),w:e.data("width"),h:e.data("height"),title:e.find("img").attr("title")}),t.on("click","a",function(t){t.preventDefault();t=i(this).data("index");XTSThemeModule.callPhotoSwipe({index:t,items:a,galleryItems:i(".xts-image-global-lightbox"),parents:".xts-image-single",global:!0})})})},i(document).ready(function(){XTSThemeModule.imageElement()})})(jQuery);