webpackHotUpdate(0,{

/***/ 230:
/***/ (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__(231);\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  onLoad() {\n    console.log('on load', this.props.instance);\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('div', { ref: elem => this.elem = elem, className: 'tile-content', onLoad: () => this.onLoad() })\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjMwLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL2Jyb3dzZXItdGVzdGVyL3NyYy9jb21wb25lbnRzL1RpbGUvaW5kZXguanM/N2E2NyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcblxuaW1wb3J0ICcuL3RpbGUuY3NzJztcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgVGlsZSBleHRlbmRzIFJlYWN0LkNvbXBvbmVudCB7XG5cbiAgcmVzaXplSWZyYW1lKGlmcmFtZSkge1xuICAgIGlmcmFtZS5zdHlsZS53aWR0aCA9IGlmcmFtZS5jb250ZW50V2luZG93LmRvY3VtZW50LmJvZHkuc2Nyb2xsV2lkdGggKyAncHgnO1xuICAgIGlmcmFtZS5zdHlsZS5oZWlnaHQgPSBpZnJhbWUuY29udGVudFdpbmRvdy5kb2N1bWVudC5ib2R5LnNjcm9sbEhlaWdodCArICdweCc7XG4gIH1cblxuICBvbkxvYWQoKSB7XG4gICAgY29uc29sZS5sb2coJ29uIGxvYWQnLCB0aGlzLnByb3BzLmluc3RhbmNlKTtcbiAgfVxuXG4gIGNvbXBvbmVudERpZE1vdW50KCkge1xuICAgIGlmICh0aGlzLmlmcmFtZSkge1xuICAgICAgdGhpcy5pZnJhbWUuc3R5bGUud2lkdGggPSAwO1xuICAgICAgdGhpcy5pZnJhbWUuc3R5bGUuaGVpZ2h0ID0gMDtcbiAgICB9XG4gIH1cblxuICByZW5kZXIoKSB7XG4gICAgY29uc3QgeyBuYW1lLCB2ZXJzaW9uIH0gPSB0aGlzLnByb3B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