File: /var/www/html/wpdehaus/wp-content/themes/salient/js/build/nectar-single-product-reviews.js
!function(e){"use strict";function s(){this.$el=e("#tab-reviews #review_form_wrapper"),this.$button=e("#reviews .nectar-product-reviews-trigger"),this.setup(),this.state={open:!1}}s.prototype.setup=function(){var s=this;this.$el.addClass("modal"),e("body.material").length>0?this.$el.find("#review_form").prepend('<div class="nectar-close-btn-wrap"><a href="#" class="nectar-close-btn small"><span class="close-wrap"><span class="close-line close-line1"></span><span class="close-line close-line2"></span></span></a></div>'):this.$el.find("#review_form").prepend('<div class="nectar-close-btn-wrap"><a href="#" class="nectar-close-btn small"><span class="icon-salient-m-close"></span></a></div>'),this.$el.detach(),e("body").append(this.$el),0==e("body").find(".nectar-slide-in-cart-bg").length&&e("body").append('<div class="nectar-slide-in-cart-bg"></div>'),this.$closeBtnEl=this.$el.find(".nectar-close-btn-wrap"),this.$bgEl=e(".nectar-slide-in-cart-bg"),this.timeout="",this.$button.on("click",function(){return s.open(),!1}),e("#review_form .nectar-close-btn-wrap, .nectar-slide-in-cart-bg").on("click",function(e){s.close(),e.preventDefault()})},s.prototype.open=function(){clearTimeout(this.timeout),this.$closeBtnEl.addClass("open"),this.$el.addClass("open"),this.$bgEl.addClass("open").addClass("revealed"),this.state.open=!0},s.prototype.close=function(){var e=this;this.$el.removeClass("open"),this.$bgEl.removeClass("open"),this.$closeBtnEl.removeClass("open"),this.timeout=setTimeout(function(){e.$bgEl.removeClass("revealed")},400),this.state.open=!1},jQuery(document).ready(function(e){if(e(".nectar-product-reviews-trigger").length>0)new s})}(jQuery);