{"version":3,"sources":["node_modules/browser-pack/_prelude.js","public/js/modules/MasonryGallery.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","jQuery","$","fn","lockScroll","preventDefault","dipi_masonry_gallery","params","$this","this","magnificPopup","masonry","itemSelector","columnWidth","percentPosition","gutter","find","type","removalDelay","fixedContentPos","gallery","enabled","navigateByImgClick","tCounter","mainClass","zoom","duration","opener","element","autoFocusLast","image","verticalFit","titleSrc","item","title","el","attr","disableOn","window","matchMedia","matches","hasClass","callbacks","open","swidth","innerWidth","width","addClass","css","close","removeClass","on","layout","debounce","MutationObserver","observe","attributes","childList","subtree","imagesLoaded","progress","setTimeout","each","clazz","replace","hover","icon_element","replaceWith","clone","title_element","caption_element"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,mBAAAC,SAAAA,QAAA,IAAAF,GAAAC,EAAA,OAAAA,EAAAF,GAAA,GAAA,GAAAI,EAAA,OAAAA,EAAAJ,GAAA,GAAA,MAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,MAAAO,KAAA,mBAAAF,EAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,IAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,OAAAD,EAAAG,GAAAS,QAAA,IAAA,IAAAL,EAAA,mBAAAD,SAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,EAAAE,IAAA,OAAAD,EAAA,CAAA,CAAAa,EAAA,CAAA,SAAAT,EAAAU,EAAAJ,gBCAAK,OAAO,SAASC,GACZA,EAAEC,GAAGC,WAAW,SAASrB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,cACI,IAAIkB,iBAAiBF,GAE3BG,QAAQ/C,EAAM,GADV,CAAEgD,YAAY,EAAMC,WAAW,EAAMC,SAAS,IAI/D/C,EAAQgD,eAAeC,SAASR,GAEzBzC,EAAQA,QAAQ,UA5FnBkD,WAAW,WACPrD,EAAMF,qBAAqBC,IAC5B,MA8FXL,EAAE,yBAAyB4D,KAAK,WAC5B,IAAIC,EAAQ7D,EAAEO,MAAM2B,KAAK,SAAS4B,QAAQ,KAAM,KAChD9D,EAAE,IAAM6D,EAAQ,UAAUzD,yBAG9BJ,EAAE,0CAA0C+D,MACxC,WACI,IAAMC,EAAehE,EAAEO,MAAMO,KAAK,+BAElCkD,EAAaC,YAAYD,EAAaE,SAEhCC,EAAgBnE,EAAEO,MAAMO,KAAK,gCAEnCqD,EAAcF,YAAYE,EAAcD,SAElCE,EAAkBpE,EAAEO,MAAMO,KAAK,kCAErCsD,EAAgBH,YAAYG,EAAgBF","file":"MasonryGallery.min.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i\" + item.el.attr('data-caption') + \"\";\n }\n return title;\n }\n },\n disableOn: function() {\n /*if ($(this).hasClass(\"show_lightbox\")) {\n return false;\n }*/\n if (window.matchMedia(\"(max-width: 767px)\").matches) {\n return $this.hasClass(\"show_lightbox_phone\")\n } else if (window.matchMedia(\"(max-width: 980px)\").matches) {\n return $this.hasClass(\"show_lightbox_tablet\");\n }\n else {\n return $this.hasClass(\"show_lightbox\");\n } \n },\n callbacks: {\n open: function() {\n var swidth=(window.innerWidth-$(window).width());\n jQuery('body').addClass('noscroll');\n /* To fix jumping, need to set scroll width as margin-right */\n jQuery('body').css('margin-right', swidth + 'px');\n },\n close: function() {\n jQuery('body').removeClass('noscroll');\n jQuery('body').css('margin-right', 0);\n }\n }\n });\n\n $this.find('.grid-item .img-container').on('click', function(e) {\n e.preventDefault();\n //$.magnificPopup.hide();\n return true;\n });\n\n var layout = $.debounce(250, function() {\n masonry.masonry('layout');\n });\n\n if ($this.attr(\"data-lazy\") === \"true\") {\n var observer = new MutationObserver(layout);\n var config = { attributes: true, childList: true, subtree: true };\n observer.observe($this[0], config);\n }\n\n masonry.imagesLoaded().progress(layout);\n\n return masonry.masonry('layout');\n };\n\n // Setup Masonry Galleries\n $(\".dipi_masonry_gallery\").each(function() {\n var clazz = $(this).attr(\"class\").replace(/ /g, \".\");\n $(\".\" + clazz + \" .grid\").dipi_masonry_gallery();\n });\n\n $('.dipi_masonry_gallery .grid .grid-item').hover(\n function() { //handlerIn\n const icon_element = $(this).find(\".dipi-mansonry-gallery-icon\");\n // Restart animation\n icon_element.replaceWith(icon_element.clone());\n\n const title_element = $(this).find(\".dipi-mansonry-gallery-title\");\n // Restart animation\n title_element.replaceWith(title_element.clone());\n \n const caption_element = $(this).find(\".dipi-mansonry-gallery-caption\");\n // Restart animation\n caption_element.replaceWith(caption_element.clone());\n }, \n );\n});\n"]}