!function(t){"use strict";function i(t){this.$el=t,this.$markers=this.$el.find(".nectar-text-inline-images__marker"),this.positionImages(),this.events()}i.prototype.positionImages=function(){this.$markers.each(function(i){var n=t(this).find("img");if(n.length>0){var e=n[0].getBoundingClientRect();t(this)[0].style.width=e.width+"px"}}),this.$el.addClass("nectar-text-inline-images--calculated")},i.prototype.events=function(){t(window).on("resize",this.positionImages.bind(this)),t(window).on("nectar-waypoints-reinit",this.waypoint.bind(this)),this.waypoint()},i.prototype.waypoint=function(){var i=[];this.$markers.each(function(n){var e=t(this);i[n]=new Waypoint({element:t(this)[0],handler:function(){e.addClass("animated-in"),i[n].destroy()},offset:"bottom-in-view"})})};var n=[];function e(){n=[],t(".nectar-text-inline-images").each(function(e){n[e]=new i(t(this))})}e(),t(window).on("vc_reload",function(){setTimeout(e,200)})}(jQuery);