!function(n){n(document).ready(function(){var t={option:"com_ajax",group:"system",plugin:"renderStatsMessage",format:"raw"},e=n("#system-message-container");t.plugin="sendStats",n.getJSON("index.php",t,function(s){s&&s.html&&(e.append(s.html).find(".js-pstats-alert").show(200),function(){var s=e.find(".js-pstats-alert"),a=e.find(".js-pstats-data-details");e.on("click",".js-pstats-btn-details",function(n){a.toggle(200),n.preventDefault()}),e.on("click",".js-pstats-btn-allow-always",function(e){s.hide(200),a.remove(),t.plugin="sendAlways",n.getJSON("index.php",t,function(n){}),e.preventDefault()}),e.on("click",".js-pstats-btn-allow-once",function(e){s.hide(200),a.remove(),t.plugin="sendOnce",n.getJSON("index.php",t,function(n){}),e.preventDefault()}),e.on("click",".js-pstats-btn-allow-never",function(e){s.hide(200),a.remove(),t.plugin="sendNever",n.getJSON("index.php",t,function(n){}),e.preventDefault()})}())})})}(jQuery);