(window.webpackJsonpcodecrumbs=window.webpackJsonpcodecrumbs||[]).push([[15],{160:function(o,e){o.exports=function(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}},161:function(o,e){function t(o,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}o.exports=function(o,e,n){return e&&t(o.prototype,e),n&&t(o,n),o}},162:function(o,e,t){var n=t(173),r=t(170);o.exports=function(o,e){return!e||"object"!==n(e)&&"function"!=typeof e?r(o):e}},163:function(o,e){function t(e){return o.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},t(e)}o.exports=t},164:function(o,e,t){var n=t(174);o.exports=function(o,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&n(o,e)}},170:function(o,e){o.exports=function(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}},173:function(o,e){function t(o){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function n(e){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?o.exports=n=function(o){return t(o)}:o.exports=n=function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":t(o)},n(e)}o.exports=n},174:function(o,e){function t(e,n){return o.exports=t=Object.setPrototypeOf||function(o,e){return o.__proto__=e,o},t(e,n)}o.exports=t},695:function(o,e,t){var n=t(696);"string"==typeof n&&(n=[[o.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t(49)(n,r);n.locals&&(o.exports=n.locals)},696:function(o,e,t){(o.exports=t(48)(!1)).push([o.i,".FlowChartLoading {\n  display: flex;\n  justify-content: center;\n  padding-top: 50px;\n}\n.FlowChartTabContainer {\n  position: relative;\n  height: 100%;\n  overflow: auto;\n}\n",""])},705:function(o,e,t){"use strict";t.r(e);var n=t(160),r=t.n(n),l=t(161),i=t.n(l),a=t(162),f=t.n(a),c=t(163),u=t.n(c),s=t(164),p=t.n(s),d=t(0),y=t.n(d),h=t(194),b=(t(193),t(70)),m=(t(96),t(695),{strokeColor:"#00bcd4",defaultFillColor:"#e6f7ff",textColor:"#595959",arrowFillColor:"#00bcd4",rectangleFillColor:"#fff",rectangleDotFillColor:"#fff",functionFillColor:"#fff",rootCircleFillColor:"#fff",loopFillColor:"#fff",conditionFillColor:"#fff",destructedNodeFillColor:"#fff",classFillColor:"#fff",debuggerFillColor:"#fff",exportFillColor:"#e6f7ff",throwFillColor:"#fff",tryFillColor:"#fff",objectFillColor:"#fff",callFillColor:"#fff",debugModeFillColor:"#fff"}),v=function(o){function e(o){var t;return r()(this,e),(t=f()(this,u()(e).call(this,o))).state={isSupported:"javascript"===o.language},t}return p()(e,o),i()(e,[{key:"componentDidMount",value:function(){var o=this;this.state.isSupported&&t.e(19).then(t.t.bind(null,697,7)).then(function(e){var t=e.createSVGRender,n=e.convertCodeToFlowTree;o.svgRender=t(),o.svgRender.applyColorBasedTheme(m),o.convertCodeToFlowTree=n,o.setState({ready:!0})})}},{key:"shouldComponentUpdate",value:function(){return this.props.active}},{key:"render",value:function(){var o=this.state,e=o.ready;if(!o.isSupported)return y.a.createElement(h.a,{message:"FlowChart supported for JavaScript code only",type:"warning",description:"You can file an issue here https://github.com/Bogdan-Lyashenko/js-code-to-svg-flowchart. Thank you ;)",showIcon:!0});if(!e)return y.a.createElement("div",{className:"FlowChartLoading"},y.a.createElement(b.a,null));var t="";try{var n=this.convertCodeToFlowTree(this.props.fileCode||"");t=this.svgRender.buildShapesTree(n).print()}catch(o){return y.a.createElement(h.a,{message:"Oppss.. AST parser failed to parse your code. That dude..",type:"warning",description:"Well.. maybe a bug, you can file an issue here https://github.com/Bogdan-Lyashenko/js-code-to-svg-flowchart. Thank you ;)",showIcon:!0})}return y.a.createElement("div",{className:"FlowChartTabContainer"},y.a.createElement("div",{dangerouslySetInnerHTML:{__html:t}}))}}]),e}(y.a.Component);e.default=v}}]);