webpackJsonp([16],{648:function(e,t,a){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(1),i=s(l),n=a(37),u=s(n),r=a(137),d=a(25),o=s(d),m=function(e){switch(e){case r.SeverityEnum.INFO:return o["default"].INFO+" circle";case r.SeverityEnum.WARNING:return o["default"].WARNING;case r.SeverityEnum.ERROR:return o["default"].ERROR;default:return""}},c=function(e){var t=e.message;return i["default"].createElement("div",{className:"log-message"},i["default"].createElement("div",{className:"ui message-info"},i["default"].createElement("i",{className:m(t.severity)+" icon"}),i["default"].createElement("div",{className:"timestamp"},u["default"].formatTimestamp(t.time))),i["default"].createElement("div",{className:"message-text"},t.text))};t["default"]=c},649:function(e,t,a){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(1),i=s(l),n=a(5),u=s(n),r=a(234),d=s(r),o=a(335),m=s(o),c=a(136),f=s(c),p=a(133),g=s(p),y=a(31),v=s(y),h=a(29),E=s(h),N=a(648),x=s(N),b=a(263),w=s(b);a(943);var R=(0,w["default"])(i["default"].createClass({displayName:"MessageView",render:function(){var e=this.props.messages;if(!e)return i["default"].createElement(v["default"],{text:"Loading messages"});if(0===e.length)return i["default"].createElement(E["default"],{description:"No messages to show"});var t=e.map(function(e){return i["default"].createElement(x["default"],{key:e.id,message:e})});return i["default"].createElement("div",{ref:"messageList",className:"message-list ui segment"},t)}})),_=i["default"].createClass({displayName:"SystemLog",mixins:[u["default"].connect(m["default"],"messages")],componentWillMount:function(){d["default"].setActive(!0),d["default"].setRead(),this.state.messages||d["default"].fetchMessages()},componentWillUnmount:function(){d["default"].setActive(!1)},shouldComponentUpdate:function(e,t){return t.messages!==this.state.messages},_handleClear:function(){d["default"].clear()},render:function(){return i["default"].createElement("div",{className:"simple-layout"},i["default"].createElement("div",{className:"wrapper"},i["default"].createElement(f["default"],{icon:"blue history",title:"Events",component:i["default"].createElement(g["default"],{action:d["default"].clear})}),i["default"].createElement("div",{className:"layout-content system-log"},i["default"].createElement(R,{messages:this.state.messages}))))}});t["default"]=_},715:function(e,t,a){t=e.exports=a(15)(),t.push([e.id,"#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{height:100%;padding:20px}#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 .simple-layout .message-list{width:100%}#sidebar .simple-layout .message-info{display:flex;margin-top:10px;margin-bottom:5px}#sidebar .simple-layout .timestamp{color:gray}",""])},943:function(e,t,a){var s=a(715);"string"==typeof s&&(s=[[e.id,s,""]]);a(16)(s,{});s.locals&&(e.exports=s.locals)}});
//# sourceMappingURL=events.chunk.js.map