(window.webpackJsonp=window.webpackJsonp||[]).push([[377],{2562:function(e,t,n){"use strict";n.r(t);var r=n(5),l=(n(25),n(39),n(13)),o={layout:"hospitalStaffLayout",data:function(){return{refreshKey:0}},mounted:function(){var e=this;this._staffAlertsInterval=setInterval((function(){e.syncStaffAlerts()}),15e3),window.addEventListener("focus",this.handleResume),document.addEventListener("visibilitychange",this.handleVisibilityChange)},beforeDestroy:function(){clearInterval(this._staffAlertsInterval),window.removeEventListener("focus",this.handleResume),document.removeEventListener("visibilitychange",this.handleVisibilityChange)},methods:{syncStaffAlerts:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l.a.syncReactiveStaffAlerts();case 3:null!=(n=t.sent)&&n.changed&&(e.refreshKey+=1),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error("Error syncing staff alerts page:",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},handleResume:function(){this.syncStaffAlerts()},handleVisibilityChange:function(){document.hidden||this.syncStaffAlerts()}}},c=n(10),component=Object(c.a)(o,(function(){var e=this._self._c;return e("div",[e("AlertsPage",{attrs:{isMobile:!0,role:"staff","refresh-key":this.refreshKey}})],1)}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{AlertsPage:n(86).default})}}]);