1"use strict";(self.webpackChunkbase_habitations=self.webpackChunkbase_habitations||[]).push([["src_js_modules_pb-row-wrapper-reveal_index_js"],{
1"./src/js/modules/pb-row-wrapper-reveal/index.js":(t,i,e)=>{e.r(i),e.d(i,{default:()=>n});var o=e("./src/js/utils/dom.js"),s=e("./src/js/utils/resize.js"),l=e("./src/js/utils/viewport.js");function r(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}const n=function(){function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=i,this.emitter=e,this.wrapper=(0,o.$)(".pb-row-wrapper__reveal",this.el),this._height=0,this._top=0,this._bottom=0,this._scroll=null,this._updatePosition=this._updatePosition.bind(this),this._onScrollInit=this._onScrollInit.bind(this),this._onScrollBeforeUpdate=this._onScrollBeforeUpdate.bind(this),this._onScrollAfterUpdate=this._onScrollAfterUpdate.bind(this)}var i,e,n;return i=t,(e=[{key:"init",value:function(){this._bindEvents()}},{key:"destroy",value:function(){this.el=null,this.emitter=null,this.wrapper=null,this._height=null,this._top=0,this._bottom=0,this._scroll=null,this._updatePosition=null,this._onScrollInit=null,this._onScrollBeforeUpdate=null,this._onScrollAfterUpdate=null}},{key:"stop",value:function(){this._unbindEvents()}},{key:"_bindEvents",value:function(){this.emitter.on("SiteScroll.init",this._onScrollInit),this.emitter.on("SiteScroll.before-update",this._onScrollBeforeUpdate),this.emitter.on("SiteScroll.after-update",this._onScrollAfterUpdate),this.emitter.on("SiteScroll.scroll",this._updatePosition),s.ZP.add(this._onScrollBeforeUpdate,s._q),s.ZP.add(this._onScrollAfterUpdate,s.Vu)}},{key:"_unbindEvents",value:function(){this.emitter.off("SiteScroll.init",this._onScrollInit),this.emitter.off("SiteScroll.before-update",this._onScrollBeforeUpdate),this.emitter.off("SiteScroll.after-update",this._onScrollAfterUpdate),this.emitter.off("SiteScroll.scroll",this._updatePosition),s.ZP.remove(this._onScrollBeforeUpdate,s._q),s.ZP.remove(this._onScrollAfterUpdate,s.Vu)}},{key:"_calculateLimits",value:function(){this._height=(0,o.JA)(this.wrapper).height,this._top=(0,o.JA)(this.el).top-l.Z.height+this._scroll.y,this._bottom=this._top+this._height+l.Z.height}},{key:"_updatePosition",value:function(t){var i=t.y;if(!(i<this._top||i>this._bottom)){var e=i-this._top,o=0,s=l.Z.height;this._height>s?(o=Math.min(0,e-s),e>this._height&&(o=e-this._height)):(o=Math.min(0,e-this._height),e>s&&(o=e-s)),this.wrapper.style.transform="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,0,".concat(o,",0,1)")}}},{key:"_onScrollInit",value:function(t){this._scroll=t,this._calculateLimits(),this._updatePosition(this._scroll)}},{key:"_onScrollBeforeUpdate",value:function(){this.wrapper.style.transform="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,0,0,0,1)"}},{key:"_onScrollAfterUpdate",value:function(){this._calculateLimits(),this._updatePosition(this._scroll)}}])&&r(i.prototype,e),n&&r(i,n),t}()}
1}]); 2//# sourceMappingURL=src_js_modules_pb-row-wrapper-reveal_index_js.278ca7bf05260a848ecf.bundle.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.