webpackHotUpdate(0,{

/***/ 201:
/***/ (function(module, __webpack_exports__) {

"use strict";
eval("throw new Error(\"Module build failed: SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag (40:8)\\n\\n\\u001b[0m \\u001b[90m 38 | \\u001b[39m          \\u001b[33m<\\u001b[39m\\u001b[33m/\\u001b[39m\\u001b[33mtbody\\u001b[39m\\u001b[33m>\\u001b[39m\\n \\u001b[90m 39 | \\u001b[39m        \\u001b[33m<\\u001b[39m\\u001b[33m/\\u001b[39m\\u001b[33mtable\\u001b[39m\\u001b[33m>\\u001b[39m\\u001b[33m<\\u001b[39m\\u001b[33m/\\u001b[39m\\u001b[33mdiv\\u001b[39m\\u001b[33m>\\u001b[39m\\n\\u001b[31m\\u001b[1m>\\u001b[22m\\u001b[39m\\u001b[90m 40 | \\u001b[39m        \\u001b[33m<\\u001b[39m\\u001b[33mh3\\u001b[39m\\u001b[33m>\\u001b[39m\\u001b[33mParameters\\u001b[39m\\u001b[33m:\\u001b[39m\\u001b[33m<\\u001b[39m\\u001b[33m/\\u001b[39m\\u001b[33mh3\\u001b[39m\\u001b[33m>\\u001b[39m\\n \\u001b[90m    | \\u001b[39m        \\u001b[31m\\u001b[1m^\\u001b[22m\\u001b[39m\\n \\u001b[90m 41 | \\u001b[39m        \\u001b[33m<\\u001b[39m\\u001b[33mDictionary\\u001b[39m instance\\u001b[33m=\\u001b[39m{\\u001b[36mthis\\u001b[39m\\u001b[33m.\\u001b[39mprops\\u001b[33m.\\u001b[39minstance\\u001b[33m.\\u001b[39mgetModelEntity()} \\u001b[33m/\\u001b[39m\\u001b[33m>\\u001b[39m\\n \\u001b[90m 42 | \\u001b[39m        \\u001b[33m<\\u001b[39m\\u001b[33mh3\\u001b[39m\\u001b[33m>\\u001b[39m\\u001b[33mTile\\u001b[39m\\u001b[33m:\\u001b[39m\\u001b[33m<\\u001b[39m\\u001b[33m/\\u001b[39m\\u001b[33mh3\\u001b[39m\\u001b[33m>\\u001b[39m\\n \\u001b[90m 43 | \\u001b[39m        \\u001b[33m<\\u001b[39m\\u001b[33mdiv\\u001b[39m className\\u001b[33m=\\u001b[39m\\u001b[32m\\\"outer-container\\\"\\u001b[39m\\u001b[33m>\\u001b[39m\\u001b[0m\\n\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjAxLmpzIiwic291cmNlcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///201\n");

/***/ }),

/***/ 202:
false,

/***/ 203:
false,

/***/ 205:
false,

/***/ 207:
false,

/***/ 208:
false,

/***/ 32:
false,

/***/ 33:
false,

/***/ 34:
false,

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

"use strict";
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(5);\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_tiny_conf__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tiny_conf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_tiny_conf__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_kevoree_kevscript__ = __webpack_require__(64);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_kevoree_kevscript___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_kevoree_kevscript__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_kevoree_core__ = __webpack_require__(196);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_kevoree_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_kevoree_core__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_kevoree_library__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_kevoree_library___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_kevoree_library__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__lib_logger_factory__ = __webpack_require__(60);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__lib_Resolver__ = __webpack_require__(198);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__lib_InstanceLoader__ = __webpack_require__(200);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Viewer__ = __webpack_require__(201);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Viewer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__Viewer__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Settings__ = __webpack_require__(206);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Error__ = __webpack_require__(39);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__app_css__ = __webpack_require__(214);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__app_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__app_css__);\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_1_tiny_conf___default.a.set('registry', {\n      host: 'registry.kevoree.org',\n      port: 443,\n      ssl: true\n    });\n    this.logger = __WEBPACK_IMPORTED_MODULE_5__lib_logger_factory__[\"a\" /* default */].create('Kevoree Browser Tester');\n    this.resolver = new __WEBPACK_IMPORTED_MODULE_6__lib_Resolver__[\"a\" /* default */](this.props.model.packages[0].deployUnits[0].hashcode);\n    this.kevs = new __WEBPACK_IMPORTED_MODULE_2_kevoree_kevscript___default.a(__WEBPACK_IMPORTED_MODULE_5__lib_logger_factory__[\"a\" /* default */].create('KevScript'));\n    this.core = new __WEBPACK_IMPORTED_MODULE_3_kevoree_core___default.a(this.resolver, this.kevs, __WEBPACK_IMPORTED_MODULE_5__lib_logger_factory__[\"a\" /* default */]);\n    this.factory = new __WEBPACK_IMPORTED_MODULE_4_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_7__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_7__lib_InstanceLoader__[\"a\" /* default */].has(key)) {\n            __WEBPACK_IMPORTED_MODULE_7__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_7__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    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      this.state.error ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Error__[\"a\" /* default */], { error: this.state.error }) : this.state.instance ? __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(__WEBPACK_IMPORTED_MODULE_9__Settings__[\"a\" /* default */], { instance: this.state.instance })\n        ),\n        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n          'div',\n          { className: 'right' },\n          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__Viewer__[\"default\"], { instance: this.state.instance })\n        )\n      ) : __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/* harmony export (immutable) */ __webpack_exports__[\"a\"] = App;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///63\n");

/***/ })

})