From c7403173556cfdf950f8d6e267fbe227b73c785a Mon Sep 17 00:00:00 2001 From: Tony Air Date: Wed, 27 Nov 2019 12:34:08 +0700 Subject: [PATCH] Rebuild --- dist/js/app.js | 2 +- dist/js/app.js.LICENSE | 17 ----------------- dist/js/app.js.map | 2 +- package.json | 6 +++--- 4 files changed, 5 insertions(+), 22 deletions(-) diff --git a/dist/js/app.js b/dist/js/app.js index cbeea99..85ee9e4 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -1,3 +1,3 @@ /*! For license information please see app.js.LICENSE */ -!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("",{src:href})).on("load",()=>{var i=e('
'),r=e(".meta-lightbox-content"),a=e('');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(`

${h.options.errorMessage}

`);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"==typeof ga&&ga("send","event","meta","Image Click",href)):(a=href.match(/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/))?(s="",l="meta-lightbox-video","youtube"==a[1]&&(s=`https://www.youtube.com/embed/${a[4]}`,l="meta-lightbox-youtube"),"youtu"==a[1]&&(s=`https://www.youtube.com/embed/${a[3]}`,l="meta-lightbox-youtube"),"youtube-nocookie"==a[1]&&(s=`https://www.youtube-nocookie.com/embed/${a[4]}`,l="nivo-lightbox-youtube"),"vimeo"==a[1]&&(s=`https://player.vimeo.com/video/${a[3]}`,l="meta-lightbox-vimeo"),s&&(c=e("