lightgallery 2.3.0-beta.3 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/README.md +4 -0
  2. package/angular/10/bundles/lightgallery-angular-10.umd.js +34 -1
  3. package/angular/10/bundles/lightgallery-angular-10.umd.js.map +1 -1
  4. package/angular/10/bundles/lightgallery-angular-10.umd.min.js +1 -1
  5. package/angular/10/bundles/lightgallery-angular-10.umd.min.js.map +1 -1
  6. package/angular/10/esm2015/lib/lightgallery-angular.component.js +35 -2
  7. package/angular/10/fesm2015/lightgallery-angular-10.js +34 -1
  8. package/angular/10/fesm2015/lightgallery-angular-10.js.map +1 -1
  9. package/angular/10/lib/lightgallery-angular.component.d.ts +6 -2
  10. package/angular/10/lib/lightgallery-angular.component.d.ts.map +1 -1
  11. package/angular/11/bundles/lightgallery-angular-11.umd.js +34 -1
  12. package/angular/11/bundles/lightgallery-angular-11.umd.js.map +1 -1
  13. package/angular/11/bundles/lightgallery-angular-11.umd.min.js +1 -1
  14. package/angular/11/bundles/lightgallery-angular-11.umd.min.js.map +1 -1
  15. package/angular/11/esm2015/lib/lightgallery-angular.component.js +35 -2
  16. package/angular/11/fesm2015/lightgallery-angular-11.js +34 -1
  17. package/angular/11/fesm2015/lightgallery-angular-11.js.map +1 -1
  18. package/angular/11/lib/lightgallery-angular.component.d.ts +6 -2
  19. package/angular/11/lib/lightgallery-angular.component.d.ts.map +1 -1
  20. package/angular/9/bundles/lightgallery-angular-9.umd.js +34 -1
  21. package/angular/9/bundles/lightgallery-angular-9.umd.js.map +1 -1
  22. package/angular/9/bundles/lightgallery-angular-9.umd.min.js +1 -1
  23. package/angular/9/bundles/lightgallery-angular-9.umd.min.js.map +1 -1
  24. package/angular/9/esm2015/lib/lightgallery-angular.component.js +35 -2
  25. package/angular/9/esm5/lib/lightgallery-angular.component.js +35 -2
  26. package/angular/9/fesm2015/lightgallery-angular-9.js +34 -1
  27. package/angular/9/fesm2015/lightgallery-angular-9.js.map +1 -1
  28. package/angular/9/fesm5/lightgallery-angular-9.js +34 -1
  29. package/angular/9/fesm5/lightgallery-angular-9.js.map +1 -1
  30. package/angular/9/lib/lightgallery-angular.component.d.ts +6 -2
  31. package/angular/bundles/lightgallery-angular.umd.js +34 -1
  32. package/angular/bundles/lightgallery-angular.umd.js.map +1 -1
  33. package/angular/esm2015/lib/lightgallery-angular.component.js +35 -2
  34. package/angular/fesm2015/lightgallery-angular.js +34 -1
  35. package/angular/fesm2015/lightgallery-angular.js.map +1 -1
  36. package/angular/lib/lightgallery-angular.component.d.ts +6 -2
  37. package/angular/lib/lightgallery-angular.component.d.ts.map +1 -1
  38. package/css/lightgallery-bundle.css +0 -1
  39. package/css/lightgallery-bundle.min.css +1 -1
  40. package/css/lightgallery-core.css +0 -1
  41. package/css/lightgallery.css +0 -1
  42. package/lg-events.d.ts +44 -0
  43. package/lg-settings.d.ts +30 -2
  44. package/lg-utils.d.ts +16 -4
  45. package/lib/lg-events.js +3 -0
  46. package/lib/lg-events.js.map +1 -1
  47. package/lib/lg-settings.js +12 -1
  48. package/lib/lg-settings.js.map +1 -1
  49. package/lib/lg-utils.js +4 -4
  50. package/lib/lg-utils.js.map +1 -1
  51. package/lib/lgQuery.js +29 -20
  52. package/lib/lgQuery.js.map +1 -1
  53. package/lib/lightgallery.js +30 -16
  54. package/lib/lightgallery.js.map +1 -1
  55. package/lib/plugins/autoplay/lg-autoplay-settings.js +3 -0
  56. package/lib/plugins/autoplay/lg-autoplay-settings.js.map +1 -1
  57. package/lib/plugins/autoplay/lg-autoplay.js +20 -11
  58. package/lib/plugins/autoplay/lg-autoplay.js.map +1 -1
  59. package/lib/plugins/comment/lg-comment-settings.js +3 -0
  60. package/lib/plugins/comment/lg-comment-settings.js.map +1 -1
  61. package/lib/plugins/comment/lg-comment.js +1 -1
  62. package/lib/plugins/comment/lg-comment.js.map +1 -1
  63. package/lib/plugins/fullscreen/lg-fullscreen-settings.js +3 -0
  64. package/lib/plugins/fullscreen/lg-fullscreen-settings.js.map +1 -1
  65. package/lib/plugins/fullscreen/lg-fullscreen.js +1 -2
  66. package/lib/plugins/fullscreen/lg-fullscreen.js.map +1 -1
  67. package/lib/plugins/rotate/lg-rotate-settings.js +6 -0
  68. package/lib/plugins/rotate/lg-rotate-settings.js.map +1 -1
  69. package/lib/plugins/rotate/lg-rotate.js +4 -8
  70. package/lib/plugins/rotate/lg-rotate.js.map +1 -1
  71. package/lib/plugins/share/lg-share-settings.js +1 -0
  72. package/lib/plugins/share/lg-share-settings.js.map +1 -1
  73. package/lib/plugins/share/lg-share.js +1 -1
  74. package/lib/plugins/share/lg-share.js.map +1 -1
  75. package/lib/plugins/thumbnail/lg-thumbnail-settings.js +3 -0
  76. package/lib/plugins/thumbnail/lg-thumbnail-settings.js.map +1 -1
  77. package/lib/plugins/thumbnail/lg-thumbnail.js +3 -1
  78. package/lib/plugins/thumbnail/lg-thumbnail.js.map +1 -1
  79. package/lib/plugins/zoom/lg-zoom-settings.js +5 -0
  80. package/lib/plugins/zoom/lg-zoom-settings.js.map +1 -1
  81. package/lib/plugins/zoom/lg-zoom.js +2 -2
  82. package/lib/plugins/zoom/lg-zoom.js.map +1 -1
  83. package/lightgallery.d.ts +1 -1
  84. package/lightgallery.es5.js +172 -135
  85. package/lightgallery.es5.js.map +1 -1
  86. package/lightgallery.min.js +2 -2
  87. package/lightgallery.umd.js +172 -135
  88. package/lightgallery.umd.js.map +1 -1
  89. package/lit/lightgallery.esm.js +7 -7
  90. package/lit/lightgallery.umd.js +3 -3
  91. package/package.json +1 -1
  92. package/plugins/autoplay/lg-autoplay-settings.d.ts +7 -0
  93. package/plugins/autoplay/lg-autoplay.d.ts +2 -2
  94. package/plugins/autoplay/lg-autoplay.es5.js +27 -12
  95. package/plugins/autoplay/lg-autoplay.es5.js.map +1 -1
  96. package/plugins/autoplay/lg-autoplay.min.js +2 -2
  97. package/plugins/autoplay/lg-autoplay.umd.js +27 -12
  98. package/plugins/autoplay/lg-autoplay.umd.js.map +1 -1
  99. package/plugins/comment/lg-comment-settings.d.ts +7 -0
  100. package/plugins/comment/lg-comment.es5.js +8 -2
  101. package/plugins/comment/lg-comment.es5.js.map +1 -1
  102. package/plugins/comment/lg-comment.min.js +2 -2
  103. package/plugins/comment/lg-comment.umd.js +8 -2
  104. package/plugins/comment/lg-comment.umd.js.map +1 -1
  105. package/plugins/fullscreen/lg-fullscreen-settings.d.ts +7 -0
  106. package/plugins/fullscreen/lg-fullscreen.es5.js +5 -3
  107. package/plugins/fullscreen/lg-fullscreen.es5.js.map +1 -1
  108. package/plugins/fullscreen/lg-fullscreen.min.js +2 -2
  109. package/plugins/fullscreen/lg-fullscreen.umd.js +5 -3
  110. package/plugins/fullscreen/lg-fullscreen.umd.js.map +1 -1
  111. package/plugins/hash/lg-hash.es5.js +4 -1
  112. package/plugins/hash/lg-hash.es5.js.map +1 -1
  113. package/plugins/hash/lg-hash.min.js +1 -1
  114. package/plugins/hash/lg-hash.umd.js +4 -1
  115. package/plugins/hash/lg-hash.umd.js.map +1 -1
  116. package/plugins/mediumZoom/lg-medium-zoom.es5.js +4 -1
  117. package/plugins/mediumZoom/lg-medium-zoom.es5.js.map +1 -1
  118. package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
  119. package/plugins/mediumZoom/lg-medium-zoom.umd.js +4 -1
  120. package/plugins/mediumZoom/lg-medium-zoom.umd.js.map +1 -1
  121. package/plugins/pager/lg-pager.es5.js +4 -1
  122. package/plugins/pager/lg-pager.es5.js.map +1 -1
  123. package/plugins/pager/lg-pager.min.js +1 -1
  124. package/plugins/pager/lg-pager.umd.js +4 -1
  125. package/plugins/pager/lg-pager.umd.js.map +1 -1
  126. package/plugins/relativeCaption/lg-relative-caption.es5.js +4 -1
  127. package/plugins/relativeCaption/lg-relative-caption.es5.js.map +1 -1
  128. package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
  129. package/plugins/relativeCaption/lg-relative-caption.umd.js +4 -1
  130. package/plugins/relativeCaption/lg-relative-caption.umd.js.map +1 -1
  131. package/plugins/rotate/lg-rotate-settings.d.ts +11 -0
  132. package/plugins/rotate/lg-rotate.es5.js +14 -9
  133. package/plugins/rotate/lg-rotate.es5.js.map +1 -1
  134. package/plugins/rotate/lg-rotate.min.js +2 -2
  135. package/plugins/rotate/lg-rotate.umd.js +14 -9
  136. package/plugins/rotate/lg-rotate.umd.js.map +1 -1
  137. package/plugins/share/lg-share-settings.d.ts +8 -0
  138. package/plugins/share/lg-share.es5.js +6 -2
  139. package/plugins/share/lg-share.es5.js.map +1 -1
  140. package/plugins/share/lg-share.min.js +2 -2
  141. package/plugins/share/lg-share.umd.js +6 -2
  142. package/plugins/share/lg-share.umd.js.map +1 -1
  143. package/plugins/thumbnail/lg-thumbnail-settings.d.ts +8 -0
  144. package/plugins/thumbnail/lg-thumbnail.es5.js +10 -2
  145. package/plugins/thumbnail/lg-thumbnail.es5.js.map +1 -1
  146. package/plugins/thumbnail/lg-thumbnail.min.js +2 -2
  147. package/plugins/thumbnail/lg-thumbnail.umd.js +10 -2
  148. package/plugins/thumbnail/lg-thumbnail.umd.js.map +1 -1
  149. package/plugins/video/lg-video.es5.js +4 -1
  150. package/plugins/video/lg-video.es5.js.map +1 -1
  151. package/plugins/video/lg-video.min.js +1 -1
  152. package/plugins/video/lg-video.umd.js +4 -1
  153. package/plugins/video/lg-video.umd.js.map +1 -1
  154. package/plugins/zoom/lg-zoom-settings.d.ts +9 -0
  155. package/plugins/zoom/lg-zoom.es5.js +11 -3
  156. package/plugins/zoom/lg-zoom.es5.js.map +1 -1
  157. package/plugins/zoom/lg-zoom.min.js +2 -2
  158. package/plugins/zoom/lg-zoom.umd.js +11 -3
  159. package/plugins/zoom/lg-zoom.umd.js.map +1 -1
  160. package/react/Lightgallery.d.ts +5 -1
  161. package/react/Lightgallery.es5.js +201 -136
  162. package/react/Lightgallery.es5.js.map +1 -1
  163. package/react/Lightgallery.umd.js +201 -136
  164. package/react/Lightgallery.umd.js.map +1 -1
  165. package/scss/lightgallery-core.scss +0 -1
  166. package/vue/LightGallery.vue.d.ts +5 -1
  167. package/vue/LightGalleryVue.common.js +314 -264
  168. package/vue/LightGalleryVue.common.js.map +1 -1
  169. package/vue/LightGalleryVue.umd.js +314 -264
  170. package/vue/LightGalleryVue.umd.js.map +1 -1
  171. package/vue/LightGalleryVue.umd.min.js +2 -2
  172. package/vue/LightGalleryVue.umd.min.js.map +1 -1
@@ -4850,7 +4850,7 @@ if (typeof window !== 'undefined') {
4850
4850
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
4851
4851
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
4852
4852
 
4853
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/LightGallery.vue?vue&type=template&id=b7aaf09c
4853
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/LightGallery.vue?vue&type=template&id=47173610
4854
4854
 
4855
4855
  var _hoisted_1 = {
4856
4856
  ref: "container",
@@ -4859,7 +4859,7 @@ var _hoisted_1 = {
4859
4859
  function render(_ctx, _cache, $props, $setup, $data, $options) {
4860
4860
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512);
4861
4861
  }
4862
- // CONCATENATED MODULE: ./src/components/LightGallery.vue?vue&type=template&id=b7aaf09c
4862
+ // CONCATENATED MODULE: ./src/components/LightGallery.vue?vue&type=template&id=47173610
4863
4863
 
4864
4864
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
4865
4865
  var es_object_keys = __webpack_require__("b64b");
@@ -5805,6 +5805,116 @@ var es_array_concat = __webpack_require__("99af");
5805
5805
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
5806
5806
  var es_array_find = __webpack_require__("7db0");
5807
5807
 
5808
+ // CONCATENATED MODULE: ../src/lg-events.ts
5809
+ /**
5810
+ * List of lightGallery events
5811
+ * All events should be documented here
5812
+ * Below interfaces are used to build the website documentations
5813
+ * */
5814
+ var lGEvents = {
5815
+ afterAppendSlide: 'lgAfterAppendSlide',
5816
+ init: 'lgInit',
5817
+ hasVideo: 'lgHasVideo',
5818
+ containerResize: 'lgContainerResize',
5819
+ updateSlides: 'lgUpdateSlides',
5820
+ afterAppendSubHtml: 'lgAfterAppendSubHtml',
5821
+ beforeOpen: 'lgBeforeOpen',
5822
+ afterOpen: 'lgAfterOpen',
5823
+ slideItemLoad: 'lgSlideItemLoad',
5824
+ beforeSlide: 'lgBeforeSlide',
5825
+ afterSlide: 'lgAfterSlide',
5826
+ posterClick: 'lgPosterClick',
5827
+ dragStart: 'lgDragStart',
5828
+ dragMove: 'lgDragMove',
5829
+ dragEnd: 'lgDragEnd',
5830
+ beforeNextSlide: 'lgBeforeNextSlide',
5831
+ beforePrevSlide: 'lgBeforePrevSlide',
5832
+ beforeClose: 'lgBeforeClose',
5833
+ afterClose: 'lgAfterClose',
5834
+ rotateLeft: 'lgRotateLeft',
5835
+ rotateRight: 'lgRotateRight',
5836
+ flipHorizontal: 'lgFlipHorizontal',
5837
+ flipVertical: 'lgFlipVertical',
5838
+ autoplay: 'lgAutoplay',
5839
+ autoplayStart: 'lgAutoplayStart',
5840
+ autoplayStop: 'lgAutoplayStop'
5841
+ };
5842
+ // CONCATENATED MODULE: ../src/lg-settings.ts
5843
+ var lightGalleryCoreSettings = {
5844
+ mode: 'lg-slide',
5845
+ easing: 'ease',
5846
+ speed: 400,
5847
+ licenseKey: '0000-0000-000-0000',
5848
+ height: '100%',
5849
+ width: '100%',
5850
+ addClass: '',
5851
+ startClass: 'lg-start-zoom',
5852
+ backdropDuration: 300,
5853
+ container: '',
5854
+ startAnimationDuration: 400,
5855
+ zoomFromOrigin: true,
5856
+ hideBarsDelay: 0,
5857
+ showBarsAfter: 10000,
5858
+ slideDelay: 0,
5859
+ supportLegacyBrowser: true,
5860
+ allowMediaOverlap: false,
5861
+ videoMaxSize: '1280-720',
5862
+ loadYouTubePoster: true,
5863
+ defaultCaptionHeight: 0,
5864
+ ariaLabelledby: '',
5865
+ ariaDescribedby: '',
5866
+ closable: true,
5867
+ swipeToClose: true,
5868
+ closeOnTap: true,
5869
+ showCloseIcon: true,
5870
+ showMaximizeIcon: false,
5871
+ loop: true,
5872
+ escKey: true,
5873
+ keyPress: true,
5874
+ controls: true,
5875
+ slideEndAnimation: true,
5876
+ hideControlOnEnd: false,
5877
+ mousewheel: false,
5878
+ getCaptionFromTitleOrAlt: true,
5879
+ appendSubHtmlTo: '.lg-sub-html',
5880
+ subHtmlSelectorRelative: false,
5881
+ preload: 2,
5882
+ numberOfSlideItemsInDom: 10,
5883
+ selector: '',
5884
+ selectWithin: '',
5885
+ nextHtml: '',
5886
+ prevHtml: '',
5887
+ index: 0,
5888
+ iframeWidth: '100%',
5889
+ iframeHeight: '100%',
5890
+ iframeMaxWidth: '100%',
5891
+ iframeMaxHeight: '100%',
5892
+ download: true,
5893
+ counter: true,
5894
+ appendCounterTo: '.lg-toolbar',
5895
+ swipeThreshold: 50,
5896
+ enableSwipe: true,
5897
+ enableDrag: true,
5898
+ dynamic: false,
5899
+ dynamicEl: [],
5900
+ extraProps: [],
5901
+ exThumbImage: '',
5902
+ isMobile: undefined,
5903
+ mobileSettings: {
5904
+ controls: false,
5905
+ showCloseIcon: false,
5906
+ download: false
5907
+ },
5908
+ plugins: [],
5909
+ strings: {
5910
+ closeGallery: 'Close gallery',
5911
+ toggleMaximize: 'Toggle maximize',
5912
+ previousSlide: 'Previous slide',
5913
+ nextSlide: 'Next slide',
5914
+ download: 'Download',
5915
+ playVideo: 'Play video'
5916
+ }
5917
+ };
5808
5918
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
5809
5919
  function arrayLikeToArray_arrayLikeToArray(arr, len) {
5810
5920
  if (len == null || len > arr.length) len = arr.length;
@@ -5915,28 +6025,30 @@ var es_regexp_to_string = __webpack_require__("25f0");
5915
6025
 
5916
6026
 
5917
6027
 
5918
- (function () {
5919
- if (typeof window.CustomEvent === 'function') return false;
6028
+ function initLgPolyfills() {
6029
+ (function () {
6030
+ if (typeof window.CustomEvent === 'function') return false;
5920
6031
 
5921
- function CustomEvent(event, params) {
5922
- params = params || {
5923
- bubbles: false,
5924
- cancelable: false,
5925
- detail: null
5926
- };
5927
- var evt = document.createEvent('CustomEvent');
5928
- evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
5929
- return evt;
5930
- }
6032
+ function CustomEvent(event, params) {
6033
+ params = params || {
6034
+ bubbles: false,
6035
+ cancelable: false,
6036
+ detail: null
6037
+ };
6038
+ var evt = document.createEvent('CustomEvent');
6039
+ evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
6040
+ return evt;
6041
+ }
5931
6042
 
5932
- window.CustomEvent = CustomEvent;
5933
- })();
6043
+ window.CustomEvent = CustomEvent;
6044
+ })();
5934
6045
 
5935
- (function () {
5936
- if (!Element.prototype.matches) {
5937
- Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
5938
- }
5939
- })();
6046
+ (function () {
6047
+ if (!Element.prototype.matches) {
6048
+ Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
6049
+ }
6050
+ })();
6051
+ }
5940
6052
 
5941
6053
  var lgQuery_lgQuery = /*#__PURE__*/function () {
5942
6054
  function lgQuery(selector) {
@@ -6238,7 +6350,9 @@ var lgQuery_lgQuery = /*#__PURE__*/function () {
6238
6350
  var _this5 = this;
6239
6351
 
6240
6352
  fetch(url).then(function (res) {
6241
- _this5.selector.innerHTML = res;
6353
+ return res.text();
6354
+ }).then(function (html) {
6355
+ _this5.selector.innerHTML = html;
6242
6356
  });
6243
6357
  return this;
6244
6358
  }
@@ -6377,6 +6491,7 @@ var lgQuery_lgQuery = /*#__PURE__*/function () {
6377
6491
  }();
6378
6492
  lgQuery_lgQuery.eventListeners = {};
6379
6493
  function $LG(selector) {
6494
+ initLgPolyfills();
6380
6495
  return new lgQuery_lgQuery(selector);
6381
6496
  }
6382
6497
  // CONCATENATED MODULE: ../src/lg-utils.ts
@@ -6488,9 +6603,9 @@ var utils = {
6488
6603
  var transform = 'translate3d(' + (x *= -1) + 'px, ' + (y *= -1) + 'px, 0) scale3d(' + scX + ', ' + scY + ', 1)';
6489
6604
  return transform;
6490
6605
  },
6491
- getIframeMarkup: function getIframeMarkup(iframeWidth, iframeHeight, src, iframeTitle) {
6606
+ getIframeMarkup: function getIframeMarkup(iframeWidth, iframeHeight, iframeMaxWidth, iframeMaxHeight, src, iframeTitle) {
6492
6607
  var title = iframeTitle ? 'title="' + iframeTitle + '"' : '';
6493
- return "<div class=\"lg-video-cont lg-has-iframe\" style=\"width:".concat(iframeWidth, "; height: ").concat(iframeHeight, "\">\n <iframe class=\"lg-object\" frameborder=\"0\" ").concat(title, " src=\"").concat(src, "\" allowfullscreen=\"true\"></iframe>\n </div>");
6608
+ return "<div class=\"lg-video-cont lg-has-iframe\" style=\"width:".concat(iframeWidth, "; max-width:").concat(iframeMaxWidth, "; height: ").concat(iframeHeight, "; max-height:").concat(iframeMaxHeight, "\">\n <iframe class=\"lg-object\" frameborder=\"0\" ").concat(title, " src=\"").concat(src, "\" allowfullscreen=\"true\"></iframe>\n </div>");
6494
6609
  },
6495
6610
  getImgMarkup: function getImgMarkup(index, src, altAttr, srcset, sizes, sources) {
6496
6611
  var srcsetAttr = srcset ? "srcset=\"".concat(srcset, "\"") : '';
@@ -6560,7 +6675,7 @@ var utils = {
6560
6675
 
6561
6676
  return true;
6562
6677
  },
6563
- getVideoPosterMarkup: function getVideoPosterMarkup(_poster, dummyImg, videoContStyle, _isVideo) {
6678
+ getVideoPosterMarkup: function getVideoPosterMarkup(_poster, dummyImg, videoContStyle, playVideoString, _isVideo) {
6564
6679
  var videoClass = '';
6565
6680
 
6566
6681
  if (_isVideo && _isVideo.youtube) {
@@ -6571,7 +6686,7 @@ var utils = {
6571
6686
  videoClass = 'lg-has-html5';
6572
6687
  }
6573
6688
 
6574
- return "<div class=\"lg-video-cont ".concat(videoClass, "\" style=\"").concat(videoContStyle, "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"Play video\"\n role=\"img\"\n class=\"lg-video-play-icon\"\n >\n <title>Play video</title>\n <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\n </svg>\n <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\n <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\n </svg>\n </div>\n ").concat(dummyImg || '', "\n <img class=\"lg-object lg-video-poster\" src=\"").concat(_poster, "\" />\n </div>");
6689
+ return "<div class=\"lg-video-cont ".concat(videoClass, "\" style=\"").concat(videoContStyle, "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"").concat(playVideoString, "\"\n role=\"img\"\n class=\"lg-video-play-icon\"\n >\n <title>").concat(playVideoString, "</title>\n <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\n </svg>\n <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\n <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\n </svg>\n </div>\n ").concat(dummyImg || '', "\n <img class=\"lg-object lg-video-poster\" src=\"").concat(_poster, "\" />\n </div>");
6575
6690
  },
6576
6691
 
6577
6692
  /**
@@ -6663,102 +6778,6 @@ var utils = {
6663
6778
  }
6664
6779
  };
6665
6780
  /* harmony default export */ var lg_utils = (utils);
6666
- // CONCATENATED MODULE: ../src/lg-settings.ts
6667
- var lightGalleryCoreSettings = {
6668
- mode: 'lg-slide',
6669
- easing: 'ease',
6670
- speed: 400,
6671
- licenseKey: '0000-0000-000-0000',
6672
- height: '100%',
6673
- width: '100%',
6674
- addClass: '',
6675
- startClass: 'lg-start-zoom',
6676
- backdropDuration: 300,
6677
- container: document.body,
6678
- startAnimationDuration: 400,
6679
- zoomFromOrigin: true,
6680
- hideBarsDelay: 0,
6681
- showBarsAfter: 10000,
6682
- slideDelay: 0,
6683
- supportLegacyBrowser: true,
6684
- allowMediaOverlap: false,
6685
- videoMaxSize: '1280-720',
6686
- defaultCaptionHeight: 0,
6687
- ariaLabelledby: '',
6688
- ariaDescribedby: '',
6689
- closable: true,
6690
- swipeToClose: true,
6691
- closeOnTap: true,
6692
- showCloseIcon: true,
6693
- showMaximizeIcon: false,
6694
- loop: true,
6695
- escKey: true,
6696
- keyPress: true,
6697
- controls: true,
6698
- slideEndAnimation: true,
6699
- hideControlOnEnd: false,
6700
- mousewheel: false,
6701
- getCaptionFromTitleOrAlt: true,
6702
- appendSubHtmlTo: '.lg-sub-html',
6703
- subHtmlSelectorRelative: false,
6704
- preload: 2,
6705
- numberOfSlideItemsInDom: 10,
6706
- selector: '',
6707
- selectWithin: '',
6708
- nextHtml: '',
6709
- prevHtml: '',
6710
- index: 0,
6711
- iframeWidth: '100%',
6712
- iframeHeight: '100%',
6713
- download: true,
6714
- counter: true,
6715
- appendCounterTo: '.lg-toolbar',
6716
- swipeThreshold: 50,
6717
- enableSwipe: true,
6718
- enableDrag: true,
6719
- dynamic: false,
6720
- dynamicEl: [],
6721
- extraProps: [],
6722
- exThumbImage: '',
6723
- isMobile: undefined,
6724
- mobileSettings: {
6725
- controls: false,
6726
- showCloseIcon: false,
6727
- download: false
6728
- },
6729
- plugins: []
6730
- };
6731
- // CONCATENATED MODULE: ../src/lg-events.ts
6732
- /**
6733
- * List of lightGallery events
6734
- * All events should be documented here
6735
- * Below interfaces are used to build the website documentations
6736
- * */
6737
- var lGEvents = {
6738
- afterAppendSlide: 'lgAfterAppendSlide',
6739
- init: 'lgInit',
6740
- hasVideo: 'lgHasVideo',
6741
- containerResize: 'lgContainerResize',
6742
- updateSlides: 'lgUpdateSlides',
6743
- afterAppendSubHtml: 'lgAfterAppendSubHtml',
6744
- beforeOpen: 'lgBeforeOpen',
6745
- afterOpen: 'lgAfterOpen',
6746
- slideItemLoad: 'lgSlideItemLoad',
6747
- beforeSlide: 'lgBeforeSlide',
6748
- afterSlide: 'lgAfterSlide',
6749
- posterClick: 'lgPosterClick',
6750
- dragStart: 'lgDragStart',
6751
- dragMove: 'lgDragMove',
6752
- dragEnd: 'lgDragEnd',
6753
- beforeNextSlide: 'lgBeforeNextSlide',
6754
- beforePrevSlide: 'lgBeforePrevSlide',
6755
- beforeClose: 'lgBeforeClose',
6756
- afterClose: 'lgAfterClose',
6757
- rotateLeft: 'lgRotateLeft',
6758
- rotateRight: 'lgRotateRight',
6759
- flipHorizontal: 'lgFlipHorizontal',
6760
- flipVertical: 'lgFlipVertical'
6761
- };
6762
6781
  // CONCATENATED MODULE: ../src/lightgallery.ts
6763
6782
 
6764
6783
 
@@ -6984,7 +7003,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
6984
7003
  var subHtmlCont = ''; // Create controls
6985
7004
 
6986
7005
  if (this.settings.controls) {
6987
- controls = "<button type=\"button\" id=\"".concat(this.getIdName('lg-prev'), "\" aria-label=\"Previous slide\" class=\"lg-prev lg-icon\"> ").concat(this.settings.prevHtml, " </button>\n <button type=\"button\" id=\"").concat(this.getIdName('lg-next'), "\" aria-label=\"Next slide\" class=\"lg-next lg-icon\"> ").concat(this.settings.nextHtml, " </button>");
7006
+ controls = "<button type=\"button\" id=\"".concat(this.getIdName('lg-prev'), "\" aria-label=\"").concat(this.settings.strings['previousSlide'], "\" class=\"lg-prev lg-icon\"> ").concat(this.settings.prevHtml, " </button>\n <button type=\"button\" id=\"").concat(this.getIdName('lg-next'), "\" aria-label=\"").concat(this.settings.strings['nextSlide'], "\" class=\"lg-next lg-icon\"> ").concat(this.settings.nextHtml, " </button>");
6988
7007
  }
6989
7008
 
6990
7009
  if (this.settings.appendSubHtmlTo !== '.lg-item') {
@@ -7001,10 +7020,15 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7001
7020
  var ariaLabelledby = this.settings.ariaLabelledby ? 'aria-labelledby="' + this.settings.ariaLabelledby + '"' : '';
7002
7021
  var ariaDescribedby = this.settings.ariaDescribedby ? 'aria-describedby="' + this.settings.ariaDescribedby + '"' : '';
7003
7022
  var containerClassName = "lg-container ".concat(this.settings.addClass, " ").concat(document.body !== this.settings.container ? 'lg-inline' : '');
7004
- var closeIcon = this.settings.closable && this.settings.showCloseIcon ? "<button type=\"button\" aria-label=\"Close gallery\" id=\"".concat(this.getIdName('lg-close'), "\" class=\"lg-close lg-icon\"></button>") : '';
7005
- var maximizeIcon = this.settings.showMaximizeIcon ? "<button type=\"button\" aria-label=\"Toggle maximize\" id=\"".concat(this.getIdName('lg-maximize'), "\" class=\"lg-maximize lg-icon\"></button>") : '';
7023
+ var closeIcon = this.settings.closable && this.settings.showCloseIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['closeGallery'], "\" id=\"").concat(this.getIdName('lg-close'), "\" class=\"lg-close lg-icon\"></button>") : '';
7024
+ var maximizeIcon = this.settings.showMaximizeIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['toggleMaximize'], "\" id=\"").concat(this.getIdName('lg-maximize'), "\" class=\"lg-maximize lg-icon\"></button>") : '';
7006
7025
  var template = "\n <div class=\"".concat(containerClassName, "\" id=\"").concat(this.getIdName('lg-container'), "\" tabindex=\"-1\" aria-modal=\"true\" ").concat(ariaLabelledby, " ").concat(ariaDescribedby, " role=\"dialog\"\n >\n <div id=\"").concat(this.getIdName('lg-backdrop'), "\" class=\"lg-backdrop\"></div>\n\n <div id=\"").concat(this.getIdName('lg-outer'), "\" class=\"lg-outer lg-use-css3 lg-css3 lg-hide-items ").concat(addClasses, " \">\n\n <div id=\"").concat(this.getIdName('lg-content'), "\" class=\"lg-content\">\n <div id=\"").concat(this.getIdName('lg-inner'), "\" class=\"lg-inner\">\n </div>\n ").concat(controls, "\n </div>\n <div id=\"").concat(this.getIdName('lg-toolbar'), "\" class=\"lg-toolbar lg-group\">\n ").concat(maximizeIcon, "\n ").concat(closeIcon, "\n </div>\n ").concat(this.settings.appendSubHtmlTo === '.lg-outer' ? subHtmlCont : '', "\n <div id=\"").concat(this.getIdName('lg-components'), "\" class=\"lg-components\">\n ").concat(this.settings.appendSubHtmlTo === '.lg-sub-html' ? subHtmlCont : '', "\n </div>\n </div>\n </div>\n ");
7007
- $LG(this.settings.container).css('position', 'relative').append(template);
7026
+ $LG(this.settings.container).append(template);
7027
+
7028
+ if (document.body !== this.settings.container) {
7029
+ $LG(this.settings.container).css('position', 'relative');
7030
+ }
7031
+
7008
7032
  this.outer = this.getElementById('lg-outer');
7009
7033
  this.$lgComponents = this.getElementById('lg-components');
7010
7034
  this.$backdrop = this.getElementById('lg-backdrop');
@@ -7025,7 +7049,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7025
7049
  this.$inner.css('transition-duration', this.settings.speed + 'ms');
7026
7050
 
7027
7051
  if (this.settings.download) {
7028
- this.$toolbar.append("<a id=\"".concat(this.getIdName('lg-download'), "\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download\" download class=\"lg-download lg-icon\"></a>"));
7052
+ this.$toolbar.append("<a id=\"".concat(this.getIdName('lg-download'), "\" target=\"_blank\" rel=\"noopener\" aria-label=\"").concat(this.settings.strings['download'], "\" download class=\"lg-download lg-icon\"></a>"));
7029
7053
  }
7030
7054
 
7031
7055
  this.counter();
@@ -7604,8 +7628,14 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7604
7628
  }, {
7605
7629
  key: "addSlideVideoInfo",
7606
7630
  value: function addSlideVideoInfo(items) {
7631
+ var _this9 = this;
7632
+
7607
7633
  items.forEach(function (element, index) {
7608
7634
  element.__slideVideoInfo = lg_utils.isVideo(element.src, !!element.video, index);
7635
+
7636
+ if (element.__slideVideoInfo && _this9.settings.loadYouTubePoster && !element.poster && element.__slideVideoInfo.youtube) {
7637
+ element.poster = "//img.youtube.com/vi/".concat(element.__slideVideoInfo.youtube[1], "/maxresdefault.jpg");
7638
+ }
7609
7639
  });
7610
7640
  }
7611
7641
  /**
@@ -7618,7 +7648,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7618
7648
  }, {
7619
7649
  key: "loadContent",
7620
7650
  value: function loadContent(index, rec) {
7621
- var _this9 = this;
7651
+ var _this10 = this;
7622
7652
 
7623
7653
  var currentGalleryItem = this.galleryItems[index];
7624
7654
  var $currentSlide = $LG(this.getSlideItemId(index));
@@ -7661,7 +7691,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7661
7691
  }
7662
7692
 
7663
7693
  if (iframe) {
7664
- var markup = lg_utils.getIframeMarkup(this.settings.iframeWidth, this.settings.iframeHeight, src, currentGalleryItem.iframeTitle);
7694
+ var markup = lg_utils.getIframeMarkup(this.settings.iframeWidth, this.settings.iframeHeight, this.settings.iframeMaxWidth, this.settings.iframeMaxHeight, src, currentGalleryItem.iframeTitle);
7665
7695
  $currentSlide.prepend(markup);
7666
7696
  } else if (poster) {
7667
7697
  var dummyImg = '';
@@ -7671,7 +7701,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7671
7701
  dummyImg = this.getDummyImageContent($currentSlide, index, '');
7672
7702
  }
7673
7703
 
7674
- var _markup = lg_utils.getVideoPosterMarkup(poster, dummyImg || '', lgVideoStyle, videoInfo);
7704
+ var _markup = lg_utils.getVideoPosterMarkup(poster, dummyImg || '', lgVideoStyle, this.settings.strings['playVideo'], videoInfo);
7675
7705
 
7676
7706
  $currentSlide.prepend(_markup);
7677
7707
  } else if (videoInfo) {
@@ -7721,24 +7751,24 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7721
7751
 
7722
7752
  if (!$currentSlide.hasClass('lg-loaded')) {
7723
7753
  setTimeout(function () {
7724
- if (_this9.getSlideType(currentGalleryItem) === 'image') {
7754
+ if (_this10.getSlideType(currentGalleryItem) === 'image') {
7725
7755
  $currentSlide.find('.lg-img-wrap').append(lg_utils.getImgMarkup(index, src, '', srcset, sizes, currentGalleryItem.sources));
7726
7756
 
7727
7757
  if (srcset || sources) {
7728
7758
  var _$img = $currentSlide.find('.lg-object');
7729
7759
 
7730
- _this9.initPictureFill(_$img);
7760
+ _this10.initPictureFill(_$img);
7731
7761
  }
7732
7762
  }
7733
7763
 
7734
- if (_this9.getSlideType(currentGalleryItem) === 'image' || _this9.getSlideType(currentGalleryItem) === 'video' && poster) {
7735
- _this9.onLgObjectLoad($currentSlide, index, delay, _speed, true, false); // load remaining slides once the slide is completely loaded
7764
+ if (_this10.getSlideType(currentGalleryItem) === 'image' || _this10.getSlideType(currentGalleryItem) === 'video' && poster) {
7765
+ _this10.onLgObjectLoad($currentSlide, index, delay, _speed, true, false); // load remaining slides once the slide is completely loaded
7736
7766
 
7737
7767
 
7738
- _this9.onSlideObjectLoad($currentSlide, !!(videoInfo && videoInfo.html5 && !poster), function () {
7739
- _this9.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
7768
+ _this10.onSlideObjectLoad($currentSlide, !!(videoInfo && videoInfo.html5 && !poster), function () {
7769
+ _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
7740
7770
  }, function () {
7741
- _this9.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
7771
+ _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
7742
7772
  });
7743
7773
  }
7744
7774
  }, this.settings.startAnimationDuration + 100);
@@ -7766,7 +7796,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7766
7796
  if (rec === true) {
7767
7797
  if (!$currentSlide.hasClass('lg-complete_')) {
7768
7798
  $currentSlide.find('.lg-object').first().on('load.lg error.lg', function () {
7769
- _this9.preload(index);
7799
+ _this10.preload(index);
7770
7800
  });
7771
7801
  } else {
7772
7802
  this.preload(index);
@@ -7784,23 +7814,23 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7784
7814
  }, {
7785
7815
  key: "loadContentOnFirstSlideLoad",
7786
7816
  value: function loadContentOnFirstSlideLoad(index, $currentSlide, speed) {
7787
- var _this10 = this;
7817
+ var _this11 = this;
7788
7818
 
7789
7819
  setTimeout(function () {
7790
7820
  $currentSlide.find('.lg-dummy-img').remove();
7791
7821
  $currentSlide.removeClass('lg-first-slide');
7792
7822
 
7793
- _this10.outer.removeClass('lg-first-slide-loading');
7823
+ _this11.outer.removeClass('lg-first-slide-loading');
7794
7824
 
7795
- _this10.isDummyImageRemoved = true;
7825
+ _this11.isDummyImageRemoved = true;
7796
7826
 
7797
- _this10.preload(index);
7827
+ _this11.preload(index);
7798
7828
  }, speed + 300);
7799
7829
  }
7800
7830
  }, {
7801
7831
  key: "getItemsToBeInsertedToDom",
7802
7832
  value: function getItemsToBeInsertedToDom(index, prevIndex) {
7803
- var _this11 = this;
7833
+ var _this12 = this;
7804
7834
 
7805
7835
  var numberOfItems = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
7806
7836
  var itemsToBeInsertedToDom = []; // Minimum 2 items should be there
@@ -7811,7 +7841,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7811
7841
 
7812
7842
  if (this.galleryItems.length <= 3) {
7813
7843
  this.galleryItems.forEach(function (_element, index) {
7814
- itemsToBeInsertedToDom.push("lg-item-".concat(_this11.lgId, "-").concat(index));
7844
+ itemsToBeInsertedToDom.push("lg-item-".concat(_this12.lgId, "-").concat(index));
7815
7845
  });
7816
7846
  return itemsToBeInsertedToDom;
7817
7847
  }
@@ -7855,12 +7885,12 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7855
7885
  }, {
7856
7886
  key: "organizeSlideItems",
7857
7887
  value: function organizeSlideItems(index, prevIndex) {
7858
- var _this12 = this;
7888
+ var _this13 = this;
7859
7889
 
7860
7890
  var itemsToBeInsertedToDom = this.getItemsToBeInsertedToDom(index, prevIndex, this.settings.numberOfSlideItemsInDom);
7861
7891
  itemsToBeInsertedToDom.forEach(function (item) {
7862
- if (_this12.currentItemsInDom.indexOf(item) === -1) {
7863
- _this12.$inner.append("<div id=\"".concat(item, "\" class=\"lg-item\"></div>"));
7892
+ if (_this13.currentItemsInDom.indexOf(item) === -1) {
7893
+ _this13.$inner.append("<div id=\"".concat(item, "\" class=\"lg-item\"></div>"));
7864
7894
  }
7865
7895
  });
7866
7896
  this.currentItemsInDom.forEach(function (item) {
@@ -7911,7 +7941,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7911
7941
  }, {
7912
7942
  key: "makeSlideAnimation",
7913
7943
  value: function makeSlideAnimation(direction, currentSlideItem, previousSlideItem) {
7914
- var _this13 = this;
7944
+ var _this14 = this;
7915
7945
 
7916
7946
  if (this.lGalleryOn) {
7917
7947
  previousSlideItem.addClass('lg-slide-progress');
@@ -7919,9 +7949,9 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7919
7949
 
7920
7950
  setTimeout(function () {
7921
7951
  // remove all transitions
7922
- _this13.outer.addClass('lg-no-trans');
7952
+ _this14.outer.addClass('lg-no-trans');
7923
7953
 
7924
- _this13.outer.find('.lg-item').removeClass('lg-prev-slide lg-next-slide');
7954
+ _this14.outer.find('.lg-item').removeClass('lg-prev-slide lg-next-slide');
7925
7955
 
7926
7956
  if (direction === 'prev') {
7927
7957
  //prevslide
@@ -7935,11 +7965,11 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7935
7965
 
7936
7966
 
7937
7967
  setTimeout(function () {
7938
- _this13.outer.find('.lg-item').removeClass('lg-current');
7968
+ _this14.outer.find('.lg-item').removeClass('lg-current');
7939
7969
 
7940
7970
  currentSlideItem.addClass('lg-current'); // reset all transitions
7941
7971
 
7942
- _this13.outer.removeClass('lg-no-trans');
7972
+ _this14.outer.removeClass('lg-no-trans');
7943
7973
  }, 50);
7944
7974
  }, this.lGalleryOn ? this.settings.slideDelay : 0);
7945
7975
  }
@@ -7960,7 +7990,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
7960
7990
  }, {
7961
7991
  key: "slide",
7962
7992
  value: function slide(index, fromTouch, fromThumb, direction) {
7963
- var _this14 = this;
7993
+ var _this15 = this;
7964
7994
 
7965
7995
  var prevIndex = this.getPreviousSlideIndex();
7966
7996
  this.currentItemsInDom = this.organizeSlideItems(index, prevIndex); // Prevent multiple call, Required for hsh plugin
@@ -8048,20 +8078,20 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8048
8078
  this.loadContent(index, true);
8049
8079
  } else {
8050
8080
  setTimeout(function () {
8051
- _this14.loadContent(index, true); // Add title if this.settings.appendSubHtmlTo === lg-sub-html
8081
+ _this15.loadContent(index, true); // Add title if this.settings.appendSubHtmlTo === lg-sub-html
8052
8082
 
8053
8083
 
8054
- if (_this14.settings.appendSubHtmlTo !== '.lg-item') {
8055
- _this14.addHtml(index);
8084
+ if (_this15.settings.appendSubHtmlTo !== '.lg-item') {
8085
+ _this15.addHtml(index);
8056
8086
  }
8057
8087
  }, this.settings.speed + 50 + (fromTouch ? 0 : this.settings.slideDelay));
8058
8088
  }
8059
8089
 
8060
8090
  setTimeout(function () {
8061
- _this14.lgBusy = false;
8091
+ _this15.lgBusy = false;
8062
8092
  previousSlideItem.removeClass('lg-slide-progress');
8063
8093
 
8064
- _this14.LGel.trigger(lGEvents.afterSlide, {
8094
+ _this15.LGel.trigger(lGEvents.afterSlide, {
8065
8095
  prevIndex: prevIndex,
8066
8096
  index: index,
8067
8097
  fromTouch: fromTouch,
@@ -8148,7 +8178,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8148
8178
  }, {
8149
8179
  key: "touchEnd",
8150
8180
  value: function touchEnd(endCoords, startCoords, event) {
8151
- var _this15 = this;
8181
+ var _this16 = this;
8152
8182
 
8153
8183
  var distance; // keep slide animation for any mode while dragg/swipe
8154
8184
 
@@ -8158,61 +8188,61 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8158
8188
 
8159
8189
 
8160
8190
  setTimeout(function () {
8161
- _this15.$container.removeClass('lg-dragging-vertical');
8191
+ _this16.$container.removeClass('lg-dragging-vertical');
8162
8192
 
8163
- _this15.outer.removeClass('lg-dragging lg-hide-items').addClass('lg-components-open');
8193
+ _this16.outer.removeClass('lg-dragging lg-hide-items').addClass('lg-components-open');
8164
8194
 
8165
8195
  var triggerClick = true;
8166
8196
 
8167
- if (_this15.swipeDirection === 'horizontal') {
8197
+ if (_this16.swipeDirection === 'horizontal') {
8168
8198
  distance = endCoords.pageX - startCoords.pageX;
8169
8199
  var distanceAbs = Math.abs(endCoords.pageX - startCoords.pageX);
8170
8200
 
8171
- if (distance < 0 && distanceAbs > _this15.settings.swipeThreshold) {
8172
- _this15.goToNextSlide(true);
8201
+ if (distance < 0 && distanceAbs > _this16.settings.swipeThreshold) {
8202
+ _this16.goToNextSlide(true);
8173
8203
 
8174
8204
  triggerClick = false;
8175
- } else if (distance > 0 && distanceAbs > _this15.settings.swipeThreshold) {
8176
- _this15.goToPrevSlide(true);
8205
+ } else if (distance > 0 && distanceAbs > _this16.settings.swipeThreshold) {
8206
+ _this16.goToPrevSlide(true);
8177
8207
 
8178
8208
  triggerClick = false;
8179
8209
  }
8180
- } else if (_this15.swipeDirection === 'vertical') {
8210
+ } else if (_this16.swipeDirection === 'vertical') {
8181
8211
  distance = Math.abs(endCoords.pageY - startCoords.pageY);
8182
8212
 
8183
- if (_this15.settings.closable && _this15.settings.swipeToClose && distance > 100) {
8184
- _this15.closeGallery();
8213
+ if (_this16.settings.closable && _this16.settings.swipeToClose && distance > 100) {
8214
+ _this16.closeGallery();
8185
8215
 
8186
8216
  return;
8187
8217
  } else {
8188
- _this15.$backdrop.css('opacity', 1);
8218
+ _this16.$backdrop.css('opacity', 1);
8189
8219
  }
8190
8220
  }
8191
8221
 
8192
- _this15.outer.find('.lg-item').removeAttr('style');
8222
+ _this16.outer.find('.lg-item').removeAttr('style');
8193
8223
 
8194
8224
  if (triggerClick && Math.abs(endCoords.pageX - startCoords.pageX) < 5) {
8195
8225
  // Trigger click if distance is less than 5 pix
8196
8226
  var target = $LG(event.target);
8197
8227
 
8198
- if (_this15.isPosterElement(target)) {
8199
- _this15.LGel.trigger(lGEvents.posterClick);
8228
+ if (_this16.isPosterElement(target)) {
8229
+ _this16.LGel.trigger(lGEvents.posterClick);
8200
8230
  }
8201
8231
  }
8202
8232
 
8203
- _this15.swipeDirection = undefined;
8233
+ _this16.swipeDirection = undefined;
8204
8234
  }); // remove slide class once drag/swipe is completed if mode is not slide
8205
8235
 
8206
8236
  setTimeout(function () {
8207
- if (!_this15.outer.hasClass('lg-dragging') && _this15.settings.mode !== 'lg-slide') {
8208
- _this15.outer.removeClass('lg-slide');
8237
+ if (!_this16.outer.hasClass('lg-dragging') && _this16.settings.mode !== 'lg-slide') {
8238
+ _this16.outer.removeClass('lg-slide');
8209
8239
  }
8210
8240
  }, this.settings.speed + 100);
8211
8241
  }
8212
8242
  }, {
8213
8243
  key: "enableSwipe",
8214
8244
  value: function enableSwipe() {
8215
- var _this16 = this;
8245
+ var _this17 = this;
8216
8246
 
8217
8247
  var startCoords = {};
8218
8248
  var endCoords = {};
@@ -8221,15 +8251,15 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8221
8251
 
8222
8252
  if (this.settings.enableSwipe) {
8223
8253
  this.$inner.on('touchstart.lg', function (e) {
8224
- _this16.dragOrSwipeEnabled = true;
8254
+ _this17.dragOrSwipeEnabled = true;
8225
8255
 
8226
- var $item = _this16.getSlideItem(_this16.index);
8256
+ var $item = _this17.getSlideItem(_this17.index);
8227
8257
 
8228
- if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this16.outer.hasClass('lg-zoomed') && !_this16.lgBusy && e.targetTouches.length === 1) {
8258
+ if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.targetTouches.length === 1) {
8229
8259
  isSwiping = true;
8230
- _this16.touchAction = 'swipe';
8260
+ _this17.touchAction = 'swipe';
8231
8261
 
8232
- _this16.manageSwipeClass();
8262
+ _this17.manageSwipeClass();
8233
8263
 
8234
8264
  startCoords = {
8235
8265
  pageX: e.targetTouches[0].pageX,
@@ -8238,32 +8268,32 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8238
8268
  }
8239
8269
  });
8240
8270
  this.$inner.on('touchmove.lg', function (e) {
8241
- if (isSwiping && _this16.touchAction === 'swipe' && e.targetTouches.length === 1) {
8271
+ if (isSwiping && _this17.touchAction === 'swipe' && e.targetTouches.length === 1) {
8242
8272
  endCoords = {
8243
8273
  pageX: e.targetTouches[0].pageX,
8244
8274
  pageY: e.targetTouches[0].pageY
8245
8275
  };
8246
8276
 
8247
- _this16.touchMove(startCoords, endCoords, e);
8277
+ _this17.touchMove(startCoords, endCoords, e);
8248
8278
 
8249
8279
  isMoved = true;
8250
8280
  }
8251
8281
  });
8252
8282
  this.$inner.on('touchend.lg', function (event) {
8253
- if (_this16.touchAction === 'swipe') {
8283
+ if (_this17.touchAction === 'swipe') {
8254
8284
  if (isMoved) {
8255
8285
  isMoved = false;
8256
8286
 
8257
- _this16.touchEnd(endCoords, startCoords, event);
8287
+ _this17.touchEnd(endCoords, startCoords, event);
8258
8288
  } else if (isSwiping) {
8259
8289
  var target = $LG(event.target);
8260
8290
 
8261
- if (_this16.isPosterElement(target)) {
8262
- _this16.LGel.trigger(lGEvents.posterClick);
8291
+ if (_this17.isPosterElement(target)) {
8292
+ _this17.LGel.trigger(lGEvents.posterClick);
8263
8293
  }
8264
8294
  }
8265
8295
 
8266
- _this16.touchAction = undefined;
8296
+ _this17.touchAction = undefined;
8267
8297
  isSwiping = false;
8268
8298
  }
8269
8299
  });
@@ -8272,7 +8302,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8272
8302
  }, {
8273
8303
  key: "enableDrag",
8274
8304
  value: function enableDrag() {
8275
- var _this17 = this;
8305
+ var _this18 = this;
8276
8306
 
8277
8307
  var startCoords = {};
8278
8308
  var endCoords = {};
@@ -8281,16 +8311,16 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8281
8311
 
8282
8312
  if (this.settings.enableDrag) {
8283
8313
  this.outer.on('mousedown.lg', function (e) {
8284
- _this17.dragOrSwipeEnabled = true;
8314
+ _this18.dragOrSwipeEnabled = true;
8285
8315
 
8286
- var $item = _this17.getSlideItem(_this17.index);
8316
+ var $item = _this18.getSlideItem(_this18.index);
8287
8317
 
8288
8318
  if ($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) {
8289
- if (!_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy) {
8319
+ if (!_this18.outer.hasClass('lg-zoomed') && !_this18.lgBusy) {
8290
8320
  e.preventDefault();
8291
8321
 
8292
- if (!_this17.lgBusy) {
8293
- _this17.manageSwipeClass();
8322
+ if (!_this18.lgBusy) {
8323
+ _this18.manageSwipeClass();
8294
8324
 
8295
8325
  startCoords = {
8296
8326
  pageX: e.pageX,
@@ -8298,31 +8328,31 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8298
8328
  };
8299
8329
  isDraging = true; // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
8300
8330
 
8301
- _this17.outer.get().scrollLeft += 1;
8302
- _this17.outer.get().scrollLeft -= 1; // *
8331
+ _this18.outer.get().scrollLeft += 1;
8332
+ _this18.outer.get().scrollLeft -= 1; // *
8303
8333
 
8304
- _this17.outer.removeClass('lg-grab').addClass('lg-grabbing');
8334
+ _this18.outer.removeClass('lg-grab').addClass('lg-grabbing');
8305
8335
 
8306
- _this17.LGel.trigger(lGEvents.dragStart);
8336
+ _this18.LGel.trigger(lGEvents.dragStart);
8307
8337
  }
8308
8338
  }
8309
8339
  }
8310
8340
  });
8311
8341
  $LG(window).on("mousemove.lg.global".concat(this.lgId), function (e) {
8312
- if (isDraging && _this17.lgOpened) {
8342
+ if (isDraging && _this18.lgOpened) {
8313
8343
  isMoved = true;
8314
8344
  endCoords = {
8315
8345
  pageX: e.pageX,
8316
8346
  pageY: e.pageY
8317
8347
  };
8318
8348
 
8319
- _this17.touchMove(startCoords, endCoords);
8349
+ _this18.touchMove(startCoords, endCoords);
8320
8350
 
8321
- _this17.LGel.trigger(lGEvents.dragMove);
8351
+ _this18.LGel.trigger(lGEvents.dragMove);
8322
8352
  }
8323
8353
  });
8324
8354
  $LG(window).on("mouseup.lg.global".concat(this.lgId), function (event) {
8325
- if (!_this17.lgOpened) {
8355
+ if (!_this18.lgOpened) {
8326
8356
  return;
8327
8357
  }
8328
8358
 
@@ -8331,18 +8361,18 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8331
8361
  if (isMoved) {
8332
8362
  isMoved = false;
8333
8363
 
8334
- _this17.touchEnd(endCoords, startCoords, event);
8364
+ _this18.touchEnd(endCoords, startCoords, event);
8335
8365
 
8336
- _this17.LGel.trigger(lGEvents.dragEnd);
8337
- } else if (_this17.isPosterElement(target)) {
8338
- _this17.LGel.trigger(lGEvents.posterClick);
8366
+ _this18.LGel.trigger(lGEvents.dragEnd);
8367
+ } else if (_this18.isPosterElement(target)) {
8368
+ _this18.LGel.trigger(lGEvents.posterClick);
8339
8369
  } // Prevent execution on click
8340
8370
 
8341
8371
 
8342
8372
  if (isDraging) {
8343
8373
  isDraging = false;
8344
8374
 
8345
- _this17.outer.removeClass('lg-grabbing').addClass('lg-grab');
8375
+ _this18.outer.removeClass('lg-grabbing').addClass('lg-grab');
8346
8376
  }
8347
8377
  });
8348
8378
  }
@@ -8350,11 +8380,11 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8350
8380
  }, {
8351
8381
  key: "triggerPosterClick",
8352
8382
  value: function triggerPosterClick() {
8353
- var _this18 = this;
8383
+ var _this19 = this;
8354
8384
 
8355
8385
  this.$inner.on('click.lg', function (event) {
8356
- if (!_this18.dragOrSwipeEnabled && _this18.isPosterElement($LG(event.target))) {
8357
- _this18.LGel.trigger(lGEvents.posterClick);
8386
+ if (!_this19.dragOrSwipeEnabled && _this19.isPosterElement($LG(event.target))) {
8387
+ _this19.LGel.trigger(lGEvents.posterClick);
8358
8388
  }
8359
8389
  });
8360
8390
  }
@@ -8394,7 +8424,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8394
8424
  }, {
8395
8425
  key: "goToNextSlide",
8396
8426
  value: function goToNextSlide(fromTouch) {
8397
- var _this19 = this;
8427
+ var _this20 = this;
8398
8428
 
8399
8429
  var _loop = this.settings.loop;
8400
8430
 
@@ -8419,7 +8449,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8419
8449
  } else if (this.settings.slideEndAnimation && !fromTouch) {
8420
8450
  this.outer.addClass('lg-right-end');
8421
8451
  setTimeout(function () {
8422
- _this19.outer.removeClass('lg-right-end');
8452
+ _this20.outer.removeClass('lg-right-end');
8423
8453
  }, 400);
8424
8454
  }
8425
8455
  }
@@ -8439,7 +8469,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8439
8469
  }, {
8440
8470
  key: "goToPrevSlide",
8441
8471
  value: function goToPrevSlide(fromTouch) {
8442
- var _this20 = this;
8472
+ var _this21 = this;
8443
8473
 
8444
8474
  var _loop = this.settings.loop;
8445
8475
 
@@ -8466,7 +8496,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8466
8496
  } else if (this.settings.slideEndAnimation && !fromTouch) {
8467
8497
  this.outer.addClass('lg-left-end');
8468
8498
  setTimeout(function () {
8469
- _this20.outer.removeClass('lg-left-end');
8499
+ _this21.outer.removeClass('lg-left-end');
8470
8500
  }, 400);
8471
8501
  }
8472
8502
  }
@@ -8475,30 +8505,30 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8475
8505
  }, {
8476
8506
  key: "keyPress",
8477
8507
  value: function keyPress() {
8478
- var _this21 = this;
8508
+ var _this22 = this;
8479
8509
 
8480
8510
  $LG(window).on("keydown.lg.global".concat(this.lgId), function (e) {
8481
- if (_this21.lgOpened && _this21.settings.escKey === true && e.keyCode === 27) {
8511
+ if (_this22.lgOpened && _this22.settings.escKey === true && e.keyCode === 27) {
8482
8512
  e.preventDefault();
8483
8513
 
8484
- if (_this21.settings.allowMediaOverlap && _this21.outer.hasClass('lg-can-toggle') && _this21.outer.hasClass('lg-components-open')) {
8485
- _this21.outer.removeClass('lg-components-open');
8514
+ if (_this22.settings.allowMediaOverlap && _this22.outer.hasClass('lg-can-toggle') && _this22.outer.hasClass('lg-components-open')) {
8515
+ _this22.outer.removeClass('lg-components-open');
8486
8516
  } else {
8487
- _this21.closeGallery();
8517
+ _this22.closeGallery();
8488
8518
  }
8489
8519
  }
8490
8520
 
8491
- if (_this21.lgOpened && _this21.galleryItems.length > 1) {
8521
+ if (_this22.lgOpened && _this22.galleryItems.length > 1) {
8492
8522
  if (e.keyCode === 37) {
8493
8523
  e.preventDefault();
8494
8524
 
8495
- _this21.goToPrevSlide();
8525
+ _this22.goToPrevSlide();
8496
8526
  }
8497
8527
 
8498
8528
  if (e.keyCode === 39) {
8499
8529
  e.preventDefault();
8500
8530
 
8501
- _this21.goToNextSlide();
8531
+ _this22.goToNextSlide();
8502
8532
  }
8503
8533
  }
8504
8534
  });
@@ -8506,13 +8536,13 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8506
8536
  }, {
8507
8537
  key: "arrow",
8508
8538
  value: function arrow() {
8509
- var _this22 = this;
8539
+ var _this23 = this;
8510
8540
 
8511
8541
  this.getElementById('lg-prev').on('click.lg', function () {
8512
- _this22.goToPrevSlide();
8542
+ _this23.goToPrevSlide();
8513
8543
  });
8514
8544
  this.getElementById('lg-next').on('click.lg', function () {
8515
- _this22.goToNextSlide();
8545
+ _this23.goToNextSlide();
8516
8546
  });
8517
8547
  }
8518
8548
  }, {
@@ -8546,20 +8576,28 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8546
8576
  }, {
8547
8577
  key: "mousewheel",
8548
8578
  value: function mousewheel() {
8549
- var _this23 = this;
8579
+ var _this24 = this;
8550
8580
 
8551
- this.outer.on('mousewheel.lg', function (e) {
8552
- if (!e.deltaY || _this23.galleryItems.length < 2) {
8581
+ var lastCall = 0;
8582
+ this.outer.on('wheel.lg', function (e) {
8583
+ if (!e.deltaY || _this24.galleryItems.length < 2) {
8553
8584
  return;
8554
8585
  }
8555
8586
 
8556
- if (e.deltaY > 0) {
8557
- _this23.goToPrevSlide();
8558
- } else {
8559
- _this23.goToNextSlide();
8587
+ e.preventDefault();
8588
+ var now = new Date().getTime();
8589
+
8590
+ if (now - lastCall < 1000) {
8591
+ return;
8560
8592
  }
8561
8593
 
8562
- e.preventDefault();
8594
+ lastCall = now;
8595
+
8596
+ if (e.deltaY > 0) {
8597
+ _this24.goToNextSlide();
8598
+ } else if (e.deltaY < 0) {
8599
+ _this24.goToPrevSlide();
8600
+ }
8563
8601
  });
8564
8602
  }
8565
8603
  }, {
@@ -8581,12 +8619,12 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8581
8619
  }, {
8582
8620
  key: "toggleMaximize",
8583
8621
  value: function toggleMaximize() {
8584
- var _this24 = this;
8622
+ var _this25 = this;
8585
8623
 
8586
8624
  this.getElementById('lg-maximize').on('click.lg', function () {
8587
- _this24.$container.toggleClass('lg-inline');
8625
+ _this25.$container.toggleClass('lg-inline');
8588
8626
 
8589
- _this24.refreshOnResize();
8627
+ _this25.refreshOnResize();
8590
8628
  });
8591
8629
  }
8592
8630
  }, {
@@ -8601,12 +8639,12 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8601
8639
  }, {
8602
8640
  key: "manageCloseGallery",
8603
8641
  value: function manageCloseGallery() {
8604
- var _this25 = this;
8642
+ var _this26 = this;
8605
8643
 
8606
8644
  if (!this.settings.closable) return;
8607
8645
  var mousedown = false;
8608
8646
  this.getElementById('lg-close').on('click.lg', function () {
8609
- _this25.closeGallery();
8647
+ _this26.closeGallery();
8610
8648
  });
8611
8649
 
8612
8650
  if (this.settings.closeOnTap) {
@@ -8615,7 +8653,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8615
8653
  this.outer.on('mousedown.lg', function (e) {
8616
8654
  var target = $LG(e.target);
8617
8655
 
8618
- if (_this25.isSlideElement(target)) {
8656
+ if (_this26.isSlideElement(target)) {
8619
8657
  mousedown = true;
8620
8658
  } else {
8621
8659
  mousedown = false;
@@ -8627,9 +8665,9 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8627
8665
  this.outer.on('mouseup.lg', function (e) {
8628
8666
  var target = $LG(e.target);
8629
8667
 
8630
- if (_this25.isSlideElement(target) && mousedown) {
8631
- if (!_this25.outer.hasClass('lg-dragging')) {
8632
- _this25.closeGallery();
8668
+ if (_this26.isSlideElement(target) && mousedown) {
8669
+ if (!_this26.outer.hasClass('lg-dragging')) {
8670
+ _this26.closeGallery();
8633
8671
  }
8634
8672
  }
8635
8673
  });
@@ -8650,7 +8688,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8650
8688
  }, {
8651
8689
  key: "closeGallery",
8652
8690
  value: function closeGallery(force) {
8653
- var _this26 = this;
8691
+ var _this27 = this;
8654
8692
 
8655
8693
  if (!this.lgOpened || !this.settings.closable && !force) {
8656
8694
  return 0;
@@ -8699,32 +8737,32 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8699
8737
  this.$container.removeClass('lg-show-in'); // Once the closign animation is completed and gallery is invisible
8700
8738
 
8701
8739
  setTimeout(function () {
8702
- if (_this26.zoomFromOrigin && transform) {
8703
- _this26.outer.removeClass('lg-zoom-from-image');
8740
+ if (_this27.zoomFromOrigin && transform) {
8741
+ _this27.outer.removeClass('lg-zoom-from-image');
8704
8742
  }
8705
8743
 
8706
- _this26.$container.removeClass('lg-show'); // Need to remove inline opacity as it is used in the stylesheet as well
8744
+ _this27.$container.removeClass('lg-show'); // Need to remove inline opacity as it is used in the stylesheet as well
8707
8745
 
8708
8746
 
8709
- _this26.$backdrop.removeAttr('style').css('transition-duration', _this26.settings.backdropDuration + 'ms');
8747
+ _this27.$backdrop.removeAttr('style').css('transition-duration', _this27.settings.backdropDuration + 'ms');
8710
8748
 
8711
- _this26.outer.removeClass("lg-closing ".concat(_this26.settings.startClass));
8749
+ _this27.outer.removeClass("lg-closing ".concat(_this27.settings.startClass));
8712
8750
 
8713
- _this26.getSlideItem(_this26.index).removeClass('lg-start-end-progress');
8751
+ _this27.getSlideItem(_this27.index).removeClass('lg-start-end-progress');
8714
8752
 
8715
- _this26.$inner.empty();
8753
+ _this27.$inner.empty();
8716
8754
 
8717
- if (_this26.lgOpened) {
8718
- _this26.LGel.trigger(lGEvents.afterClose, {
8719
- instance: _this26
8755
+ if (_this27.lgOpened) {
8756
+ _this27.LGel.trigger(lGEvents.afterClose, {
8757
+ instance: _this27
8720
8758
  });
8721
8759
  }
8722
8760
 
8723
- if (_this26.outer.get()) {
8724
- _this26.outer.get().blur();
8761
+ if (_this27.outer.get()) {
8762
+ _this27.outer.get().blur();
8725
8763
  }
8726
8764
 
8727
- _this26.lgOpened = false;
8765
+ _this27.lgOpened = false;
8728
8766
  }, removeTimeout + 100);
8729
8767
  return removeTimeout + 100;
8730
8768
  }
@@ -8810,21 +8848,21 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
8810
8848
  }, {
8811
8849
  key: "destroy",
8812
8850
  value: function destroy() {
8813
- var _this27 = this;
8851
+ var _this28 = this;
8814
8852
 
8815
8853
  var closeTimeout = this.closeGallery(true);
8816
8854
  setTimeout(function () {
8817
- _this27.destroyModules(true);
8855
+ _this28.destroyModules(true);
8818
8856
 
8819
- if (!_this27.settings.dynamic) {
8820
- _this27.invalidateItems();
8857
+ if (!_this28.settings.dynamic) {
8858
+ _this28.invalidateItems();
8821
8859
  }
8822
8860
 
8823
- $LG(window).off(".lg.global".concat(_this27.lgId));
8861
+ $LG(window).off(".lg.global".concat(_this28.lgId));
8824
8862
 
8825
- _this27.LGel.off('.lg');
8863
+ _this28.LGel.off('.lg');
8826
8864
 
8827
- _this27.$container.remove();
8865
+ _this28.$container.remove();
8828
8866
  }, closeTimeout);
8829
8867
  return closeTimeout;
8830
8868
  }
@@ -8964,6 +9002,18 @@ LightGalleryvue_type_script_lang_ts_Lightgallery = __decorate([Options({
8964
9002
  },
8965
9003
  onAfterClose: {
8966
9004
  type: Function
9005
+ },
9006
+ onRotateLeft: {
9007
+ type: Function
9008
+ },
9009
+ onRotateRight: {
9010
+ type: Function
9011
+ },
9012
+ onFlipHorizontal: {
9013
+ type: Function
9014
+ },
9015
+ onFlipVertical: {
9016
+ type: Function
8967
9017
  }
8968
9018
  }
8969
9019
  })], LightGalleryvue_type_script_lang_ts_Lightgallery);