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(\n        'div',\n        { className: 'tile-content' },\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      )\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/N2E2NyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcblxuaW1wb3J0ICcuL3RpbGUuY3NzJztcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgVGlsZSBleHRlbmRzIFJlYWN0LkNvbXBvbmVudCB7XG5cbiAgcmVzaXplSWZyYW1lKGlmcmFtZSkge1xuICAgIGlmcmFtZS5zdHlsZS53aWR0aCA9IGlmcmFtZS5jb250ZW50V2luZG93LmRvY3VtZW50LmJvZHkuc2Nyb2xsV2lkdGggKyAncHgnO1xuICAgIGlmcmFtZS5zdHlsZS5oZWlnaHQgPSBpZnJhbWUuY29udGVudFdpbmRvdy5kb2N1bWVudC5ib2R5LnNjcm9sbEhlaWdodCArICdweCc7XG4gIH1cblxuICBjb21wb25lbnREaWRNb3VudCgpIHtcbiAgICBpZiAodGhpcy5pZnJhbWUpIHtcbiAgICAgIHRoaXMuaWZyYW1lLnN0eWxlLndpZHRoID0gMDtcbiAgICAgIHRoaXMuaWZyYW1lLnN0eWxlLmhlaWdodCA9IDA7XG4gICAgfVxuICB9XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgbmFtZSwgdmVyc2lvbiB9ID0gdGhpcy5wcm9wcy5pbnN0YW5jZS5nZXRNb2RlbEVudGl0eSgpLnR5cGVEZWZpbml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