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