webpackHotUpdate(0,{

/***/ 216:
/***/ (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__(223);\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__(217);\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  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        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//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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