webpack-bootstrap-ui-kit/dist/js/app.js

3 lines
338 KiB
JavaScript
Raw Normal View History

2019-10-20 03:19:20 +02:00
/*! For license information please see app.js.LICENSE */
2019-11-25 08:45:03 +01:00
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="./src/js/app.js")}({"./node_modules/@a2nt/meta-lightbox/src/js/meta-lightbox.js":function(e,t){!function(e,t,i){var n="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,i){this.options=e.extend({},r,i),this._defaults=r,this._name=n,this.init()}o.prototype={init:function(){var t=this,n=e("html");this.ajaxLoaded=!1,i.MetaLightbox=this,n.hasClass("meta-lightbox-notouch")||n.addClass("meta-lightbox-notouch"),"ontouchstart"in i&&n.removeClass("meta-lightbox-notouch"),e(i).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",i=>{var n=i.keyCode?i.keyCode:i.which;27===n&&t.destructLightbox(),37===n&&e(".meta-lightbox-prev").trigger("click"),39===n&&e(".meta-lightbox-next").trigger("click")}),this.options.onInit.call(this)},showLightbox:function(t){this.el=t,this.$el=e(this.el);var i,n,r,o,a=this;this.options.beforeShowLightbox.call(this),(i=this.constructLightbox())&&(n=i.find(".meta-lightbox-content"))&&(r=this.$el,e("body").addClass(`meta-lightbox-body-effect-${this.options.effect}`),this.processContent(n,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 i=o.index(r);r=o.eq(i-1),e(r).length||(r=o.last()),a.processContent(n,r),a.options.onPrev.call(this,[r])})),e(".meta-lightbox-next").off("click").on("click",(function(t){t.preventDefault();var i=o.index(r);r=o.eq(i+1),e(r).length||(r=o.first()),a.processContent(n,r),a.options.onNext.call(this,[r])}))),setTimeout((function(){i.addClass("meta-lightbox-open"),a.options.afterShowLightbox.call(this,[i])}),1))},processContent:function(n,r){var o,a,s,l,c,u,h=this;href=r.attr("href"),href||(href=r.data("href")),n.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 i=e('<div class="meta-lightbox-image"></div>'),r=e(".meta-lightbox-content"),a=e('<span class="meta-lightbox-zoom-wrapper"></span>');a.append(o),i.append(a),i.css({"line-height":`${r.height()}px`,height:`${r.height()}px`}),e(t).resize(()=>{i.css({"line-height":`${r.height()}px`,height:`${r.height()}px`})}),void 0!==a.zoom&&a.zoom(),n.html(i).removeClass("meta-lightbox-loading"),h.contentLoaded()}),o.on("error",()=>{var t=e(`<div class="meta-lightbox-error"><p>${h.options.errorMessage}</p></div>`);n.html(t).removeClass("meta-lightbox-loading"),h.contentLoaded()}),r.data("title")?h.setTitle(r.data("title")):r.attr("title")?h.setTitle(r.attr("title")):e(".meta-lightbox-title-wrap").html(""),"function"==type
2019-10-20 03:19:20 +02:00
//# sourceMappingURL=app.js.map