!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=".",n(n.s=0)}({"./src/parallax.js":function(e,t){window.vcv.on("ready",(function(e,t){if("merge"!==e){var n="[data-vce-assets-parallax-fade]";n=t?'[data-vcv-element="'+t+'"] '+n:n,window.vceAssetsParallaxFade(n)}}))},"./src/plugin.js":function(e,t){!function(e,t){var n=function(n){Waypoint.refreshAll();var a=t.querySelectorAll(n);return(a=[].slice.call(a)).forEach((function(t){t.getVceParallaxFade?t.getVceParallaxFade.update():function(t){({element:null,fadeElement:null,waypoint:null,observer:null,offset:45,setup:function(e){return this.fade=this.fade.bind(this),this.handleAttributeChange=this.handleAttributeChange.bind(this),e.getVceParallaxFade?this.update():(e.getVceParallaxFade=this,this.element=e,this.fadeElement=e.parentNode.parentNode.querySelector("[data-vce-element-content]"),this.create()),e.getVceParallaxFade},handleAttributeChange:function(){this.element.getAttribute("data-vce-assets-parallax-fade")?this.update():this.destroy()},addFadeEvent:function(){e.addEventListener("scroll",this.fade),this.fade()},removeFadeEvent:function(){e.removeEventListener("scroll",this.fade)},fade:function(){if(this.element.clientHeight){var t=e.innerHeight,n=n=this.fadeElement.getBoundingClientRect().bottom/t*100;if(n<this.offset&&n>=0){var a=(n-5)/this.offset;a=a<0?0:a,this.fadeElement.style.opacity=a}else this.fadeElement.style.opacity=null}else this.fadeElement.style.opacity=null},create:function(){var e=this;this.waypoint={},this.waypoint.top=new Waypoint({element:e.fadeElement,handler:function(t){"up"===t&&e.removeFadeEvent(),"down"===t&&e.addFadeEvent()},offset:"bottom-in-view"}),this.waypoint.bottom=new Waypoint({element:e.fadeElement,handler:function(t){"up"===t&&e.addFadeEvent(),"down"===t&&e.removeFadeEvent()},offset:function(){return-e.fadeElement.clientHeight}}),e.observer=new MutationObserver(this.handleAttributeChange),e.observer.observe(this.element,{attributes:!0})},update:function(){this.fade(),Waypoint.refreshAll()},destroy:function(){this.removeFadeEvent(),this.fadeElement.style.opacity=null,this.fadeElement=null,this.waypoint.top.destroy(),this.waypoint.bottom.destroy(),this.waypoint=null,this.observer.disconnect(),this.observer=null,delete this.element.getVceParallaxFade}}).setup(t)}(t)})),1===a.length?a.pop():a};e.vceAssetsParallaxFade=n}(window,document)},0:function(e,t,n){n("./src/plugin.js"),e.exports=n("./src/parallax.js")}});