2019-12-31 12:57:27 +01:00
|
|
|
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/srv/dist/repositories/webpack-bootstrap-ui-kit/dist",n(n.s="./src/js/app.js")}({"./node_modules/@a2nt/meta-lightbox/src/js/meta-lightbox.js":function(e,t){!function(e,t,n){var i="metaLightbox",r={effect:"fade",theme:"default",keyboardNav:!0,clickOverlayToClose:!0,onInit:function(){},beforeShowLightbox:function(){},afterShowLightbox:function(e){},beforeHideLightbox:function(){},afterHideLightbox:function(){},onPrev:function(e){},onNext:function(e){},errorMessage:"The requested content cannot be loaded. Please try again later."};function o(t,n){this.options=e.extend({},r,n),this._defaults=r,this._name=i,this.init()}o.prototype={init:function(){var t=this,i=e("html");this.ajaxLoaded=!1,n.MetaLightbox=this,i.hasClass("meta-lightbox-notouch")||i.addClass("meta-lightbox-notouch"),"ontouchstart"in n&&i.removeClass("meta-lightbox-notouch"),e(n).on("click",'[data-toggle="lightbox"],[data-lightbox-gallery]',(function(e){return e.preventDefault(),e.stopPropagation(),t.showLightbox(this),!1})),this.options.keyboardNav&&e("body").off("keyup").on("keyup",n=>{var i=n.keyCode?n.keyCode:n.which;27===i&&t.destructLightbox(),37===i&&e(".meta-lightbox-prev").trigger("click"),39===i&&e(".meta-lightbox-next").trigger("click")}),this.options.onInit.call(this)},showLightbox:function(t){this.el=t,this.$el=e(this.el);var n,i,r,o,a=this;this.options.beforeShowLightbox.call(this),(n=this.constructLightbox())&&(i=n.find(".meta-lightbox-content"))&&(r=this.$el,e("body").addClass(`meta-lightbox-body-effect-${this.options.effect}`),this.processContent(i,r),this.$el.data("lightbox-gallery")&&(1===(o=e(`[data-lightbox-gallery="${this.$el.data("lightbox-gallery")}"]`)).length?e(".meta-lightbox-nav").hide():e(".meta-lightbox-nav").show(),e(".meta-lightbox-prev").off("click").on("click",(function(t){t.preventDefault();var n=o.index(r);r=o.eq(n-1),e(r).length||(r=o.last()),a.processContent(i,r),a.options.onPrev.call(this,[r])})),e(".meta-lightbox-next").off("click").on("click",(function(t){t.preventDefault();var n=o.index(r);r=o.eq(n+1),e(r).length||(r=o.first()),a.processContent(i,r),a.options.onNext.call(this,[r])}))),setTimeout((function(){n.addClass("meta-lightbox-open"),a.options.afterShowLightbox.call(this,[n])}),1))},processContent:function(i,r){var o,a,s,l,c,u,d=this;href=r.attr("href"),href||(href=r.data("href")),i.html("").addClass("meta-lightbox-loading"),this.isHidpi()&&r.data("lightbox-hidpi")&&(href=r.data("lightbox-hidpi")),null!=href.match(/\.(jpeg|jpg|gif|png)$/i)?((o=e("<img>",{src:href})).on("load",()=>{var n=e('<div class="meta-lightbox-image"></div>'),r=e(".meta-lightbox-content"),a=e('<span class="meta-lightbox-zoom-wrapper"></span>');a.append(o),n.append(a),n.css({"line-height":`${r.height()}px`,height:`${r.height()}px`}),e(t).resize(()=>{n.css({"line-height":`${r.height()}px`,height:`${r.height()}px`})}),void 0!==a.zoom&&a.zoom(),i.html(n).removeClass("meta-lightbox-loading"),d.contentLoaded()}),o.on("error",()=>{var t=e(`<div class="meta-lightbox-error"><p>${d.options.errorMessage}</p></div>`);i.html(t).removeClass("meta-lightbox-loading"),d.contentLoaded()}),r.data("title")?d.setTitle(r.data("title")):r.attr("title")?d.setTitle(r.attr("title")):e(".
|