(self.webpackChunkrotor=self.webpackChunkrotor||[]).push([[713],{357:()=>{$(document).ready((function(){$(".dropdown.js-messages-block")&&setInterval((function(){$.get("/messages/new").then((function(e){var s=$(".js-messages-block .app-nav__item"),n=s.find(".badge"),a=JSON.parse(e);a.success?n.length>0?n.html(a.countMessages):s.append('<span class="badge bg-notify">'+a.countMessages+"</span>"):a.success||n.length>0&&n.remove()}))}),6e4)}))}},e=>{var s;s=357,e(e.s=s)}]);