(window.webpackJsonpcodecrumbs=window.webpackJsonpcodecrumbs||[]).push([[5],{160:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},161:function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}},162:function(t,e,n){var o=n(173),r=n(170);t.exports=function(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?r(t):e}},163:function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},164:function(t,e,n){var o=n(174);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},170:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},173:function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=o=function(t){return n(t)}:t.exports=o=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},o(e)}t.exports=o},174:function(t,e){function n(e,o){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,o)}t.exports=n},702:function(t,e,n){"use strict";n.r(e);var o=n(160),r=n.n(o),u=n(161),c=n.n(u),i=n(162),s=n.n(i),a=n(163),f=n.n(a),p=n(164),l=n.n(p),y=n(0),b=n.n(y),S=n(65),d=n(45),m=n(5),h=n(8),O=function(t){function e(){return r()(this,e),s()(this,f()(e).apply(this,arguments))}return l()(e,t),c()(e,[{key:"componentDidMount",value:function(){return this.props.standalone?this.setupStandalone():this.setupLocal()}},{key:"setupStandalone",value:function(){var t=this.props,e=t.setPredefinedState,n=t.predefinedState;n&&e(n)}},{key:"setupLocal",value:function(){Object(d.a)(this.onSocketMessage.bind(this))}},{key:"onSocketMessage",value:function(t){var e=t.type,n=t.data,o=t.namespace;switch(console.log("Message '".concat(e,"' from server received")),e){case m.f.SOURCE_INIT_SOURCE_FILES_SYNC:return this.props.setInitialSourceData(n,o);case m.f.SOURCE_UPDATE_SOURCE_FILE_SYNC:return this.props.setChangedSourceData(n,o);case m.f.SOURCE_RESPONSE_FETCH_FILE:return this.props.updateFiles(n,o);default:console.warn("Unhandled message in client: ".concat(JSON.stringify(t)))}}},{key:"render",value:function(){return b.a.createElement("div",{className:"DataBus-container"})}}]),e}(b.a.Component),_={setInitialSourceData:h.m,setChangedSourceData:h.k,setPredefinedState:h.n,updateFiles:h.p};e.default=Object(S.b)(null,_)(O)}}]);