%PDF- %PDF-
Direktori : /www/klubovnaostrava/test2/wp-content/plugins/filebird/assets/js/photoswipe/ |
Current File : /www/klubovnaostrava/test2/wp-content/plugins/filebird/assets/js/photoswipe/fbv-photoswipe.min.js |
"use strict";var filebirdGallery={template:'\n <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>\n <button class="pswp__button pswp__button--share" title="Share"></button>\n <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>\n <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div> \n </div>\n <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">\n </button>\n <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">\n </button>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>',createGallery:function(t){const e=(new DOMParser).parseFromString(filebirdGallery.template,"text/html");document.getElementsByClassName("pswp").length||document.body.appendChild(e.documentElement),filebirdGallery.initPhotoSwipeFromDOM(t)},parseThumbnailElements:function(t){for(var e,n,i,s,l=t.childNodes,r=l.length,o=[],p=0;p<r;p++)i=(n=l[p]).querySelector("img"),e=n.querySelector("figure"),s={src:i.getAttribute("src"),w:parseInt(i.getAttribute("width"),10),h:parseInt(i.getAttribute("height"),10),title:i.getAttribute("alt"),msrc:i.getAttribute("src"),el:e},o.push(s);return o},openPhotoSwipe:function(t,e,n,i){var s,l,r=document.querySelectorAll(".pswp")[0];if(l=filebirdGallery.parseThumbnailElements(e),s={galleryUID:e.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(t){var e=l[t].el.getElementsByTagName("img")[0],n=window.pageYOffset||document.documentElement.scrollTop,i=e.getBoundingClientRect();return{x:i.left,y:i.top+n,w:i.width}}},i)if(s.galleryPIDs){for(var o=0;o<l.length;o++)if(l[o].pid==t){s.index=o;break}}else s.index=parseInt(t,10)-1;else s.index=parseInt(t,10);isNaN(s.index)||(n&&(s.showAnimationDuration=0),new PhotoSwipe(r,PhotoSwipeUI_Default,l,s).init())},onThumbnailsClick:function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;var e=(t.target||t.srcElement).closest(".blocks-gallery-item");if(e){for(var n,i=e.parentNode,s=e.parentNode.childNodes,l=s.length,r=0,o=0;o<l;o++)if(1===s[o].nodeType){if(s[o]===e){n=r;break}r++}return n>=0&&filebirdGallery.openPhotoSwipe(n,i),!1}},initPhotoSwipeFromDOM:function(t){for(var e=document.querySelectorAll(t),n=0,i=e.length;n<i;n++)e[n].setAttribute("data-pswp-uid",n+1),e[n].onclick=filebirdGallery.onThumbnailsClick}};document.addEventListener("DOMContentLoaded",function(){filebirdGallery.createGallery(".filebird-block-filebird-gallery")});