1/*! For license information please see lg-hash-60752cc6.js.LICENSE.txt */ 2"use strict";(self.webpackChunklesaiglesduverdon_theme=self.webpackChunklesaiglesduverdon_theme||[]).push([[5121],{3807:function(t,e,s){s.r(e),s.d(e,{default:function(){return a}});var i=function(){return i=Object.assign||function(t){for(var e,s=1,i=arguments.length;s<i;s++)for(var o in e=arguments[s])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},o="lgAfterSlide",l="lgAfterClose",h={hash:!0,galleryId:"1",customSlideName:!1},n=function(){function t(t,e){return this.core=t,this.$LG=e,this.settings=i(i({},h),this.core.settings),this}return t.prototype.init=function(){var t=this;this.settings.hash&&(this.oldHash=window.location.hash,setTimeout((function(){t.buildFromHash()}),100),this.core.LGel.on(o+".hash",this.onAfterSlide.bind(this)),this.core.LGel.on(l+".hash",this.onCloseAfter.bind(this)),this.$LG(window).on("hashchange.lg.hash.global"+this.core.lgId,this.onHashchange.bind(this)))},t.prototype.onAfterSlide=function(t){var e=this.core.galleryItems[t.detail.index].slideName;e=this.settings.customSlideName&&e||t.detail.index,history.replaceState?history.replaceState(null,"",window.location.pathname+window.location.search+"#lg="+this.settings.galleryId+"&slide="+e):window.location.hash="lg="+this.settings.galleryId+"&slide="+e},t.prototype.getIndexFromUrl=function(t){void 0===t&&(t=window.location.hash);var e=t.split("&slide=")[1],s=0;if(this.settings.customSlideName)for(var i=0;i<this.core.galleryItems.length;i++){if(this.core.galleryItems[i].slideName===e){s=i;break}}else s=parseInt(e,10);return isNaN(s)?0:s},t.prototype.buildFromHash=function(){var t=window.location.hash;if(t.indexOf("lg="+this.settings.galleryId)>0){this.$LG(document.body).addClass("lg-from-hash");var e=this.getIndexFromUrl(t);
vendor: 928 bytes, lines 2-3
2return this.core.openGallery(e),!0}},t.prototype.onCloseAfter=function(){this.oldHash&&this.oldHash.indexOf("lg="+this.settings.galleryId)<0?history.replaceState?history.replaceState(null,"",this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash=""},t.prototype.onHashchange=function(){if(this.core.lgOpened){var t=window.location.hash,e=this.getIndexFromUrl(t);t.indexOf("lg="+this.settings.galleryId)>-1?this.core.slide(e,!1,!1):this.core.lGalleryOn&&this.core.closeGallery()}},t.prototype.closeGallery=function(){this.settings.hash&&this.$LG(document.body).removeClass("lg-from-hash")},t.prototype.destroy=function(){this.core.LGel.off(".lg.hash"),this.core.LGel.off(".hash"),this.$LG(window).off("hashchange.lg.hash.global"+this.core.lgId)},t}(),a=n}}]); 3//# sourceMappingURL=lg-hash-60752cc6.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.