// source --> https://mytubepress.com/wp-content/plugins/edd-reviews/assets/js/edd-reviews.min.js?ver=2.0.3 
"undefined"!=typeof jQuery&&!function($){"use strict";$(function(){var EDD_Reviews={init:function(){this.show(),this.remove(),this.ratings(),this.votes(),this.reply()},show:function(){$(".edd-review-vote").show()},remove:function(){$(".edd_show_if_no_js").remove()},ratings:function(){$(".edd-reviews-stars-empty .edd-reviews-star-rating").on("hover",function(){return $(this).toggleClass("dashicons-star-empty").toggleClass("dashicons-star-filled"),$(this).prevAll().toggleClass("dashicons-star-empty").toggleClass("dashicons-star-filled"),!1}),$(".edd-reviews-star-rating").on("click",function(){$(".edd-reviews-stars-filled").width(25*$(this).attr("data-rating")),$("input#edd-reviews-star-rating").val($(this).attr("data-rating"))})},votes:function(){$("span.edd-reviews-voting-buttons a").on("click",function(){var $this=$(this),vote=$this.data("edd-reviews-vote"),data={action:"edd_reviews_process_vote",security:edd_reviews_params.edd_voting_nonce,review_vote:vote,comment_id:$this.data("edd-reviews-comment-id"),edd_reviews_ajax:!0};return $this.parent().after('<img src="'+edd_reviews_params.ajax_loader+'" class="edd-reviews-vote-ajax" />'),$.post(edd_reviews_params.ajax_url,data,function(response){"success"==response&&($this.parent().parent().parent().addClass("edd-yellowfade").html('<p style="margin:0;padding:0;">'+edd_reviews_params.thank_you_msg+"</p>"),$(".edd-reviews-vote-ajax").remove())}),!1})},reply:function(){$(".comment-reply-link").on("click",function(){return $("#edd-reviews-respond").hide(),$("#edd-reviews-reply").show(),!1}),$("#cancel-comment-reply-link").on("click",function(){return $("#edd-reviews-respond").show(),$("#edd-reviews-reply").hide(),!1})}};EDD_Reviews.init()})}(jQuery);