webpackJsonp([15],{1054:function(e,a,t){"use strict";var s=t(0),n=t.n(s),i=t(91),r=t(96),l=t(14),o=function(e){switch(e){case r.a.INFO:return l.a.INFO+" circle";case r.a.WARNING:return l.a.WARNING;case r.a.ERROR:return l.a.ERROR;default:return""}},m=function(e){var a=e.message;return n.a.createElement("div",{className:"log-message"},n.a.createElement("div",{className:"ui message-info"},n.a.createElement("i",{className:o(a.severity)+" icon"}),n.a.createElement("div",{className:"timestamp"},i.a.formatTimestamp(a.time))),n.a.createElement("div",{className:"message-text"},a.text))};a.a=m},1170:function(e,a,t){a=e.exports=t(2)(),a.push([e.i,"#sidebar .simple-layout{height:100%;padding:20px;margin-left:auto;margin-right:auto}#sidebar .simple-layout>div{display:flex;flex-direction:column;height:100%}#sidebar .simple-layout .layout-content{display:flex;flex-direction:column;overflow-y:auto;margin-top:10px;flex:1 1 100%}#sidebar .simple-layout .layout-content>div{overflow-y:auto;width:100%}#sidebar .system-log .message-list{width:100%}#sidebar .system-log .message-info{display:flex;margin-top:10px;margin-bottom:5px}#sidebar .system-log .timestamp{color:gray}#sidebar .system-log .message-text{overflow:hidden}",""])},1346:function(e,a,t){var s=t(1170);"string"==typeof s&&(s=[[e.i,s,""]]);t(3)(s,{});s.locals&&(e.exports=s.locals)},769:function(e,a,t){"use strict";var s=t(0),n=t.n(s),i=t(7),r=t.n(i),l=t(119),o=t(195),m=t(331),c=t(125),u=t(302),d=t(65),g=t(118),p=t(1054),f=t(748),y=t(1346),v=(t.n(y),t.i(f.a)(n.a.createClass({displayName:"MessageView",render:function(){var e=this.props.messages;if(!e)return n.a.createElement(d.a,{text:"Loading messages"});if(0===e.length)return n.a.createElement(g.a,{description:"No messages to show"});var a=e.map(function(e){return n.a.createElement(p.a,{key:e.id,message:e})});return n.a.createElement("div",{ref:"messageList",className:"message-list ui segment"},a)}}))),h=n.a.createClass({displayName:"SystemLog",mixins:[l.c,r.a.connect(m.a,"messages")],componentWillMount:function(){o.b.setActive(!0),o.b.setRead(),this.state.messages||o.b.fetchMessages()},componentWillUnmount:function(){o.b.setActive(!1)},shouldComponentUpdate:function(e,a){return a.messages!==this.state.messages},_handleClear:function(){o.b.clear()},render:function(){return n.a.createElement("div",{className:"simple-layout"},n.a.createElement("div",{className:"wrapper"},n.a.createElement(c.a,{icon:"blue history",title:"Events",component:n.a.createElement(u.a,{action:o.b.clear})}),n.a.createElement("div",{className:"layout-content system-log"},n.a.createElement(v,{messages:this.state.messages}))))}});a["default"]=h}});
//# sourceMappingURL=events.chunk.js.map