webpackHotUpdate(0,{

/***/ 228:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tile_css__ = __webpack_require__(229);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tile_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__tile_css__);\n\n\n\n\n\nclass Tile extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {\n\n  resizeIframe(iframe) {\n    iframe.style.width = iframe.contentWindow.document.body.scrollWidth + 'px';\n    iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';\n  }\n\n  componentDidMount() {\n    if (this.iframe) {\n      this.iframe.style.width = 0;\n      this.iframe.style.height = 0;\n    }\n  }\n\n  render() {\n    const { name, version } = this.props.instance.getModelEntity().typeDefinition;\n\n    return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n      'div',\n      { className: 'tile-container' },\n      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n        'div',\n        { className: 'tile-header' },\n        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n          'span',\n          { className: 'tile-name' },\n          this.props.instance.name,\n          ': ',\n          name,\n          '/',\n          version\n        )\n      ),\n      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('iframe', {\n        ref: elem => this.iframe = elem,\n        src: 'tile.html?path=' + this.props.instance.getPath(),\n        className: 'tile-content',\n        onLoad: e => this.resizeIframe(e.target) })\n    );\n  }\n}\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = Tile;\n\n\nTile.propTypes = {\n  instance: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjI4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL2Jyb3dzZXItdGVzdGVyL3NyYy9jb21wb25lbnRzL1RpbGUvaW5kZXguanM/N2E2NyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcblxuaW1wb3J0ICcuL3RpbGUuY3NzJztcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgVGlsZSBleHRlbmRzIFJlYWN0LkNvbXBvbmVudCB7XG5cbiAgcmVzaXplSWZyYW1lKGlmcmFtZSkge1xuICAgIGlmcmFtZS5zdHlsZS53aWR0aCA9IGlmcmFtZS5jb250ZW50V2luZG93LmRvY3VtZW50LmJvZHkuc2Nyb2xsV2lkdGggKyAncHgnO1xuICAgIGlmcmFtZS5zdHlsZS5oZWlnaHQgPSBpZnJhbWUuY29udGVudFdpbmRvdy5kb2N1bWVudC5ib2R5LnNjcm9sbEhlaWdodCArICdweCc7XG4gIH1cblxuICBjb21wb25lbnREaWRNb3VudCgpIHtcbiAgICBpZiAodGhpcy5pZnJhbWUpIHtcbiAgICAgIHRoaXMuaWZyYW1lLnN0eWxlLndpZHRoID0gMDtcbiAgICAgIHRoaXMuaWZyYW1lLnN0eWxlLmhlaWdodCA9IDA7XG4gICAgfVxuICB9XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgbmFtZSwgdmVyc2lvbiB9ID0gdGhpcy5wcm9wcy5pbnN0YW5jZS5nZXRNb2RlbEVudGl0eSgpLnR5cGVEZWZpbml0aW9uO1xuXG4gICAgcmV0dXJ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UFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQURBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVJBO0FBWUE7QUE5QkE7QUFBQTtBQUFBO0FBQ0E7QUFnQ0E7QUFDQTtBQURBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///228\n");

/***/ }),

/***/ 229:
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(43);\nif(typeof content === 'string') content = [[module.i, content, '']];\n// Prepare cssTransformation\nvar transform;\n\nvar options = {}\noptions.transform = transform\n// add the styles to the DOM\nvar update = __webpack_require__(8)(content, options);\nif(content.locals) module.exports = content.locals;\n// Hot Module Replacement\nif(true) {\n\t// When the styles change, update the <style> tags\n\tif(!content.locals) {\n\t\tmodule.hot.accept(43, function() {\n\t\t\tvar newContent = __webpack_require__(43);\n\t\t\tif(typeof newContent === 'string') newContent = [[module.i, newContent, '']];\n\t\t\tupdate(newContent);\n\t\t});\n\t}\n\t// When the module is disposed, remove the <style> tags\n\tmodule.hot.dispose(function() { update(); });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjI5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vYnJvd3Nlci10ZXN0ZXIvc3JjL2NvbXBvbmVudHMvVGlsZS90aWxlLmNzcz9jMmM5Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIHN0eWxlLWxvYWRlcjogQWRkcyBzb21lIGNzcyB0byB0aGUgRE9NIGJ5IGFkZGluZyBhIDxzdHlsZT4gdGFnXG5cbi8vIGxvYWQgdGhlIHN0eWxlc1xudmFyIGNvbnRlbnQgPSByZXF1aXJlKFwiISEuLi8uLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9pbmRleC5qcyEuL3RpbGUu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mV3Q29udGVudCk7XG5cdFx0fSk7XG5cdH1cblx0Ly8gV2hlbiB0aGUgbW9kdWxlIGlzIGRpc3Bvc2VkLCByZW1vdmUgdGhlIDxzdHlsZT4gdGFnc1xuXHRtb2R1bGUuaG90LmRpc3Bvc2UoZnVuY3Rpb24oKSB7IHVwZGF0ZSgpOyB9KTtcbn1cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL2Jyb3dzZXItdGVzdGVyL3NyYy9jb21wb25lbnRzL1RpbGUvdGlsZS5jc3Ncbi8vIG1vZHVsZSBpZCA9IDIyOVxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///229\n");

/***/ }),

/***/ 43:
/***/ (function(module, exports, __webpack_require__) {

eval("exports = module.exports = __webpack_require__(7)(undefined);\n// imports\n\n\n// module\nexports.push([module.i, \".tile-container {\\n  background-color: #333;\\n  display: flex;\\n  flex-grow: 1;\\n  flex-flow: column;\\n  border-top-left-radius: 6px;\\n  border-top-right-radius: 6px;\\n  padding: 4px;\\n  position: relative;\\n}\\n\\n.tile-header {\\n  display: flex;\\n  justify-content: space-between;\\n  flex: 0 1 25px;\\n  padding: 0 5px;\\n  min-height: 25px;\\n  max-height: 25px;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  line-height: 25px;\\n  border-top-left-radius: 6px;\\n  border-top-right-radius: 6px;\\n  border-bottom: 1px solid #999;\\n  background-color: #333;\\n  user-select: none;\\n}\\n\\n.tile-name:hover {\\n  cursor: grab;\\n}\\n\\n.tile-name:active {\\n  cursor: grabbing;\\n}\\n\\n.tile-header .tile-name {\\n  display: flex;\\n  flex: 2;\\n  font-size: 16px;\\n  height: 25px;\\n  line-height: 25px;\\n  word-break: break-all;\\n  text-overflow: ellipsis;\\n}\\n\\n.tile-content {\\n  border: none;\\n  min-width: 200px;\\n  min-height: 20px;\\n  height: auto;\\n}\\n\\niframe {\\n  min-height: 20px;\\n  height: auto;\\n}\\n\", \"\"]);\n\n// exports\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9icm93c2VyLXRlc3Rlci9zcmMvY29tcG9uZW50cy9UaWxlL3RpbGUuY3NzPzg3MTIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4uLy4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2xpYi9jc3MtYmFzZS5qc1wiKSh1bmRlZmluZWQpO1xuLy8gaW1wb3J0c1xuXG5cbi8vIG1vZHVsZVxuZXhwb3J0cy5wdXNoKFttb2R1bGUuaWQsIFwiLnRpbGUtY29udGFpbmVyIHtcXG4gIGJhY2tncm91bmQtY29sb3I6ICMzMzM7XFxuICBkaXNwbGF5OiBmbGV4O1xcbiAgZmxleC1ncm93OiAxO1xcbiAgZmxleC1mbG93OiBjb2x1bW47XFxuICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiA2cHg7XFxuICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogNnB4O1xcbiAgcGFkZGluZzogNHB4O1xcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xcbn1cXG5cXG4udGlsZS1oZWFkZXIge1xcbiAgZGlzcGxheTogZmxleDtcXG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlb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y8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gL2hvbWUvbGVpa28vZGV2L2tldm9yZWUva2V2b3JlZS1qcy9ub2RlX21vZHVsZXMvY3NzLWxvYWRlciEuL2Jyb3dzZXItdGVzdGVyL3NyYy9jb21wb25lbnRzL1RpbGUvdGlsZS5jc3Ncbi8vIG1vZHVsZSBpZCA9IDQzXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///43\n");

/***/ }),

/***/ 75:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_conf__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_conf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_tiny_conf__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_kevoree_kevscript__ = __webpack_require__(76);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_kevoree_kevscript___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_kevoree_kevscript__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_kevoree_core__ = __webpack_require__(208);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_kevoree_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_kevoree_core__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_kevoree_library__ = __webpack_require__(6);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_kevoree_library___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_kevoree_library__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__lib_logger_factory__ = __webpack_require__(67);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__lib_Resolver__ = __webpack_require__(210);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__lib_InstanceLoader__ = __webpack_require__(68);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Collapsable__ = __webpack_require__(212);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Error__ = __webpack_require__(45);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Description__ = __webpack_require__(215);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__Dictionary__ = __webpack_require__(217);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__Inputs__ = __webpack_require__(220);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Outputs__ = __webpack_require__(224);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__Tile__ = __webpack_require__(228);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__lib_model_helper__ = __webpack_require__(23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__app_css__ = __webpack_require__(230);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__app_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_17__app_css__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst INSTANCE_NAME = 'comp';\n\nclass App extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {\n\n  constructor(props) {\n    super(props);\n    __WEBPACK_IMPORTED_MODULE_2_tiny_conf___default.a.set('registry', {\n      host: 'registry.kevoree.org',\n      port: 443,\n      ssl: true\n    });\n    this.logger = __WEBPACK_IMPORTED_MODULE_6__lib_logger_factory__[\"a\" /* default */].create('Kevoree Browser Tester');\n    this.resolver = new __WEBPACK_IMPORTED_MODULE_7__lib_Resolver__[\"a\" /* default */](this.props.model.packages[0].deployUnits[0].hashcode);\n    this.kevs = new __WEBPACK_IMPORTED_MODULE_3_kevoree_kevscript___default.a(__WEBPACK_IMPORTED_MODULE_6__lib_logger_factory__[\"a\" /* default */].create('KevScript'));\n    this.core = new __WEBPACK_IMPORTED_MODULE_4_kevoree_core___default.a(this.resolver, this.kevs, __WEBPACK_IMPORTED_MODULE_6__lib_logger_factory__[\"a\" /* default */]);\n    this.factory = new __WEBPACK_IMPORTED_MODULE_5_kevoree_library___default.a.factory.DefaultKevoreeFactory();\n\n    this.state = {\n      instance: null\n    };\n  }\n\n  componentDidMount() {\n    const loader = this.factory.createJSONLoader();\n    const kevlib = loader.loadModelFromString(JSON.stringify(this.props.model)).get(0);\n\n    this.core.start('node0');\n    this.kevs.parse(this.props.script, kevlib).then(({ model }) => {\n      return this.core.deploy(model);\n    }).catch(error => {\n      this.setState({ error });\n    });\n\n    this.core.on('deployed', () => {\n      const currentKeys = Object.keys(this.core.nodeInstance.adaptationEngine.modelObjMapper.map);\n      const registeredKeys = Object.keys(__WEBPACK_IMPORTED_MODULE_8__lib_InstanceLoader__[\"a\" /* default */].getInstances());\n\n      currentKeys.forEach(key => {\n        const instance = this.core.nodeInstance.adaptationEngine.modelObjMapper.map[key];\n        if (instance && typeof instance.uiFactory === 'function') {\n          if (!__WEBPACK_IMPORTED_MODULE_8__lib_InstanceLoader__[\"a\" /* default */].has(key)) {\n            __WEBPACK_IMPORTED_MODULE_8__lib_InstanceLoader__[\"a\" /* default */].register(key, instance);\n            if (instance.name === INSTANCE_NAME) {\n              this.setState({ instance });\n              document.title = `${instance.getModelEntity().typeDefinition.name} - Kevoree Browser Tester`;\n            }\n          }\n        }\n      });\n\n      for (let i = 0; i < registeredKeys.length; i++) {\n        const hasKey = currentKeys.find(key => registeredKeys[i] === key);\n        if (!hasKey) {\n          // clean removed instance\n          __WEBPACK_IMPORTED_MODULE_8__lib_InstanceLoader__[\"a\" /* default */].remove(registeredKeys[i]);\n        }\n      }\n    });\n\n    this.core.on('error', error => {\n      this.setState({ error });\n    });\n  }\n\n  render() {\n    if (this.state.error) {\n      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n        'div',\n        { className: 'container' },\n        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n          'div',\n          { className: 'header' },\n          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n            'h2',\n            null,\n            'Kevoree Browser Tester'\n          )\n        ),\n        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Error__[\"a\" /* default */], { error: this.state.error })\n      );\n    } else {\n      if (this.state.instance) {\n        const modelInstance = this.state.instance.getModelEntity();\n        const tdef = modelInstance.typeDefinition;\n        const inputs = tdef.provided.array;\n        const outputs = tdef.required.array;\n\n        return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n          'div',\n          { className: 'container' },\n          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n            'div',\n            { className: 'header' },\n            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n              'h2',\n              null,\n              'Kevoree Browser Tester'\n            )\n          ),\n          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n            'div',\n            { className: 'content' },\n            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n              'div',\n              { className: 'left' },\n              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                'div',\n                { className: 'panel' },\n                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                  __WEBPACK_IMPORTED_MODULE_9__Collapsable__[\"a\" /* default */],\n                  { title: Object(__WEBPACK_IMPORTED_MODULE_16__lib_model_helper__[\"a\" /* getType */])(tdef.metaClassName()) },\n                  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__Description__[\"a\" /* default */], { instance: this.state.instance })\n                ),\n                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                  __WEBPACK_IMPORTED_MODULE_9__Collapsable__[\"a\" /* default */],\n                  { title: 'Parameters' },\n                  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__Dictionary__[\"a\" /* default */], { instance: this.state.instance })\n                ),\n                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                  __WEBPACK_IMPORTED_MODULE_9__Collapsable__[\"a\" /* default */],\n                  { title: 'Inputs' },\n                  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__Inputs__[\"a\" /* default */], { inputs: inputs, instance: this.state.instance })\n                )\n              )\n            ),\n            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n              'div',\n              { className: 'right' },\n              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                'div',\n                { className: 'panel' },\n                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                  __WEBPACK_IMPORTED_MODULE_9__Collapsable__[\"a\" /* default */],\n                  { title: 'Tile', style: { flex: '1 0 auto' } },\n                  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                    'div',\n                    { className: 'outer-container' },\n                    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                      'div',\n                      { className: 'inner-container' },\n                      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__Tile__[\"a\" /* default */], { instance: this.state.instance })\n                    )\n                  )\n                ),\n                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n                  __WEBPACK_IMPORTED_MODULE_9__Collapsable__[\"a\" /* default */],\n                  { title: 'Outputs', style: { flex: '100' } },\n                  __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_14__Outputs__[\"a\" /* default */], { outputs: outputs, instance: this.state.instance })\n                )\n              )\n            )\n          )\n        );\n      } else {\n        return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n          'div',\n          { className: 'loading' },\n          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n            'strong',\n            null,\n            'Loading...'\n          )\n        );\n      }\n    }\n  }\n}\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = App;\n\n\nApp.propTypes = {\n  model: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,\n  script: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///75\n");

/***/ })

})