text: (function(b){b(document).on("click",".king-like-button",function(){var d=b(this),a=d.attr("data-post-id");d=d.attr("data-nonce");var c=b(".king-like-button-"+a);var e=c.next("#sl-loader");""!==a&&b.ajax({type:"POST",url:simpleLikes.ajaxurl,data:{action:"king_process_simple_like",post_id:a,nonce:d},beforeSend:function(){e.html('&nbsp;<div class="loader"></div>');c.addClass("effect")},success:function(a){c.html(a.icon+a.count);"unliked"===a.status?(c.prop("title",simpleLikes.like),c.removeClass("liked")):
  (c.prop("title",simpleLikes.unlike),c.addClass("liked"));e.empty();c.removeClass("effect")}});return!1});b(document).on("click",".king-reactions-icon",function(d){d.preventDefault();var a=b(this).parent().parent(),c=b(this).data("action");d=a.data("voted");var e=a.data("logged"),f=localStorage.getItem("king_reaction");"disabled"===d?b(".king-reactions-post-"+a.data("post")).find("#king-reacted").removeClass("hide"):a.hasClass("disabled")||("not_logged"===e&&f=="reaction-"+a.data("post")?b(".king-reactions-post-"+
  a.data("post")).find("#king-reacted").removeClass("hide"):b.ajax({url:simpleLikes.ajaxurl,dataType:"json",type:"POST",data:{action:"king_reactions_box",nonce:a.data("nonce"),type:c,post:a.data("post")},success:function(d){b(".king-reactions-post-"+a.data("post")).find(".king-reactions-icon").each(function(){var f=b(this).data("action"),g=b(this).data("new");"not_logged"===e&&localStorage.setItem("king_reaction","reaction-"+a.data("post"));b(".king-reactions-post-"+a.data("post")).addClass("disabled");
  b(".king-reactions-post-"+a.data("post")).find(".king-reactions-count-"+c).html(d.reactions);b(".king-reactions-post-"+a.data("post")).find(".king-reaction-percent-"+f).height(g+"%");b(".king-reactions-post-"+a.data("post")).find(".king-reaction-percent-"+c).height(d.new_reactions+"%")})}}))})})(jQuery);