diff --git a/dist/ekko-lightbox.js b/dist/ekko-lightbox.js index 091a4f5..e72b521 100644 --- a/dist/ekko-lightbox.js +++ b/dist/ekko-lightbox.js @@ -48,8 +48,8 @@ var Lightbox = (function ($) { key: 'Default', /** - Class properties: - _$element: null -> the element currently being displayed + Class properties: + _$element: null -> the element currently being displayed _$modal: The bootstrap modal generated _$modalDialog: The .modal-dialog _$modalContent: The .modal-content @@ -60,13 +60,13 @@ var Lightbox = (function ($) { _$lightboxContainerTwo: Container of the second lightbox element _$lightboxBody: First element in the container _$modalArrows: The overlayed arrows container - _$galleryItems: Other 's available for this gallery + _$galleryItems: Other 's available for this gallery _galleryName: Name of the current data('gallery') showing _galleryIndex: The current index of the _$galleryItems being shown - _config: {} the options for the modal + _config: {} the options for the modal _modalId: unique id for the current lightbox _padding / _border: CSS properties for the modal container; these are used to calculate the available space for the content - */ + */ get: function get() { return Default; @@ -507,7 +507,7 @@ var Lightbox = (function ($) { // local ajax can be loaded into the container itself if (!disableExternalCheck && !this._isExternal(url)) { $containerForElement.load(url, $.proxy(function () { - return _this3._$element.trigger('loaded.bs.modal');l; + return _this3._$element.trigger('loaded.bs.modal'); })); } else { $containerForElement.html(''); diff --git a/dist/ekko-lightbox.js.map b/dist/ekko-lightbox.js.map index 47846ee..7334bcd 100644 --- a/dist/ekko-lightbox.js.map +++ b/dist/ekko-lightbox.js.map @@ -1 +1 @@ -{"version":3,"sources":["../ekko-lightbox.js"],"names":[],"mappings":";;;;;;AAAA,IAAM,QAAQ,GAAG,CAAC,UAAC,CAAC,EAAK;;AAExB,KAAM,IAAI,GAAG,cAAc,CAAA;AAC3B,KAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;;AAErC,KAAM,OAAO,GAAG;AACf,OAAK,EAAE,EAAE;AACT,QAAM,EAAE,EAAE;AACV,UAAQ,EAAE,IAAI;AACd,WAAS,EAAE,IAAI;AACf,YAAU,EAAE,IAAI;AAChB,UAAQ,EAAE,IA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M,GAAG,MAAM,IAAI,EAAE,CAAA;AACrB,WAAO,IAAI,CAAC,IAAI,CAAC,YAAM;AACtB,SAAI,KAAK,GAAG,CAAC,QAAM,CAAA;AACnB,SAAI,OAAO,GAAG,CAAC,CAAC,MAAM,CACrB,EAAE,EACF,QAAQ,CAAC,OAAO,EAChB,KAAK,CAAC,IAAI,EAAE,EACZ,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CACpC,CAAA;;AAED,SAAI,QAAQ,SAAO,OAAO,CAAC,CAAA;KAC3B,CAAC,CAAA;IACF;;;SAxoBI,QAAQ;;;AA6oBd,EAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAe,QAAQ,CAAC,gBAAgB,CAAA;AAClD,EAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,GAAG,QAAQ,CAAA;AACjC,EAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,GAAI,YAAM;AAC9B,GAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAA;AAC/B,SAAO,QAAQ,CAAC,gBAAgB,CAAA;EAChC,CAAA;;AAED,QAAO,QAAQ,CAAA;CAEf,CAAA,CAAE,MAAM,CAAC,CAAA","file":"ekko-lightbox.js","sourcesContent":["const Lightbox = (($) => {\n\n\tconst NAME = 'ekkoLightbox'\n\tconst JQUERY_NO_CONFLICT = $.fn[NAME]\n\n\tconst Default = {\n\t\ttitle: '',\n\t\tfooter: '',\n\t\tmaxWidth: 9999,\n\t\tmaxHeight: 9999,\n\t\tshowArrows: true, //display the left / right arrows or not\n\t\twrapping: true, //if true, gallery loops infinitely\n\t\ttype: null, //force the lightbox into image / youtube mode. if null, or not image|youtube|vimeo; detect it\n\t\talwaysShowClose: false, //always show the close button, even if there is no title\n\t\tloadingMessage: '
', // http://tobiasahlin.com/spinkit/\n\t\tleftArrow: '',\n\t\trightArrow: '',\n\t\tstrings: {\n\t\t\tclose: 'Close',\n\t\t\tfail: 'Failed to load image:',\n\t\t\ttype: 'Could not detect remote target type. Force the type using data-type',\n\t\t},\n\t\tdoc: document, // if in an iframe can specify top.document\n\t\tonShow() {},\n\t\tonShown() {},\n\t\tonHide() {},\n\t\tonHidden() {},\n\t\tonNavigate() {},\n\t\tonContentLoaded() {}\n\t}\n\n\tclass Lightbox {\n\n\t\t/**\n\n\t Class properties:\n\n\t\t _$element: null -> the
element currently being displayed\n\t\t _$modal: The bootstrap modal generated\n\t\t _$modalDialog: The .modal-dialog\n\t\t _$modalContent: The .modal-content\n\t\t _$modalBody: The .modal-body\n\t\t _$modalHeader: The .modal-header\n\t\t _$modalFooter: The .modal-footer\n\t\t _$lightboxContainerOne: Container of the first lightbox element\n\t\t _$lightboxContainerTwo: Container of the second lightbox element\n\t\t _$lightboxBody: First element in the container\n\t\t _$modalArrows: The overlayed arrows container\n\n\t\t _$galleryItems: Other 's available for this gallery\n\t\t _galleryName: Name of the current data('gallery') showing\n\t\t _galleryIndex: The current index of the _$galleryItems being shown\n\n\t\t _config: {} the options for the modal\n\t\t _modalId: unique id for the current lightbox\n\t\t _padding / _border: CSS properties for the modal container; these are used to calculate the available space for the content\n\n\t\t */\n\n\t\tstatic get Default() {\n\t\t\treturn Default\n\t\t}\n\n\t\tconstructor($element, config) {\n\t\t\tthis._config = $.extend({}, Default, config)\n\t\t\tthis._$modalArrows = null\n\t\t\tthis._galleryIndex = 0\n\t\t\tthis._galleryName = null\n\t\t\tthis._padding = null\n\t\t\tthis._border = null\n\t\t\tthis._titleIsShown = false\n\t\t\tthis._footerIsShown = false\n\t\t\tthis._wantedWidth = 0\n\t\t\tthis._wantedHeight = 0\n\t\t\tthis._touchstartX = 0\n\t\t\tthis._touchendX = 0\n\n\t\t\tthis._modalId = `ekkoLightbox-${Math.floor((Math.random() * 1000) + 1)}`;\n\t\t\tthis._$element = $element instanceof jQuery ? $element : $($element)\n\n\t\t\tthis._isBootstrap3 = $.fn.modal.Constructor.VERSION[0] == 3;\n\n\t\t\tlet h4 = `

${this._config.title || \" \"}

`;\n\t\t\tlet btn = ``;\n\n\t\t\tlet header = `
`+(this._isBootstrap3 ? btn+h4 : h4+btn)+`
`;\n\t\t\tlet footer = `
${this._config.footer || \" \"}
`;\n\t\t\tlet body = '
'\n\t\t\tlet dialog = `
${header}${body}${footer}
`\n\t\t\t$(this._config.doc.body).append(`
${dialog}
`)\n\n\t\t\tthis._$modal = $(`#${this._modalId}`, this._config.doc)\n\t\t\tthis._$modalDialog = this._$modal.find('.modal-dialog').first()\n\t\t\tthis._$modalContent = this._$modal.find('.modal-content').first()\n\t\t\tthis._$modalBody = this._$modal.find('.modal-body').first()\n\t\t\tthis._$modalHeader = this._$modal.find('.modal-header').first()\n\t\t\tthis._$modalFooter = this._$modal.find('.modal-footer').first()\n\n\t\t\tthis._$lightboxContainer = this._$modalBody.find('.ekko-lightbox-container').first()\n\t\t\tthis._$lightboxBodyOne = this._$lightboxContainer.find('> div:first-child').first()\n\t\t\tthis._$lightboxBodyTwo = this._$lightboxContainer.find('> div:last-child').first()\n\n\t\t\tthis._border = this._calculateBorders()\n\t\t\tthis._padding = this._calculatePadding()\n\n\t\t\tthis._galleryName = this._$element.data('gallery')\n\t\t\tif (this._galleryName) {\n\t\t\t\tthis._$galleryItems = $(document.body).find(`*[data-gallery=\"${this._galleryName}\"]`)\n\t\t\t\tthis._galleryIndex = this._$galleryItems.index(this._$element)\n\t\t\t\t$(document).on('keydown.ekkoLightbox', this._navigationalBinder.bind(this))\n\n\t\t\t\t// add the directional arrows to the modal\n\t\t\t\tif (this._config.showArrows && this._$galleryItems.length > 1) {\n\t\t\t\t\tthis._$lightboxContainer.append(`
${this._config.leftArrow}${this._config.rightArrow}
`)\n\t\t\t\t\tthis._$modalArrows = this._$lightboxContainer.find('div.ekko-lightbox-nav-overlay').first()\n\t\t\t\t\tthis._$lightboxContainer.on('click', 'a:first-child', event => {\n\t\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t\treturn this.navigateLeft()\n\t\t\t\t\t})\n\t\t\t\t\tthis._$lightboxContainer.on('click', 'a:last-child', event => {\n\t\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t\treturn this.navigateRight()\n\t\t\t\t\t})\n\t\t\t\t\tthis.updateNavigation()\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis._$modal\n\t\t\t.on('show.bs.modal', this._config.onShow.bind(this))\n\t\t\t.on('shown.bs.modal', () => {\n\t\t\t\tthis._toggleLoading(true)\n\t\t\t\tthis._handle()\n\t\t\t\treturn this._config.onShown.call(this)\n\t\t\t})\n\t\t\t.on('hide.bs.modal', this._config.onHide.bind(this))\n\t\t\t.on('hidden.bs.modal', () => {\n\t\t\t\tif (this._galleryName) {\n\t\t\t\t\t$(document).off('keydown.ekkoLightbox')\n\t\t\t\t\t$(window).off('resize.ekkoLightbox')\n\t\t\t\t}\n\t\t\t\tthis._$modal.remove()\n\t\t\t\treturn this._config.onHidden.call(this)\n\t\t\t})\n\t\t\t.modal(this._config)\n\n\t\t\t$(window).on('resize.ekkoLightbox', () => {\n\t\t\t\tthis._resize(this._wantedWidth, this._wantedHeight)\n\t\t\t})\n\t\t\tthis._$lightboxContainer\n\t\t\t.on('touchstart', () => {\n\t\t\t\tthis._touchstartX = event.changedTouches[0].screenX;\n\n\t\t\t})\n\t\t\t.on('touchend', () => {\n\t\t\t\tthis._touchendX = event.changedTouches[0].screenX;\n\t\t\t this._swipeGesure();\n\t\t\t})\n\t\t}\n\n\t\telement() {\n\t\t\treturn this._$element;\n\t\t}\n\n\t\tmodal() {\n\t\t\treturn this._$modal;\n\t\t}\n\n\t\tnavigateTo(index) {\n\n\t\t\tif (index < 0 || index > this._$galleryItems.length-1)\n\t\t\t\treturn this\n\n\t\t\tthis._galleryIndex = index\n\n\t\t\tthis.updateNavigation()\n\n\t\t\tthis._$element = $(this._$galleryItems.get(this._galleryIndex))\n\t\t\tthis._handle();\n\t\t}\n\n\t\tnavigateLeft() {\n\n\t\t\tif(!this._$galleryItems)\n\t\t\t\treturn;\n\n\t\t\tif (this._$galleryItems.length === 1)\n\t\t\t\treturn\n\n\t\t\tif (this._galleryIndex === 0) {\n\t\t\t\tif (this._config.wrapping)\n\t\t\t\t\tthis._galleryIndex = this._$galleryItems.length - 1\n\t\t\t\telse\n\t\t\t\t\treturn\n\t\t\t}\n\t\t\telse //circular\n\t\t\t\tthis._galleryIndex--\n\n\t\t\tthis._config.onNavigate.call(this, 'left', this._galleryIndex)\n\t\t\treturn this.navigateTo(this._galleryIndex)\n\t\t}\n\n\t\tnavigateRight() {\n\n\t\t\tif(!this._$galleryItems)\n\t\t\t\treturn;\n\n\t\t\tif (this._$galleryItems.length === 1)\n\t\t\t\treturn\n\n\t\t\tif (this._galleryIndex === this._$galleryItems.length - 1) {\n\t\t\t\tif (this._config.wrapping)\n\t\t\t\t\tthis._galleryIndex = 0\n\t\t\t\telse\n\t\t\t\t\treturn\n\t\t\t}\n\t\t\telse //circular\n\t\t\t\tthis._galleryIndex++\n\n\t\t\tthis._config.onNavigate.call(this, 'right', this._galleryIndex)\n\t\t\treturn this.navigateTo(this._galleryIndex)\n\t\t}\n\n\t\tupdateNavigation() {\n\t\t\tif (!this._config.wrapping) {\n\t\t\t\tlet $nav = this._$lightboxContainer.find('div.ekko-lightbox-nav-overlay')\n\t\t\t\tif (this._galleryIndex === 0)\n\t\t\t\t\t$nav.find('a:first-child').addClass('disabled')\n\t\t\t\telse\n\t\t\t\t\t$nav.find('a:first-child').removeClass('disabled')\n\n\t\t\t\tif (this._galleryIndex === this._$galleryItems.length - 1)\n\t\t\t\t\t$nav.find('a:last-child').addClass('disabled')\n\t\t\t\telse\n\t\t\t\t\t$nav.find('a:last-child').removeClass('disabled')\n\t\t\t}\n\t\t}\n\n\t\tclose() {\n\t\t\treturn this._$modal.modal('hide');\n\t\t}\n\n\t\t// helper private methods\n\t\t_navigationalBinder(event) {\n\t\t\tevent = event || window.event;\n\t\t\tif (event.keyCode === 39)\n\t\t\t\treturn this.navigateRight()\n\t\t\tif (event.keyCode === 37)\n\t\t\t\treturn this.navigateLeft()\n\t\t}\n\n\t\t// type detection private methods\n\t\t_detectRemoteType(src, type) {\n\n\t\t\ttype = type || false;\n\n\t\t\tif(!type && this._isImage(src))\n\t\t\t\ttype = 'image';\n\t\t\tif(!type && this._getYoutubeId(src))\n\t\t\t\ttype = 'youtube';\n\t\t\tif(!type && this._getVimeoId(src))\n\t\t\t\ttype = 'vimeo';\n\t\t\tif(!type && this._getInstagramId(src))\n\t\t\t\ttype = 'instagram';\n\t\t\tif(type == 'audio' || type == 'video' || (!type && this._isMedia(src)))\n\t\t\t\ttype = 'media';\n\t\t\tif(!type || ['image', 'youtube', 'vimeo', 'instagram', 'media', 'url'].indexOf(type) < 0)\n\t\t\t\ttype = 'url';\n\n\t\t\treturn type;\n\t\t}\n\n\t\t_getRemoteContentType(src) {\n\t\t\tlet response = $.ajax({\n\t\t\t\ttype: 'HEAD',\n\t\t\t\turl: src,\n\t\t\t\tasync: false\n\t\t\t});\n\t\t\tlet contentType = response.getResponseHeader('Content-Type')\n\t\t\treturn contentType;\n\t\t}\n\n\t\t_isImage(string) {\n\t\t\treturn string && string.match(/(^data:image\\/.*,)|(\\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\\?|#).*)?$)/i)\n\t\t}\n\n\t\t_isMedia(string) {\n\t\t\treturn string && string.match(/(\\.(mp3|mp4|ogg|webm|wav)((\\?|#).*)?$)/i)\n\t\t}\n\n\t\t_containerToUse() {\n\t\t\t// if currently showing an image, fade it out and remove\n\t\t\tlet $toUse = this._$lightboxBodyTwo\n\t\t\tlet $current = this._$lightboxBodyOne\n\n\t\t\tif(this._$lightboxBodyTwo.hasClass('in')) {\n\t\t\t\t$toUse = this._$lightboxBodyOne\n\t\t\t\t$current = this._$lightboxBodyTwo\n\t\t\t}\n\n\t\t\t$current.removeClass('in show')\n\t\t\tsetTimeout(() => {\n\t\t\t\tif(!this._$lightboxBodyTwo.hasClass('in'))\n\t\t\t\t\tthis._$lightboxBodyTwo.empty()\n\t\t\t\tif(!this._$lightboxBodyOne.hasClass('in'))\n\t\t\t\t\tthis._$lightboxBodyOne.empty()\n\t\t\t}, 500)\n\n\t\t\t$toUse.addClass('in show')\n\t\t\treturn $toUse\n\t\t}\n\n\t\t_handle() {\n\n\t\t\tlet $toUse = this._containerToUse()\n\t\t\tthis._updateTitleAndFooter()\n\n\t\t\tlet currentRemote = this._$element.attr('data-remote') || this._$element.attr('href')\n\t\t\tlet currentType = this._detectRemoteType(currentRemote, this._$element.attr('data-type') || false)\n\n\t\t\tif(['image', 'youtube', 'vimeo', 'instagram', 'media', 'url'].indexOf(currentType) < 0)\n\t\t\t\treturn this._error(this._config.strings.type)\n\n\t\t\tswitch(currentType) {\n\t\t\t\tcase 'image':\n\t\t\t\t\tthis._preloadImage(currentRemote, $toUse)\n\t\t\t\t\tthis._preloadImageByIndex(this._galleryIndex, 3)\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'youtube':\n\t\t\t\t\tthis._showYoutubeVideo(currentRemote, $toUse);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'vimeo':\n\t\t\t\t\tthis._showVimeoVideo(this._getVimeoId(currentRemote), $toUse);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'instagram':\n\t\t\t\t\tthis._showInstagramVideo(this._getInstagramId(currentRemote), $toUse);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'media':\n\t\t\t\t\tthis._showHtml5Media(currentRemote, $toUse);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // url\n\t\t\t\t\tthis._loadRemoteContent(currentRemote, $toUse);\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn this;\n\t\t}\n\n\t\t_getYoutubeId(string) {\n\t\t\tif(!string)\n\t\t\t\treturn false;\n\t\t\tlet matches = string.match(/^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/)\n\t\t\treturn (matches && matches[2].length === 11) ? matches[2] : false\n\t\t}\n\n\t\t_getVimeoId(string) {\n\t\t\treturn string && string.indexOf('vimeo') > 0 ? string : false\n\t\t}\n\n\t\t_getInstagramId(string) {\n\t\t\treturn string && string.indexOf('instagram') > 0 ? string : false\n\t\t}\n\n\t\t// layout private methods\n\t\t_toggleLoading(show) {\n\t\t\tshow = show || false\n\t\t\tif(show) {\n\t\t\t\tthis._$modalDialog.css('display', 'none')\n\t\t\t\tthis._$modal.removeClass('in show')\n\t\t\t\t$('.modal-backdrop').append(this._config.loadingMessage)\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis._$modalDialog.css('display', 'block')\n\t\t\t\tthis._$modal.addClass('in show')\n\t\t\t\t$('.modal-backdrop').find('.ekko-lightbox-loader').remove()\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\n\t\t_calculateBorders() {\n\t\t\treturn {\n\t\t\t\ttop: this._totalCssByAttribute('border-top-width'),\n\t\t\t\tright: this._totalCssByAttribute('border-right-width'),\n\t\t\t\tbottom: this._totalCssByAttribute('border-bottom-width'),\n\t\t\t\tleft: this._totalCssByAttribute('border-left-width'),\n\t\t\t}\n\t\t}\n\n\t\t_calculatePadding() {\n\t\t\treturn {\n\t\t\t\ttop: this._totalCssByAttribute('padding-top'),\n\t\t\t\tright: this._totalCssByAttribute('padding-right'),\n\t\t\t\tbottom: this._totalCssByAttribute('padding-bottom'),\n\t\t\t\tleft: this._totalCssByAttribute('padding-left'),\n\t\t\t}\n\t\t}\n\n\t\t_totalCssByAttribute(attribute) {\n\t\t\treturn parseInt(this._$modalDialog.css(attribute), 10) +\n\t\t\t\tparseInt(this._$modalContent.css(attribute), 10) +\n\t\t\t\tparseInt(this._$modalBody.css(attribute), 10)\n\t\t}\n\n\t\t_updateTitleAndFooter() {\n\t\t\tlet title = this._$element.data('title') || \"\"\n\t\t\tlet caption = this._$element.data('footer') || \"\"\n\n\t\t\tthis._titleIsShown = false\n\t\t\tif (title || this._config.alwaysShowClose) {\n\t\t\t\tthis._titleIsShown = true\n\t\t\t\tthis._$modalHeader.css('display', '').find('.modal-title').html(title || \" \")\n\t\t\t}\n\t\t\telse\n\t\t\t\tthis._$modalHeader.css('display', 'none')\n\n\t\t\tthis._footerIsShown = false\n\t\t\tif (caption) {\n\t\t\t\tthis._footerIsShown = true\n\t\t\t\tthis._$modalFooter.css('display', '').html(caption)\n\t\t\t}\n\t\t\telse\n\t\t\t\tthis._$modalFooter.css('display', 'none')\n\n\t\t\treturn this;\n\t\t}\n\n\t\t_showYoutubeVideo(remote, $containerForElement) {\n\t\t\tlet id = this._getYoutubeId(remote)\n\t\t\tlet query = remote.indexOf('&') > 0 ? remote.substr(remote.indexOf('&')) : ''\n\t\t\tlet width = this._$element.data('width') || 560\n\t\t\tlet height = this._$element.data('height') || width / ( 560/315 )\n\t\t\treturn this._showVideoIframe(\n\t\t\t\t`//www.youtube.com/embed/${id}?badge=0&autoplay=1&html5=1${query}`,\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\t$containerForElement\n\t\t\t);\n\t\t}\n\n\t\t_showVimeoVideo(id, $containerForElement) {\n\t\t\tlet width = this._$element.data('width') || 500\n\t\t\tlet height = this._$element.data('height') || width / ( 560/315 )\n\t\t\treturn this._showVideoIframe(id + '?autoplay=1', width, height, $containerForElement)\n\t\t}\n\n\t\t_showInstagramVideo(id, $containerForElement) {\n\t\t\t// instagram load their content into iframe's so this can be put straight into the element\n\t\t\tlet width = this._$element.data('width') || 612\n\t\t\tlet height = width + 80;\n\t\t\tid = id.substr(-1) !== '/' ? id + '/' : id; // ensure id has trailing slash\n\t\t\t$containerForElement.html(``);\n\t\t\tthis._resize(width, height);\n\t\t\tthis._config.onContentLoaded.call(this);\n\t\t\tif (this._$modalArrows) //hide the arrows when showing video\n\t\t\t\tthis._$modalArrows.css('display', 'none');\n\t\t\tthis._toggleLoading(false);\n\t\t\treturn this;\n\t\t}\n\n\t\t_showVideoIframe(url, width, height, $containerForElement) { // should be used for videos only. for remote content use loadRemoteContent (data-type=url)\n\t\t\theight = height || width; // default to square\n\t\t\t$containerForElement.html(`
`);\n\t\t\tthis._resize(width, height);\n\t\t\tthis._config.onContentLoaded.call(this);\n\t\t\tif (this._$modalArrows)\n\t\t\t\tthis._$modalArrows.css('display', 'none'); //hide the arrows when showing video\n\t\t\tthis._toggleLoading(false);\n\t\t\treturn this;\n\t\t}\n \n\t\t_showHtml5Media(url, $containerForElement) { // should be used for videos only. for remote content use loadRemoteContent (data-type=url)\n\t\t\tlet contentType = this._getRemoteContentType(url);\n\t\t\tif(!contentType){\n\t\t\t\treturn this._error(this._config.strings.type)\n\t\t\t}\n\t\t\tlet mediaType = '';\n\t\t\tif(contentType.indexOf('audio') > 0){\n\t\t\t\tmediaType = 'audio';\n\t\t\t}else{\n\t\t\t\tmediaType = 'video';\n\t\t\t}\n\t\t\tlet width = this._$element.data('width') || 560\n\t\t\tlet height = this._$element.data('height') || width / ( 560/315 )\n\t\t\t$containerForElement.html(`
<${mediaType} width=\"${width}\" height=\"${height}\" preload=\"auto\" autoplay controls class=\"embed-responsive-item\">${this._config.strings.type}
`);\n\t\t\tthis._resize(width, height);\n\t\t\tthis._config.onContentLoaded.call(this);\n\t\t\tif (this._$modalArrows)\n\t\t\t\tthis._$modalArrows.css('display', 'none'); //hide the arrows when showing video\n\t\t\tthis._toggleLoading(false);\n\t\t\treturn this;\n\t\t}\n\n\t\t_loadRemoteContent(url, $containerForElement) {\n\t\t\tlet width = this._$element.data('width') || 560;\n\t\t\tlet height = this._$element.data('height') || 560;\n\n\t\t\tlet disableExternalCheck = this._$element.data('disableExternalCheck') || false;\n\t\t\tthis._toggleLoading(false);\n\n\t\t\t// external urls are loading into an iframe\n\t\t\t// local ajax can be loaded into the container itself\n\t\t\tif (!disableExternalCheck && !this._isExternal(url)) {\n\t\t\t\t$containerForElement.load(url, $.proxy(() => {\n\t\t\t\t\treturn this._$element.trigger('loaded.bs.modal');l\n\t\t\t\t}));\n\n\t\t\t} else {\n\t\t\t\t$containerForElement.html(``);\n\t\t\t\tthis._config.onContentLoaded.call(this);\n\t\t\t}\n\n\t\t\tif (this._$modalArrows) //hide the arrows when remote content\n\t\t\t\tthis._$modalArrows.css('display', 'none')\n\n\t\t\tthis._resize(width, height);\n\t\t\treturn this;\n\t\t}\n\n\t\t_isExternal(url) {\n\t\t\tlet match = url.match(/^([^:\\/?#]+:)?(?:\\/\\/([^\\/?#]*))?([^?#]+)?(\\?[^#]*)?(#.*)?/);\n\t\t\tif (typeof match[1] === \"string\" && match[1].length > 0 && match[1].toLowerCase() !== location.protocol)\n\t\t\t\treturn true;\n\n\t\t\tif (typeof match[2] === \"string\" && match[2].length > 0 && match[2].replace(new RegExp(`:(${{\n\t\t\t\t\t\"http:\": 80,\n\t\t\t\t\t\"https:\": 443\n\t\t\t\t}[location.protocol]})?$`), \"\") !== location.host)\n\t\t\t\treturn true;\n\n\t\t\treturn false;\n\t\t}\n\n\t\t_error( message ) {\n\t\t\tconsole.error(message);\n\t\t\tthis._containerToUse().html(message);\n\t\t\tthis._resize(300, 300);\n\t\t\treturn this;\n\t\t}\n\n\t\t_preloadImageByIndex(startIndex, numberOfTimes) {\n\n\t\t\tif(!this._$galleryItems)\n\t\t\t\treturn;\n\n\t\t\tlet next = $(this._$galleryItems.get(startIndex), false)\n\t\t\tif(typeof next == 'undefined')\n\t\t\t\treturn\n\n\t\t\tlet src = next.attr('data-remote') || next.attr('href')\n\t\t\tif (next.attr('data-type') === 'image' || this._isImage(src))\n\t\t\t\tthis._preloadImage(src, false)\n\n\t\t\tif(numberOfTimes > 0)\n\t\t\t\treturn this._preloadImageByIndex(startIndex + 1, numberOfTimes-1);\n\t\t}\n\n\t\t_preloadImage( src, $containerForImage) {\n\n\t\t\t$containerForImage = $containerForImage || false\n\n\t\t\tlet img = new Image();\n\t\t\tif ($containerForImage) {\n\n\t\t\t\t// if loading takes > 200ms show a loader\n\t\t\t\tlet loadingTimeout = setTimeout(() => {\n\t\t\t\t\t$containerForImage.append(this._config.loadingMessage)\n\t\t\t\t}, 200)\n\n\t\t\t\timg.onload = () => {\n\t\t\t\t\tif(loadingTimeout)\n\t\t\t\t\t\tclearTimeout(loadingTimeout)\n\t\t\t\t\tloadingTimeout = null;\n\t\t\t\t\tlet image = $('');\n\t\t\t\t\timage.attr('src', img.src);\n\t\t\t\t\timage.addClass('img-fluid');\n\n\t\t\t\t\t// backward compatibility for bootstrap v3\n\t\t\t\t\timage.css('width', '100%');\n\n\t\t\t\t\t$containerForImage.html(image);\n\t\t\t\t\tif (this._$modalArrows)\n\t\t\t\t\t\tthis._$modalArrows.css('display', '') // remove display to default to css property\n\n\t\t\t\t\tthis._resize(img.width, img.height);\n\t\t\t\t\tthis._toggleLoading(false);\n\t\t\t\t\treturn this._config.onContentLoaded.call(this);\n\t\t\t\t};\n\t\t\t\timg.onerror = () => {\n\t\t\t\t\tthis._toggleLoading(false);\n\t\t\t\t\treturn this._error(this._config.strings.fail+` ${src}`);\n\t\t\t\t};\n\t\t\t}\n\n\t\t\timg.src = src;\n\t\t\treturn img;\n\t\t}\n\n\t\t_swipeGesure() {\n\t\t if (this._touchendX < this._touchstartX) {\n\t\t return this.navigateRight();\n\t\t }\n\t\t if (this._touchendX > this._touchstartX) {\n\t\t return this.navigateLeft();\n\t\t }\n\t\t}\n\n\t\t_resize( width, height ) {\n\n\t\t\theight = height || width\n\t\t\tthis._wantedWidth = width\n\t\t\tthis._wantedHeight = height\n\n\t\t\tlet imageAspecRatio = width / height;\n\n\t\t\t// if width > the available space, scale down the expected width and height\n\t\t\tlet widthBorderAndPadding = this._padding.left + this._padding.right + this._border.left + this._border.right\n\n\t\t\t// force 10px margin if window size > 575px\n\t\t\tlet addMargin = this._config.doc.body.clientWidth > 575 ? 20 : 0\n\t\t\tlet discountMargin = this._config.doc.body.clientWidth > 575 ? 0 : 20\n\n\t\t\tlet maxWidth = Math.min(width + widthBorderAndPadding, this._config.doc.body.clientWidth - addMargin, this._config.maxWidth)\n\n\t\t\tif((width + widthBorderAndPadding) > maxWidth) {\n\t\t\t\theight = (maxWidth - widthBorderAndPadding - discountMargin) / imageAspecRatio;\n\t\t\t\twidth = maxWidth\n\t\t\t} else\n\t\t\t\twidth = (width + widthBorderAndPadding)\n\n\t\t\tlet headerHeight = 0,\n\t\t\t footerHeight = 0\n\n\t\t\t// as the resize is performed the modal is show, the calculate might fail\n\t\t\t// if so, default to the default sizes\n\t\t\tif (this._footerIsShown)\n\t\t\t\tfooterHeight = this._$modalFooter.outerHeight(true) || 55\n\n\t\t\tif (this._titleIsShown)\n\t\t\t\theaderHeight = this._$modalHeader.outerHeight(true) || 67\n\n\t\t\tlet borderPadding = this._padding.top + this._padding.bottom + this._border.bottom + this._border.top\n\n\t\t\t//calculated each time as resizing the window can cause them to change due to Bootstraps fluid margins\n\t\t\tlet margins = parseFloat(this._$modalDialog.css('margin-top')) + parseFloat(this._$modalDialog.css('margin-bottom'));\n\n\t\t\tlet maxHeight = Math.min(height, $(window).height() - borderPadding - margins - headerHeight - footerHeight, this._config.maxHeight - borderPadding - headerHeight - footerHeight);\n\n\t\t\tif(height > maxHeight) {\n\t\t\t\t// if height > the available height, scale down the width\n\t\t\t\twidth = Math.ceil(maxHeight * imageAspecRatio) + widthBorderAndPadding;\n\t\t\t}\n\n\t\t\tthis._$lightboxContainer.css('height', maxHeight)\n\t\t\tthis._$modalDialog.css('flex', 1).css('maxWidth', width);\n\n\t\t\tlet modal = this._$modal.data('bs.modal');\n\t\t\tif (modal) {\n\t\t\t\t// v4 method is mistakenly protected\n\t\t\t\ttry {\n\t\t\t\t\tmodal._handleUpdate();\n\t\t\t\t} catch(Exception) {\n\t\t\t\t\tmodal.handleUpdate();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\n\t\tstatic _jQueryInterface(config) {\n\t\t\tconfig = config || {}\n\t\t\treturn this.each(() => {\n\t\t\t\tlet $this = $(this)\n\t\t\t\tlet _config = $.extend(\n\t\t\t\t\t{},\n\t\t\t\t\tLightbox.Default,\n\t\t\t\t\t$this.data(),\n\t\t\t\t\ttypeof config === 'object' && config\n\t\t\t\t)\n\n\t\t\t\tnew Lightbox(this, _config)\n\t\t\t})\n\t\t}\n\t}\n\n\n\n\t$.fn[NAME] = Lightbox._jQueryInterface\n\t$.fn[NAME].Constructor = Lightbox\n\t$.fn[NAME].noConflict = () => {\n\t\t$.fn[NAME] = JQUERY_NO_CONFLICT\n\t\treturn Lightbox._jQueryInterface\n\t}\n\n\treturn Lightbox\n\n})(jQuery)\n\nexport default Lightbox\n"]} \ No newline at end of file +{"version":3,"sources":["../ekko-lightbox.js"],"names":[],"mappings":";;;;;;AAAA,IAAM,QAAQ,GAAG,CAAC,UAAC,CAAC,EAAK;;AAExB,KAAM,IAAI,GAAG,cAAc,CAAA;AAC3B,KAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;;AAErC,KAAM,OAAO,GAAG;AACf,OAAK,EAAE,EAAE;AACT,QAAM,EAAE,EAAE;AACV,UAAQ,EAAE,IAAI;AACd,WAAS,EAAE,IAAI;AACf,YAAU,EAAE,IAAI;AAChB,UAAQ,EAAE,IAAI;AACd,MAAI,EAAE,IAAI;AACV,iBAAe,EAAE,KAAK;AACtB,gBAAc,EAAE,2EAA2E;AAC3F,WAAS,EAAE,uBAAuB;AAClC,YAAU,EAAE,uBAAuB;AACnC,SAAO,EAAE;AACR,QAAK,EAAE,OAAO;AACd,OAAI,EAAE,uBAAuB;AAC7B,OAAI,EAAE,qEAAqE;GAC3E;AACD,KAAG,EAAE,QAAQ;AACb,QAAM,EAAA,kBAAG,EAAE;AACX,SAAO,EAAA,mBAAG,EAAE;AACZ,QAAM,EAAA,kBAAG,EAAE;AACX,UAAQ,EAAA,oBAAG,EAAE;AACb,YAAU,EAAA,sBAAG,EAAE;AACf,iBAAe,EAAA,2BAAG,EAAE;EACpB,CAAA;;KAEK,QAAQ;eAAR,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;QA4BK,eAAG;AACpB,WAAO,OAAO,CAAA;I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AC,CAAC,WAAW,GAAG,QAAQ,CAAA;AACjC,EAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,GAAI,YAAM;AAC9B,GAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAA;AAC/B,SAAO,QAAQ,CAAC,gBAAgB,CAAA;EAChC,CAAA;;AAED,QAAO,QAAQ,CAAA;CAEf,CAAA,CAAE,MAAM,CAAC,CAAA","file":"ekko-lightbox.js","sourcesContent":["const Lightbox = (($) => {\r\n\r\n\tconst NAME = 'ekkoLightbox'\r\n\tconst JQUERY_NO_CONFLICT = $.fn[NAME]\r\n\r\n\tconst Default = {\r\n\t\ttitle: '',\r\n\t\tfooter: '',\r\n\t\tmaxWidth: 9999,\r\n\t\tmaxHeight: 9999,\r\n\t\tshowArrows: true, //display the left / right arrows or not\r\n\t\twrapping: true, //if true, gallery loops infinitely\r\n\t\ttype: null, //force the lightbox into image / youtube mode. if null, or not image|youtube|vimeo; detect it\r\n\t\talwaysShowClose: false, //always show the close button, even if there is no title\r\n\t\tloadingMessage: '
', // http://tobiasahlin.com/spinkit/\r\n\t\tleftArrow: '',\r\n\t\trightArrow: '',\r\n\t\tstrings: {\r\n\t\t\tclose: 'Close',\r\n\t\t\tfail: 'Failed to load image:',\r\n\t\t\ttype: 'Could not detect remote target type. Force the type using data-type',\r\n\t\t},\r\n\t\tdoc: document, // if in an iframe can specify top.document\r\n\t\tonShow() {},\r\n\t\tonShown() {},\r\n\t\tonHide() {},\r\n\t\tonHidden() {},\r\n\t\tonNavigate() {},\r\n\t\tonContentLoaded() {}\r\n\t}\r\n\r\n\tclass Lightbox {\r\n\r\n\t\t/**\r\n\r\n\t Class properties:\r\n\r\n\t\t _$element: null -> the element currently being displayed\r\n\t\t _$modal: The bootstrap modal generated\r\n\t\t _$modalDialog: The .modal-dialog\r\n\t\t _$modalContent: The .modal-content\r\n\t\t _$modalBody: The .modal-body\r\n\t\t _$modalHeader: The .modal-header\r\n\t\t _$modalFooter: The .modal-footer\r\n\t\t _$lightboxContainerOne: Container of the first lightbox element\r\n\t\t _$lightboxContainerTwo: Container of the second lightbox element\r\n\t\t _$lightboxBody: First element in the container\r\n\t\t _$modalArrows: The overlayed arrows container\r\n\r\n\t\t _$galleryItems: Other 's available for this gallery\r\n\t\t _galleryName: Name of the current data('gallery') showing\r\n\t\t _galleryIndex: The current index of the _$galleryItems being shown\r\n\r\n\t\t _config: {} the options for the modal\r\n\t\t _modalId: unique id for the current lightbox\r\n\t\t _padding / _border: CSS properties for the modal container; these are used to calculate the available space for the content\r\n\r\n\t\t */\r\n\r\n\t\tstatic get Default() {\r\n\t\t\treturn Default\r\n\t\t}\r\n\r\n\t\tconstructor($element, config) {\r\n\t\t\tthis._config = $.extend({}, Default, config)\r\n\t\t\tthis._$modalArrows = null\r\n\t\t\tthis._galleryIndex = 0\r\n\t\t\tthis._galleryName = null\r\n\t\t\tthis._padding = null\r\n\t\t\tthis._border = null\r\n\t\t\tthis._titleIsShown = false\r\n\t\t\tthis._footerIsShown = false\r\n\t\t\tthis._wantedWidth = 0\r\n\t\t\tthis._wantedHeight = 0\r\n\t\t\tthis._touchstartX = 0\r\n\t\t\tthis._touchendX = 0\r\n\r\n\t\t\tthis._modalId = `ekkoLightbox-${Math.floor((Math.random() * 1000) + 1)}`;\r\n\t\t\tthis._$element = $element instanceof jQuery ? $element : $($element)\r\n\r\n\t\t\tthis._isBootstrap3 = $.fn.modal.Constructor.VERSION[0] == 3;\r\n\r\n\t\t\tlet h4 = `

${this._config.title || \" \"}

`;\r\n\t\t\tlet btn = ``;\r\n\r\n\t\t\tlet header = `
`+(this._isBootstrap3 ? btn+h4 : h4+btn)+`
`;\r\n\t\t\tlet footer = `
${this._config.footer || \" \"}
`;\r\n\t\t\tlet body = '
'\r\n\t\t\tlet dialog = `
${header}${body}${footer}
`\r\n\t\t\t$(this._config.doc.body).append(`
${dialog}
`)\r\n\r\n\t\t\tthis._$modal = $(`#${this._modalId}`, this._config.doc)\r\n\t\t\tthis._$modalDialog = this._$modal.find('.modal-dialog').first()\r\n\t\t\tthis._$modalContent = this._$modal.find('.modal-content').first()\r\n\t\t\tthis._$modalBody = this._$modal.find('.modal-body').first()\r\n\t\t\tthis._$modalHeader = this._$modal.find('.modal-header').first()\r\n\t\t\tthis._$modalFooter = this._$modal.find('.modal-footer').first()\r\n\r\n\t\t\tthis._$lightboxContainer = this._$modalBody.find('.ekko-lightbox-container').first()\r\n\t\t\tthis._$lightboxBodyOne = this._$lightboxContainer.find('> div:first-child').first()\r\n\t\t\tthis._$lightboxBodyTwo = this._$lightboxContainer.find('> div:last-child').first()\r\n\r\n\t\t\tthis._border = this._calculateBorders()\r\n\t\t\tthis._padding = this._calculatePadding()\r\n\r\n\t\t\tthis._galleryName = this._$element.data('gallery')\r\n\t\t\tif (this._galleryName) {\r\n\t\t\t\tthis._$galleryItems = $(document.body).find(`*[data-gallery=\"${this._galleryName}\"]`)\r\n\t\t\t\tthis._galleryIndex = this._$galleryItems.index(this._$element)\r\n\t\t\t\t$(document).on('keydown.ekkoLightbox', this._navigationalBinder.bind(this))\r\n\r\n\t\t\t\t// add the directional arrows to the modal\r\n\t\t\t\tif (this._config.showArrows && this._$galleryItems.length > 1) {\r\n\t\t\t\t\tthis._$lightboxContainer.append(`
${this._config.leftArrow}${this._config.rightArrow}
`)\r\n\t\t\t\t\tthis._$modalArrows = this._$lightboxContainer.find('div.ekko-lightbox-nav-overlay').first()\r\n\t\t\t\t\tthis._$lightboxContainer.on('click', 'a:first-child', event => {\r\n\t\t\t\t\t\tevent.preventDefault()\r\n\t\t\t\t\t\treturn this.navigateLeft()\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis._$lightboxContainer.on('click', 'a:last-child', event => {\r\n\t\t\t\t\t\tevent.preventDefault()\r\n\t\t\t\t\t\treturn this.navigateRight()\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.updateNavigation()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis._$modal\r\n\t\t\t.on('show.bs.modal', this._config.onShow.bind(this))\r\n\t\t\t.on('shown.bs.modal', () => {\r\n\t\t\t\tthis._toggleLoading(true)\r\n\t\t\t\tthis._handle()\r\n\t\t\t\treturn this._config.onShown.call(this)\r\n\t\t\t})\r\n\t\t\t.on('hide.bs.modal', this._config.onHide.bind(this))\r\n\t\t\t.on('hidden.bs.modal', () => {\r\n\t\t\t\tif (this._galleryName) {\r\n\t\t\t\t\t$(document).off('keydown.ekkoLightbox')\r\n\t\t\t\t\t$(window).off('resize.ekkoLightbox')\r\n\t\t\t\t}\r\n\t\t\t\tthis._$modal.remove()\r\n\t\t\t\treturn this._config.onHidden.call(this)\r\n\t\t\t})\r\n\t\t\t.modal(this._config)\r\n\r\n\t\t\t$(window).on('resize.ekkoLightbox', () => {\r\n\t\t\t\tthis._resize(this._wantedWidth, this._wantedHeight)\r\n\t\t\t})\r\n\t\t\tthis._$lightboxContainer\r\n\t\t\t.on('touchstart', () => {\r\n\t\t\t\tthis._touchstartX = event.changedTouches[0].screenX;\r\n\r\n\t\t\t})\r\n\t\t\t.on('touchend', () => {\r\n\t\t\t\tthis._touchendX = event.changedTouches[0].screenX;\r\n\t\t\t this._swipeGesure();\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\telement() {\r\n\t\t\treturn this._$element;\r\n\t\t}\r\n\r\n\t\tmodal() {\r\n\t\t\treturn this._$modal;\r\n\t\t}\r\n\r\n\t\tnavigateTo(index) {\r\n\r\n\t\t\tif (index < 0 || index > this._$galleryItems.length-1)\r\n\t\t\t\treturn this\r\n\r\n\t\t\tthis._galleryIndex = index\r\n\r\n\t\t\tthis.updateNavigation()\r\n\r\n\t\t\tthis._$element = $(this._$galleryItems.get(this._galleryIndex))\r\n\t\t\tthis._handle();\r\n\t\t}\r\n\r\n\t\tnavigateLeft() {\r\n\r\n\t\t\tif(!this._$galleryItems)\r\n\t\t\t\treturn;\r\n\r\n\t\t\tif (this._$galleryItems.length === 1)\r\n\t\t\t\treturn\r\n\r\n\t\t\tif (this._galleryIndex === 0) {\r\n\t\t\t\tif (this._config.wrapping)\r\n\t\t\t\t\tthis._galleryIndex = this._$galleryItems.length - 1\r\n\t\t\t\telse\r\n\t\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\telse //circular\r\n\t\t\t\tthis._galleryIndex--\r\n\r\n\t\t\tthis._config.onNavigate.call(this, 'left', this._galleryIndex)\r\n\t\t\treturn this.navigateTo(this._galleryIndex)\r\n\t\t}\r\n\r\n\t\tnavigateRight() {\r\n\r\n\t\t\tif(!this._$galleryItems)\r\n\t\t\t\treturn;\r\n\r\n\t\t\tif (this._$galleryItems.length === 1)\r\n\t\t\t\treturn\r\n\r\n\t\t\tif (this._galleryIndex === this._$galleryItems.length - 1) {\r\n\t\t\t\tif (this._config.wrapping)\r\n\t\t\t\t\tthis._galleryIndex = 0\r\n\t\t\t\telse\r\n\t\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\telse //circular\r\n\t\t\t\tthis._galleryIndex++\r\n\r\n\t\t\tthis._config.onNavigate.call(this, 'right', this._galleryIndex)\r\n\t\t\treturn this.navigateTo(this._galleryIndex)\r\n\t\t}\r\n\r\n\t\tupdateNavigation() {\r\n\t\t\tif (!this._config.wrapping) {\r\n\t\t\t\tlet $nav = this._$lightboxContainer.find('div.ekko-lightbox-nav-overlay')\r\n\t\t\t\tif (this._galleryIndex === 0)\r\n\t\t\t\t\t$nav.find('a:first-child').addClass('disabled')\r\n\t\t\t\telse\r\n\t\t\t\t\t$nav.find('a:first-child').removeClass('disabled')\r\n\r\n\t\t\t\tif (this._galleryIndex === this._$galleryItems.length - 1)\r\n\t\t\t\t\t$nav.find('a:last-child').addClass('disabled')\r\n\t\t\t\telse\r\n\t\t\t\t\t$nav.find('a:last-child').removeClass('disabled')\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tclose() {\r\n\t\t\treturn this._$modal.modal('hide');\r\n\t\t}\r\n\r\n\t\t// helper private methods\r\n\t\t_navigationalBinder(event) {\r\n\t\t\tevent = event || window.event;\r\n\t\t\tif (event.keyCode === 39)\r\n\t\t\t\treturn this.navigateRight()\r\n\t\t\tif (event.keyCode === 37)\r\n\t\t\t\treturn this.navigateLeft()\r\n\t\t}\r\n\r\n\t\t// type detection private methods\r\n\t\t_detectRemoteType(src, type) {\r\n\r\n\t\t\ttype = type || false;\r\n\r\n\t\t\tif(!type && this._isImage(src))\r\n\t\t\t\ttype = 'image';\r\n\t\t\tif(!type && this._getYoutubeId(src))\r\n\t\t\t\ttype = 'youtube';\r\n\t\t\tif(!type && this._getVimeoId(src))\r\n\t\t\t\ttype = 'vimeo';\r\n\t\t\tif(!type && this._getInstagramId(src))\r\n\t\t\t\ttype = 'instagram';\r\n\t\t\tif(type == 'audio' || type == 'video' || (!type && this._isMedia(src)))\r\n\t\t\t\ttype = 'media';\r\n\t\t\tif(!type || ['image', 'youtube', 'vimeo', 'instagram', 'media', 'url'].indexOf(type) < 0)\r\n\t\t\t\ttype = 'url';\r\n\r\n\t\t\treturn type;\r\n\t\t}\r\n\r\n\t\t_getRemoteContentType(src) {\r\n\t\t\tlet response = $.ajax({\r\n\t\t\t\ttype: 'HEAD',\r\n\t\t\t\turl: src,\r\n\t\t\t\tasync: false\r\n\t\t\t});\r\n\t\t\tlet contentType = response.getResponseHeader('Content-Type')\r\n\t\t\treturn contentType;\r\n\t\t}\r\n\r\n\t\t_getSource(element) {\r\n\t\t\treturn element.attr('data-remote') || element.attr('href') || element.attr('data-src')\r\n\t\t}\r\n\r\n\t\t_isImage(string) {\r\n\t\t\treturn string && string.match(/(^data:image\\/.*,)|(\\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\\?|#).*)?$)/i)\r\n\t\t}\r\n\r\n\t\t_isMedia(string) {\r\n\t\t\treturn string && string.match(/(\\.(mp3|mp4|ogg|webm|wav)((\\?|#).*)?$)/i)\r\n\t\t}\r\n\r\n\t\t_containerToUse() {\r\n\t\t\t// if currently showing an image, fade it out and remove\r\n\t\t\tlet $toUse = this._$lightboxBodyTwo\r\n\t\t\tlet $current = this._$lightboxBodyOne\r\n\r\n\t\t\tif(this._$lightboxBodyTwo.hasClass('in')) {\r\n\t\t\t\t$toUse = this._$lightboxBodyOne\r\n\t\t\t\t$current = this._$lightboxBodyTwo\r\n\t\t\t}\r\n\r\n\t\t\t$current.removeClass('in show')\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tif(!this._$lightboxBodyTwo.hasClass('in'))\r\n\t\t\t\t\tthis._$lightboxBodyTwo.empty()\r\n\t\t\t\tif(!this._$lightboxBodyOne.hasClass('in'))\r\n\t\t\t\t\tthis._$lightboxBodyOne.empty()\r\n\t\t\t}, 500)\r\n\r\n\t\t\t$toUse.addClass('in show')\r\n\t\t\treturn $toUse\r\n\t\t}\r\n\r\n\t\t_handle() {\r\n\r\n\t\t\tlet $toUse = this._containerToUse()\r\n\t\t\tthis._updateTitleAndFooter()\r\n\r\n\t\t\tlet currentRemote = this._getSource(this._$element)\r\n\t\t\tlet currentType = this._detectRemoteType(currentRemote, this._$element.attr('data-type') || false)\r\n\r\n\t\t\tif(['image', 'youtube', 'vimeo', 'instagram', 'media', 'url'].indexOf(currentType) < 0)\r\n\t\t\t\treturn this._error(this._config.strings.type)\r\n\r\n\t\t\tswitch(currentType) {\r\n\t\t\t\tcase 'image':\r\n\t\t\t\t\tthis._preloadImage(currentRemote, $toUse)\r\n\t\t\t\t\tthis._preloadImageByIndex(this._galleryIndex, 3)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'youtube':\r\n\t\t\t\t\tthis._showYoutubeVideo(currentRemote, $toUse);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'vimeo':\r\n\t\t\t\t\tthis._showVimeoVideo(this._getVimeoId(currentRemote), $toUse);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'instagram':\r\n\t\t\t\t\tthis._showInstagramVideo(this._getInstagramId(currentRemote), $toUse);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'media':\r\n\t\t\t\t\tthis._showHtml5Media(currentRemote, $toUse);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault: // url\r\n\t\t\t\t\tthis._loadRemoteContent(currentRemote, $toUse);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_getYoutubeId(string) {\r\n\t\t\tif(!string)\r\n\t\t\t\treturn false;\r\n\t\t\tlet matches = string.match(/^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/)\r\n\t\t\treturn (matches && matches[2].length === 11) ? matches[2] : false\r\n\t\t}\r\n\r\n\t\t_getVimeoId(string) {\r\n\t\t\treturn string && string.indexOf('vimeo') > 0 ? string : false\r\n\t\t}\r\n\r\n\t\t_getInstagramId(string) {\r\n\t\t\treturn string && string.indexOf('instagram') > 0 ? string : false\r\n\t\t}\r\n\r\n\t\t// layout private methods\r\n\t\t_toggleLoading(show) {\r\n\t\t\tshow = show || false\r\n\t\t\tif(show) {\r\n\t\t\t\tthis._$modalDialog.css('display', 'none')\r\n\t\t\t\tthis._$modal.removeClass('in show')\r\n\t\t\t\t$('.modal-backdrop').append(this._config.loadingMessage)\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis._$modalDialog.css('display', 'block')\r\n\t\t\t\tthis._$modal.addClass('in show')\r\n\t\t\t\t$('.modal-backdrop').find('.ekko-lightbox-loader').remove()\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_calculateBorders() {\r\n\t\t\treturn {\r\n\t\t\t\ttop: this._totalCssByAttribute('border-top-width'),\r\n\t\t\t\tright: this._totalCssByAttribute('border-right-width'),\r\n\t\t\t\tbottom: this._totalCssByAttribute('border-bottom-width'),\r\n\t\t\t\tleft: this._totalCssByAttribute('border-left-width'),\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t_calculatePadding() {\r\n\t\t\treturn {\r\n\t\t\t\ttop: this._totalCssByAttribute('padding-top'),\r\n\t\t\t\tright: this._totalCssByAttribute('padding-right'),\r\n\t\t\t\tbottom: this._totalCssByAttribute('padding-bottom'),\r\n\t\t\t\tleft: this._totalCssByAttribute('padding-left'),\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t_totalCssByAttribute(attribute) {\r\n\t\t\treturn parseInt(this._$modalDialog.css(attribute), 10) +\r\n\t\t\t\tparseInt(this._$modalContent.css(attribute), 10) +\r\n\t\t\t\tparseInt(this._$modalBody.css(attribute), 10)\r\n\t\t}\r\n\r\n\t\t_updateTitleAndFooter() {\r\n\t\t\tlet title = this._$element.data('title') || \"\"\r\n\t\t\tlet caption = this._$element.data('footer') || \"\"\r\n\r\n\t\t\tthis._titleIsShown = false\r\n\t\t\tif (title || this._config.alwaysShowClose) {\r\n\t\t\t\tthis._titleIsShown = true\r\n\t\t\t\tthis._$modalHeader.css('display', '').find('.modal-title').html(title || \" \")\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tthis._$modalHeader.css('display', 'none')\r\n\r\n\t\t\tthis._footerIsShown = false\r\n\t\t\tif (caption) {\r\n\t\t\t\tthis._footerIsShown = true\r\n\t\t\t\tthis._$modalFooter.css('display', '').html(caption)\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tthis._$modalFooter.css('display', 'none')\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_showYoutubeVideo(remote, $containerForElement) {\r\n\t\t\tlet id = this._getYoutubeId(remote)\r\n\t\t\tlet query = remote.indexOf('&') > 0 ? remote.substr(remote.indexOf('&')) : ''\r\n\t\t\tlet width = this._$element.data('width') || 560\r\n\t\t\tlet height = this._$element.data('height') || width / ( 560/315 )\r\n\t\t\treturn this._showVideoIframe(\r\n\t\t\t\t`//www.youtube.com/embed/${id}?badge=0&autoplay=1&html5=1${query}`,\r\n\t\t\t\twidth,\r\n\t\t\t\theight,\r\n\t\t\t\t$containerForElement\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\t_showVimeoVideo(id, $containerForElement) {\r\n\t\t\tlet width = this._$element.data('width') || 500\r\n\t\t\tlet height = this._$element.data('height') || width / ( 560/315 )\r\n\t\t\treturn this._showVideoIframe(id + '?autoplay=1', width, height, $containerForElement)\r\n\t\t}\r\n\r\n\t\t_showInstagramVideo(id, $containerForElement) {\r\n\t\t\t// instagram load their content into iframe's so this can be put straight into the element\r\n\t\t\tlet width = this._$element.data('width') || 612\r\n\t\t\tlet height = width + 80;\r\n\t\t\tid = id.substr(-1) !== '/' ? id + '/' : id; // ensure id has trailing slash\r\n\t\t\t$containerForElement.html(``);\r\n\t\t\tthis._resize(width, height);\r\n\t\t\tthis._config.onContentLoaded.call(this);\r\n\t\t\tif (this._$modalArrows) //hide the arrows when showing video\r\n\t\t\t\tthis._$modalArrows.css('display', 'none');\r\n\t\t\tthis._toggleLoading(false);\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_showVideoIframe(url, width, height, $containerForElement) { // should be used for videos only. for remote content use loadRemoteContent (data-type=url)\r\n\t\t\theight = height || width; // default to square\r\n\t\t\t$containerForElement.html(`
`);\r\n\t\t\tthis._resize(width, height);\r\n\t\t\tthis._config.onContentLoaded.call(this);\r\n\t\t\tif (this._$modalArrows)\r\n\t\t\t\tthis._$modalArrows.css('display', 'none'); //hide the arrows when showing video\r\n\t\t\tthis._toggleLoading(false);\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_showHtml5Media(url, $containerForElement) { // should be used for videos only. for remote content use loadRemoteContent (data-type=url)\r\n\t\t\tlet contentType = this._getRemoteContentType(url);\r\n\t\t\tif(!contentType){\r\n\t\t\t\treturn this._error(this._config.strings.type)\r\n\t\t\t}\r\n\t\t\tlet mediaType = '';\r\n\t\t\tif(contentType.indexOf('audio') > 0){\r\n\t\t\t\tmediaType = 'audio';\r\n\t\t\t}else{\r\n\t\t\t\tmediaType = 'video';\r\n\t\t\t}\r\n\t\t\tlet width = this._$element.data('width') || 560\r\n\t\t\tlet height = this._$element.data('height') || width / ( 560/315 )\r\n\t\t\t$containerForElement.html(`
<${mediaType} width=\"${width}\" height=\"${height}\" preload=\"auto\" autoplay controls class=\"embed-responsive-item\">${this._config.strings.type}
`);\r\n\t\t\tthis._resize(width, height);\r\n\t\t\tthis._config.onContentLoaded.call(this);\r\n\t\t\tif (this._$modalArrows)\r\n\t\t\t\tthis._$modalArrows.css('display', 'none'); //hide the arrows when showing video\r\n\t\t\tthis._toggleLoading(false);\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_loadRemoteContent(url, $containerForElement) {\r\n\t\t\tlet width = this._$element.data('width') || 560;\r\n\t\t\tlet height = this._$element.data('height') || 560;\r\n\r\n\t\t\tlet disableExternalCheck = this._$element.data('disableExternalCheck') || false;\r\n\t\t\tthis._toggleLoading(false);\r\n\r\n\t\t\t// external urls are loading into an iframe\r\n\t\t\t// local ajax can be loaded into the container itself\r\n\t\t\tif (!disableExternalCheck && !this._isExternal(url)) {\r\n\t\t\t\t$containerForElement.load(url, $.proxy(() => {\r\n\t\t\t\t\treturn this._$element.trigger('loaded.bs.modal');\r\n\t\t\t\t}));\r\n\r\n\t\t\t} else {\r\n\t\t\t\t$containerForElement.html(``);\r\n\t\t\t\tthis._config.onContentLoaded.call(this);\r\n\t\t\t}\r\n\r\n\t\t\tif (this._$modalArrows) //hide the arrows when remote content\r\n\t\t\t\tthis._$modalArrows.css('display', 'none')\r\n\r\n\t\t\tthis._resize(width, height);\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_isExternal(url) {\r\n\t\t\tlet match = url.match(/^([^:\\/?#]+:)?(?:\\/\\/([^\\/?#]*))?([^?#]+)?(\\?[^#]*)?(#.*)?/);\r\n\t\t\tif (typeof match[1] === \"string\" && match[1].length > 0 && match[1].toLowerCase() !== location.protocol)\r\n\t\t\t\treturn true;\r\n\r\n\t\t\tif (typeof match[2] === \"string\" && match[2].length > 0 && match[2].replace(new RegExp(`:(${{\r\n\t\t\t\t\t\"http:\": 80,\r\n\t\t\t\t\t\"https:\": 443\r\n\t\t\t\t}[location.protocol]})?$`), \"\") !== location.host)\r\n\t\t\t\treturn true;\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t_error( message ) {\r\n\t\t\tconsole.error(message);\r\n\t\t\tthis._containerToUse().html(message);\r\n\t\t\tthis._resize(300, 300);\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t_preloadImageByIndex(startIndex, numberOfTimes) {\r\n\r\n\t\t\tif(!this._$galleryItems)\r\n\t\t\t\treturn;\r\n\r\n\t\t\tlet next = $(this._$galleryItems.get(startIndex), false)\r\n\t\t\tif(typeof next == 'undefined')\r\n\t\t\t\treturn\r\n\r\n\t\t\tlet src = this._getSource(next)\r\n\t\t\tif (next.attr('data-type') === 'image' || this._isImage(src))\r\n\t\t\t\tthis._preloadImage(src, false)\r\n\r\n\t\t\tif(numberOfTimes > 0)\r\n\t\t\t\treturn this._preloadImageByIndex(startIndex + 1, numberOfTimes-1);\r\n\t\t}\r\n\r\n\t\t_preloadImage( src, $containerForImage) {\r\n\r\n\t\t\t$containerForImage = $containerForImage || false\r\n\r\n\t\t\tlet img = new Image();\r\n\t\t\tif ($containerForImage) {\r\n\r\n\t\t\t\t// if loading takes > 200ms show a loader\r\n\t\t\t\tlet loadingTimeout = setTimeout(() => {\r\n\t\t\t\t\t$containerForImage.append(this._config.loadingMessage)\r\n\t\t\t\t}, 200)\r\n\r\n\t\t\t\timg.onload = () => {\r\n\t\t\t\t\tif(loadingTimeout)\r\n\t\t\t\t\t\tclearTimeout(loadingTimeout)\r\n\t\t\t\t\tloadingTimeout = null;\r\n\t\t\t\t\tlet image = $('');\r\n\t\t\t\t\timage.attr('src', img.src);\r\n\t\t\t\t\timage.addClass('img-fluid');\r\n\r\n\t\t\t\t\t// backward compatibility for bootstrap v3\r\n\t\t\t\t\timage.css('width', '100%');\r\n\r\n\t\t\t\t\t$containerForImage.html(image);\r\n\t\t\t\t\tif (this._$modalArrows)\r\n\t\t\t\t\t\tthis._$modalArrows.css('display', '') // remove display to default to css property\r\n\r\n\t\t\t\t\tthis._resize(img.width, img.height);\r\n\t\t\t\t\tthis._toggleLoading(false);\r\n\t\t\t\t\treturn this._config.onContentLoaded.call(this);\r\n\t\t\t\t};\r\n\t\t\t\timg.onerror = () => {\r\n\t\t\t\t\tthis._toggleLoading(false);\r\n\t\t\t\t\treturn this._error(this._config.strings.fail+` ${src}`);\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\timg.src = src;\r\n\t\t\treturn img;\r\n\t\t}\r\n\r\n\t\t_swipeGesure() {\r\n\t\t if (this._touchendX < this._touchstartX) {\r\n\t\t return this.navigateRight();\r\n\t\t }\r\n\t\t if (this._touchendX > this._touchstartX) {\r\n\t\t return this.navigateLeft();\r\n\t\t }\r\n\t\t}\r\n\r\n\t\t_resize( width, height ) {\r\n\r\n\t\t\theight = height || width\r\n\t\t\tthis._wantedWidth = width\r\n\t\t\tthis._wantedHeight = height\r\n\r\n\t\t\tlet imageAspecRatio = width / height;\r\n\r\n\t\t\t// if width > the available space, scale down the expected width and height\r\n\t\t\tlet widthBorderAndPadding = this._padding.left + this._padding.right + this._border.left + this._border.right\r\n\r\n\t\t\t// force 10px margin if window size > 575px\r\n\t\t\tlet addMargin = this._config.doc.body.clientWidth > 575 ? 20 : 0\r\n\t\t\tlet discountMargin = this._config.doc.body.clientWidth > 575 ? 0 : 20\r\n\r\n\t\t\tlet maxWidth = Math.min(width + widthBorderAndPadding, this._config.doc.body.clientWidth - addMargin, this._config.maxWidth)\r\n\r\n\t\t\tif((width + widthBorderAndPadding) > maxWidth) {\r\n\t\t\t\theight = (maxWidth - widthBorderAndPadding - discountMargin) / imageAspecRatio;\r\n\t\t\t\twidth = maxWidth\r\n\t\t\t} else\r\n\t\t\t\twidth = (width + widthBorderAndPadding)\r\n\r\n\t\t\tlet headerHeight = 0,\r\n\t\t\t footerHeight = 0\r\n\r\n\t\t\t// as the resize is performed the modal is show, the calculate might fail\r\n\t\t\t// if so, default to the default sizes\r\n\t\t\tif (this._footerIsShown)\r\n\t\t\t\tfooterHeight = this._$modalFooter.outerHeight(true) || 55\r\n\r\n\t\t\tif (this._titleIsShown)\r\n\t\t\t\theaderHeight = this._$modalHeader.outerHeight(true) || 67\r\n\r\n\t\t\tlet borderPadding = this._padding.top + this._padding.bottom + this._border.bottom + this._border.top\r\n\r\n\t\t\t//calculated each time as resizing the window can cause them to change due to Bootstraps fluid margins\r\n\t\t\tlet margins = parseFloat(this._$modalDialog.css('margin-top')) + parseFloat(this._$modalDialog.css('margin-bottom'));\r\n\r\n\t\t\tlet maxHeight = Math.min(height, $(window).height() - borderPadding - margins - headerHeight - footerHeight, this._config.maxHeight - borderPadding - headerHeight - footerHeight);\r\n\r\n\t\t\tif(height > maxHeight) {\r\n\t\t\t\t// if height > the available height, scale down the width\r\n\t\t\t\twidth = Math.ceil(maxHeight * imageAspecRatio) + widthBorderAndPadding;\r\n\t\t\t}\r\n\r\n\t\t\tthis._$lightboxContainer.css('height', maxHeight)\r\n\t\t\tthis._$modalDialog.css('flex', 1).css('maxWidth', width);\r\n\r\n\t\t\tlet modal = this._$modal.data('bs.modal');\r\n\t\t\tif (modal) {\r\n\t\t\t\t// v4 method is mistakenly protected\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmodal._handleUpdate();\r\n\t\t\t\t} catch(Exception) {\r\n\t\t\t\t\tmodal.handleUpdate();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tstatic _jQueryInterface(config) {\r\n\t\t\tconfig = config || {}\r\n\t\t\treturn this.each(() => {\r\n\t\t\t\tlet $this = $(this)\r\n\t\t\t\tlet _config = $.extend(\r\n\t\t\t\t\t{},\r\n\t\t\t\t\tLightbox.Default,\r\n\t\t\t\t\t$this.data(),\r\n\t\t\t\t\ttypeof config === 'object' && config\r\n\t\t\t\t)\r\n\r\n\t\t\t\tnew Lightbox(this, _config)\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\t$.fn[NAME] = Lightbox._jQueryInterface\r\n\t$.fn[NAME].Constructor = Lightbox\r\n\t$.fn[NAME].noConflict = () => {\r\n\t\t$.fn[NAME] = JQUERY_NO_CONFLICT\r\n\t\treturn Lightbox._jQueryInterface\r\n\t}\r\n\r\n\treturn Lightbox\r\n\r\n})(jQuery)\r\n\r\nexport default Lightbox\r\n"]} \ No newline at end of file diff --git a/dist/ekko-lightbox.min.js b/dist/ekko-lightbox.min.js index 0289642..8840e20 100644 --- a/dist/ekko-lightbox.min.js +++ b/dist/ekko-lightbox.min.js @@ -1,2 +1,2 @@ -+function(a){"use strict";function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var c=function(){function a(a,b){for(var c=0;c
',leftArrow:"",rightArrow:"",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},g=function(){function d(c,e){var g=this;b(this,d),this._config=a.extend({},f,e),this._$modalArrows=null,this._galleryIndex=0,this._galleryName=null,this._padding=null,this._border=null,this._titleIsShown=!1,this._footerIsShown=!1,this._wantedWidth=0,this._wantedHeight=0,this._touchstartX=0,this._touchendX=0,this._modalId="ekkoLightbox-"+Math.floor(1e3*Math.random()+1),this._$element=c instanceof jQuery?c:a(c),this._isBootstrap3=3==a.fn.modal.Constructor.VERSION[0];var h='",i='',j='",k='",l='',m='";a(this._config.doc.body).append('"),this._$modal=a("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=a(document.body).find('*[data-gallery="'+this._galleryName+'"]'),this._galleryIndex=this._$galleryItems.index(this._$element),a(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows&&this._$galleryItems.length>1&&(this._$lightboxContainer.append('
'+this._config.leftArrow+''+this._config.rightArrow+"
"),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",function(a){return a.preventDefault(),g.navigateLeft()}),this._$lightboxContainer.on("click","a:last-child",function(a){return a.preventDefault(),g.navigateRight()}),this.updateNavigation())),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return g._toggleLoading(!0),g._handle(),g._config.onShown.call(g)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return g._galleryName&&(a(document).off("keydown.ekkoLightbox"),a(window).off("resize.ekkoLightbox")),g._$modal.remove(),g._config.onHidden.call(g)}).modal(this._config),a(window).on("resize.ekkoLightbox",function(){g._resize(g._wantedWidth,g._wantedHeight)}),this._$lightboxContainer.on("touchstart",function(){g._touchstartX=event.changedTouches[0].screenX}).on("touchend",function(){g._touchendX=event.changedTouches[0].screenX,g._swipeGesure()})}return c(d,null,[{key:"Default",get:function(){return f}}]),c(d,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(b){return b<0||b>this._$galleryItems.length-1?this:(this._galleryIndex=b,this.updateNavigation(),this._$element=a(this._$galleryItems.get(this._galleryIndex)),void this._handle())}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(0===this._galleryIndex){if(!this._config.wrapping)return;this._galleryIndex=this._$galleryItems.length-1}else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(this._galleryIndex===this._$galleryItems.length-1){if(!this._config.wrapping)return;this._galleryIndex=0}else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){if(!this._config.wrapping){var a=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay");0===this._galleryIndex?a.find("a:first-child").addClass("disabled"):a.find("a:first-child").removeClass("disabled"),this._galleryIndex===this._$galleryItems.length-1?a.find("a:last-child").addClass("disabled"):a.find("a:last-child").removeClass("disabled")}}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(a){return a=a||window.event,39===a.keyCode?this.navigateRight():37===a.keyCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(a,b){return b=b||!1,!b&&this._isImage(a)&&(b="image"),!b&&this._getYoutubeId(a)&&(b="youtube"),!b&&this._getVimeoId(a)&&(b="vimeo"),!b&&this._getInstagramId(a)&&(b="instagram"),("audio"==b||"video"==b||!b&&this._isMedia(a))&&(b="media"),(!b||["image","youtube","vimeo","instagram","media","url"].indexOf(b)<0)&&(b="url"),b}},{key:"_getRemoteContentType",value:function(b){var c=a.ajax({type:"HEAD",url:b,async:!1}),d=c.getResponseHeader("Content-Type");return d}},{key:"_isImage",value:function(a){return a&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_isMedia",value:function(a){return a&&a.match(/(\.(mp3|mp4|ogg|webm|wav)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var a=this,b=this._$lightboxBodyTwo,c=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(b=this._$lightboxBodyOne,c=this._$lightboxBodyTwo),c.removeClass("in show"),setTimeout(function(){a._$lightboxBodyTwo.hasClass("in")||a._$lightboxBodyTwo.empty(),a._$lightboxBodyOne.hasClass("in")||a._$lightboxBodyOne.empty()},500),b.addClass("in show"),b}},{key:"_handle",value:function(){var a=this._containerToUse();this._updateTitleAndFooter();var b=this._$element.attr("data-remote")||this._$element.attr("href"),c=this._detectRemoteType(b,this._$element.attr("data-type")||!1);if(["image","youtube","vimeo","instagram","media","url"].indexOf(c)<0)return this._error(this._config.strings.type);switch(c){case"image":this._preloadImage(b,a),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(b,a);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(b),a);break;case"instagram":this._showInstagramVideo(this._getInstagramId(b),a);break;case"media":this._showHtml5Media(b,a);break;default:this._loadRemoteContent(b,a)}return this}},{key:"_getYoutubeId",value:function(a){if(!a)return!1;var b=a.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!(!b||11!==b[2].length)&&b[2]}},{key:"_getVimeoId",value:function(a){return!!(a&&a.indexOf("vimeo")>0)&&a}},{key:"_getInstagramId",value:function(a){return!!(a&&a.indexOf("instagram")>0)&&a}},{key:"_toggleLoading",value:function(b){return b=b||!1,b?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),a(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),a(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(a){return parseInt(this._$modalDialog.css(a),10)+parseInt(this._$modalContent.css(a),10)+parseInt(this._$modalBody.css(a),10)}},{key:"_updateTitleAndFooter",value:function(){var a=this._$element.data("title")||"",b=this._$element.data("footer")||"";return this._titleIsShown=!1,a||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(a||" ")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,b?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(b)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(a,b){var c=this._getYoutubeId(a),d=a.indexOf("&")>0?a.substr(a.indexOf("&")):"",e=this._$element.data("width")||560,f=this._$element.data("height")||e/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+c+"?badge=0&autoplay=1&html5=1"+d,e,f,b)}},{key:"_showVimeoVideo",value:function(a,b){var c=this._$element.data("width")||500,d=this._$element.data("height")||c/(560/315);return this._showVideoIframe(a+"?autoplay=1",c,d,b)}},{key:"_showInstagramVideo",value:function(a,b){var c=this._$element.data("width")||612,d=c+80;return a="/"!==a.substr(-1)?a+"/":a,b.html(''),this._resize(c,d),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(a,b,c,d){return c=c||b,d.html('
'),this._resize(b,c),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Media",value:function(a,b){var c=this._getRemoteContentType(a);if(!c)return this._error(this._config.strings.type);var d="";d=c.indexOf("audio")>0?"audio":"video";var e=this._$element.data("width")||560,f=this._$element.data("height")||e/(560/315);return b.html('
<'+d+' width="'+e+'" height="'+f+'" preload="auto" autoplay controls class="embed-responsive-item">'+this._config.strings.type+"
"),this._resize(e,f),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(b,c){var d=this,e=this._$element.data("width")||560,f=this._$element.data("height")||560,g=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),g||this._isExternal(b)?(c.html(''),this._config.onContentLoaded.call(this)):c.load(b,a.proxy(function(){return d._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(e,f),this}},{key:"_isExternal",value:function(a){var b=a.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof b[1]&&b[1].length>0&&b[1].toLowerCase()!==location.protocol||"string"==typeof b[2]&&b[2].length>0&&b[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}},{key:"_error",value:function(a){return console.error(a),this._containerToUse().html(a),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(b,c){if(this._$galleryItems){var d=a(this._$galleryItems.get(b),!1);if("undefined"!=typeof d){var e=d.attr("data-remote")||d.attr("href");return("image"===d.attr("data-type")||this._isImage(e))&&this._preloadImage(e,!1),c>0?this._preloadImageByIndex(b+1,c-1):void 0}}}},{key:"_preloadImage",value:function(b,c){var d=this;c=c||!1;var e=new Image;return c&&!function(){var f=setTimeout(function(){c.append(d._config.loadingMessage)},200);e.onload=function(){f&&clearTimeout(f),f=null;var b=a("");return b.attr("src",e.src),b.addClass("img-fluid"),b.css("width","100%"),c.html(b),d._$modalArrows&&d._$modalArrows.css("display",""),d._resize(e.width,e.height),d._toggleLoading(!1),d._config.onContentLoaded.call(d)},e.onerror=function(){return d._toggleLoading(!1),d._error(d._config.strings.fail+(" "+b))}}(),e.src=b,e}},{key:"_swipeGesure",value:function(){return this._touchendXthis._touchstartX?this.navigateLeft():void 0}},{key:"_resize",value:function(b,c){c=c||b,this._wantedWidth=b,this._wantedHeight=c;var d=b/c,e=this._padding.left+this._padding.right+this._border.left+this._border.right,f=this._config.doc.body.clientWidth>575?20:0,g=this._config.doc.body.clientWidth>575?0:20,h=Math.min(b+e,this._config.doc.body.clientWidth-f,this._config.maxWidth);b+e>h?(c=(h-e-g)/d,b=h):b+=e;var i=0,j=0;this._footerIsShown&&(j=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(i=this._$modalHeader.outerHeight(!0)||67);var k=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,l=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),m=Math.min(c,a(window).height()-k-l-i-j,this._config.maxHeight-k-i-j);c>m&&(b=Math.ceil(m*d)+e),this._$lightboxContainer.css("height",m),this._$modalDialog.css("flex",1).css("maxWidth",b);var n=this._$modal.data("bs.modal");if(n)try{n._handleUpdate()}catch(o){n.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(b){var c=this;return b=b||{},this.each(function(){var e=a(c),f=a.extend({},d.Default,e.data(),"object"==typeof b&&b);new d(c,f)})}}]),d}();return a.fn[d]=g._jQueryInterface,a.fn[d].Constructor=g,a.fn[d].noConflict=function(){return a.fn[d]=e,g._jQueryInterface},g})(jQuery)}(jQuery); +!function(){"use strict";var t=function(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t};function o(t,e){for(var i=0;i
',leftArrow:"",rightArrow:"",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},t(l,null,[{key:"Default",get:function(){return n}}]),t(l,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(t){if(t<0||t>this._$galleryItems.length-1)return this;this._galleryIndex=t,this.updateNavigation(),this._$element=c(this._$galleryItems.get(this._galleryIndex)),this._handle()}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(0===this._galleryIndex){if(!this._config.wrapping)return;this._galleryIndex=this._$galleryItems.length-1}else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(this._galleryIndex===this._$galleryItems.length-1){if(!this._config.wrapping)return;this._galleryIndex=0}else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){if(!this._config.wrapping){var t=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay");0===this._galleryIndex?t.find("a:first-child").addClass("disabled"):t.find("a:first-child").removeClass("disabled"),this._galleryIndex===this._$galleryItems.length-1?t.find("a:last-child").addClass("disabled"):t.find("a:last-child").removeClass("disabled")}}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(t){return 39===(t=t||window.event).keyCode?this.navigateRight():37===t.keyCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(t,e){return!(e=e||!1)&&this._isImage(t)&&(e="image"),!e&&this._getYoutubeId(t)&&(e="youtube"),!e&&this._getVimeoId(t)&&(e="vimeo"),!e&&this._getInstagramId(t)&&(e="instagram"),("audio"==e||"video"==e||!e&&this._isMedia(t))&&(e="media"),(!e||["image","youtube","vimeo","instagram","media","url"].indexOf(e)<0)&&(e="url"),e}},{key:"_getRemoteContentType",value:function(t){return c.ajax({type:"HEAD",url:t,async:!1}).getResponseHeader("Content-Type")}},{key:"_getSource",value:function(t){return t.attr("data-remote")||t.attr("href")||t.attr("data-src")}},{key:"_isImage",value:function(t){return t&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_isMedia",value:function(t){return t&&t.match(/(\.(mp3|mp4|ogg|webm|wav)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var t=this,e=this._$lightboxBodyTwo,i=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(e=this._$lightboxBodyOne,i=this._$lightboxBodyTwo),i.removeClass("in show"),setTimeout(function(){t._$lightboxBodyTwo.hasClass("in")||t._$lightboxBodyTwo.empty(),t._$lightboxBodyOne.hasClass("in")||t._$lightboxBodyOne.empty()},500),e.addClass("in show"),e}},{key:"_handle",value:function(){var t=this._containerToUse();this._updateTitleAndFooter();var e=this._getSource(this._$element),i=this._detectRemoteType(e,this._$element.attr("data-type")||!1);if(["image","youtube","vimeo","instagram","media","url"].indexOf(i)<0)return this._error(this._config.strings.type);switch(i){case"image":this._preloadImage(e,t),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(e,t);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(e),t);break;case"instagram":this._showInstagramVideo(this._getInstagramId(e),t);break;case"media":this._showHtml5Media(e,t);break;default:this._loadRemoteContent(e,t)}return this}},{key:"_getYoutubeId",value:function(t){if(!t)return!1;var e=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!(!e||11!==e[2].length)&&e[2]}},{key:"_getVimeoId",value:function(t){return!!(t&&0'),this._resize(i,o),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(t,e,i,o){return i=i||e,o.html('
'),this._resize(e,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Media",value:function(t,e){var i=this._getRemoteContentType(t);if(!i)return this._error(this._config.strings.type);var o="";o=0<'+o+' width="'+a+'" height="'+s+'" preload="auto" autoplay controls class="embed-responsive-item">'+this._config.strings.type+""),this._resize(a,s),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(t,e){var i=this,o=this._$element.data("width")||560,a=this._$element.data("height")||560,s=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),s||this._isExternal(t)?(e.html(''),this._config.onContentLoaded.call(this)):e.load(t,c.proxy(function(){return i._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(o,a),this}},{key:"_isExternal",value:function(t){var e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof e[1]&&0");return t.attr("src",a.src),t.addClass("img-fluid"),t.css("width","100%"),e.html(t),i._$modalArrows&&i._$modalArrows.css("display",""),i._resize(a.width,a.height),i._toggleLoading(!1),i._config.onContentLoaded.call(i)},a.onerror=function(){return i._toggleLoading(!1),i._error(i._config.strings.fail+" "+t)}),a.src=t,a}},{key:"_swipeGesure",value:function(){return this._touchendXthis._touchstartX?this.navigateLeft():void 0}},{key:"_resize",value:function(t,e){e=e||t;var i=(this._wantedWidth=t)/(this._wantedHeight=e),o=this._padding.left+this._padding.right+this._border.left+this._border.right,a=575",a='',s='";c(this._config.doc.body).append('"),this._$modal=c("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=c(document.body).find('*[data-gallery="'+this._galleryName+'"]'),this._galleryIndex=this._$galleryItems.index(this._$element),c(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows&&1'+this._config.leftArrow+''+this._config.rightArrow+""),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",function(t){return t.preventDefault(),i.navigateLeft()}),this._$lightboxContainer.on("click","a:last-child",function(t){return t.preventDefault(),i.navigateRight()}),this.updateNavigation())),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return i._toggleLoading(!0),i._handle(),i._config.onShown.call(i)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return i._galleryName&&(c(document).off("keydown.ekkoLightbox"),c(window).off("resize.ekkoLightbox")),i._$modal.remove(),i._config.onHidden.call(i)}).modal(this._config),c(window).on("resize.ekkoLightbox",function(){i._resize(i._wantedWidth,i._wantedHeight)}),this._$lightboxContainer.on("touchstart",function(){i._touchstartX=event.changedTouches[0].screenX}).on("touchend",function(){i._touchendX=event.changedTouches[0].screenX,i._swipeGesure()})}}(jQuery); //# sourceMappingURL=ekko-lightbox.min.js.map \ No newline at end of file diff --git a/dist/ekko-lightbox.min.js.map b/dist/ekko-lightbox.min.js.map index 978236d..1303c37 100644 --- a/dist/ekko-lightbox.min.js.map +++ b/dist/ekko-lightbox.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["ekko-lightbox.js"],"names":["$","_classCallCheck","instance","Constructor","TypeError","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","protoProps","staticProps","prototype","NAME","JQUERY_NO_CONFLICT","fn","Default","title","footer","maxWidth","maxHeight","showArrows","wrapping","type","alwaysShowClose","loadingMessage","leftArrow","rightArrow","strings","close","fail","doc","document","onShow","onShown","onHide","onHidden","onNavigate","onContentLoaded","Lightbox","$element","config","_this","this","_config","extend","_$modalArrows","_galleryIndex","_galleryName","_padding","_border","_titleIsShown","_footerIsShown","_wantedWidth","_wantedHeight","_touchstartX","_touchendX","_modalId","Math","floor","random","_$element","jQuery","_isBootstrap3","modal","VERSION","h4","btn","header","body","dialog","append","_$modal","_$modalDialog","find","first","_$modalContent","_$modalBody","_$modalHeader","_$modalFooter","_$lightboxContainer","_$lightboxBodyOne","_$lightboxBodyTwo","_calculateBorders","_calculatePadding","data","_$galleryItems","index","on","_navigationalBinder","bind","event","preventDefault","navigateLeft","navigateRight","updateNavigation","_toggleLoading","_handle","call","off","window","remove","_resize","changedTouches","screenX","_swipeGesure","get","value","navigateTo","$nav","addClass","removeClass","keyCode","src","_isImage","_getYoutubeId","_getVimeoId","_getInstagramId","_isMedia","indexOf","response","ajax","url","async","contentType","getResponseHeader","string","match","_this2","$toUse","$current","hasClass","setTimeout","empty","_containerToUse","_updateTitleAndFooter","currentRemote","attr","currentType","_detectRemoteType","_error","_preloadImage","_preloadImageByIndex","_showYoutubeVideo","_showVimeoVideo","_showInstagramVideo","_showHtml5Media","_loadRemoteContent","matches","show","css","top","_totalCssByAttribute","right","bottom","left","attribute","parseInt","caption","html","remote","$containerForElement","id","query","substr","width","height","_showVideoIframe","_getRemoteContentType","mediaType","_this3","disableExternalCheck","_isExternal","load","proxy","trigger","toLowerCase","location","protocol","replace","RegExp","http:","https:","host","message","console","error","startIndex","numberOfTimes","next","$containerForImage","_this4","img","Image","loadingTimeout","onload","clearTimeout","image","onerror","imageAspecRatio","widthBorderAndPadding","addMargin","clientWidth","discountMargin","min","headerHeight","footerHeight","outerHeight","borderPadding","margins","parseFloat","ceil","_handleUpdate","Exception","handleUpdate","_this5","each","$this","_jQueryInterface","noConflict"],"mappings":"CAMC,SAAUA,GAEX,YAIA,SAASC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAFhH,GAAIC,GAAe,WAAe,QAASC,GAAiBC,EAAQC,GAAS,IAAK,GAAIC,GAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,GAAIE,GAAaH,EAAMC,EAAIE,GAAWC,WAAaD,EAAWC,aAAc,EAAOD,EAAWE,cAAe,EAAU,SAAWF,KAAYA,EAAWG,UAAW,GAAMC,OAAOC,eAAeT,EAAQI,EAAWM,IAAKN,IAAiB,MAAO,UAAUR,EAAae,EAAYC,GAAiJ,MAA9HD,IAAYZ,EAAiBH,EAAYiB,UAAWF,G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ox.js"],"names":["_createClass","Constructor","protoProps","staticProps","defineProperties","prototype","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","$","NAME","JQUERY_NO_CONFLICT","Default","Lightbox","jQuery","fn","title","footer","maxWidth","maxHeight","showArrows","wrapping","type","alwaysShowClose","loadingMessage","leftArrow","rightArrow","strings","close","fail","doc","document","onShow","onShown","onHide","onHidden","onNavigate","onContentLoaded","get","value","this","_$element","_$modal","index","_$galleryItems","_galleryIndex","updateNavigation","_handle","_config","call","navigateTo","$nav","_$lightboxContainer","find","addClass","removeClass","modal","event","window","keyCode","navigateRight","navigateLeft","src","_isImage","_getYoutubeId","_getVimeoId","_getInstagramId","_isMedia","indexOf","ajax","url","async","getResponseHeader","element","attr","string","match","_this2","$toUse","_$lightboxBodyTwo","$current","_$lightboxBodyOne","hasClass","setTimeout","empty","_containerToUse","_updateTitleAndFooter","currentRemote","_getSource","currentType","_detectRemoteType","_error","_preloadImage","_preloadImageByIndex","_showYoutubeVideo","_showVimeoVideo","_showInstagramVideo","_showHtml5Media","_loadRemoteContent","matches","show","_$modalDialog","css","append","remove","top","_totalCssByAttribute","right","bottom","left","attribute","parseInt","_$modalContent","_$modalBody","data","caption","_titleIsShown","_$modalHeader","html","_footerIsShown","_$modalFooter","remote","$containerForElement","id","query","substr","width","height","_showVideoIframe","_resize","_$modalArrows","_toggleLoading","contentType","_getRemoteContentType","mediaType","_this3","disableExternalCheck","_isExternal","load","proxy","trigger","toLowerCase","location","protocol","replace","RegExp","http:","https:","host","message","console","error","startIndex","numberOfTimes","next","$containerForImage","_this4","loadingTimeout","img","Image","onload","clearTimeout","image","onerror","_touchendX","_touchstartX","imageAspecRatio","_wantedWidth","_wantedHeight","widthBorderAndPadding","_padding","_border","addMargin","body","clientWidth","discountMargin","Math","min","headerHeight","footerHeight","outerHeight","borderPadding","margins","parseFloat","ceil","_handleUpdate","Exception","handleUpdate","config","_this5","each","$this","extend","_jQueryInterface","noConflict","$element","_this","instance","TypeError","_classCallCheck","_galleryName","_modalId","floor","random","_isBootstrap3","VERSION","h4","btn","dialog","first","_calculateBorders","_calculatePadding","on","_navigationalBinder","bind","preventDefault","off","changedTouches","screenX","_swipeGesure"],"mappings":"CAMC,WAED,aAEA,IAAIA,EAAkW,SAAUC,EAAaC,EAAYC,GAAiJ,OAA9HD,GAAYE,EAAiBH,EAAYI,UAAWH,GAAiBC,GAAaC,EAAiBH,EAAaE,GAAqBF,GAA/f,SAASG,EAAiBE,EAAQC,GAAS,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,IAAIE,EAAaH,EAAMC,GAAIE,EAAWC,WAAaD,EAAWC,aAAc,EAAOD,EAAWE,cAAe,EAAU,UAAWF,IAAYA,EAAWG,UAAW,GAAMC,OAAOC,eAAeT,EAAQI,EAAWM,IAAKN,IAI9U,IAA0BO,EAErBC,EACAC,EAEAC,EA0BAC,EA/BqBJ,EAyqBvBK,OAvqBEJ,EAAO,eACPC,EAAqBF,EAAEM,GAAGL,GAE1BE,EAAU,CACbI,MAAO,GACPC,OAAQ,GACRC,SAAU,KACVC,UAAW,KACXC,YAAY,EACZC,UAAU,EACVC,KAAM,KACNC,iBAAiB,EACjBC,eAAgB,4EAChBC,UAAW,wBACXC,WAAY,wBACZC,QAAS,CACRC,MAAO,QACPC,KAAM,wBACNP,KAAM,uEAEPQ,IAAKC,SACLC,OAAQ,aACRC,QAAS,aACTC,OAAQ,aACRC,SAAU,aACVC,WAAY,aACZC,gBAAiB,cAIjB7C,EAAaqB,EAAU,KAAM,CAAC,CAC7BL,IAAK,UAuBL8B,IAAK,WACJ,OAAO1B,MAgGTpB,EAAaqB,EAAU,CAAC,CACvBL,IAAK,UACL+B,MAAO,WACN,OAAOC,KAAKC,YAEX,CACFjC,IAAK,QACL+B,MAAO,WACN,OAAOC,KAAKE,UAEX,CACFlC,IAAK,aACL+B,MAAO,SAAoBI,GAE1B,GAAIA,EAAQ,GAAKA,EAAQH,KAAKI,eAAe3C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