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

3 lines
248 KiB
JavaScript
Raw Normal View History

2020-02-11 21:16:00 +01:00
/*! For license information please see app.js.LICENSE.txt */
2020-05-14 18:08:28 +02:00
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},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="/mnt/data/srv/dist/repositories/webpack-bootstrap-ui-kit/dist",n(n.s="./src/js/app.js")}({"./node_modules/.pnpm/npm.pkg.github.com/@a2nt/meta-lightbox/1.2.5/node_modules/@a2nt/meta-lightbox/src/js/meta-lightbox.js":function(e,t){function n(e){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t,o){var i={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 r(t,n){this.options=e.extend({},i,n),this._defaults=i,this._name="metaLightbox",this.init()}r.prototype={init:function(){var t=this,n=e("html");this.ajaxLoaded=!1,o.MetaLightbox=this,n.hasClass("meta-lightbox-notouch")||n.addClass("meta-lightbox-notouch"),"ontouchstart"in o&&n.removeClass("meta-lightbox-notouch"),e(o).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",(function(n){var o=n.keyCode?n.keyCode:n.which;27===o&&t.destructLightbox(),37===o&&e(".meta-lightbox-prev").trigger("click"),39===o&&e(".meta-lightbox-next").trigger("click")})),this.options.onInit.call(this)},showLightbox:function(t){this.el=t,this.$el=e(this.el);var n,o,i,r,s=this;this.options.beforeShowLightbox.call(this),(n=this.constructLightbox())&&(o=n.find(".meta-lightbox-content"))&&(i=this.$el,e("body").addClass("meta-lightbox-body-effect-".concat(this.options.effect)),this.processContent(o,i),this.$el.data("lightbox-gallery")&&(1===(r=e('[data-lightbox-gallery="'.concat(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=r.index(i);i=r.eq(n-1),e(i).length||(i=r.last()),s.processContent(o,i),s.options.onPrev.call(this,[i])})),e(".meta-lightbox-next").off("click").on("click",(function(t){t.preventDefault();var n=r.index(i);i=r.eq(n+1),e(i).length||(i=r.first()),s.processContent(o,i),s.options.onNext.call(this,[i])}))),setTimeout((function(){n.addClass("meta-lightbox-open"),s.options.afterShowLightbox.call(this,[n])}),1))},processContent:function(i,r){var s,a,l,c,u,p,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)?((s=e("<img>",{src:href})).on("load",(function(){var n=e('<div class="meta-lightbox-image"></div>'),o=e(".meta-lightbox-content"),r=e('<span class="meta-lightbox-zoom-wrapper"></span>');r.append(s),n.append(r),n.css({"line-height":"".concat(o.height(),"px"),height:"".concat(o.height(),"px")}),e(t).resize((function(){n.css({"line-height":"".concat(o.height(),"px"),height:"".con
2019-10-20 03:19:20 +02:00
//# sourceMappingURL=app.js.map