(window["webpackJsonpLIS"] = window["webpackJsonpLIS"] || []).push([["toubiz-gallery"],{

/***/ "../../Plugins/Newland.AssetsNeos/Scripts/toubiz-gallery/index.js":
/*!*********************************************************************************************************!*\
  !*** /Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/toubiz-gallery/index.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ToubizGallery; });\n/* harmony import */ var _vendor_lightgallery_lightgallery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vendor/lightgallery/lightgallery */ \"../../Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery.js\");\n/* harmony import */ var _vendor_lightgallery_lightgallery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vendor_lightgallery_lightgallery__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _vendor_lightgallery_lightgallery_video__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vendor/lightgallery/lightgallery-video */ \"../../Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery-video.js\");\n/* harmony import */ var _vendor_lightgallery_lightgallery_video__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_vendor_lightgallery_lightgallery_video__WEBPACK_IMPORTED_MODULE_1__);\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n\n\n\nvar ToubizGallery = function ToubizGallery(node, config) {\n  _classCallCheck(this, ToubizGallery);\n\n  /** @private */\n  this.config = config || {\n    download: false,\n    selector: '[data-toubiz-gallery-item]'\n  };\n  lightGallery(node, this.config);\n};\n\n\n\n//# sourceURL=webpack://LIS//Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/toubiz-gallery/index.js?");

/***/ }),

/***/ "../../Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lg-utils.js":
/*!*****************************************************************************************************************!*\
  !*** /Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lg-utils.js ***!
  \*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {\n  if (true) {\n    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n  } else { var mod; }\n})(this, function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  /*\n   *@todo remove function from window and document. Update on and off functions\n   */\n\n  window.getAttribute = function (label) {\n    return window[label];\n  };\n\n  window.setAttribute = function (label, value) {\n    window[label] = value;\n  };\n\n  document.getAttribute = function (label) {\n    return document[label];\n  };\n\n  document.setAttribute = function (label, value) {\n    document[label] = value;\n  };\n\n  var utils = {\n    wrap: function wrap(el, className) {\n      if (!el) {\n        return;\n      }\n\n      var wrapper = document.createElement('div');\n      wrapper.className = className;\n      el.parentNode.insertBefore(wrapper, el);\n      el.parentNode.removeChild(el);\n      wrapper.appendChild(el);\n    },\n    addClass: function addClass(el, className) {\n      if (!el) {\n        return;\n      }\n\n      if (el.classList) {\n        el.classList.add(className);\n      } else {\n        el.className += ' ' + className;\n      }\n    },\n    removeClass: function removeClass(el, className) {\n      if (!el) {\n        return;\n      }\n\n      if (el.classList) {\n        el.classList.remove(className);\n      } else {\n        el.className = el.className.replace(new RegExp('(^|\\\\b)' + className.split(' ').join('|') + '(\\\\b|$)', 'gi'), ' ');\n      }\n    },\n    hasClass: function hasClass(el, className) {\n      if (el.classList) {\n        return el.classList.contains(className);\n      } else {\n        return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className);\n      }\n\n      return false;\n    },\n    // ex Transform\n    // ex TransitionTimingFunction\n    setVendor: function setVendor(el, property, value) {\n      if (!el) {\n        return;\n      }\n\n      el.style[property.charAt(0).toLowerCase() + property.slice(1)] = value;\n      el.style['webkit' + property] = value;\n      el.style['moz' + property] = value;\n      el.style['ms' + property] = value;\n      el.style['o' + property] = value;\n    },\n    trigger: function trigger(el, event) {\n      var detail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n      if (!el) {\n        return;\n      }\n\n      var customEvent = new CustomEvent(event, {\n        detail: detail\n      });\n      el.dispatchEvent(customEvent);\n    },\n    Listener: {\n      uid: 0\n    },\n    on: function on(el, events, fn) {\n      if (!el) {\n        return;\n      }\n\n      events.split(' ').forEach(function (event) {\n        var _id = el.getAttribute('lg-event-uid') || '';\n\n        utils.Listener.uid++;\n        _id += '&' + utils.Listener.uid;\n        el.setAttribute('lg-event-uid', _id);\n        utils.Listener[event + utils.Listener.uid] = fn;\n        el.addEventListener(event.split('.')[0], fn, false);\n      });\n    },\n    off: function off(el, event) {\n      if (!el) {\n        return;\n      }\n\n      var _id = el.getAttribute('lg-event-uid');\n\n      if (_id) {\n        _id = _id.split('&');\n\n        for (var i = 0; i < _id.length; i++) {\n          if (_id[i]) {\n            var _event = event + _id[i];\n\n            if (_event.substring(0, 1) === '.') {\n              for (var key in utils.Listener) {\n                if (utils.Listener.hasOwnProperty(key)) {\n                  if (key.split('.').indexOf(_event.split('.')[1]) > -1) {\n                    el.removeEventListener(key.split('.')[0], utils.Listener[key]);\n                    el.setAttribute('lg-event-uid', el.getAttribute('lg-event-uid').replace('&' + _id[i], ''));\n                    delete utils.Listener[key];\n                  }\n                }\n              }\n            } else {\n              el.removeEventListener(_event.split('.')[0], utils.Listener[_event]);\n              el.setAttribute('lg-event-uid', el.getAttribute('lg-event-uid').replace('&' + _id[i], ''));\n              delete utils.Listener[_event];\n            }\n          }\n        }\n      }\n    },\n    param: function param(obj) {\n      return Object.keys(obj).map(function (k) {\n        return encodeURIComponent(k) + '=' + encodeURIComponent(obj[k]);\n      }).join('&');\n    }\n  };\n  exports.default = utils;\n});\n\n//# sourceURL=webpack://LIS//Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lg-utils.js?");

/***/ }),

/***/ "../../Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery-video.js":
/*!***************************************************************************************************************************!*\
  !*** /Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery-video.js ***!
  \***************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var require;var require;function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**!\n * lg-video.js | 1.0.0 | October 5th 2016\n * http://sachinchoolur.github.io/lg-video.js\n * Copyright (c) 2016 Sachin N;\n * @license GPLv3\n */\n(function (f) {\n  if (( false ? undefined : _typeof(exports)) === \"object\" && typeof module !== \"undefined\") {\n    module.exports = f();\n  } else if (true) {\n    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (f),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n  } else { var g; }\n})(function () {\n  var define, module, exports;\n  return function e(t, n, r) {\n    function s(o, u) {\n      if (!n[o]) {\n        if (!t[o]) {\n          var a = typeof require == \"function\" && require;\n          if (!u && a) return require(o, !0);\n          if (i) return i(o, !0);\n          var f = new Error(\"Cannot find module '\" + o + \"'\");\n          throw f.code = \"MODULE_NOT_FOUND\", f;\n        }\n\n        var l = n[o] = {\n          exports: {}\n        };\n        t[o][0].call(l.exports, function (e) {\n          var n = t[o][1][e];\n          return s(n ? n : e);\n        }, l, l.exports, e, t, n, r);\n      }\n\n      return n[o].exports;\n    }\n\n    var i = typeof require == \"function\" && require;\n\n    for (var o = 0; o < r.length; o++) {\n      s(r[o]);\n    }\n\n    return s;\n  }({\n    1: [function (require, module, exports) {\n      (function (global, factory) {\n        if (typeof define === \"function\" && define.amd) {\n          define([], factory);\n        } else if (typeof exports !== \"undefined\") {\n          factory();\n        } else {\n          var mod = {\n            exports: {}\n          };\n          factory();\n          global.lgVideo = mod.exports;\n        }\n      })(this, function () {\n        'use strict';\n\n        var _extends = Object.assign || function (target) {\n          for (var i = 1; i < arguments.length; i++) {\n            var source = arguments[i];\n\n            for (var key in source) {\n              if (Object.prototype.hasOwnProperty.call(source, key)) {\n                target[key] = source[key];\n              }\n            }\n          }\n\n          return target;\n        };\n\n        var videoDefaults = {\n          videoMaxWidth: '855px',\n          youtubePlayerParams: false,\n          vimeoPlayerParams: false,\n          dailymotionPlayerParams: false,\n          vkPlayerParams: false,\n          videojs: false,\n          videojsOptions: {}\n        };\n\n        var Video = function Video(element) {\n          this.el = element;\n          this.core = window.lgData[this.el.getAttribute('lg-uid')];\n          this.core.s = _extends({}, videoDefaults, this.core.s);\n          this.videoLoaded = false;\n          this.init();\n          return this;\n        };\n\n        Video.prototype.init = function () {\n          var _this = this; // Event triggered when video url found without poster\n\n\n          utils.on(_this.core.el, 'hasVideo.lgtm', function (event) {\n            _this.core.___slide[event.detail.index].querySelector('.lg-video').insertAdjacentHTML('beforeend', _this.loadVideo(event.detail.src, 'lg-object', true, event.detail.index, event.detail.html));\n\n            if (event.detail.html) {\n              if (_this.core.s.videojs) {\n                try {\n                  videojs(_this.core.___slide[event.detail.index].querySelector('.lg-html5'), _this.core.s.videojsOptions, function () {\n                    if (!_this.videoLoaded) {\n                      this.play();\n                    }\n                  });\n                } catch (e) {\n                  console.error('Make sure you have included videojs');\n                }\n              } else {\n                _this.core.___slide[event.detail.index].querySelector('.lg-html5').play();\n              }\n            }\n          }); // Set max width for video\n\n          utils.on(_this.core.el, 'onAferAppendSlide.lgtm', function (event) {\n            if (_this.core.___slide[event.detail.index].querySelector('.lg-video-cont')) {\n              _this.core.___slide[event.detail.index].querySelector('.lg-video-cont').style.maxWidth = _this.core.s.videoMaxWidth;\n              _this.videoLoaded = true;\n            }\n          });\n\n          var loadOnClick = function loadOnClick($el) {\n            // check slide has poster\n            if (utils.hasClass($el.querySelector('.lg-object'), 'lg-has-poster') && $el.querySelector('.lg-object').style.display !== 'none') {\n              // check already video element present\n              if (!utils.hasClass($el, 'lg-has-video')) {\n                utils.addClass($el, 'lg-video-playing');\n                utils.addClass($el, 'lg-has-video');\n\n                var _src;\n\n                var _html;\n\n                var _loadVideo = function _loadVideo(_src, _html) {\n                  $el.querySelector('.lg-video').insertAdjacentHTML('beforeend', _this.loadVideo(_src, '', false, _this.core.index, _html));\n\n                  if (_html) {\n                    if (_this.core.s.videojs) {\n                      try {\n                        videojs(_this.core.___slide[_this.core.index].querySelector('.lg-html5'), _this.core.s.videojsOptions, function () {\n                          this.play();\n                        });\n                      } catch (e) {\n                        console.error('Make sure you have included videojs');\n                      }\n                    } else {\n                      _this.core.___slide[_this.core.index].querySelector('.lg-html5').play();\n                    }\n                  }\n                };\n\n                if (_this.core.s.dynamic) {\n                  _src = _this.core.s.dynamicEl[_this.core.index].src;\n                  _html = _this.core.s.dynamicEl[_this.core.index].html;\n\n                  _loadVideo(_src, _html);\n                } else {\n                  _src = _this.core.items[_this.core.index].getAttribute('href') || _this.core.items[_this.core.index].getAttribute('data-src');\n                  _html = _this.core.items[_this.core.index].getAttribute('data-html');\n\n                  _loadVideo(_src, _html);\n                }\n\n                var $tempImg = $el.querySelector('.lg-object');\n                $el.querySelector('.lg-video').appendChild($tempImg); // @todo loading icon for html5 videos also\n                // for showing the loading indicator while loading video\n\n                if (!utils.hasClass($el.querySelector('.lg-video-object'), 'lg-html5')) {\n                  utils.removeClass($el, 'lg-complete');\n                  utils.on($el.querySelector('.lg-video-object'), 'load.lg error.lg', function () {\n                    utils.addClass($el, 'lg-complete');\n                  });\n                }\n              } else {\n                var youtubePlayer = $el.querySelector('.lg-youtube');\n                var vimeoPlayer = $el.querySelector('.lg-vimeo');\n                var dailymotionPlayer = $el.querySelector('.lg-dailymotion');\n                var html5Player = $el.querySelector('.lg-html5');\n\n                if (youtubePlayer) {\n                  youtubePlayer.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n                } else if (vimeoPlayer) {\n                  try {\n                    $f(vimeoPlayer).api('play');\n                  } catch (e) {\n                    console.error('Make sure you have included froogaloop2 js');\n                  }\n                } else if (dailymotionPlayer) {\n                  dailymotionPlayer.contentWindow.postMessage('play', '*');\n                } else if (html5Player) {\n                  if (_this.core.s.videojs) {\n                    try {\n                      videojs(html5Player).play();\n                    } catch (e) {\n                      console.error('Make sure you have included videojs');\n                    }\n                  } else {\n                    html5Player.play();\n                  }\n                }\n\n                utils.addClass($el, 'lg-video-playing');\n              }\n            }\n          };\n\n          if (_this.core.doCss() && _this.core.items.length > 1 && (_this.core.s.enableSwipe && _this.core.isTouch || _this.core.s.enableDrag && !_this.core.isTouch)) {\n            utils.on(_this.core.el, 'onSlideClick.lgtm', function () {\n              var $el = _this.core.___slide[_this.core.index];\n              loadOnClick($el);\n            });\n          } else {\n            // For IE 9 and bellow\n            for (var i = 0; i < _this.core.___slide.length; i++) {\n              /*jshint loopfunc: true */\n              (function (index) {\n                utils.on(_this.core.___slide[index], 'click.lg', function () {\n                  loadOnClick(_this.core.___slide[index]);\n                });\n              })(i);\n            }\n          }\n\n          utils.on(_this.core.el, 'onBeforeSlide.lgtm', function (event) {\n            var $videoSlide = _this.core.___slide[event.detail.prevIndex];\n            var youtubePlayer = $videoSlide.querySelector('.lg-youtube');\n            var vimeoPlayer = $videoSlide.querySelector('.lg-vimeo');\n            var dailymotionPlayer = $videoSlide.querySelector('.lg-dailymotion');\n            var vkPlayer = $videoSlide.querySelector('.lg-vk');\n            var html5Player = $videoSlide.querySelector('.lg-html5');\n\n            if (youtubePlayer) {\n              youtubePlayer.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}', '*');\n            } else if (vimeoPlayer) {\n              try {\n                $f(vimeoPlayer).api('pause');\n              } catch (e) {\n                console.error('Make sure you have included froogaloop2 js');\n              }\n            } else if (dailymotionPlayer) {\n              dailymotionPlayer.contentWindow.postMessage('pause', '*');\n            } else if (html5Player) {\n              if (_this.core.s.videojs) {\n                try {\n                  videojs(html5Player).pause();\n                } catch (e) {\n                  console.error('Make sure you have included videojs');\n                }\n              } else {\n                html5Player.pause();\n              }\n            }\n\n            if (vkPlayer) {\n              vkPlayer.setAttribute('src', vkPlayer.getAttribute('src').replace('&autoplay', '&noplay'));\n            }\n\n            var _src;\n\n            if (_this.core.s.dynamic) {\n              _src = _this.core.s.dynamicEl[event.detail.index].src;\n            } else {\n              _src = _this.core.items[event.detail.index].getAttribute('href') || _this.core.items[event.detail.index].getAttribute('data-src');\n            }\n\n            var _isVideo = _this.core.isVideo(_src, event.detail.index) || {};\n\n            if (_isVideo.youtube || _isVideo.vimeo || _isVideo.dailymotion || _isVideo.vk) {\n              utils.addClass(_this.core.outer, 'lg-hide-download');\n            } //$videoSlide.addClass('lg-complete');\n\n          });\n          utils.on(_this.core.el, 'onAfterSlide.lgtm', function (event) {\n            utils.removeClass(_this.core.___slide[event.detail.prevIndex], 'lg-video-playing');\n          });\n        };\n\n        Video.prototype.loadVideo = function (src, addClass, noposter, index, html) {\n          var video = '';\n          var autoplay = 1;\n          var a = '';\n          var isVideo = this.core.isVideo(src, index) || {}; // Enable autoplay for first video if poster doesn't exist\n\n          if (noposter) {\n            if (this.videoLoaded) {\n              autoplay = 0;\n            } else {\n              autoplay = 1;\n            }\n          }\n\n          if (isVideo.youtube) {\n            a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';\n\n            if (this.core.s.youtubePlayerParams) {\n              a = a + '&' + utils.param(this.core.s.youtubePlayerParams);\n            }\n\n            if (isVideo.nocookie) {\n              video = '<iframe class=\"lg-video-object lg-youtube ' + addClass + '\" width=\"560\" height=\"315\" src=\"//www.youtube-nocookie.com/embed/' + isVideo.youtube[1] + a + '\" frameborder=\"0\" allowfullscreen></iframe>';\n            } else {\n              video = '<iframe class=\"lg-video-object lg-youtube ' + addClass + '\" width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/' + isVideo.youtube[1] + a + '\" frameborder=\"0\" allowfullscreen></iframe>';\n            }\n          } else if (isVideo.vimeo) {\n            a = '?autoplay=' + autoplay + '&api=1';\n\n            if (this.core.s.vimeoPlayerParams) {\n              a = a + '&' + utils.param(this.core.s.vimeoPlayerParams);\n            }\n\n            video = '<iframe class=\"lg-video-object lg-vimeo ' + addClass + '\" width=\"560\" height=\"315\"  src=\"//player.vimeo.com/video/' + isVideo.vimeo[1] + a + '\" frameborder=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';\n          } else if (isVideo.dailymotion) {\n            a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';\n\n            if (this.core.s.dailymotionPlayerParams) {\n              a = a + '&' + utils.param(this.core.s.dailymotionPlayerParams);\n            }\n\n            video = '<iframe class=\"lg-video-object lg-dailymotion ' + addClass + '\" width=\"560\" height=\"315\" src=\"//www.dailymotion.com/embed/video/' + isVideo.dailymotion[1] + a + '\" frameborder=\"0\" allowfullscreen></iframe>';\n          } else if (isVideo.html5) {\n            var fL = html.substring(0, 1);\n\n            if (fL === '.' || fL === '#') {\n              html = document.querySelector(html).innerHTML;\n            }\n\n            video = html;\n          } else if (isVideo.vk) {\n            a = '&autoplay=' + autoplay;\n\n            if (this.core.s.vkPlayerParams) {\n              a = a + '&' + utils.param(this.core.s.vkPlayerParams);\n            }\n\n            video = '<iframe class=\"lg-video-object lg-vk ' + addClass + '\" width=\"560\" height=\"315\" src=\"http://vk.com/video_ext.php?' + isVideo.vk[1] + a + '\" frameborder=\"0\" allowfullscreen></iframe>';\n          }\n\n          return video;\n        };\n\n        Video.prototype.destroy = function () {\n          this.videoLoaded = false;\n        };\n\n        window.lgModules.video = Video;\n      });\n    }, {}]\n  }, {}, [1])(1);\n});\n\n//# sourceURL=webpack://LIS//Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery-video.js?");

/***/ }),

/***/ "../../Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery.js":
/*!*********************************************************************************************************************!*\
  !*** /Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery.js ***!
  \*********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {\n  if (true) {\n    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./lg-utils */ \"../../Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lg-utils.js\")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n  } else { var mod; }\n})(this, function (_lgUtils) {\n  'use strict';\n\n  var _lgUtils2 = _interopRequireDefault(_lgUtils);\n\n  function _interopRequireDefault(obj) {\n    return obj && obj.__esModule ? obj : {\n      default: obj\n    };\n  }\n\n  var _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n  /** Polyfill the CustomEvent() constructor functionality in Internet Explorer 9 and higher */\n\n\n  (function () {\n    if (typeof window.CustomEvent === 'function') {\n      return false;\n    }\n\n    function CustomEvent(event, params) {\n      params = params || {\n        bubbles: false,\n        cancelable: false,\n        detail: undefined\n      };\n      var evt = document.createEvent('CustomEvent');\n      evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n      return evt;\n    }\n\n    CustomEvent.prototype = window.Event.prototype;\n    window.CustomEvent = CustomEvent;\n  })();\n\n  window.utils = _lgUtils2.default;\n  window.lgData = {\n    uid: 0\n  };\n  window.lgModules = {};\n  var defaults = {\n    mode: 'lg-slide',\n    // Ex : 'ease'\n    cssEasing: 'ease',\n    //'for jquery animation'\n    easing: 'linear',\n    speed: 600,\n    height: '100%',\n    width: '100%',\n    addClass: '',\n    startClass: 'lg-start-zoom',\n    backdropDuration: 150,\n    hideBarsDelay: 6000,\n    useLeft: false,\n    closable: true,\n    loop: true,\n    escKey: true,\n    keyPress: true,\n    controls: true,\n    slideEndAnimatoin: true,\n    hideControlOnEnd: false,\n    mousewheel: false,\n    getCaptionFromTitleOrAlt: true,\n    // .lg-item || '.lg-sub-html'\n    appendSubHtmlTo: '.lg-sub-html',\n    subHtmlSelectorRelative: false,\n\n    /**\n     * @desc number of preload slides\n     * will exicute only after the current slide is fully loaded.\n     *\n     * @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th\n     * slide will be loaded in the background after the 4th slide is fully loaded..\n     * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ...\n     *\n     */\n    preload: 1,\n    showAfterLoad: true,\n    selector: '',\n    selectWithin: '',\n    nextHtml: '',\n    prevHtml: '',\n    // 0, 1\n    index: false,\n    iframeMaxWidth: '100%',\n    download: true,\n    counter: true,\n    appendCounterTo: '.lg-toolbar',\n    swipeThreshold: 50,\n    enableSwipe: true,\n    enableDrag: true,\n    dynamic: false,\n    dynamicEl: [],\n    galleryId: 1\n  };\n\n  function Plugin(element, options) {\n    // Current lightGallery element\n    this.el = element; // lightGallery settings\n\n    this.s = _extends({}, defaults, options); // When using dynamic mode, ensure dynamicEl is an array\n\n    if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) {\n      throw 'When using dynamic mode, you must also define dynamicEl as an Array.';\n    } // lightGallery modules\n\n\n    this.modules = {}; // false when lightgallery complete first slide;\n\n    this.lGalleryOn = false;\n    this.lgBusy = false; // Timeout function for hiding controls;\n\n    this.hideBartimeout = false; // To determine browser supports for touch events;\n\n    this.isTouch = 'ontouchstart' in document.documentElement; // Disable hideControlOnEnd if sildeEndAnimation is true\n\n    if (this.s.slideEndAnimatoin) {\n      this.s.hideControlOnEnd = false;\n    }\n\n    this.items = []; // Gallery items\n\n    if (this.s.dynamic) {\n      this.items = this.s.dynamicEl;\n    } else {\n      if (this.s.selector === 'this') {\n        this.items.push(this.el);\n      } else if (this.s.selector !== '') {\n        if (this.s.selectWithin) {\n          this.items = document.querySelector(this.s.selectWithin).querySelectorAll(this.s.selector);\n        } else {\n          this.items = this.el.querySelectorAll(this.s.selector);\n        }\n      } else {\n        this.items = this.el.children;\n      }\n    } // .lg-item\n\n\n    this.___slide = ''; // .lg-outer\n\n    this.outer = '';\n    this.init();\n    return this;\n  }\n\n  Plugin.prototype.init = function () {\n    var _this = this; // s.preload should not be more than $item.length\n\n\n    if (_this.s.preload > _this.items.length) {\n      _this.s.preload = _this.items.length;\n    } // if dynamic option is enabled execute immediately\n\n\n    var _hash = window.location.hash;\n\n    if (_hash.indexOf('lg=' + this.s.galleryId) > 0) {\n      _this.index = parseInt(_hash.split('&slide=')[1], 10);\n\n      _lgUtils2.default.addClass(document.body, 'lg-from-hash');\n\n      if (!_lgUtils2.default.hasClass(document.body, 'lg-on')) {\n        _lgUtils2.default.addClass(document.body, 'lg-on');\n\n        setTimeout(function () {\n          _this.build(_this.index);\n        });\n      }\n    }\n\n    if (_this.s.dynamic) {\n      _lgUtils2.default.trigger(this.el, 'onBeforeOpen');\n\n      _this.index = _this.s.index || 0; // prevent accidental double execution\n\n      if (!_lgUtils2.default.hasClass(document.body, 'lg-on')) {\n        _lgUtils2.default.addClass(document.body, 'lg-on');\n\n        setTimeout(function () {\n          _this.build(_this.index);\n        });\n      }\n    } else {\n      var i;\n      var i;\n\n      (function () {\n        var openGallery = function openGallery(index) {\n          _lgUtils2.default.trigger(_this.el, 'onBeforeOpen');\n\n          _this.index = _this.s.index || index;\n\n          if (!_lgUtils2.default.hasClass(document.body, 'lg-on')) {\n            _this.build(_this.index);\n\n            _lgUtils2.default.addClass(document.body, 'lg-on');\n          }\n        };\n\n        for (i = 0; i < _this.items.length; i++) {\n          /*jshint loopfunc: true */\n          (function (index) {\n            // Using different namespace for click because click event should not unbind if selector is same object('this')\n            _lgUtils2.default.on(_this.items[index], 'click.lgcustom', function (e) {\n              e.preventDefault();\n              openGallery(index);\n            });\n          })(i);\n        }\n\n        var buttons = _this.el.querySelectorAll('[data-toubiz-gallery-open]');\n\n        for (i = 0; i < buttons.length; i++) {\n          /*jshint loopfunc: true */\n          (function (index) {\n            _lgUtils2.default.on(buttons[index], 'click.lgcustom', function (e) {\n              e.preventDefault();\n              openGallery(index);\n            });\n          })(i);\n        }\n      })();\n    }\n  };\n\n  Plugin.prototype.build = function (index) {\n    var _this = this;\n\n    _this.structure();\n\n    for (var key in window.lgModules) {\n      _this.modules[key] = new window.lgModules[key](_this.el);\n    } // initiate slide function\n\n\n    _this.slide(index, false, false);\n\n    if (_this.s.keyPress) {\n      _this.keyPress();\n    }\n\n    if (_this.items.length > 1) {\n      _this.arrow();\n\n      setTimeout(function () {\n        _this.enableDrag();\n\n        _this.enableSwipe();\n      }, 50);\n\n      if (_this.s.mousewheel) {\n        _this.mousewheel();\n      }\n    }\n\n    _this.counter();\n\n    _this.closeGallery();\n\n    _lgUtils2.default.trigger(_this.el, 'onAfterOpen'); // Hide controllers if mouse doesn't move for some period\n\n\n    _lgUtils2.default.on(_this.outer, 'mousemove.lg click.lg touchstart.lg', function () {\n      _lgUtils2.default.removeClass(_this.outer, 'lg-hide-items');\n\n      clearTimeout(_this.hideBartimeout); // Timeout will be cleared on each slide movement also\n\n      _this.hideBartimeout = setTimeout(function () {\n        _lgUtils2.default.addClass(_this.outer, 'lg-hide-items');\n      }, _this.s.hideBarsDelay);\n    });\n  };\n\n  Plugin.prototype.structure = function () {\n    var list = '';\n    var controls = '';\n    var i = 0;\n    var subHtmlCont = '';\n    var template;\n\n    var _this = this;\n\n    document.body.insertAdjacentHTML('beforeend', '<div class=\"lg-backdrop\"></div>');\n\n    _lgUtils2.default.setVendor(document.querySelector('.lg-backdrop'), 'TransitionDuration', this.s.backdropDuration + 'ms'); // Create gallery items\n\n\n    for (i = 0; i < this.items.length; i++) {\n      list += \"<div class=\\\"lg-item\\\"><div class=\\\"lg-load-spinner\\\"><svg class=\\\"c-icon\\\" role=\\\"img\\\"><use xlink:href=\\\"#tb-gallery-icon-loading\\\"></use></svg></div></div>\";\n    } // Create controlls\n\n\n    if (this.s.controls && this.items.length > 1) {\n      controls = '<div class=\"lg-actions\">' + '<div class=\"lg-prev lg-icon\">' + \"<svg class=\\\"c-icon\\\" role=\\\"img\\\"><use xlink:href=\\\"#tb-gallery-icon-prev\\\"></use></svg>\" + '</div>' + '<div class=\"lg-next lg-icon\">' + \"<svg class=\\\"c-icon\\\" role=\\\"img\\\"><use xlink:href=\\\"#tb-gallery-icon-next\\\"></use></svg>\" + '</div>' + '</div>';\n    }\n\n    if (this.s.appendSubHtmlTo === '.lg-sub-html') {\n      subHtmlCont = '<div class=\"lg-sub-html\"></div>';\n    }\n\n    template = '<div class=\"lg-outer ' + this.s.addClass + ' ' + this.s.startClass + '\">' + '<div class=\"lg\" style=\"width:' + this.s.width + '; height:' + this.s.height + '\">' + '<div class=\"lg-inner\">' + list + '</div>' + '<div class=\"lg-toolbar group\">' + \"<span class=\\\"lg-close lg-icon\\\"><svg class=\\\"c-icon\\\" role=\\\"img\\\"><use xlink:href=\\\"#tb-gallery-icon-close\\\"></use></svg></span>\" + '</div>' + controls + subHtmlCont + '</div>' + '</div>';\n    document.body.insertAdjacentHTML('beforeend', template);\n    this.outer = document.querySelector('.lg-outer');\n    this.___slide = this.outer.querySelectorAll('.lg-item');\n\n    if (this.s.useLeft) {\n      _lgUtils2.default.addClass(this.outer, 'lg-use-left'); // Set mode lg-slide if use left is true;\n\n\n      this.s.mode = 'lg-slide';\n    } else {\n      _lgUtils2.default.addClass(this.outer, 'lg-use-css3');\n    } // For fixed height gallery\n\n\n    _this.setTop();\n\n    _lgUtils2.default.on(window, 'resize.lg orientationchange.lg', function () {\n      setTimeout(function () {\n        _this.setTop();\n      }, 100);\n    }); // add class lg-current to remove initial transition\n\n\n    _lgUtils2.default.addClass(this.___slide[this.index], 'lg-current'); // add Class for css support and transition mode\n\n\n    if (this.doCss()) {\n      _lgUtils2.default.addClass(this.outer, 'lg-css3');\n    } else {\n      _lgUtils2.default.addClass(this.outer, 'lg-css'); // Set speed 0 because no animation will happen if browser doesn't support css3\n\n\n      this.s.speed = 0;\n    }\n\n    _lgUtils2.default.addClass(this.outer, this.s.mode);\n\n    if (this.s.enableDrag && this.items.length > 1) {\n      _lgUtils2.default.addClass(this.outer, 'lg-grab');\n    }\n\n    if (this.s.showAfterLoad) {\n      _lgUtils2.default.addClass(this.outer, 'lg-show-after-load');\n    }\n\n    if (this.doCss()) {\n      var inner = this.outer.querySelector('.lg-inner');\n\n      _lgUtils2.default.setVendor(inner, 'TransitionTimingFunction', this.s.cssEasing);\n\n      _lgUtils2.default.setVendor(inner, 'TransitionDuration', this.s.speed + 'ms');\n    }\n\n    setTimeout(function () {\n      _lgUtils2.default.addClass(document.querySelector('.lg-backdrop'), 'in');\n    });\n    setTimeout(function () {\n      _lgUtils2.default.addClass(_this.outer, 'lg-visible');\n    }, this.s.backdropDuration);\n\n    if (this.s.download) {\n      this.outer.querySelector('.lg-toolbar').insertAdjacentHTML('beforeend', '<a id=\"lg-download\" target=\"_blank\" download class=\"lg-download lg-icon\"></a>');\n    } // Store the current scroll top value to scroll back after closing the gallery..\n\n\n    this.prevScrollTop = document.documentElement.scrollTop || document.body.scrollTop;\n  }; // For fixed height gallery\n\n\n  Plugin.prototype.setTop = function () {\n    if (this.s.height !== '100%') {\n      var wH = window.innerHeight;\n      var top = (wH - parseInt(this.s.height, 10)) / 2;\n      var lGallery = this.outer.querySelector('.lg');\n\n      if (wH >= parseInt(this.s.height, 10)) {\n        lGallery.style.top = top + 'px';\n      } else {\n        lGallery.style.top = '0px';\n      }\n    }\n  }; // Find css3 support\n\n\n  Plugin.prototype.doCss = function () {\n    // check for css animation support\n    var support = function support() {\n      var transition = ['transition', 'MozTransition', 'WebkitTransition', 'OTransition', 'msTransition', 'KhtmlTransition'];\n      var root = document.documentElement;\n      var i = 0;\n\n      for (i = 0; i < transition.length; i++) {\n        if (transition[i] in root.style) {\n          return true;\n        }\n      }\n    };\n\n    if (support()) {\n      return true;\n    }\n\n    return false;\n  };\n  /**\n   *  @desc Check the given src is video\n   *  @param {String} src\n   *  @return {Object} video type\n   *  Ex:{ youtube  :  [\"//www.youtube.com/watch?v=c0asJgSyxcY\", \"c0asJgSyxcY\"] }\n   */\n\n\n  Plugin.prototype.isVideo = function (src, index) {\n    var html;\n\n    if (this.s.dynamic) {\n      html = this.s.dynamicEl[index].html;\n    } else {\n      html = this.items[index].getAttribute('data-html');\n    }\n\n    if (!src && html) {\n      return {\n        html5: true\n      };\n    }\n\n    var youtube = src.match(/^.*(?:(?:youtu\\.be\\/|v\\/|vi\\/|u\\/\\w\\/|embed\\/)|(?:(?:watch)?\\?v(?:i)?=|\\&v(?:i)?=))([^#\\&\\?]*).*/);\n    var vimeo = src.match(/\\/\\/(?:www\\.)?vimeo.com\\/([0-9a-z\\-_]+)/i);\n    var dailymotion = src.match(/\\/\\/(?:www\\.)?dai.ly\\/([0-9a-z\\-_]+)/i);\n    var vk = src.match(/\\/\\/(?:www\\.)?(?:vk\\.com|vkontakte\\.ru)\\/(?:video_ext\\.php\\?)(.*)/i);\n\n    if (youtube) {\n      return {\n        youtube: youtube,\n        nocookie: youtube[0].indexOf('nocookie') > -1\n      };\n    } else if (vimeo) {\n      return {\n        vimeo: vimeo\n      };\n    } else if (dailymotion) {\n      return {\n        dailymotion: dailymotion\n      };\n    } else if (vk) {\n      return {\n        vk: vk\n      };\n    }\n  };\n  /**\n   *  @desc Create image counter\n   *  Ex: 1/10\n   */\n\n\n  Plugin.prototype.counter = function () {\n    if (this.s.counter) {\n      this.outer.querySelector(this.s.appendCounterTo).insertAdjacentHTML('beforeend', '<div id=\"lg-counter\"><span id=\"lg-counter-current\">' + (parseInt(this.index, 10) + 1) + '</span> / <span id=\"lg-counter-all\">' + this.items.length + '</span></div>');\n    }\n  };\n  /**\n   *  @desc add sub-html into the slide\n   *  @param {Number} index - index of the slide\n   */\n\n\n  Plugin.prototype.addHtml = function (index) {\n    var subHtml = null;\n    var currentEle;\n\n    if (this.s.dynamic) {\n      subHtml = this.s.dynamicEl[index].subHtml;\n    } else {\n      currentEle = this.items[index];\n      subHtml = currentEle.getAttribute('data-sub-html');\n\n      if (this.s.getCaptionFromTitleOrAlt && !subHtml) {\n        subHtml = currentEle.getAttribute('title');\n\n        if (subHtml && currentEle.querySelector('img')) {\n          subHtml = currentEle.querySelector('img').getAttribute('alt');\n        }\n      }\n    }\n\n    if (typeof subHtml !== 'undefined' && subHtml !== null) {\n      // get first letter of subhtml\n      // if first letter starts with . or # get the html form the jQuery object\n      var fL = subHtml.substring(0, 1);\n\n      if (fL === '.' || fL === '#') {\n        if (this.s.subHtmlSelectorRelative && !this.s.dynamic) {\n          subHtml = currentEle.querySelector(subHtml).innerHTML;\n        } else {\n          subHtml = document.querySelector(subHtml).innerHTML;\n        }\n      }\n    } else {\n      subHtml = '';\n    }\n\n    if (this.s.appendSubHtmlTo === '.lg-sub-html') {\n      this.outer.querySelector(this.s.appendSubHtmlTo).innerHTML = subHtml;\n    } else {\n      this.___slide[index].insertAdjacentHTML('beforeend', subHtml);\n    } // Add lg-empty-html class if title doesn't exist\n\n\n    if (typeof subHtml !== 'undefined' && subHtml !== null) {\n      if (subHtml === '') {\n        _lgUtils2.default.addClass(this.outer.querySelector(this.s.appendSubHtmlTo), 'lg-empty-html');\n      } else {\n        _lgUtils2.default.removeClass(this.outer.querySelector(this.s.appendSubHtmlTo), 'lg-empty-html');\n      }\n    }\n\n    _lgUtils2.default.trigger(this.el, 'onAfterAppendSubHtml', {\n      index: index\n    });\n  };\n  /**\n   *  @desc Preload slides\n   *  @param {Number} index - index of the slide\n   */\n\n\n  Plugin.prototype.preload = function (index) {\n    var i = 1;\n    var j = 1;\n\n    for (i = 1; i <= this.s.preload; i++) {\n      if (i >= this.items.length - index) {\n        break;\n      }\n\n      this.loadContent(index + i, false, 0);\n    }\n\n    for (j = 1; j <= this.s.preload; j++) {\n      if (index - j < 0) {\n        break;\n      }\n\n      this.loadContent(index - j, false, 0);\n    }\n  };\n  /**\n   *  @desc Load slide content into slide.\n   *  @param {Number} index - index of the slide.\n   *  @param {Boolean} rec - if true call loadcontent() function again.\n   *  @param {Boolean} delay - delay for adding complete class. it is 0 except first time.\n   */\n\n\n  Plugin.prototype.loadContent = function (index, rec, delay) {\n    var _this = this;\n\n    var _hasPoster = false;\n\n    var _img;\n\n    var _src;\n\n    var _poster;\n\n    var _srcset;\n\n    var _sizes;\n\n    var _html;\n\n    var getResponsiveSrc = function getResponsiveSrc(srcItms) {\n      var rsWidth = [];\n      var rsSrc = [];\n\n      for (var i = 0; i < srcItms.length; i++) {\n        var __src = srcItms[i].split(' '); // Manage empty space\n\n\n        if (__src[0] === '') {\n          __src.splice(0, 1);\n        }\n\n        rsSrc.push(__src[0]);\n        rsWidth.push(__src[1]);\n      }\n\n      var wWidth = window.innerWidth;\n\n      for (var j = 0; j < rsWidth.length; j++) {\n        if (parseInt(rsWidth[j], 10) > wWidth) {\n          _src = rsSrc[j];\n          break;\n        }\n      }\n    };\n\n    if (_this.s.dynamic) {\n      if (_this.s.dynamicEl[index].poster) {\n        _hasPoster = true;\n        _poster = _this.s.dynamicEl[index].poster;\n      }\n\n      _html = _this.s.dynamicEl[index].html;\n      _src = _this.s.dynamicEl[index].src;\n\n      if (_this.s.dynamicEl[index].responsive) {\n        var srcDyItms = _this.s.dynamicEl[index].responsive.split(',');\n\n        getResponsiveSrc(srcDyItms);\n      }\n\n      _srcset = _this.s.dynamicEl[index].srcset;\n      _sizes = _this.s.dynamicEl[index].sizes;\n    } else {\n      if (_this.items[index].getAttribute('data-poster')) {\n        _hasPoster = true;\n        _poster = _this.items[index].getAttribute('data-poster');\n      }\n\n      _html = _this.items[index].getAttribute('data-html');\n      _src = _this.items[index].getAttribute('href') || _this.items[index].getAttribute('data-src');\n\n      if (_this.items[index].getAttribute('data-responsive')) {\n        var srcItms = _this.items[index].getAttribute('data-responsive').split(',');\n\n        getResponsiveSrc(srcItms);\n      }\n\n      _srcset = _this.items[index].getAttribute('data-srcset');\n      _sizes = _this.items[index].getAttribute('data-sizes');\n    } //if (_src || _srcset || _sizes || _poster) {\n\n\n    var iframe = false;\n\n    if (_this.s.dynamic) {\n      if (_this.s.dynamicEl[index].iframe) {\n        iframe = true;\n      }\n    } else {\n      if (_this.items[index].getAttribute('data-iframe') === 'true') {\n        iframe = true;\n      }\n    }\n\n    var _isVideo = _this.isVideo(_src, index);\n\n    if (!_lgUtils2.default.hasClass(_this.___slide[index], 'lg-loaded')) {\n      if (iframe) {\n        _this.___slide[index].insertAdjacentHTML('afterbegin', '<div class=\"lg-video-cont\" style=\"max-width:' + _this.s.iframeMaxWidth + '\"><div class=\"lg-video\"><iframe class=\"lg-object\" frameborder=\"0\" src=\"' + _src + '\"  allowfullscreen=\"true\"></iframe></div></div>');\n      } else if (_hasPoster) {\n        var videoClass = '';\n\n        if (_isVideo && _isVideo.youtube) {\n          videoClass = 'lg-has-youtube';\n        } else if (_isVideo && _isVideo.vimeo) {\n          videoClass = 'lg-has-vimeo';\n        } else {\n          videoClass = 'lg-has-html5';\n        }\n\n        _this.___slide[index].insertAdjacentHTML('beforeend', '<div class=\"lg-video-cont ' + videoClass + ' \"><div class=\"lg-video\"><span class=\"lg-video-play\"></span><img class=\"lg-object lg-has-poster\" src=\"' + _poster + '\" /></div></div>');\n      } else if (_isVideo) {\n        _this.___slide[index].insertAdjacentHTML('beforeend', '<div class=\"lg-video-cont \"><div class=\"lg-video\"></div></div>');\n\n        _lgUtils2.default.trigger(_this.el, 'hasVideo', {\n          index: index,\n          src: _src,\n          html: _html\n        });\n      } else {\n        _this.___slide[index].insertAdjacentHTML('beforeend', '<div class=\"lg-img-wrap\"><img class=\"lg-object lg-image\" src=\"' + _src + '\" /></div>');\n      }\n\n      _lgUtils2.default.trigger(_this.el, 'onAferAppendSlide', {\n        index: index\n      });\n\n      _img = _this.___slide[index].querySelector('.lg-object');\n\n      if (_sizes) {\n        _img.setAttribute('sizes', _sizes);\n      }\n\n      if (_srcset) {\n        _img.setAttribute('srcset', _srcset);\n\n        try {\n          picturefill({\n            elements: [_img[0]]\n          });\n        } catch (e) {\n          console.error('Make sure you have included Picturefill version 2');\n        }\n      }\n\n      if (this.s.appendSubHtmlTo !== '.lg-sub-html') {\n        _this.addHtml(index);\n      }\n\n      _lgUtils2.default.addClass(_this.___slide[index], 'lg-loaded');\n    }\n\n    _lgUtils2.default.on(_this.___slide[index].querySelector('.lg-object'), 'load.lg error.lg', function () {\n      // For first time add some delay for displaying the start animation.\n      var _speed = 0; // Do not change the delay value because it is required for zoom plugin.\n      // If gallery opened from direct url (hash) speed value should be 0\n\n      if (delay && !_lgUtils2.default.hasClass(document.body, 'lg-from-hash')) {\n        _speed = delay;\n      }\n\n      setTimeout(function () {\n        _lgUtils2.default.addClass(_this.___slide[index], 'lg-complete');\n\n        _lgUtils2.default.trigger(_this.el, 'onSlideItemLoad', {\n          index: index,\n          delay: delay || 0\n        });\n      }, _speed);\n    }); // @todo check load state for html5 videos\n\n\n    if (_isVideo && _isVideo.html5 && !_hasPoster) {\n      _lgUtils2.default.addClass(_this.___slide[index], 'lg-complete');\n    }\n\n    if (rec === true) {\n      if (!_lgUtils2.default.hasClass(_this.___slide[index], 'lg-complete')) {\n        _lgUtils2.default.on(_this.___slide[index].querySelector('.lg-object'), 'load.lg error.lg', function () {\n          _this.preload(index);\n        });\n      } else {\n        _this.preload(index);\n      }\n    } //}\n\n  };\n  /**\n  *   @desc slide function for lightgallery\n      ** Slide() gets call on start\n      ** ** Set lg.on true once slide() function gets called.\n      ** Call loadContent() on slide() function inside setTimeout\n      ** ** On first slide we do not want any animation like slide of fade\n      ** ** So on first slide( if lg.on if false that is first slide) loadContent() should start loading immediately\n      ** ** Else loadContent() should wait for the transition to complete.\n      ** ** So set timeout s.speed + 50\n  <=> ** loadContent() will load slide content in to the particular slide\n      ** ** It has recursion (rec) parameter. if rec === true loadContent() will call preload() function.\n      ** ** preload will execute only when the previous slide is fully loaded (images iframe)\n      ** ** avoid simultaneous image load\n  <=> ** Preload() will check for s.preload value and call loadContent() again accoring to preload value\n      ** loadContent()  <====> Preload();\n   *   @param {Number} index - index of the slide\n  *   @param {Boolean} fromTouch - true if slide function called via touch event or mouse drag\n  *   @param {Boolean} fromThumb - true if slide function called via thumbnail click\n  */\n\n\n  Plugin.prototype.slide = function (index, fromTouch, fromThumb) {\n    var _prevIndex = 0;\n\n    for (var i = 0; i < this.___slide.length; i++) {\n      if (_lgUtils2.default.hasClass(this.___slide[i], 'lg-current')) {\n        _prevIndex = i;\n        break;\n      }\n    }\n\n    var _this = this; // Prevent if multiple call\n    // Required for hsh plugin\n\n\n    if (_this.lGalleryOn && _prevIndex === index) {\n      return;\n    }\n\n    var _length = this.___slide.length;\n\n    var _time = _this.lGalleryOn ? this.s.speed : 0;\n\n    var _next = false;\n    var _prev = false;\n\n    if (!_this.lgBusy) {\n      if (this.s.download) {\n        var _src;\n\n        if (_this.s.dynamic) {\n          _src = _this.s.dynamicEl[index].downloadUrl !== false && (_this.s.dynamicEl[index].downloadUrl || _this.s.dynamicEl[index].src);\n        } else {\n          _src = _this.items[index].getAttribute('data-download-url') !== 'false' && (_this.items[index].getAttribute('data-download-url') || _this.items[index].getAttribute('href') || _this.items[index].getAttribute('data-src'));\n        }\n\n        if (_src) {\n          document.getElementById('lg-download').setAttribute('href', _src);\n\n          _lgUtils2.default.removeClass(_this.outer, 'lg-hide-download');\n        } else {\n          _lgUtils2.default.addClass(_this.outer, 'lg-hide-download');\n        }\n      }\n\n      _lgUtils2.default.trigger(_this.el, 'onBeforeSlide', {\n        prevIndex: _prevIndex,\n        index: index,\n        fromTouch: fromTouch,\n        fromThumb: fromThumb\n      });\n\n      _this.lgBusy = true;\n      clearTimeout(_this.hideBartimeout); // Add title if this.s.appendSubHtmlTo === lg-sub-html\n\n      if (this.s.appendSubHtmlTo === '.lg-sub-html') {\n        // wait for slide animation to complete\n        setTimeout(function () {\n          _this.addHtml(index);\n        }, _time);\n      }\n\n      this.arrowDisable(index);\n\n      if (!fromTouch) {\n        // remove all transitions\n        _lgUtils2.default.addClass(_this.outer, 'lg-no-trans');\n\n        for (var j = 0; j < this.___slide.length; j++) {\n          _lgUtils2.default.removeClass(this.___slide[j], 'lg-prev-slide');\n\n          _lgUtils2.default.removeClass(this.___slide[j], 'lg-next-slide');\n        }\n\n        if (index < _prevIndex) {\n          _prev = true;\n\n          if (index === 0 && _prevIndex === _length - 1 && !fromThumb) {\n            _prev = false;\n            _next = true;\n          }\n        } else if (index > _prevIndex) {\n          _next = true;\n\n          if (index === _length - 1 && _prevIndex === 0 && !fromThumb) {\n            _prev = true;\n            _next = false;\n          }\n        }\n\n        if (_prev) {\n          //prevslide\n          _lgUtils2.default.addClass(this.___slide[index], 'lg-prev-slide');\n\n          _lgUtils2.default.addClass(this.___slide[_prevIndex], 'lg-next-slide');\n        } else if (_next) {\n          // next slide\n          _lgUtils2.default.addClass(this.___slide[index], 'lg-next-slide');\n\n          _lgUtils2.default.addClass(this.___slide[_prevIndex], 'lg-prev-slide');\n        } // give 50 ms for browser to add/remove class\n\n\n        setTimeout(function () {\n          _lgUtils2.default.removeClass(_this.outer.querySelector('.lg-current'), 'lg-current'); //_this.$slide.eq(_prevIndex).removeClass('lg-current');\n\n\n          _lgUtils2.default.addClass(_this.___slide[index], 'lg-current'); // reset all transitions\n\n\n          _lgUtils2.default.removeClass(_this.outer, 'lg-no-trans');\n        }, 50);\n      } else {\n        var touchPrev = index - 1;\n        var touchNext = index + 1;\n\n        if (index === 0 && _prevIndex === _length - 1) {\n          // next slide\n          touchNext = 0;\n          touchPrev = _length - 1;\n        } else if (index === _length - 1 && _prevIndex === 0) {\n          // prev slide\n          touchNext = 0;\n          touchPrev = _length - 1;\n        }\n\n        _lgUtils2.default.removeClass(_this.outer.querySelector('.lg-prev-slide'), 'lg-prev-slide');\n\n        _lgUtils2.default.removeClass(_this.outer.querySelector('.lg-current'), 'lg-current');\n\n        _lgUtils2.default.removeClass(_this.outer.querySelector('.lg-next-slide'), 'lg-next-slide');\n\n        _lgUtils2.default.addClass(_this.___slide[touchPrev], 'lg-prev-slide');\n\n        _lgUtils2.default.addClass(_this.___slide[touchNext], 'lg-next-slide');\n\n        _lgUtils2.default.addClass(_this.___slide[index], 'lg-current');\n      }\n\n      if (_this.lGalleryOn) {\n        setTimeout(function () {\n          _this.loadContent(index, true, 0);\n        }, this.s.speed + 50);\n        setTimeout(function () {\n          _this.lgBusy = false;\n\n          _lgUtils2.default.trigger(_this.el, 'onAfterSlide', {\n            prevIndex: _prevIndex,\n            index: index,\n            fromTouch: fromTouch,\n            fromThumb: fromThumb\n          });\n        }, this.s.speed);\n      } else {\n        _this.loadContent(index, true, _this.s.backdropDuration);\n\n        _this.lgBusy = false;\n\n        _lgUtils2.default.trigger(_this.el, 'onAfterSlide', {\n          prevIndex: _prevIndex,\n          index: index,\n          fromTouch: fromTouch,\n          fromThumb: fromThumb\n        });\n      }\n\n      _this.lGalleryOn = true;\n\n      if (this.s.counter) {\n        if (document.getElementById('lg-counter-current')) {\n          document.getElementById('lg-counter-current').innerHTML = index + 1;\n        }\n      }\n    }\n  };\n  /**\n   *  @desc Go to next slide\n   *  @param {Boolean} fromTouch - true if slide function called via touch event\n   */\n\n\n  Plugin.prototype.goToNextSlide = function (fromTouch) {\n    var _this = this;\n\n    if (!_this.lgBusy) {\n      if (_this.index + 1 < _this.___slide.length) {\n        _this.index++;\n\n        _lgUtils2.default.trigger(_this.el, 'onBeforeNextSlide', {\n          index: _this.index\n        });\n\n        _this.slide(_this.index, fromTouch, false);\n      } else {\n        if (_this.s.loop) {\n          _this.index = 0;\n\n          _lgUtils2.default.trigger(_this.el, 'onBeforeNextSlide', {\n            index: _this.index\n          });\n\n          _this.slide(_this.index, fromTouch, false);\n        } else if (_this.s.slideEndAnimatoin) {\n          _lgUtils2.default.addClass(_this.outer, 'lg-right-end');\n\n          setTimeout(function () {\n            _lgUtils2.default.removeClass(_this.outer, 'lg-right-end');\n          }, 400);\n        }\n      }\n    }\n  };\n  /**\n   *  @desc Go to previous slide\n   *  @param {Boolean} fromTouch - true if slide function called via touch event\n   */\n\n\n  Plugin.prototype.goToPrevSlide = function (fromTouch) {\n    var _this = this;\n\n    if (!_this.lgBusy) {\n      if (_this.index > 0) {\n        _this.index--;\n\n        _lgUtils2.default.trigger(_this.el, 'onBeforePrevSlide', {\n          index: _this.index,\n          fromTouch: fromTouch\n        });\n\n        _this.slide(_this.index, fromTouch, false);\n      } else {\n        if (_this.s.loop) {\n          _this.index = _this.items.length - 1;\n\n          _lgUtils2.default.trigger(_this.el, 'onBeforePrevSlide', {\n            index: _this.index,\n            fromTouch: fromTouch\n          });\n\n          _this.slide(_this.index, fromTouch, false);\n        } else if (_this.s.slideEndAnimatoin) {\n          _lgUtils2.default.addClass(_this.outer, 'lg-left-end');\n\n          setTimeout(function () {\n            _lgUtils2.default.removeClass(_this.outer, 'lg-left-end');\n          }, 400);\n        }\n      }\n    }\n  };\n\n  Plugin.prototype.keyPress = function () {\n    var _this = this;\n\n    if (this.items.length > 1) {\n      _lgUtils2.default.on(window, 'keyup.lg', function (e) {\n        if (_this.items.length > 1) {\n          if (e.keyCode === 37) {\n            e.preventDefault();\n\n            _this.goToPrevSlide();\n          }\n\n          if (e.keyCode === 39) {\n            e.preventDefault();\n\n            _this.goToNextSlide();\n          }\n        }\n      });\n    }\n\n    _lgUtils2.default.on(window, 'keydown.lg', function (e) {\n      if (_this.s.escKey === true && e.keyCode === 27) {\n        e.preventDefault();\n\n        if (!_lgUtils2.default.hasClass(_this.outer, 'lg-thumb-open')) {\n          _this.destroy();\n        } else {\n          _lgUtils2.default.removeClass(_this.outer, 'lg-thumb-open');\n        }\n      }\n    });\n  };\n\n  Plugin.prototype.arrow = function () {\n    var _this = this;\n\n    _lgUtils2.default.on(this.outer.querySelector('.lg-prev'), 'click.lg', function () {\n      _this.goToPrevSlide();\n    });\n\n    _lgUtils2.default.on(this.outer.querySelector('.lg-next'), 'click.lg', function () {\n      _this.goToNextSlide();\n    });\n  };\n\n  Plugin.prototype.arrowDisable = function (index) {\n    // Disable arrows if s.hideControlOnEnd is true\n    if (!this.s.loop && this.s.hideControlOnEnd) {\n      var next = this.outer.querySelector('.lg-next');\n      var prev = this.outer.querySelector('.lg-prev');\n\n      if (index + 1 < this.___slide.length) {\n        next.removeAttribute('disabled');\n\n        _lgUtils2.default.removeClass(next, 'disabled');\n      } else {\n        next.setAttribute('disabled', 'disabled');\n\n        _lgUtils2.default.addClass(next, 'disabled');\n      }\n\n      if (index > 0) {\n        prev.removeAttribute('disabled');\n\n        _lgUtils2.default.removeClass(prev, 'disabled');\n      } else {\n        next.setAttribute('disabled', 'disabled');\n\n        _lgUtils2.default.addClass(next, 'disabled');\n      }\n    }\n  };\n\n  Plugin.prototype.setTranslate = function (el, xValue, yValue) {\n    // jQuery supports Automatic CSS prefixing since jQuery 1.8.0\n    if (this.s.useLeft) {\n      el.style.left = xValue;\n    } else {\n      _lgUtils2.default.setVendor(el, 'Transform', 'translate3d(' + xValue + 'px, ' + yValue + 'px, 0px)');\n    }\n  };\n\n  Plugin.prototype.touchMove = function (startCoords, endCoords) {\n    var distance = endCoords - startCoords;\n\n    if (Math.abs(distance) > 15) {\n      // reset opacity and transition duration\n      _lgUtils2.default.addClass(this.outer, 'lg-dragging'); // move current slide\n\n\n      this.setTranslate(this.___slide[this.index], distance, 0); // move next and prev slide with current slide\n\n      this.setTranslate(document.querySelector('.lg-prev-slide'), -this.___slide[this.index].clientWidth + distance, 0);\n      this.setTranslate(document.querySelector('.lg-next-slide'), this.___slide[this.index].clientWidth + distance, 0);\n    }\n  };\n\n  Plugin.prototype.touchEnd = function (distance) {\n    var _this = this; // keep slide animation for any mode while dragg/swipe\n\n\n    if (_this.s.mode !== 'lg-slide') {\n      _lgUtils2.default.addClass(_this.outer, 'lg-slide');\n    }\n\n    for (var i = 0; i < this.___slide.length; i++) {\n      if (!_lgUtils2.default.hasClass(this.___slide[i], 'lg-current') && !_lgUtils2.default.hasClass(this.___slide[i], 'lg-prev-slide') && !_lgUtils2.default.hasClass(this.___slide[i], 'lg-next-slide')) {\n        this.___slide[i].style.opacity = '0';\n      }\n    } // set transition duration\n\n\n    setTimeout(function () {\n      _lgUtils2.default.removeClass(_this.outer, 'lg-dragging');\n\n      if (distance < 0 && Math.abs(distance) > _this.s.swipeThreshold) {\n        _this.goToNextSlide(true);\n      } else if (distance > 0 && Math.abs(distance) > _this.s.swipeThreshold) {\n        _this.goToPrevSlide(true);\n      } else if (Math.abs(distance) < 5) {\n        // Trigger click if distance is less than 5 pix\n        _lgUtils2.default.trigger(_this.el, 'onSlideClick');\n      }\n\n      for (var i = 0; i < _this.___slide.length; i++) {\n        _this.___slide[i].removeAttribute('style');\n      }\n    }); // remove slide class once drag/swipe is completed if mode is not slide\n\n    setTimeout(function () {\n      if (!_lgUtils2.default.hasClass(_this.outer, 'lg-dragging') && _this.s.mode !== 'lg-slide') {\n        _lgUtils2.default.removeClass(_this.outer, 'lg-slide');\n      }\n    }, _this.s.speed + 100);\n  };\n\n  Plugin.prototype.enableSwipe = function () {\n    var _this = this;\n\n    var startCoords = 0;\n    var endCoords = 0;\n    var isMoved = false;\n\n    if (_this.s.enableSwipe && _this.isTouch && _this.doCss()) {\n      for (var i = 0; i < _this.___slide.length; i++) {\n        /*jshint loopfunc: true */\n        _lgUtils2.default.on(_this.___slide[i], 'touchstart.lg', function (e) {\n          if (!_lgUtils2.default.hasClass(_this.outer, 'lg-zoomed') && !_this.lgBusy) {\n            e.preventDefault();\n\n            _this.manageSwipeClass();\n\n            startCoords = e.targetTouches[0].pageX;\n          }\n        });\n      }\n\n      for (var j = 0; j < _this.___slide.length; j++) {\n        /*jshint loopfunc: true */\n        _lgUtils2.default.on(_this.___slide[j], 'touchmove.lg', function (e) {\n          if (!_lgUtils2.default.hasClass(_this.outer, 'lg-zoomed')) {\n            e.preventDefault();\n            endCoords = e.targetTouches[0].pageX;\n\n            _this.touchMove(startCoords, endCoords);\n\n            isMoved = true;\n          }\n        });\n      }\n\n      for (var k = 0; k < _this.___slide.length; k++) {\n        /*jshint loopfunc: true */\n        _lgUtils2.default.on(_this.___slide[k], 'touchend.lg', function () {\n          if (!_lgUtils2.default.hasClass(_this.outer, 'lg-zoomed')) {\n            if (isMoved) {\n              isMoved = false;\n\n              _this.touchEnd(endCoords - startCoords);\n            } else {\n              _lgUtils2.default.trigger(_this.el, 'onSlideClick');\n            }\n          }\n        });\n      }\n    }\n  };\n\n  Plugin.prototype.enableDrag = function () {\n    var _this = this;\n\n    var startCoords = 0;\n    var endCoords = 0;\n    var isDraging = false;\n    var isMoved = false;\n\n    if (_this.s.enableDrag && !_this.isTouch && _this.doCss()) {\n      for (var i = 0; i < _this.___slide.length; i++) {\n        /*jshint loopfunc: true */\n        _lgUtils2.default.on(_this.___slide[i], 'mousedown.lg', function (e) {\n          // execute only on .lg-object\n          if (!_lgUtils2.default.hasClass(_this.outer, 'lg-zoomed')) {\n            if (_lgUtils2.default.hasClass(e.target, 'lg-object') || _lgUtils2.default.hasClass(e.target, 'lg-video-play')) {\n              e.preventDefault();\n\n              if (!_this.lgBusy) {\n                _this.manageSwipeClass();\n\n                startCoords = e.pageX;\n                isDraging = true; // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723\n\n                _this.outer.scrollLeft += 1;\n                _this.outer.scrollLeft -= 1; // *\n\n                _lgUtils2.default.removeClass(_this.outer, 'lg-grab');\n\n                _lgUtils2.default.addClass(_this.outer, 'lg-grabbing');\n\n                _lgUtils2.default.trigger(_this.el, 'onDragstart');\n              }\n            }\n          }\n        });\n      }\n\n      _lgUtils2.default.on(window, 'mousemove.lg', function (e) {\n        if (isDraging) {\n          isMoved = true;\n          endCoords = e.pageX;\n\n          _this.touchMove(startCoords, endCoords);\n\n          _lgUtils2.default.trigger(_this.el, 'onDragmove');\n        }\n      });\n\n      _lgUtils2.default.on(window, 'mouseup.lg', function (e) {\n        if (isMoved) {\n          isMoved = false;\n\n          _this.touchEnd(endCoords - startCoords);\n\n          _lgUtils2.default.trigger(_this.el, 'onDragend');\n        } else if (_lgUtils2.default.hasClass(e.target, 'lg-object') || _lgUtils2.default.hasClass(e.target, 'lg-video-play')) {\n          _lgUtils2.default.trigger(_this.el, 'onSlideClick');\n        } // Prevent execution on click\n\n\n        if (isDraging) {\n          isDraging = false;\n\n          _lgUtils2.default.removeClass(_this.outer, 'lg-grabbing');\n\n          _lgUtils2.default.addClass(_this.outer, 'lg-grab');\n        }\n      });\n    }\n  };\n\n  Plugin.prototype.manageSwipeClass = function () {\n    var touchNext = this.index + 1;\n    var touchPrev = this.index - 1;\n    var length = this.___slide.length;\n\n    if (this.s.loop) {\n      if (this.index === 0) {\n        touchPrev = length - 1;\n      } else if (this.index === length - 1) {\n        touchNext = 0;\n      }\n    }\n\n    for (var i = 0; i < this.___slide.length; i++) {\n      _lgUtils2.default.removeClass(this.___slide[i], 'lg-next-slide');\n\n      _lgUtils2.default.removeClass(this.___slide[i], 'lg-prev-slide');\n    }\n\n    if (touchPrev > -1) {\n      _lgUtils2.default.addClass(this.___slide[touchPrev], 'lg-prev-slide');\n    }\n\n    _lgUtils2.default.addClass(this.___slide[touchNext], 'lg-next-slide');\n  };\n\n  Plugin.prototype.mousewheel = function () {\n    var _this = this;\n\n    _lgUtils2.default.on(_this.outer, 'mousewheel.lg', function (e) {\n      if (!e.deltaY) {\n        return;\n      }\n\n      if (e.deltaY > 0) {\n        _this.goToPrevSlide();\n      } else {\n        _this.goToNextSlide();\n      }\n\n      e.preventDefault();\n    });\n  };\n\n  Plugin.prototype.closeGallery = function () {\n    var _this = this;\n\n    var mousedown = false;\n\n    _lgUtils2.default.on(this.outer.querySelector('.lg-close'), 'click.lg', function () {\n      _this.destroy();\n    });\n\n    if (_this.s.closable) {\n      // If you drag the slide and release outside gallery gets close on chrome\n      // for preventing this check mousedown and mouseup happened on .lg-item or lg-outer\n      _lgUtils2.default.on(_this.outer, 'mousedown.lg', function (e) {\n        if (_lgUtils2.default.hasClass(e.target, 'lg-outer') || _lgUtils2.default.hasClass(e.target, 'lg-item') || _lgUtils2.default.hasClass(e.target, 'lg-img-wrap')) {\n          mousedown = true;\n        } else {\n          mousedown = false;\n        }\n      });\n\n      _lgUtils2.default.on(_this.outer, 'mouseup.lg', function (e) {\n        if (_lgUtils2.default.hasClass(e.target, 'lg-outer') || _lgUtils2.default.hasClass(e.target, 'lg-item') || _lgUtils2.default.hasClass(e.target, 'lg-img-wrap') && mousedown) {\n          if (!_lgUtils2.default.hasClass(_this.outer, 'lg-dragging')) {\n            _this.destroy();\n          }\n        }\n      });\n    }\n  };\n\n  Plugin.prototype.destroy = function (d) {\n    var _this = this;\n\n    if (!d) {\n      _lgUtils2.default.trigger(_this.el, 'onBeforeClose');\n    }\n\n    document.body.scrollTop = _this.prevScrollTop;\n    document.documentElement.scrollTop = _this.prevScrollTop;\n    /**\n     * if d is false or undefined destroy will only close the gallery\n     * plugins instance remains with the element\n     *\n     * if d is true destroy will completely remove the plugin\n     */\n\n    if (d) {\n      if (!_this.s.dynamic) {\n        // only when not using dynamic mode is $items a jquery collection\n        for (var i = 0; i < this.items.length; i++) {\n          _lgUtils2.default.off(this.items[i], '.lg');\n\n          _lgUtils2.default.off(this.items[i], '.lgcustom');\n        }\n      }\n\n      var lguid = _this.el.getAttribute('lg-uid');\n\n      delete window.lgData[lguid];\n\n      _this.el.removeAttribute('lg-uid');\n    } // Unbind all events added by lightGallery\n\n\n    _lgUtils2.default.off(this.el, '.lgtm'); // Distroy all lightGallery modules\n\n\n    for (var key in window.lgModules) {\n      if (_this.modules[key]) {\n        _this.modules[key].destroy();\n      }\n    }\n\n    this.lGalleryOn = false;\n    clearTimeout(_this.hideBartimeout);\n    this.hideBartimeout = false;\n\n    _lgUtils2.default.off(window, '.lg');\n\n    _lgUtils2.default.removeClass(document.body, 'lg-on');\n\n    _lgUtils2.default.removeClass(document.body, 'lg-from-hash');\n\n    if (_this.outer) {\n      _lgUtils2.default.removeClass(_this.outer, 'lg-visible');\n    }\n\n    _lgUtils2.default.removeClass(document.querySelector('.lg-backdrop'), 'in');\n\n    setTimeout(function () {\n      try {\n        if (_this.outer) {\n          _this.outer.parentNode.removeChild(_this.outer);\n        }\n\n        if (document.querySelector('.lg-backdrop')) {\n          document.querySelector('.lg-backdrop').parentNode.removeChild(document.querySelector('.lg-backdrop'));\n        }\n\n        if (!d) {\n          _lgUtils2.default.trigger(_this.el, 'onCloseAfter');\n        }\n      } catch (err) {}\n    }, _this.s.backdropDuration + 50);\n  };\n\n  window.lightGallery = function (el, options) {\n    if (!el) {\n      return;\n    }\n\n    try {\n      if (!el.getAttribute('lg-uid')) {\n        var uid = 'lg' + window.lgData.uid++;\n        window.lgData[uid] = new Plugin(el, options);\n        el.setAttribute('lg-uid', uid);\n      } else {\n        try {\n          window.lgData[el.getAttribute('lg-uid')].init();\n        } catch (err) {\n          console.error('lightGallery has not initiated properly');\n        }\n      }\n    } catch (err) {\n      console.error('lightGallery has not initiated properly');\n    }\n  };\n});\n\n//# sourceURL=webpack://LIS//Users/Nicki/Sites/toubiz-ort/Packages/Plugins/Newland.AssetsNeos/Scripts/vendor/lightgallery/lightgallery.js?");

/***/ })

}]);