Component=window.Component||{};Component.Gallery=function(){var n={gallery:"[data-js-gallery]",galleryItem:"[data-js-gallery-item]",galleryControls:"[data-js-gallery-controls]",galleryPrev:"[data-js-gallery-prev]",galleryNext:"[data-js-gallery-next]"};return{Init:function(){Component.ScrollableContent?this.Bindings():console.warn("Missing component: Scrollable content. Cannot initialise Gallery.")},Bindings:function(){var t,i;if(document.querySelectorAll(n.gallery).length){t=Component.ScrollableContent.Bind(n.gallery,{edgePadding:20,mouseDrag:!0,controls:!0,controlsContainer:n.galleryControls,arrowKeys:!0,loop:!1,nav:!1,items:1,gutter:4,responsive:{481:{items:2},601:{items:3},768:{items:4,edgePadding:0}}});t.events.on("indexChanged",function(){Mater.GlobalPlugins.BeLazy.Revalidate()});i=new Tobi({selector:n.galleryItem,zoom:!1,captions:!1});t.lastDragMove=Date.now();t.events.on("dragMove",function(){t.lastDragMove=Date.now()});$(n.galleryItem).find("img").off("click.Gallery").on("click.Gallery",function(n){Date.now()-t.lastDragMove<100&&(n.preventDefault(),n.stopPropagation())})}}}}()